sprof 0.0.26 → 0.0.28

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.
@@ -6,3 +6,5 @@ import { default as FormSectionsStore } from './FormSectionsStore';
6
6
  import { default as FormsStore } from './FormsStore';
7
7
  import { default as SelectedAnswerVariantsStore } from './SelectedAnswerVariantsStore';
8
8
  export { AnswerVariantsStore, FieldFillsStore, FieldsStore, FormFillsStore, FormSectionsStore, FormsStore, SelectedAnswerVariantsStore };
9
+ declare const m: Record<string, unknown>;
10
+ export { m };
@@ -4,20 +4,20 @@ import { default as IFileInfosGetter } from '../interfaces/IFileInfosGetter';
4
4
  import { default as ItemsWithCount } from '../interfaces/ItemsWithCount';
5
5
  import { default as IWithId } from '../interfaces/IWithId';
6
6
  import { Constructable } from './ClassHelper';
7
- interface GetAllOptions {
7
+ export interface GetAllOptions {
8
8
  withCache?: boolean;
9
9
  ftsp: FTSP;
10
10
  }
11
11
  export default class BaseStore<T extends IWithId & IFileInfosGetter> {
12
- protected readonly items: T[];
13
- protected readonly item: T;
14
- protected count: Ref<number, number>;
15
- protected classConstructor: Constructable<T>;
16
- protected url: string;
12
+ readonly items: T[];
13
+ readonly item: T;
14
+ count: Ref<number, number>;
15
+ classConstructor: Constructable<T>;
16
+ url: string;
17
17
  constructor(i: Constructable<T>, url: string);
18
18
  Set(item: T | void): void;
19
19
  Item(): T;
20
- protected getUrl(query?: string): string;
20
+ getUrl(query?: string): string;
21
21
  GetAll(options?: GetAllOptions): Promise<void>;
22
22
  Get(id?: string): Promise<void>;
23
23
  FTSP(options?: GetAllOptions): Promise<void>;
@@ -40,4 +40,3 @@ export default class BaseStore<T extends IWithId & IFileInfosGetter> {
40
40
  Items(): T[];
41
41
  Count(): Ref<number>;
42
42
  }
43
- export {};
@@ -0,0 +1,127 @@
1
+ import { default as CoreStore } from '../store/Store';
2
+ export default abstract class $P {
3
+ static Auth: {
4
+ readonly Form: {
5
+ Block: (fn: () => Promise<void>) => Promise<void>;
6
+ GetValues: () => Map<string, string>;
7
+ Validate: () => string[];
8
+ GetFields: () => import('../classes/auth/fields/AuthField').default[];
9
+ GetMethods: () => import('..').AuthMethods[];
10
+ Status: () => import('..').AuthFormStatuses;
11
+ IsLogin: () => boolean;
12
+ IsRegister: () => boolean;
13
+ IsRestore: () => boolean;
14
+ IsRefresh: () => boolean;
15
+ SetStatus: (status: import('..').AuthFormStatuses) => void;
16
+ GetTitle: () => string;
17
+ GetButtons: () => import('../classes/auth/buttons/AuthButton').default[];
18
+ GetSuccessMessage: () => string;
19
+ GetErrorMessage: () => string;
20
+ GetAction: () => string;
21
+ ResetFields: () => void;
22
+ Reset: () => void;
23
+ };
24
+ readonly Status: {
25
+ DeprecateLogout: () => void;
26
+ AllowLogout: () => void;
27
+ readonly IsAuth: boolean;
28
+ readonly User: unknown;
29
+ SetUserConstructor: (c: import('./ClassHelper').Constructable<import('../interfaces/IWithId').default>) => void;
30
+ SetState: (authInfo: import('../types/AuthInfo').AuthInfo) => void;
31
+ Logout: () => void;
32
+ Actualize: () => void;
33
+ };
34
+ readonly Modal: {
35
+ IsClosable: () => boolean;
36
+ IsVisible: () => boolean;
37
+ Close: () => void;
38
+ Open: (closable?: boolean | undefined) => void;
39
+ };
40
+ };
41
+ static AdminUI: {
42
+ Menu: {
43
+ menu: {
44
+ name: string;
45
+ to: string;
46
+ icon?: string | undefined;
47
+ showTo?: string[] | undefined;
48
+ children?: any[] | undefined;
49
+ tableName?: string | undefined;
50
+ count?: number | undefined;
51
+ }[];
52
+ path: string;
53
+ isOpen: boolean;
54
+ filterString: string;
55
+ Set: (menu: import('../interfaces/IAdminMenu').default[]) => void;
56
+ Get: () => import('../interfaces/IAdminMenu').default[];
57
+ filterMenu: () => import('../interfaces/IAdminMenu').default[];
58
+ IsOpen: () => boolean;
59
+ Toggle: () => void;
60
+ SetPath: (path: string) => void;
61
+ GetPath: () => string;
62
+ SetFilter: (str: string) => void;
63
+ GetChildren: (menu: import('../interfaces/IAdminMenu').default) => import('../interfaces/IAdminMenu').default[] | undefined;
64
+ };
65
+ Head: {
66
+ title: any;
67
+ buttons: {
68
+ text: string | undefined;
69
+ type?: import('.').Statuses | undefined;
70
+ condition?: boolean | undefined;
71
+ action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
72
+ id: string;
73
+ disabled: boolean;
74
+ }[];
75
+ Set: (title: (string | (() => string) | globalThis.ComputedRef<any>) | undefined, buttons: import('.').Button[]) => void;
76
+ };
77
+ };
78
+ static Dialog: {
79
+ GetConfirmButtonText: () => string;
80
+ GetCancelButtonText: () => string;
81
+ Show: (m: string | (import('./Message').MessageOpts & {
82
+ text: string;
83
+ confirmButtonText: string;
84
+ cancelButtonText: string;
85
+ })) => Promise<import('./Dialog').DialogResult>;
86
+ Save: () => Promise<import('./Dialog').DialogResult>;
87
+ Submit: () => void;
88
+ Cancel: () => void;
89
+ GetText: () => string;
90
+ GetTitle: () => string;
91
+ GetType: () => import('.').Statuses;
92
+ Info: (m: string | import('./Message').MessageOpts) => void;
93
+ Success: (m: string | import('./Message').MessageOpts) => void;
94
+ Error: (m: string | import('./Message').MessageOpts) => void;
95
+ Warning: (m: string | import('./Message').MessageOpts) => void;
96
+ FormMessage: (errorFields: any) => string;
97
+ IsVisible: () => boolean;
98
+ };
99
+ static Notification: {
100
+ Dev: () => void;
101
+ Save: () => void;
102
+ GetText: () => string;
103
+ GetTitle: () => string;
104
+ GetType: () => import('.').Statuses;
105
+ Info: (m: string | import('./Message').MessageOpts) => void;
106
+ Success: (m: string | import('./Message').MessageOpts) => void;
107
+ Error: (m: string | import('./Message').MessageOpts) => void;
108
+ Warning: (m: string | import('./Message').MessageOpts) => void;
109
+ FormMessage: (errorFields: any) => string;
110
+ IsVisible: () => boolean;
111
+ };
112
+ static Loading: {
113
+ Show: () => void;
114
+ Hide: () => void;
115
+ IsVisible: () => boolean;
116
+ };
117
+ static Paginator: {
118
+ limit: number;
119
+ count: number;
120
+ curPage: number;
121
+ storeModule?: string | undefined;
122
+ setCurPage: (page: number) => void;
123
+ pagesCount: () => number;
124
+ reset: () => void;
125
+ };
126
+ static Store: typeof CoreStore;
127
+ }
@@ -34,6 +34,7 @@ import { default as MakeCarousel } from './MakeCarousel';
34
34
  import { moveDown, moveUp } from './moves';
35
35
  import { default as Period } from './Period';
36
36
  import { default as PHelp } from './PHelp';
37
+ import { default as $P } from './PHelp2';
37
38
  import { default as PhoneService } from './PhoneService';
38
39
  import { default as Router } from './Router';
39
40
  import { default as RouterGuard } from './RouterGuard';
@@ -49,4 +50,4 @@ import { default as useConfirmLeavePage } from './useConfirmLeavePage';
49
50
  import { default as validate } from './validate';
50
51
  import { default as WaitElement } from './WaitElement';
51
52
  import { default as WebSocketClient } from './WebSocketClient';
52
- export { Arrays, Axios, BaseStore, brandColors, buildNameNumbers, Button, Cache, CarouselSwipe, ClassHelper, Color, Contact, countRating, CreateSortModels, Cursor, DateFormat, DateMask, Dates, DatesFormatter, Dragger, Email, Extension, Favourite, FileInfo, FilterModel, FTSP, Hooks, HttpClient, Human, MakeCarousel, moveDown, moveUp, Period, PHelp, PhoneService, Router, RouterGuard, Scheduler, Scroll, Sizes, Sorter, SortModel, Static, Statuses, Strings, Time, Timer, Token, useConfirmLeavePage, validate, ValueType, WaitElement, WebSocketClient, };
53
+ export { $P, Arrays, Axios, BaseStore, brandColors, buildNameNumbers, Button, Cache, CarouselSwipe, ClassHelper, Color, Contact, countRating, CreateSortModels, Cursor, DateFormat, DateMask, Dates, DatesFormatter, Dragger, Email, Extension, Favourite, FileInfo, FilterModel, FTSP, Hooks, HttpClient, Human, MakeCarousel, moveDown, moveUp, Period, PHelp, PhoneService, Router, RouterGuard, Scheduler, Scroll, Sizes, Sorter, SortModel, Static, Statuses, Strings, Time, Timer, Token, useConfirmLeavePage, validate, ValueType, WaitElement, WebSocketClient, };