sprof 0.6.0 → 0.6.5
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/components/PAutocomplete.vue.d.ts +2 -2
- package/dist/core/components/RemoteSearch.stories.d.ts +8 -8
- package/dist/core/components/RemoteSearch.vue.d.ts +4 -4
- package/dist/core/components/SortList.vue.d.ts +2 -2
- package/dist/core/components/SortSelect.vue.d.ts +2 -2
- package/dist/core/components/atoms/PBadge/PBadge.stories.d.ts +9 -9
- package/dist/core/components/atoms/PBadge/PBadge.vue.d.ts +2 -2
- package/dist/core/components/atoms/PSelect/PSelect.stories.d.ts +120 -0
- package/dist/core/components/atoms/PSelect/PSelect.vue.d.ts +36 -0
- package/dist/core/helpers/Classes.d.ts +9 -0
- package/dist/core/helpers/Try.d.ts +64 -0
- package/dist/core/helpers/Try.test.d.ts +1 -0
- package/dist/core/helpers/index.d.ts +2 -0
- package/dist/modules/schedule/types/ScheduleTypes.d.ts +1 -0
- package/dist/sprof.js +3795 -3686
- package/dist/sprof.umd.cjs +13 -13
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -26,7 +26,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
26
26
|
default: never[];
|
|
27
27
|
};
|
|
28
28
|
width: {
|
|
29
|
-
type: (
|
|
29
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
32
32
|
maxHeightResultList: {
|
|
@@ -71,7 +71,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
71
71
|
default: never[];
|
|
72
72
|
};
|
|
73
73
|
width: {
|
|
74
|
-
type: (
|
|
74
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
75
75
|
default: string;
|
|
76
76
|
};
|
|
77
77
|
maxHeightResultList: {
|
|
@@ -23,7 +23,7 @@ declare const _default: {
|
|
|
23
23
|
default: boolean;
|
|
24
24
|
};
|
|
25
25
|
width: {
|
|
26
|
-
type: (
|
|
26
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
27
27
|
default: string;
|
|
28
28
|
};
|
|
29
29
|
focus: {
|
|
@@ -68,7 +68,7 @@ declare const _default: {
|
|
|
68
68
|
default: boolean;
|
|
69
69
|
};
|
|
70
70
|
width: {
|
|
71
|
-
type: (
|
|
71
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
72
72
|
default: string;
|
|
73
73
|
};
|
|
74
74
|
focus: {
|
|
@@ -130,7 +130,7 @@ declare const _default: {
|
|
|
130
130
|
default: never[];
|
|
131
131
|
};
|
|
132
132
|
width: {
|
|
133
|
-
type: (
|
|
133
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
134
134
|
default: string;
|
|
135
135
|
};
|
|
136
136
|
maxHeightResultList: {
|
|
@@ -193,7 +193,7 @@ declare const _default: {
|
|
|
193
193
|
default: never[];
|
|
194
194
|
};
|
|
195
195
|
width: {
|
|
196
|
-
type: (
|
|
196
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
197
197
|
default: string;
|
|
198
198
|
};
|
|
199
199
|
maxHeightResultList: {
|
|
@@ -283,7 +283,7 @@ export declare const Default: StoryFn<import('vue').DefineComponent<globalThis.E
|
|
|
283
283
|
default: boolean;
|
|
284
284
|
};
|
|
285
285
|
width: {
|
|
286
|
-
type: (
|
|
286
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
287
287
|
default: string;
|
|
288
288
|
};
|
|
289
289
|
focus: {
|
|
@@ -328,7 +328,7 @@ export declare const Default: StoryFn<import('vue').DefineComponent<globalThis.E
|
|
|
328
328
|
default: boolean;
|
|
329
329
|
};
|
|
330
330
|
width: {
|
|
331
|
-
type: (
|
|
331
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
332
332
|
default: string;
|
|
333
333
|
};
|
|
334
334
|
focus: {
|
|
@@ -390,7 +390,7 @@ export declare const Default: StoryFn<import('vue').DefineComponent<globalThis.E
|
|
|
390
390
|
default: never[];
|
|
391
391
|
};
|
|
392
392
|
width: {
|
|
393
|
-
type: (
|
|
393
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
394
394
|
default: string;
|
|
395
395
|
};
|
|
396
396
|
maxHeightResultList: {
|
|
@@ -453,7 +453,7 @@ export declare const Default: StoryFn<import('vue').DefineComponent<globalThis.E
|
|
|
453
453
|
default: never[];
|
|
454
454
|
};
|
|
455
455
|
width: {
|
|
456
|
-
type: (
|
|
456
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
457
457
|
default: string;
|
|
458
458
|
};
|
|
459
459
|
maxHeightResultList: {
|
|
@@ -21,7 +21,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
21
21
|
default: boolean;
|
|
22
22
|
};
|
|
23
23
|
width: {
|
|
24
|
-
type: (
|
|
24
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
25
25
|
default: string;
|
|
26
26
|
};
|
|
27
27
|
focus: {
|
|
@@ -66,7 +66,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
66
66
|
default: boolean;
|
|
67
67
|
};
|
|
68
68
|
width: {
|
|
69
|
-
type: (
|
|
69
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
70
70
|
default: string;
|
|
71
71
|
};
|
|
72
72
|
focus: {
|
|
@@ -128,7 +128,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
128
128
|
default: never[];
|
|
129
129
|
};
|
|
130
130
|
width: {
|
|
131
|
-
type: (
|
|
131
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
132
132
|
default: string;
|
|
133
133
|
};
|
|
134
134
|
maxHeightResultList: {
|
|
@@ -191,7 +191,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
191
191
|
default: never[];
|
|
192
192
|
};
|
|
193
193
|
width: {
|
|
194
|
-
type: (
|
|
194
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
195
195
|
default: string;
|
|
196
196
|
};
|
|
197
197
|
maxHeightResultList: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
2
|
maxWidth: {
|
|
3
|
-
type: (
|
|
3
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
4
4
|
default: number;
|
|
5
5
|
};
|
|
6
6
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
7
|
load: (...args: any[]) => void;
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
9
9
|
maxWidth: {
|
|
10
|
-
type: (
|
|
10
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
11
11
|
default: number;
|
|
12
12
|
};
|
|
13
13
|
}>> & Readonly<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as FTSP } from '../ftsp/FTSP';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
3
3
|
maxWidth: {
|
|
4
|
-
type: (
|
|
4
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
5
5
|
default: number;
|
|
6
6
|
};
|
|
7
7
|
ftsp: {
|
|
@@ -12,7 +12,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
12
12
|
load: (...args: any[]) => void;
|
|
13
13
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
14
14
|
maxWidth: {
|
|
15
|
-
type: (
|
|
15
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
16
16
|
default: number;
|
|
17
17
|
};
|
|
18
18
|
ftsp: {
|
|
@@ -4,7 +4,7 @@ declare const _default: {
|
|
|
4
4
|
component: {
|
|
5
5
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
6
6
|
label: {
|
|
7
|
-
type: (
|
|
7
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
8
8
|
default: undefined;
|
|
9
9
|
};
|
|
10
10
|
color: {
|
|
@@ -53,7 +53,7 @@ declare const _default: {
|
|
|
53
53
|
Defaults: {};
|
|
54
54
|
}, Readonly<globalThis.ExtractPropTypes<{
|
|
55
55
|
label: {
|
|
56
|
-
type: (
|
|
56
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
57
57
|
default: undefined;
|
|
58
58
|
};
|
|
59
59
|
color: {
|
|
@@ -99,7 +99,7 @@ declare const _default: {
|
|
|
99
99
|
__isSuspense?: undefined;
|
|
100
100
|
} & import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
101
101
|
label: {
|
|
102
|
-
type: (
|
|
102
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
103
103
|
default: undefined;
|
|
104
104
|
};
|
|
105
105
|
color: {
|
|
@@ -186,7 +186,7 @@ export default _default;
|
|
|
186
186
|
export declare const Default: StoryFn<{
|
|
187
187
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
188
188
|
label: {
|
|
189
|
-
type: (
|
|
189
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
190
190
|
default: undefined;
|
|
191
191
|
};
|
|
192
192
|
color: {
|
|
@@ -235,7 +235,7 @@ export declare const Default: StoryFn<{
|
|
|
235
235
|
Defaults: {};
|
|
236
236
|
}, Readonly<globalThis.ExtractPropTypes<{
|
|
237
237
|
label: {
|
|
238
|
-
type: (
|
|
238
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
239
239
|
default: undefined;
|
|
240
240
|
};
|
|
241
241
|
color: {
|
|
@@ -281,7 +281,7 @@ export declare const Default: StoryFn<{
|
|
|
281
281
|
__isSuspense?: undefined;
|
|
282
282
|
} & import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
283
283
|
label: {
|
|
284
|
-
type: (
|
|
284
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
285
285
|
default: undefined;
|
|
286
286
|
};
|
|
287
287
|
color: {
|
|
@@ -329,7 +329,7 @@ export declare const Default: StoryFn<{
|
|
|
329
329
|
export declare const OutlineRounded: StoryFn<{
|
|
330
330
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
331
331
|
label: {
|
|
332
|
-
type: (
|
|
332
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
333
333
|
default: undefined;
|
|
334
334
|
};
|
|
335
335
|
color: {
|
|
@@ -378,7 +378,7 @@ export declare const OutlineRounded: StoryFn<{
|
|
|
378
378
|
Defaults: {};
|
|
379
379
|
}, Readonly<globalThis.ExtractPropTypes<{
|
|
380
380
|
label: {
|
|
381
|
-
type: (
|
|
381
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
382
382
|
default: undefined;
|
|
383
383
|
};
|
|
384
384
|
color: {
|
|
@@ -424,7 +424,7 @@ export declare const OutlineRounded: StoryFn<{
|
|
|
424
424
|
__isSuspense?: undefined;
|
|
425
425
|
} & import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
426
426
|
label: {
|
|
427
|
-
type: (
|
|
427
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
428
428
|
default: undefined;
|
|
429
429
|
};
|
|
430
430
|
color: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
2
|
label: {
|
|
3
|
-
type: (
|
|
3
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
4
4
|
default: undefined;
|
|
5
5
|
};
|
|
6
6
|
color: {
|
|
@@ -33,7 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
|
|
|
33
33
|
};
|
|
34
34
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
35
35
|
label: {
|
|
36
|
-
type: (
|
|
36
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
37
37
|
default: undefined;
|
|
38
38
|
};
|
|
39
39
|
color: {
|
|
@@ -68,6 +68,22 @@ declare const _default: {
|
|
|
68
68
|
required: false;
|
|
69
69
|
default: () => never[];
|
|
70
70
|
};
|
|
71
|
+
emitValue: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
mapOptions: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
optionValue: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
optionLabel: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
71
87
|
rules: {
|
|
72
88
|
type: globalThis.PropType<import('quasar').ValidationRule[]>;
|
|
73
89
|
required: false;
|
|
@@ -106,6 +122,10 @@ declare const _default: {
|
|
|
106
122
|
rules: import('quasar').ValidationRule[];
|
|
107
123
|
clearable: boolean;
|
|
108
124
|
inPadding: string;
|
|
125
|
+
emitValue: boolean;
|
|
126
|
+
mapOptions: boolean;
|
|
127
|
+
optionValue: string;
|
|
128
|
+
optionLabel: string;
|
|
109
129
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
110
130
|
selectRef: import('quasar').QSelect | null;
|
|
111
131
|
}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -181,6 +201,22 @@ declare const _default: {
|
|
|
181
201
|
required: false;
|
|
182
202
|
default: () => never[];
|
|
183
203
|
};
|
|
204
|
+
emitValue: {
|
|
205
|
+
type: BooleanConstructor;
|
|
206
|
+
default: boolean;
|
|
207
|
+
};
|
|
208
|
+
mapOptions: {
|
|
209
|
+
type: BooleanConstructor;
|
|
210
|
+
default: boolean;
|
|
211
|
+
};
|
|
212
|
+
optionValue: {
|
|
213
|
+
type: StringConstructor;
|
|
214
|
+
default: string;
|
|
215
|
+
};
|
|
216
|
+
optionLabel: {
|
|
217
|
+
type: StringConstructor;
|
|
218
|
+
default: string;
|
|
219
|
+
};
|
|
184
220
|
rules: {
|
|
185
221
|
type: globalThis.PropType<import('quasar').ValidationRule[]>;
|
|
186
222
|
required: false;
|
|
@@ -215,6 +251,10 @@ declare const _default: {
|
|
|
215
251
|
rules: import('quasar').ValidationRule[];
|
|
216
252
|
clearable: boolean;
|
|
217
253
|
inPadding: string;
|
|
254
|
+
emitValue: boolean;
|
|
255
|
+
mapOptions: boolean;
|
|
256
|
+
optionValue: string;
|
|
257
|
+
optionLabel: string;
|
|
218
258
|
}>;
|
|
219
259
|
__isFragment?: undefined;
|
|
220
260
|
__isTeleport?: undefined;
|
|
@@ -285,6 +325,22 @@ declare const _default: {
|
|
|
285
325
|
required: false;
|
|
286
326
|
default: () => never[];
|
|
287
327
|
};
|
|
328
|
+
emitValue: {
|
|
329
|
+
type: BooleanConstructor;
|
|
330
|
+
default: boolean;
|
|
331
|
+
};
|
|
332
|
+
mapOptions: {
|
|
333
|
+
type: BooleanConstructor;
|
|
334
|
+
default: boolean;
|
|
335
|
+
};
|
|
336
|
+
optionValue: {
|
|
337
|
+
type: StringConstructor;
|
|
338
|
+
default: string;
|
|
339
|
+
};
|
|
340
|
+
optionLabel: {
|
|
341
|
+
type: StringConstructor;
|
|
342
|
+
default: string;
|
|
343
|
+
};
|
|
288
344
|
rules: {
|
|
289
345
|
type: globalThis.PropType<import('quasar').ValidationRule[]>;
|
|
290
346
|
required: false;
|
|
@@ -323,6 +379,10 @@ declare const _default: {
|
|
|
323
379
|
rules: import('quasar').ValidationRule[];
|
|
324
380
|
clearable: boolean;
|
|
325
381
|
inPadding: string;
|
|
382
|
+
emitValue: boolean;
|
|
383
|
+
mapOptions: boolean;
|
|
384
|
+
optionValue: string;
|
|
385
|
+
optionLabel: string;
|
|
326
386
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
327
387
|
$slots: {
|
|
328
388
|
prepend?(_: {}): any;
|
|
@@ -452,6 +512,22 @@ export declare const Default: StoryFn<{
|
|
|
452
512
|
required: false;
|
|
453
513
|
default: () => never[];
|
|
454
514
|
};
|
|
515
|
+
emitValue: {
|
|
516
|
+
type: BooleanConstructor;
|
|
517
|
+
default: boolean;
|
|
518
|
+
};
|
|
519
|
+
mapOptions: {
|
|
520
|
+
type: BooleanConstructor;
|
|
521
|
+
default: boolean;
|
|
522
|
+
};
|
|
523
|
+
optionValue: {
|
|
524
|
+
type: StringConstructor;
|
|
525
|
+
default: string;
|
|
526
|
+
};
|
|
527
|
+
optionLabel: {
|
|
528
|
+
type: StringConstructor;
|
|
529
|
+
default: string;
|
|
530
|
+
};
|
|
455
531
|
rules: {
|
|
456
532
|
type: globalThis.PropType<import('quasar').ValidationRule[]>;
|
|
457
533
|
required: false;
|
|
@@ -490,6 +566,10 @@ export declare const Default: StoryFn<{
|
|
|
490
566
|
rules: import('quasar').ValidationRule[];
|
|
491
567
|
clearable: boolean;
|
|
492
568
|
inPadding: string;
|
|
569
|
+
emitValue: boolean;
|
|
570
|
+
mapOptions: boolean;
|
|
571
|
+
optionValue: string;
|
|
572
|
+
optionLabel: string;
|
|
493
573
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
494
574
|
selectRef: import('quasar').QSelect | null;
|
|
495
575
|
}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -565,6 +645,22 @@ export declare const Default: StoryFn<{
|
|
|
565
645
|
required: false;
|
|
566
646
|
default: () => never[];
|
|
567
647
|
};
|
|
648
|
+
emitValue: {
|
|
649
|
+
type: BooleanConstructor;
|
|
650
|
+
default: boolean;
|
|
651
|
+
};
|
|
652
|
+
mapOptions: {
|
|
653
|
+
type: BooleanConstructor;
|
|
654
|
+
default: boolean;
|
|
655
|
+
};
|
|
656
|
+
optionValue: {
|
|
657
|
+
type: StringConstructor;
|
|
658
|
+
default: string;
|
|
659
|
+
};
|
|
660
|
+
optionLabel: {
|
|
661
|
+
type: StringConstructor;
|
|
662
|
+
default: string;
|
|
663
|
+
};
|
|
568
664
|
rules: {
|
|
569
665
|
type: globalThis.PropType<import('quasar').ValidationRule[]>;
|
|
570
666
|
required: false;
|
|
@@ -599,6 +695,10 @@ export declare const Default: StoryFn<{
|
|
|
599
695
|
rules: import('quasar').ValidationRule[];
|
|
600
696
|
clearable: boolean;
|
|
601
697
|
inPadding: string;
|
|
698
|
+
emitValue: boolean;
|
|
699
|
+
mapOptions: boolean;
|
|
700
|
+
optionValue: string;
|
|
701
|
+
optionLabel: string;
|
|
602
702
|
}>;
|
|
603
703
|
__isFragment?: undefined;
|
|
604
704
|
__isTeleport?: undefined;
|
|
@@ -669,6 +769,22 @@ export declare const Default: StoryFn<{
|
|
|
669
769
|
required: false;
|
|
670
770
|
default: () => never[];
|
|
671
771
|
};
|
|
772
|
+
emitValue: {
|
|
773
|
+
type: BooleanConstructor;
|
|
774
|
+
default: boolean;
|
|
775
|
+
};
|
|
776
|
+
mapOptions: {
|
|
777
|
+
type: BooleanConstructor;
|
|
778
|
+
default: boolean;
|
|
779
|
+
};
|
|
780
|
+
optionValue: {
|
|
781
|
+
type: StringConstructor;
|
|
782
|
+
default: string;
|
|
783
|
+
};
|
|
784
|
+
optionLabel: {
|
|
785
|
+
type: StringConstructor;
|
|
786
|
+
default: string;
|
|
787
|
+
};
|
|
672
788
|
rules: {
|
|
673
789
|
type: globalThis.PropType<import('quasar').ValidationRule[]>;
|
|
674
790
|
required: false;
|
|
@@ -707,6 +823,10 @@ export declare const Default: StoryFn<{
|
|
|
707
823
|
rules: import('quasar').ValidationRule[];
|
|
708
824
|
clearable: boolean;
|
|
709
825
|
inPadding: string;
|
|
826
|
+
emitValue: boolean;
|
|
827
|
+
mapOptions: boolean;
|
|
828
|
+
optionValue: string;
|
|
829
|
+
optionLabel: string;
|
|
710
830
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
711
831
|
$slots: {
|
|
712
832
|
prepend?(_: {}): any;
|
|
@@ -73,6 +73,22 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
|
|
|
73
73
|
required: false;
|
|
74
74
|
default: () => never[];
|
|
75
75
|
};
|
|
76
|
+
emitValue: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
mapOptions: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
optionValue: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
optionLabel: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
76
92
|
rules: {
|
|
77
93
|
type: globalThis.PropType<ValidationRule[]>;
|
|
78
94
|
required: false;
|
|
@@ -158,6 +174,22 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
|
|
|
158
174
|
required: false;
|
|
159
175
|
default: () => never[];
|
|
160
176
|
};
|
|
177
|
+
emitValue: {
|
|
178
|
+
type: BooleanConstructor;
|
|
179
|
+
default: boolean;
|
|
180
|
+
};
|
|
181
|
+
mapOptions: {
|
|
182
|
+
type: BooleanConstructor;
|
|
183
|
+
default: boolean;
|
|
184
|
+
};
|
|
185
|
+
optionValue: {
|
|
186
|
+
type: StringConstructor;
|
|
187
|
+
default: string;
|
|
188
|
+
};
|
|
189
|
+
optionLabel: {
|
|
190
|
+
type: StringConstructor;
|
|
191
|
+
default: string;
|
|
192
|
+
};
|
|
161
193
|
rules: {
|
|
162
194
|
type: globalThis.PropType<ValidationRule[]>;
|
|
163
195
|
required: false;
|
|
@@ -185,6 +217,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
|
|
|
185
217
|
rules: ValidationRule[];
|
|
186
218
|
clearable: boolean;
|
|
187
219
|
inPadding: string;
|
|
220
|
+
emitValue: boolean;
|
|
221
|
+
mapOptions: boolean;
|
|
222
|
+
optionValue: string;
|
|
223
|
+
optionLabel: string;
|
|
188
224
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
189
225
|
selectRef: QSelect | null;
|
|
190
226
|
}, any>, {
|
|
@@ -6,7 +6,16 @@ export type Constructable<T> = {
|
|
|
6
6
|
export default class Classes {
|
|
7
7
|
static BuildClass(passedClass: ClassType, arg?: ClassType): void;
|
|
8
8
|
static GetClassConstructor: <T>(construct: Constructable<T>) => PropertyDecorator;
|
|
9
|
+
/**
|
|
10
|
+
* Помечает свойство как дату: BuildClass кладёт в него Date и трактует '' как
|
|
11
|
+
* отсутствие значения (Go отдаёт "" для нулевой даты).
|
|
12
|
+
*/
|
|
13
|
+
static IsDate: PropertyDecorator;
|
|
9
14
|
private static isPrimitive;
|
|
15
|
+
/** Признак того, что поле объявлено как дата (маркер @IsDate) */
|
|
16
|
+
private static isDateProperty;
|
|
17
|
+
/** Дата из примитива; undefined — пустое/невалидное значение (никогда Invalid Date) */
|
|
18
|
+
private static toValidDate;
|
|
10
19
|
static RemoveFromClassByIndex(index: number, arrayFromDelete: IWithId[], arrayForDelete?: string[]): void;
|
|
11
20
|
static RemoveFromClassById(id: string | undefined, arrayFromDelete: IWithId[], arrayForDelete?: string[]): string | undefined;
|
|
12
21
|
private static RemoveFromClass;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/** Результат Try.Run: либо успех с данными, либо ошибка (без throw наружу). */
|
|
2
|
+
export type TryResult<T> = {
|
|
3
|
+
ok: true;
|
|
4
|
+
data: T;
|
|
5
|
+
} | {
|
|
6
|
+
ok: false;
|
|
7
|
+
error: unknown;
|
|
8
|
+
};
|
|
9
|
+
export type TryOpts = {
|
|
10
|
+
/** Своё сообщение об ошибке (иначе — текст с сервера / дефолт) */
|
|
11
|
+
message?: string;
|
|
12
|
+
/** Сообщение при успехе (не показывается, если не задано) */
|
|
13
|
+
success?: string;
|
|
14
|
+
/** Не показывать уведомления (для тихих фоновых операций) */
|
|
15
|
+
silent?: boolean;
|
|
16
|
+
/** Что сделать при ошибке (после уведомления) */
|
|
17
|
+
onError?: (e: unknown) => void;
|
|
18
|
+
/** Что сделать при успехе (до возврата) */
|
|
19
|
+
onSuccess?: (data: unknown) => void;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Обёртка над try/catch для асинхронных операций (снижение boilerplate).
|
|
23
|
+
*
|
|
24
|
+
* До этого в каждом месте писалось:
|
|
25
|
+
* ```ts
|
|
26
|
+
* try {
|
|
27
|
+
* await Store.Rooms.Update(room);
|
|
28
|
+
* Notify.create({ type: 'positive', message: 'Сохранено' });
|
|
29
|
+
* } catch (e: unknown) {
|
|
30
|
+
* const data = (e as { response?: { data?: string | { error?: string } } }).response?.data;
|
|
31
|
+
* Notify.create({
|
|
32
|
+
* type: 'negative',
|
|
33
|
+
* message: (typeof data === 'string' ? data : data?.error) || 'Не удалось сохранить',
|
|
34
|
+
* icon: 'error_outline',
|
|
35
|
+
* });
|
|
36
|
+
* }
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* Стало:
|
|
40
|
+
* ```ts
|
|
41
|
+
* await PF.H.Try.Run(() => Store.Rooms.Update(room), {
|
|
42
|
+
* success: 'Сохранено',
|
|
43
|
+
* message: 'Не удалось сохранить',
|
|
44
|
+
* });
|
|
45
|
+
* // или с ветвлением:
|
|
46
|
+
* const res = await PF.H.Try.Run(() => Store.Rooms.Update(room), { silent: true });
|
|
47
|
+
* if (!res.ok) return;
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export default abstract class Try {
|
|
51
|
+
/** Текст ошибки из ответа сервера: строка, `{ error }` или `{ message }`. */
|
|
52
|
+
static Message(e: unknown): string;
|
|
53
|
+
/**
|
|
54
|
+
* Выполняет `fn` и не даёт ошибке «вылететь» наружу.
|
|
55
|
+
* Возвращает `{ ok, data }` или `{ ok: false, error }`; про ошибку сообщает
|
|
56
|
+
* через `PF.UI.Notify` (текст с сервера, либо `opts.message`, либо дефолт).
|
|
57
|
+
*/
|
|
58
|
+
static Run<T>(fn: () => Promise<T> | T, opts?: TryOpts): Promise<TryResult<T>>;
|
|
59
|
+
/**
|
|
60
|
+
* То же, но без уведомлений об успехе/ошибке — только возврат результата.
|
|
61
|
+
* Удобно, когда вызывающий сам решает, что показывать.
|
|
62
|
+
*/
|
|
63
|
+
static Silent<T>(fn: () => Promise<T> | T): Promise<TryResult<T>>;
|
|
64
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -27,6 +27,7 @@ import { default as Static } from './Static';
|
|
|
27
27
|
import { default as Strings } from './Strings';
|
|
28
28
|
import { default as Time } from './Time';
|
|
29
29
|
import { default as Timer } from './Timer';
|
|
30
|
+
import { default as Try } from './Try';
|
|
30
31
|
import { default as WebSocketClient } from './WebSocketClient';
|
|
31
32
|
import * as Validate from './Validate';
|
|
32
33
|
export default abstract class H {
|
|
@@ -80,6 +81,7 @@ export default abstract class H {
|
|
|
80
81
|
getUser: () => any;
|
|
81
82
|
updateHuman: (human: import('../classes/Human').default) => void;
|
|
82
83
|
};
|
|
84
|
+
static Try: typeof Try;
|
|
83
85
|
static Menus: typeof Menus;
|
|
84
86
|
static Validate: typeof Validate;
|
|
85
87
|
static WaitElement: (selector: string) => Promise<unknown>;
|