sprof 0.0.254 → 0.0.271
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/atoms/PCheckbox/PCheckBox.stories.d.ts +2 -2
- package/dist/core/components/atoms/PCheckbox/PCheckBox.vue.d.ts +1 -1
- package/dist/core/components/atoms/PRadio/PRadio.stories.d.ts +2 -2
- package/dist/core/components/atoms/PRadio/PRadio.vue.d.ts +1 -1
- package/dist/core/components/atoms/PSelect/PSelect.stories.d.ts +6 -6
- package/dist/core/components/atoms/PSelect/PSelect.vue.d.ts +1 -1
- package/dist/core/ftsp/FTSP.d.ts +3 -0
- package/dist/core/ftsp/f/FilterModelV2.d.ts +19 -0
- package/dist/core/ftsp/f/Join.d.ts +16 -0
- package/dist/core/ftsp/f/Where.d.ts +15 -0
- package/dist/core/ftsp/index.d.ts +2 -0
- package/dist/core/types/DataTypes.d.ts +3 -1
- package/dist/sprof.js +2369 -2269
- package/dist/sprof.umd.cjs +12 -12
- package/package.json +2 -2
|
@@ -81,8 +81,8 @@ declare const _default: {
|
|
|
81
81
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
82
82
|
}>, {
|
|
83
83
|
size: string;
|
|
84
|
-
label: string;
|
|
85
84
|
value: string | boolean;
|
|
85
|
+
label: string;
|
|
86
86
|
margin: string;
|
|
87
87
|
padding: string;
|
|
88
88
|
width: string;
|
|
@@ -213,8 +213,8 @@ export declare const Default: StoryFn<import('vue').DefineComponent<globalThis.E
|
|
|
213
213
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
214
214
|
}>, {
|
|
215
215
|
size: string;
|
|
216
|
-
label: string;
|
|
217
216
|
value: string | boolean;
|
|
217
|
+
label: string;
|
|
218
218
|
margin: string;
|
|
219
219
|
padding: string;
|
|
220
220
|
width: string;
|
|
@@ -78,8 +78,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
78
78
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
79
79
|
}>, {
|
|
80
80
|
size: string;
|
|
81
|
-
label: string;
|
|
82
81
|
value: string | boolean;
|
|
82
|
+
label: string;
|
|
83
83
|
margin: string;
|
|
84
84
|
padding: string;
|
|
85
85
|
width: string;
|
|
@@ -89,9 +89,9 @@ declare const _default: {
|
|
|
89
89
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
90
90
|
}>, {
|
|
91
91
|
size: string;
|
|
92
|
+
value: string | boolean;
|
|
92
93
|
label: string;
|
|
93
94
|
name: string;
|
|
94
|
-
value: string | boolean;
|
|
95
95
|
margin: string;
|
|
96
96
|
padding: string;
|
|
97
97
|
width: string;
|
|
@@ -226,9 +226,9 @@ export declare const DefaultRadio: StoryFn<import('vue').DefineComponent<globalT
|
|
|
226
226
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
227
227
|
}>, {
|
|
228
228
|
size: string;
|
|
229
|
+
value: string | boolean;
|
|
229
230
|
label: string;
|
|
230
231
|
name: string;
|
|
231
|
-
value: string | boolean;
|
|
232
232
|
margin: string;
|
|
233
233
|
padding: string;
|
|
234
234
|
width: string;
|
|
@@ -86,9 +86,9 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
86
86
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
87
87
|
}>, {
|
|
88
88
|
size: string;
|
|
89
|
+
value: string | boolean;
|
|
89
90
|
label: string;
|
|
90
91
|
name: string;
|
|
91
|
-
value: string | boolean;
|
|
92
92
|
margin: string;
|
|
93
93
|
padding: string;
|
|
94
94
|
width: string;
|
|
@@ -75,9 +75,9 @@ declare const _default: {
|
|
|
75
75
|
change: (...args: any[]) => void;
|
|
76
76
|
"update:modelValue": (value: unknown) => void;
|
|
77
77
|
}, import('vue').PublicProps, {
|
|
78
|
+
value: string;
|
|
78
79
|
label: string;
|
|
79
80
|
readonly: boolean;
|
|
80
|
-
value: string;
|
|
81
81
|
margin: string;
|
|
82
82
|
padding: string;
|
|
83
83
|
width: string;
|
|
@@ -163,9 +163,9 @@ declare const _default: {
|
|
|
163
163
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
164
164
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
165
165
|
}>, {}, {}, {}, {}, {
|
|
166
|
+
value: string;
|
|
166
167
|
label: string;
|
|
167
168
|
readonly: boolean;
|
|
168
|
-
value: string;
|
|
169
169
|
margin: string;
|
|
170
170
|
padding: string;
|
|
171
171
|
width: string;
|
|
@@ -252,9 +252,9 @@ declare const _default: {
|
|
|
252
252
|
change: (...args: any[]) => void;
|
|
253
253
|
"update:modelValue": (value: unknown) => void;
|
|
254
254
|
}, string, {
|
|
255
|
+
value: string;
|
|
255
256
|
label: string;
|
|
256
257
|
readonly: boolean;
|
|
257
|
-
value: string;
|
|
258
258
|
margin: string;
|
|
259
259
|
padding: string;
|
|
260
260
|
width: string;
|
|
@@ -385,9 +385,9 @@ export declare const Default: StoryFn<{
|
|
|
385
385
|
change: (...args: any[]) => void;
|
|
386
386
|
"update:modelValue": (value: unknown) => void;
|
|
387
387
|
}, import('vue').PublicProps, {
|
|
388
|
+
value: string;
|
|
388
389
|
label: string;
|
|
389
390
|
readonly: boolean;
|
|
390
|
-
value: string;
|
|
391
391
|
margin: string;
|
|
392
392
|
padding: string;
|
|
393
393
|
width: string;
|
|
@@ -473,9 +473,9 @@ export declare const Default: StoryFn<{
|
|
|
473
473
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
474
474
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
475
475
|
}>, {}, {}, {}, {}, {
|
|
476
|
+
value: string;
|
|
476
477
|
label: string;
|
|
477
478
|
readonly: boolean;
|
|
478
|
-
value: string;
|
|
479
479
|
margin: string;
|
|
480
480
|
padding: string;
|
|
481
481
|
width: string;
|
|
@@ -562,9 +562,9 @@ export declare const Default: StoryFn<{
|
|
|
562
562
|
change: (...args: any[]) => void;
|
|
563
563
|
"update:modelValue": (value: unknown) => void;
|
|
564
564
|
}, string, {
|
|
565
|
+
value: string;
|
|
565
566
|
label: string;
|
|
566
567
|
readonly: boolean;
|
|
567
|
-
value: string;
|
|
568
568
|
margin: string;
|
|
569
569
|
padding: string;
|
|
570
570
|
width: string;
|
|
@@ -135,9 +135,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<gl
|
|
|
135
135
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
136
136
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
137
137
|
}>, {
|
|
138
|
+
value: string;
|
|
138
139
|
label: string;
|
|
139
140
|
readonly: boolean;
|
|
140
|
-
value: string;
|
|
141
141
|
margin: string;
|
|
142
142
|
padding: string;
|
|
143
143
|
width: string;
|
package/dist/core/ftsp/FTSP.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as FilterModelV2 } from './f/FilterModelV2';
|
|
1
2
|
import { default as FilterModel } from './FilterModel';
|
|
2
3
|
import { default as Pagination } from './Pagination';
|
|
3
4
|
import { default as SortModel } from './SortModel';
|
|
@@ -6,6 +7,7 @@ export default class FTSP {
|
|
|
6
7
|
private static instance;
|
|
7
8
|
id?: string;
|
|
8
9
|
f: FilterModel[];
|
|
10
|
+
f2: FilterModelV2[];
|
|
9
11
|
s: SortModel[];
|
|
10
12
|
p: Pagination;
|
|
11
13
|
t: TreeModel;
|
|
@@ -19,6 +21,7 @@ export default class FTSP {
|
|
|
19
21
|
setSortModel(sortModel?: SortModel): void;
|
|
20
22
|
setS(sortModel: SortModel): void;
|
|
21
23
|
setF(model: FilterModel): void;
|
|
24
|
+
setF2(model: FilterModelV2): void;
|
|
22
25
|
replaceF(curF?: FilterModel, prevF?: FilterModel): void;
|
|
23
26
|
removeF(model?: FilterModel): void;
|
|
24
27
|
reset(): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { ClassNameGetter } from '../../interfaces/Class';
|
|
3
|
+
import { default as Operators } from '../../types/Operators';
|
|
4
|
+
import { default as Join } from './Join';
|
|
5
|
+
import { default as Where } from './Where';
|
|
6
|
+
export default class FilterModel {
|
|
7
|
+
id?: string;
|
|
8
|
+
model: string;
|
|
9
|
+
wheres: Where[];
|
|
10
|
+
joins: Join[];
|
|
11
|
+
constructor(i?: FilterModel);
|
|
12
|
+
static Create(model: ClassNameGetter): FilterModel;
|
|
13
|
+
addWhere(field: string, op: Operators): Where;
|
|
14
|
+
removeWhere(where: Where): void;
|
|
15
|
+
addJoin(model: ClassNameGetter): Join;
|
|
16
|
+
findJoin(join: Join): Join | undefined;
|
|
17
|
+
findWhere(where: Where): Where | undefined;
|
|
18
|
+
toRef(): Ref<FilterModel>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ClassNameGetter } from '../../interfaces/Class';
|
|
2
|
+
import { default as Operators } from '../../types/Operators';
|
|
3
|
+
import { default as Where } from './Where';
|
|
4
|
+
type ValueType = string | number | Date | boolean | string[] | number[];
|
|
5
|
+
export default class Join {
|
|
6
|
+
model: string;
|
|
7
|
+
field: string;
|
|
8
|
+
value: ValueType;
|
|
9
|
+
wheres: Where[];
|
|
10
|
+
constructor(i?: Join);
|
|
11
|
+
static Create(model: ClassNameGetter): Join;
|
|
12
|
+
eq(model: Join): boolean;
|
|
13
|
+
addWhere(field: string, op: Operators): Where;
|
|
14
|
+
findWhere(where: Where): Where | undefined;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as Operators } from '../../types/Operators';
|
|
2
|
+
type ValueType = string | number | Date | boolean | string[] | number[];
|
|
3
|
+
export default class FilterModelCondition {
|
|
4
|
+
field: string;
|
|
5
|
+
operator: Operators;
|
|
6
|
+
value: ValueType;
|
|
7
|
+
constructor(i?: FilterModelCondition);
|
|
8
|
+
setValue(value: ValueType): void;
|
|
9
|
+
static Create(field: string, op: Operators): FilterModelCondition;
|
|
10
|
+
eq(f: FilterModelCondition): boolean;
|
|
11
|
+
isUnary(): boolean;
|
|
12
|
+
isBetween(): boolean;
|
|
13
|
+
isSet(): boolean;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { default as FilterModelV2 } from './f/FilterModelV2';
|
|
1
2
|
import { default as FilterModel } from './FilterModel';
|
|
2
3
|
import { default as FTSP } from './FTSP';
|
|
3
4
|
import { default as SortModel } from './SortModel';
|
|
4
5
|
export default abstract class F {
|
|
5
6
|
static SortModel: typeof SortModel;
|
|
6
7
|
static FilterModel: typeof FilterModel;
|
|
8
|
+
static FilterModelV2: typeof FilterModelV2;
|
|
7
9
|
static FTSP: typeof FTSP;
|
|
8
10
|
}
|