sprof 0.0.26 → 0.0.27

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 {};
@@ -1,4 +1,5 @@
1
- export default abstract class PHelp {
1
+ import { default as CoreStore } from '../store/Store';
2
+ export default abstract class $P {
2
3
  static Auth: {
3
4
  readonly Form: {
4
5
  Block: (fn: () => Promise<void>) => Promise<void>;
@@ -122,4 +123,5 @@ export default abstract class PHelp {
122
123
  pagesCount: () => number;
123
124
  reset: () => void;
124
125
  };
126
+ static Store: typeof CoreStore;
125
127
  }
@@ -0,0 +1,125 @@
1
+ export default abstract class $P {
2
+ static Auth: {
3
+ readonly Form: {
4
+ Block: (fn: () => Promise<void>) => Promise<void>;
5
+ GetValues: () => Map<string, string>;
6
+ Validate: () => string[];
7
+ GetFields: () => import('../classes/auth/fields/AuthField').default[];
8
+ GetMethods: () => import('..').AuthMethods[];
9
+ Status: () => import('..').AuthFormStatuses;
10
+ IsLogin: () => boolean;
11
+ IsRegister: () => boolean;
12
+ IsRestore: () => boolean;
13
+ IsRefresh: () => boolean;
14
+ SetStatus: (status: import('..').AuthFormStatuses) => void;
15
+ GetTitle: () => string;
16
+ GetButtons: () => import('../classes/auth/buttons/AuthButton').default[];
17
+ GetSuccessMessage: () => string;
18
+ GetErrorMessage: () => string;
19
+ GetAction: () => string;
20
+ ResetFields: () => void;
21
+ Reset: () => void;
22
+ };
23
+ readonly Status: {
24
+ DeprecateLogout: () => void;
25
+ AllowLogout: () => void;
26
+ readonly IsAuth: boolean;
27
+ readonly User: unknown;
28
+ SetUserConstructor: (c: import('./ClassHelper').Constructable<import('../interfaces/IWithId').default>) => void;
29
+ SetState: (authInfo: import('../types/AuthInfo').AuthInfo) => void;
30
+ Logout: () => void;
31
+ Actualize: () => void;
32
+ };
33
+ readonly Modal: {
34
+ IsClosable: () => boolean;
35
+ IsVisible: () => boolean;
36
+ Close: () => void;
37
+ Open: (closable?: boolean | undefined) => void;
38
+ };
39
+ };
40
+ static AdminUI: {
41
+ Menu: {
42
+ menu: {
43
+ name: string;
44
+ to: string;
45
+ icon?: string | undefined;
46
+ showTo?: string[] | undefined;
47
+ children?: any[] | undefined;
48
+ tableName?: string | undefined;
49
+ count?: number | undefined;
50
+ }[];
51
+ path: string;
52
+ isOpen: boolean;
53
+ filterString: string;
54
+ Set: (menu: import('../interfaces/IAdminMenu').default[]) => void;
55
+ Get: () => import('../interfaces/IAdminMenu').default[];
56
+ filterMenu: () => import('../interfaces/IAdminMenu').default[];
57
+ IsOpen: () => boolean;
58
+ Toggle: () => void;
59
+ SetPath: (path: string) => void;
60
+ GetPath: () => string;
61
+ SetFilter: (str: string) => void;
62
+ GetChildren: (menu: import('../interfaces/IAdminMenu').default) => import('../interfaces/IAdminMenu').default[] | undefined;
63
+ };
64
+ Head: {
65
+ title: any;
66
+ buttons: {
67
+ text: string | undefined;
68
+ type?: import('.').Statuses | undefined;
69
+ condition?: boolean | undefined;
70
+ action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
71
+ id: string;
72
+ disabled: boolean;
73
+ }[];
74
+ Set: (title: (string | (() => string) | globalThis.ComputedRef<any>) | undefined, buttons: import('.').Button[]) => void;
75
+ };
76
+ };
77
+ static Dialog: {
78
+ GetConfirmButtonText: () => string;
79
+ GetCancelButtonText: () => string;
80
+ Show: (m: string | (import('./Message').MessageOpts & {
81
+ text: string;
82
+ confirmButtonText: string;
83
+ cancelButtonText: string;
84
+ })) => Promise<import('./Dialog').DialogResult>;
85
+ Save: () => Promise<import('./Dialog').DialogResult>;
86
+ Submit: () => void;
87
+ Cancel: () => void;
88
+ GetText: () => string;
89
+ GetTitle: () => string;
90
+ GetType: () => import('.').Statuses;
91
+ Info: (m: string | import('./Message').MessageOpts) => void;
92
+ Success: (m: string | import('./Message').MessageOpts) => void;
93
+ Error: (m: string | import('./Message').MessageOpts) => void;
94
+ Warning: (m: string | import('./Message').MessageOpts) => void;
95
+ FormMessage: (errorFields: any) => string;
96
+ IsVisible: () => boolean;
97
+ };
98
+ static Notification: {
99
+ Dev: () => void;
100
+ Save: () => void;
101
+ GetText: () => string;
102
+ GetTitle: () => string;
103
+ GetType: () => import('.').Statuses;
104
+ Info: (m: string | import('./Message').MessageOpts) => void;
105
+ Success: (m: string | import('./Message').MessageOpts) => void;
106
+ Error: (m: string | import('./Message').MessageOpts) => void;
107
+ Warning: (m: string | import('./Message').MessageOpts) => void;
108
+ FormMessage: (errorFields: any) => string;
109
+ IsVisible: () => boolean;
110
+ };
111
+ static Loading: {
112
+ Show: () => void;
113
+ Hide: () => void;
114
+ IsVisible: () => boolean;
115
+ };
116
+ static Paginator: {
117
+ limit: number;
118
+ count: number;
119
+ curPage: number;
120
+ storeModule?: string | undefined;
121
+ setCurPage: (page: number) => void;
122
+ pagesCount: () => number;
123
+ reset: () => void;
124
+ };
125
+ }
@@ -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, };