sprof 0.0.102 → 0.0.103

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 (121) hide show
  1. package/dist/core/auth/AuthForm.d.ts +69 -0
  2. package/dist/core/{classes/auth → auth}/AuthStatus.d.ts +3 -3
  3. package/dist/core/{classes/auth → auth}/AuthTokens.d.ts +1 -1
  4. package/dist/core/{classes/auth → auth}/AuthUser.d.ts +2 -2
  5. package/dist/core/{classes/auth → auth}/buttons/AuthButton.d.ts +1 -1
  6. package/dist/core/{classes/auth → auth}/fields/AuthField.d.ts +2 -2
  7. package/dist/core/{classes/auth → auth}/fields/EmailField.d.ts +1 -1
  8. package/dist/core/{classes/auth → auth}/fields/LoginField.d.ts +1 -1
  9. package/dist/core/{classes/auth → auth}/fields/PasswordField.d.ts +1 -1
  10. package/dist/core/auth/settings/AuthFormSettings.d.ts +46 -0
  11. package/dist/core/classes/FTSPPreset.d.ts +1 -1
  12. package/dist/core/classes/HttpResponse.d.ts +1 -1
  13. package/dist/core/classes/SearchModel.d.ts +1 -1
  14. package/dist/core/classes/index.d.ts +16 -5
  15. package/dist/core/components/ContextWindow.vue.d.ts +1 -1
  16. package/dist/core/components/FilterCheckbox.vue.d.ts +1 -1
  17. package/dist/core/components/FilterSelect.vue.d.ts +1 -1
  18. package/dist/core/components/FiltersButtonsSelect.vue.d.ts +1 -1
  19. package/dist/core/components/GeneralItem.vue.d.ts +2 -2
  20. package/dist/core/components/GridContainer.vue.d.ts +2 -2
  21. package/dist/core/components/InfoItem.vue.d.ts +3 -3
  22. package/dist/core/components/InfoItemSelectButtons.vue.d.ts +2 -2
  23. package/dist/core/components/MessageBody.vue.d.ts +1 -1
  24. package/dist/core/components/RemoteSearch.vue.d.ts +3 -3
  25. package/dist/core/components/Switch3Pos.vue.d.ts +1 -1
  26. package/dist/core/components/UploaderImage.vue.d.ts +1 -1
  27. package/dist/core/components/atoms/PButton/PButton.stories.d.ts +18 -18
  28. package/dist/core/components/atoms/PButton/PButton.vue.d.ts +3 -3
  29. package/dist/core/components/atoms/PCheckbox/PCheckBox.stories.d.ts +6 -6
  30. package/dist/core/components/atoms/PCheckbox/PCheckBox.vue.d.ts +3 -3
  31. package/dist/core/components/atoms/PDatePicker/PDatePicker.vue.d.ts +3 -3
  32. package/dist/core/components/atoms/PFlex/PFlex.stories.d.ts +12 -12
  33. package/dist/core/components/atoms/PFlex/PFlex.vue.d.ts +2 -2
  34. package/dist/core/components/atoms/PInput/PInput.stories.d.ts +10 -10
  35. package/dist/core/components/atoms/PInput/PInput.vue.d.ts +2 -2
  36. package/dist/core/components/atoms/PInputDate/PInputDate.stories.d.ts +4 -4
  37. package/dist/core/components/atoms/PInputDate/PInputDate.vue.d.ts +2 -2
  38. package/dist/core/components/atoms/PInputNumber/PInputNumber.stories.d.ts +4 -4
  39. package/dist/core/components/atoms/PInputNumber/PInputNumber.vue.d.ts +2 -2
  40. package/dist/core/components/atoms/PLeftSlider/PLeftSlider.stories.d.ts +6 -6
  41. package/dist/core/components/atoms/PLeftSlider/PLeftSlider.vue.d.ts +1 -1
  42. package/dist/core/components/atoms/PList/PList.stories.d.ts +6 -6
  43. package/dist/core/components/atoms/PList/PList.vue.d.ts +1 -1
  44. package/dist/core/components/atoms/PRadio/PRadio.stories.d.ts +8 -8
  45. package/dist/core/components/atoms/PRadio/PRadio.vue.d.ts +4 -4
  46. package/dist/core/components/atoms/PRightSlider/PRightSlider.stories.d.ts +6 -6
  47. package/dist/core/components/atoms/PRightSlider/PRightSlider.vue.d.ts +1 -1
  48. package/dist/core/components/atoms/PSelect/PSelect.stories.d.ts +34 -34
  49. package/dist/core/components/atoms/PSelect/PSelect.vue.d.ts +6 -6
  50. package/dist/core/components/atoms/PString/PString.stories.d.ts +4 -4
  51. package/dist/core/components/atoms/PString/PString.vue.d.ts +2 -2
  52. package/dist/core/components/atoms/PTable/PTable.storeis.d.ts +6 -6
  53. package/dist/core/components/atoms/PTable/PTable.vue.d.ts +1 -1
  54. package/dist/core/components/atoms/PTextarea/PTextarea.stories.d.ts +10 -10
  55. package/dist/core/components/atoms/PTextarea/PTextarea.vue.d.ts +2 -2
  56. package/dist/core/components/atoms/PTopSlider/PTopSlider.stories.d.ts +6 -6
  57. package/dist/core/components/atoms/PTopSlider/PTopSlider.vue.d.ts +1 -1
  58. package/dist/core/components/index.d.ts +91 -0
  59. package/dist/core/components/molecules/Collapse/CollapseItem.stories.d.ts +2 -2
  60. package/dist/core/components/molecules/Collapse/CollapseItem.vue.d.ts +1 -1
  61. package/dist/core/components/molecules/PAdd/PAdd.vue.d.ts +1 -1
  62. package/dist/core/components/molecules/PAdd/PContainer.vue.d.ts +1 -1
  63. package/dist/core/components/molecules/PAdd/PContainerStickyHead.vue.d.ts +1 -1
  64. package/dist/core/components/molecules/PDel/PDel.vue.d.ts +1 -1
  65. package/dist/core/components/organisms/AuthForm/AuthForm.vue.d.ts +1 -1
  66. package/dist/core/components/organisms/PModal.vue.d.ts +3 -3
  67. package/dist/core/components/organisms/UploaderFile/UploaderFile.stories.d.ts +36 -36
  68. package/dist/core/components/organisms/UploaderFile/UploaderFile.vue.d.ts +1 -1
  69. package/dist/core/{classes/filters → ftsp}/Cursor.d.ts +1 -1
  70. package/dist/core/{classes/filters → ftsp}/FTSP.d.ts +1 -1
  71. package/dist/core/{classes/filters → ftsp}/FilterModel.d.ts +3 -3
  72. package/dist/core/{classes/filters → ftsp}/FilterQuery.d.ts +1 -1
  73. package/dist/core/{classes/filters → ftsp}/OperatorsOptions.d.ts +1 -1
  74. package/dist/core/{classes/filters → ftsp}/OperatorsTextOptions.d.ts +1 -1
  75. package/dist/core/{classes/filters → ftsp}/SelectFilter.d.ts +2 -2
  76. package/dist/core/{classes/filters → ftsp}/TreeModel.d.ts +1 -1
  77. package/dist/core/ftsp/index.d.ts +0 -0
  78. package/dist/core/helpers/BaseStore.d.ts +1 -1
  79. package/dist/core/helpers/CreateSortModels.d.ts +1 -1
  80. package/dist/core/helpers/Hooks.d.ts +1 -1
  81. package/dist/core/helpers/Message.d.ts +1 -1
  82. package/dist/core/helpers/SortList.d.ts +1 -1
  83. package/dist/core/helpers/index.d.ts +2 -10
  84. package/dist/core/index.d.ts +185 -111
  85. package/dist/core/interfaces/Filter.d.ts +1 -1
  86. package/dist/core/interfaces/IFilterQuery.d.ts +2 -2
  87. package/dist/core/interfaces/Sort.d.ts +1 -1
  88. package/dist/core/store/CropperStore.d.ts +1 -1
  89. package/dist/core/store/index.d.ts +435 -12
  90. package/dist/core/types/index.d.ts +4 -2
  91. package/dist/core/{helpers/ui → ui}/AdminHead.d.ts +1 -1
  92. package/dist/core/{helpers/ui → ui}/AdminSideMenu.d.ts +1 -1
  93. package/dist/core/{helpers/ui → ui}/AdminUI.d.ts +6 -6
  94. package/dist/core/{classes/ui/Button.d.ts → ui/Btn.d.ts} +1 -1
  95. package/dist/core/{helpers/ui → ui}/Dialog.d.ts +1 -1
  96. package/dist/core/{classes/ui/InputField.d.ts → ui/Input.d.ts} +2 -2
  97. package/dist/core/{helpers/ui → ui}/Loading.d.ts +1 -1
  98. package/dist/core/{helpers/ui → ui}/Notify.d.ts +2 -2
  99. package/dist/core/ui/index.d.ts +107 -0
  100. package/dist/index.d.ts +5 -94
  101. package/dist/sprof.js +11723 -11740
  102. package/dist/sprof.umd.cjs +35 -35
  103. package/dist/style.css +1 -1
  104. package/package.json +1 -1
  105. package/dist/core/classes/auth/AuthForm.d.ts +0 -30
  106. package/dist/core/classes/auth/indexNames.d.ts +0 -2
  107. package/dist/core/classes/auth/settings/AuthFormSettings.d.ts +0 -4
  108. package/dist/core/helpers/ui/index.d.ts +0 -5
  109. /package/dist/core/{classes/auth → auth}/Auth.d.ts +0 -0
  110. /package/dist/core/{classes/auth → auth}/AuthData.d.ts +0 -0
  111. /package/dist/core/{classes/auth → auth}/AuthModal.d.ts +0 -0
  112. /package/dist/core/{classes/auth → auth}/FormAuth.test.d.ts +0 -0
  113. /package/dist/core/{classes/auth → auth}/buttons/AuthButtonLogin.d.ts +0 -0
  114. /package/dist/core/{classes/auth → auth}/buttons/AuthButtonRegister.d.ts +0 -0
  115. /package/dist/core/{classes/auth → auth}/fields/PasswordRepeatField.d.ts +0 -0
  116. /package/dist/core/{classes/auth → auth}/index.d.ts +0 -0
  117. /package/dist/core/{classes/auth → auth}/types/AuthFormSettingsType.d.ts +0 -0
  118. /package/dist/core/{classes/auth → auth}/types/AuthFormStatuses.d.ts +0 -0
  119. /package/dist/core/{classes/auth → auth}/types/AuthMethods.d.ts +0 -0
  120. /package/dist/core/{classes/filters → ftsp}/Pagination.d.ts +0 -0
  121. /package/dist/core/{classes → ftsp}/SortModel.d.ts +0 -0
@@ -1,7 +1,8 @@
1
+ import { default as C } from './classes/index';
2
+ import { default as FTSP } from './ftsp/FTSP';
1
3
  import { default as H } from './helpers/index';
2
- import * as C from '@/core/classes/index';
3
- import * as UI from '@/core/helpers/ui/index';
4
- import * as S from '@/core/store/index';
4
+ import { default as S } from './store/index';
5
+ import { default as UI } from './ui/index';
5
6
  export default abstract class PF {
6
7
  static Auth: {
7
8
  readonly Form: {
@@ -10,16 +11,190 @@ export default abstract class PF {
10
11
  [k: string]: string;
11
12
  };
12
13
  Validate: () => string[];
13
- GetFields: () => import('./classes/auth/fields/AuthField').default[];
14
- GetMethods: () => C.AuthMethods[];
15
- Status: () => C.AuthFormStatuses;
14
+ GetFields: () => import('./auth/fields/AuthField').default[];
15
+ GetMethods: () => import('./auth').AuthMethods[];
16
+ Status: () => import('./auth').AuthFormStatuses;
17
+ readonly Settings: {
18
+ allowRestore: boolean;
19
+ login: {
20
+ methods: import('./auth').AuthMethods[];
21
+ title: string;
22
+ action: string;
23
+ buttons: ({
24
+ id: string;
25
+ text: string;
26
+ isSubmit: boolean;
27
+ disabled: boolean;
28
+ status: import('./auth').AuthFormStatuses;
29
+ submit: boolean;
30
+ GetStatus: () => import('./auth').AuthFormStatuses;
31
+ type?: import('./types').Statuses | undefined;
32
+ condition?: boolean | undefined;
33
+ action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
34
+ } | {
35
+ id: string;
36
+ text: string;
37
+ isSubmit: boolean;
38
+ disabled: boolean;
39
+ status: import('./auth').AuthFormStatuses;
40
+ submit: boolean;
41
+ GetStatus: () => import('./auth').AuthFormStatuses;
42
+ type?: import('./types').Statuses | undefined;
43
+ condition?: boolean | undefined;
44
+ action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
45
+ })[];
46
+ fields: ({
47
+ id: string;
48
+ label: string;
49
+ name: string;
50
+ placeholder: string;
51
+ validator?: {
52
+ errors: string[];
53
+ validate: (value?: string | number | undefined) => string[];
54
+ } | undefined;
55
+ method: import('./auth').AuthMethods;
56
+ value: string;
57
+ Validate: () => string[];
58
+ Reset: () => void;
59
+ } | {
60
+ label: string;
61
+ validator?: {
62
+ errors: string[];
63
+ validate: (value?: string | number | undefined) => string[];
64
+ } | undefined;
65
+ name: string;
66
+ placeholder: string;
67
+ id: string;
68
+ method?: import('./auth').AuthMethods | undefined;
69
+ value: string;
70
+ Validate: () => string[];
71
+ Reset: () => void;
72
+ })[];
73
+ errorMessage: string;
74
+ successMessage: string;
75
+ };
76
+ register: {
77
+ methods: never[];
78
+ title: string;
79
+ action: string;
80
+ buttons: ({
81
+ id: string;
82
+ text: string;
83
+ isSubmit: boolean;
84
+ disabled: boolean;
85
+ status: import('./auth').AuthFormStatuses;
86
+ submit: boolean;
87
+ GetStatus: () => import('./auth').AuthFormStatuses;
88
+ type?: import('./types').Statuses | undefined;
89
+ condition?: boolean | undefined;
90
+ action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
91
+ } | {
92
+ id: string;
93
+ text: string;
94
+ isSubmit: boolean;
95
+ disabled: boolean;
96
+ status: import('./auth').AuthFormStatuses;
97
+ submit: boolean;
98
+ GetStatus: () => import('./auth').AuthFormStatuses;
99
+ type?: import('./types').Statuses | undefined;
100
+ condition?: boolean | undefined;
101
+ action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
102
+ })[];
103
+ fields: ({
104
+ id: string;
105
+ label: string;
106
+ name: string;
107
+ placeholder: string;
108
+ validator?: {
109
+ errors: string[];
110
+ validate: (value?: string | number | undefined) => string[];
111
+ } | undefined;
112
+ method: import('./auth').AuthMethods;
113
+ value: string;
114
+ Validate: () => string[];
115
+ Reset: () => void;
116
+ } | {
117
+ label: string;
118
+ validator?: {
119
+ errors: string[];
120
+ validate: (value?: string | number | undefined) => string[];
121
+ } | undefined;
122
+ name: string;
123
+ placeholder: string;
124
+ id: string;
125
+ method?: import('./auth').AuthMethods | undefined;
126
+ value: string;
127
+ Validate: () => string[];
128
+ Reset: () => void;
129
+ } | {
130
+ label: string;
131
+ id: string;
132
+ method?: import('./auth').AuthMethods | undefined;
133
+ name: string;
134
+ value: string;
135
+ placeholder: string;
136
+ validator?: {
137
+ errors: string[];
138
+ validate: (value?: string | number | undefined) => string[];
139
+ } | undefined;
140
+ Validate: () => string[];
141
+ Reset: () => void;
142
+ })[];
143
+ errorMessage: string;
144
+ successMessage: string;
145
+ };
146
+ restore: {
147
+ title: string;
148
+ methods: never[];
149
+ action: string;
150
+ successMessage: string;
151
+ errorMessage: string;
152
+ buttons: never[];
153
+ fields: {
154
+ id: string;
155
+ label: string;
156
+ name: string;
157
+ placeholder: string;
158
+ validator?: {
159
+ errors: string[];
160
+ validate: (value?: string | number | undefined) => string[];
161
+ } | undefined;
162
+ method: import('./auth').AuthMethods;
163
+ value: string;
164
+ Validate: () => string[];
165
+ Reset: () => void;
166
+ }[];
167
+ };
168
+ refresh: {
169
+ methods: never[];
170
+ title: string;
171
+ action: string;
172
+ successMessage: string;
173
+ errorMessage: string;
174
+ buttons: never[];
175
+ fields: {
176
+ label: string;
177
+ validator?: {
178
+ errors: string[];
179
+ validate: (value?: string | number | undefined) => string[];
180
+ } | undefined;
181
+ name: string;
182
+ placeholder: string;
183
+ id: string;
184
+ method?: import('./auth').AuthMethods | undefined;
185
+ value: string;
186
+ Validate: () => string[];
187
+ Reset: () => void;
188
+ }[];
189
+ };
190
+ };
16
191
  IsLogin: () => boolean;
17
192
  IsRegister: () => boolean;
18
193
  IsRestore: () => boolean;
19
194
  IsRefresh: () => boolean;
20
- SetStatus: (status: C.AuthFormStatuses) => void;
195
+ SetStatus: (status: import('./auth').AuthFormStatuses) => void;
21
196
  GetTitle: () => string;
22
- GetButtons: () => import('./classes/auth/buttons/AuthButton').default[];
197
+ GetButtons: () => import('./auth/buttons/AuthButton').default[];
23
198
  GetSuccessMessage: () => string;
24
199
  GetErrorMessage: () => string;
25
200
  GetAction: () => string;
@@ -43,109 +218,7 @@ export default abstract class PF {
43
218
  Open: (closable?: boolean | undefined) => void;
44
219
  };
45
220
  };
46
- static UI: {
47
- Admin: {
48
- Menu: {
49
- menu: {
50
- name: string;
51
- to: string;
52
- icon?: string | undefined;
53
- showTo?: string[] | undefined;
54
- children?: any[] | undefined;
55
- tableName?: string | undefined;
56
- count?: number | undefined;
57
- }[];
58
- path: string;
59
- isOpen: boolean;
60
- filterString: string;
61
- Set: (menu: import('./interfaces/IAdminMenu').default[]) => void;
62
- Get: () => import('./interfaces/IAdminMenu').default[];
63
- filterMenu: () => import('./interfaces/IAdminMenu').default[];
64
- IsOpen: () => boolean;
65
- Toggle: () => void;
66
- SetPath: (path: string) => void;
67
- GetPath: () => string;
68
- SetFilter: (str: string) => void;
69
- GetChildren: (menu: import('./interfaces/IAdminMenu').default) => import('./interfaces/IAdminMenu').default[] | undefined;
70
- };
71
- Head: {
72
- title: any;
73
- buttons: {
74
- text: string | undefined;
75
- type?: import('./types/Statuses').Statuses | undefined;
76
- condition?: boolean | undefined;
77
- action?: (((next?: import('vue-router').NavigationGuardNext | undefined) => Promise<void>) | (() => Promise<void>) | (() => void)) | undefined;
78
- id: string;
79
- disabled: boolean;
80
- }[];
81
- Set: (title: (string | (() => string) | globalThis.ComputedRef<any>) | undefined, buttons: UI.Btn[]) => void;
82
- };
83
- };
84
- Dialog: {
85
- confirmButtonText: string;
86
- cancelButtonText: string;
87
- resolve?: any;
88
- reject?: any;
89
- GetConfirmButtonText: () => string;
90
- GetCancelButtonText: () => string;
91
- Show: (m: string | (import('./helpers/Message').MessageOpts & {
92
- text: string;
93
- confirmButtonText: string;
94
- cancelButtonText: string;
95
- })) => Promise<import('./helpers/ui/Dialog').DialogResult>;
96
- Save: () => Promise<import('./helpers/ui/Dialog').DialogResult>;
97
- Submit: () => void;
98
- Cancel: () => void;
99
- hide: () => void;
100
- type: import('./types/Statuses').Statuses;
101
- text: string;
102
- title: string;
103
- GetText: () => string;
104
- GetTitle: () => string;
105
- GetType: () => import('./types/Statuses').Statuses;
106
- Info: (m: string | import('./helpers/Message').MessageOpts) => void;
107
- Success: (m: string | import('./helpers/Message').MessageOpts) => void;
108
- Error: (m: string | import('./helpers/Message').MessageOpts) => void;
109
- Warning: (m: string | import('./helpers/Message').MessageOpts) => void;
110
- FormMessage: (errorFields: any) => string;
111
- visible: boolean;
112
- show: () => void;
113
- IsVisible: () => boolean;
114
- };
115
- Loading: {
116
- Show: () => void;
117
- Hide: () => void;
118
- visible: boolean;
119
- hide: () => void;
120
- show: () => void;
121
- IsVisible: () => boolean;
122
- };
123
- Notify: {
124
- duration: number;
125
- showMessage: (m: string | (import('./helpers/Message').MessageOpts & {
126
- duration: number;
127
- }), t: import('./types/Statuses').Statuses) => void;
128
- GetDuration: () => number;
129
- Dev: () => void;
130
- Save: () => void;
131
- type: import('./types/Statuses').Statuses;
132
- text: string;
133
- title: string;
134
- GetText: () => string;
135
- GetTitle: () => string;
136
- GetType: () => import('./types/Statuses').Statuses;
137
- Info: (m: string | import('./helpers/Message').MessageOpts) => void;
138
- Success: (m: string | import('./helpers/Message').MessageOpts) => void;
139
- Error: (m: string | import('./helpers/Message').MessageOpts) => void;
140
- Warning: (m: string | import('./helpers/Message').MessageOpts) => void;
141
- FormMessage: (errorFields: any) => string;
142
- visible: boolean;
143
- hide: () => void;
144
- show: () => void;
145
- IsVisible: () => boolean;
146
- };
147
- Btn: typeof UI.Btn;
148
- };
221
+ static UI: typeof UI;
149
222
  static Paginator: {
150
223
  limit: number;
151
224
  count: number;
@@ -155,6 +228,7 @@ export default abstract class PF {
155
228
  pagesCount: () => number;
156
229
  reset: () => void;
157
230
  };
231
+ static FTSP: typeof FTSP;
158
232
  static S: typeof S;
159
233
  static H: typeof H;
160
234
  static C: typeof C;
@@ -1,2 +1,2 @@
1
- import { default as FilterModel } from '../classes/filters/FilterModel';
1
+ import { default as FilterModel } from '../ftsp/FilterModel';
2
2
  export type FilterModelBuilder = () => FilterModel;
@@ -1,6 +1,6 @@
1
1
  import { LocationQuery } from 'vue-router';
2
- import { default as FilterModel } from '../classes/filters/FilterModel';
3
- import { default as SortModel } from '../classes/SortModel';
2
+ import { default as FilterModel } from '../ftsp/FilterModel';
3
+ import { default as SortModel } from '../ftsp/SortModel';
4
4
  import { default as IPagination } from './IPagination';
5
5
  export default interface IFilterQuery {
6
6
  id?: string;
@@ -1,4 +1,4 @@
1
- import { default as SortModel } from '../classes/SortModel';
1
+ import { default as SortModel } from '../ftsp/SortModel';
2
2
  import { Orders } from '../types/Orders';
3
3
  export type SortModelBuilder = (order?: Orders) => SortModel;
4
4
  export interface SortModelBuildersLib {
@@ -1,6 +1,6 @@
1
1
  import { default as Cropper } from '../classes/Cropper';
2
2
  declare class S {
3
- private cropper;
3
+ cropper: Cropper;
4
4
  Open(cropper: Cropper): void;
5
5
  Cropper(): Cropper;
6
6
  Ratio(): number;