@tripup-company/element-ui-extended 0.0.65 → 0.0.68
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/element-ui-extended.common.js +48 -8
- package/dist/element-ui-extended.common.js.map +1 -1
- package/dist/element-ui-extended.umd.js +48 -8
- package/dist/element-ui-extended.umd.js.map +1 -1
- package/dist/element-ui-extended.umd.min.js +1 -1
- package/dist/element-ui-extended.umd.min.js.map +1 -1
- package/dist/src/components/GenericFilters/filter-factory.d.ts +2 -0
- package/dist/src/components/GenericFilters/filter-factory.d.ts.map +1 -1
- package/dist/src/components/GenericFilters/filters/in-array-of-object.d.ts +7 -0
- package/dist/src/components/GenericFilters/filters/in-array-of-object.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/GenericFilters/FilterRow.vue +4 -1
- package/dist/examples/models/contact-model.d.ts +0 -21
- package/dist/examples/models/contact-model.d.ts.map +0 -1
- package/dist/examples/repositories/contacts-repository.d.ts +0 -9
- package/dist/examples/repositories/contacts-repository.d.ts.map +0 -1
- package/dist/examples/repositories/data/contact.d.ts +0 -43
- package/dist/examples/repositories/data/contact.d.ts.map +0 -1
- package/dist/examples/types/icontact.d.ts +0 -17
- package/dist/examples/types/icontact.d.ts.map +0 -1
|
@@ -12,6 +12,7 @@ import { IsNotNullFilter } from "./filters/is-not-null-filter";
|
|
|
12
12
|
import { BetweenFilter } from "./filters/between-filter";
|
|
13
13
|
import { InFilter } from "./filters/in-filter";
|
|
14
14
|
import { InObject } from "./filters/in-object";
|
|
15
|
+
import { InArrayOfObject } from "./filters/in-array-of-object";
|
|
15
16
|
import { InArray } from "./filters/in-array";
|
|
16
17
|
import { WeekDayFilter } from "./filters/week-day-filter";
|
|
17
18
|
import { YoungerWeekFilter } from "./filters/younger-week-filter";
|
|
@@ -34,6 +35,7 @@ export default class FilterFactory {
|
|
|
34
35
|
group_by_fields: (field: string, value: string) => GroupByFilter;
|
|
35
36
|
in_object: (field: string, value: string) => InObject;
|
|
36
37
|
in_array: (field: string, value: string) => InArray;
|
|
38
|
+
in_array_of_object: (field: string, value: string) => InArrayOfObject;
|
|
37
39
|
};
|
|
38
40
|
createFilter(field: any, condition: Condition): BaseFilter;
|
|
39
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-factory.d.ts","sourceRoot":"","sources":["../../../../src/components/GenericFilters/filter-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,CAAC,OA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AAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,CAAC,OAAO,OAAO,aAAa;WAClB,oBAAoB;uBAEf,GAAG,SAAS,GAAG;2BACX,GAAG,SAAS,GAAG;0BAChB,GAAG,SAAS,GAAG;8BACX,GAAG,SAAS,GAAG;yBAEpB,GAAG,SAAS,GAAG;6BACX,GAAG,SAAS,GAAG;4BAEhB,GAAG,SAAS,GAAG;0BACjB,GAAG,SAAS,GAAG;6BACZ,GAAG,SAAS,GAAG;yBAEnB,MAAM,SAAS,MAAM;oBAE3B,MAAM,SAAQ,MAAM;yBACf,MAAM,SAAQ,MAAM;+BACd,MAAM,SAAQ,MAAM;iCAClB,MAAM,SAAQ,MAAM;2BAC1B,MAAM,SAAQ,MAAM;0BACrB,MAAM,SAAQ,MAAM;oCACV,MAAM,SAAQ,MAAM;;IAG5C,YAAY,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,GAAG,UAAU;CAQlE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseFilter } from "./base-filter";
|
|
2
|
+
import { FilterResponse } from "./interfaces/filter-response";
|
|
3
|
+
export declare class InArrayOfObject extends BaseFilter {
|
|
4
|
+
protected operator: string;
|
|
5
|
+
applyFilter(): FilterResponse;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=in-array-of-object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"in-array-of-object.d.ts","sourceRoot":"","sources":["../../../../../src/components/GenericFilters/filters/in-array-of-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,cAAc,EAAC,MAAM,8BAA8B,CAAC;AAE5D,qBAAa,eAAgB,SAAQ,UAAU;IAC7C,SAAS,CAAC,QAAQ,SAAwB;IACnC,WAAW,IAAI,cAAc;CAMrC"}
|
package/package.json
CHANGED
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
:remote="remote"
|
|
52
52
|
:remote-method="remoteMethodHandler"
|
|
53
53
|
:loading="loading"
|
|
54
|
+
:value-key="objectValueKey"
|
|
54
55
|
clearable
|
|
55
56
|
@change="updateSearch"
|
|
56
57
|
>
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
v-for="item in selectListLocal"
|
|
59
60
|
:key="item[selectKey]"
|
|
60
61
|
:label="item[selectLabel]"
|
|
61
|
-
:value="item[selectValue]"
|
|
62
|
+
:value="selectJson ? item : item[selectValue]"
|
|
62
63
|
/>
|
|
63
64
|
</el-select>
|
|
64
65
|
</el-col>
|
|
@@ -100,6 +101,8 @@ export default {
|
|
|
100
101
|
selectLabel: this.column.selectLabel ?? "name",
|
|
101
102
|
selectValue: this.column.selectValue ?? "value",
|
|
102
103
|
filterable: this.column.filterable ?? false,
|
|
104
|
+
objectValueKey: this.column.objectValueKey ?? "value",
|
|
105
|
+
selectJson: this.column.selectJson ?? false,
|
|
103
106
|
remote: this.column.remote ?? false,
|
|
104
107
|
remoteMethod: this.column.remoteMethod ?? null,
|
|
105
108
|
selectListLocal: this.column.selectList
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Icontact } from "../types/icontact";
|
|
2
|
-
import BaseModel from "../../src/models/base-model";
|
|
3
|
-
export declare class ContactModel extends BaseModel implements Icontact {
|
|
4
|
-
id?: number;
|
|
5
|
-
title?: string;
|
|
6
|
-
first_name?: string;
|
|
7
|
-
last_name?: string;
|
|
8
|
-
email: string;
|
|
9
|
-
phone?: string;
|
|
10
|
-
mobile?: string;
|
|
11
|
-
position?: string;
|
|
12
|
-
comments_guid?: string;
|
|
13
|
-
city: string;
|
|
14
|
-
state?: string;
|
|
15
|
-
zip_code: string;
|
|
16
|
-
street?: string;
|
|
17
|
-
country?: string;
|
|
18
|
-
destination?: any;
|
|
19
|
-
constructor(data?: any[]);
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=contact-model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contact-model.d.ts","sourceRoot":"","sources":["../../../examples/models/contact-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAEpD,qBAAa,YAAa,SAAQ,SAAU,YAAW,QAAQ;IAC7D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,GAAG,CAAC;gBAEN,IAAI,QAAK;CAGtB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import BaseRepository from "../../src/repositories/base-repository";
|
|
2
|
-
import { Icontact } from "../types/icontact";
|
|
3
|
-
import { Collection } from "../../src/types/collection";
|
|
4
|
-
export default class ContactsRepository extends BaseRepository<Icontact> {
|
|
5
|
-
convert(data: any): Icontact;
|
|
6
|
-
collectionConvert(data: any): Collection<Icontact>;
|
|
7
|
-
all(query: string, include?: string): Promise<any>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=contacts-repository.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contacts-repository.d.ts","sourceRoot":"","sources":["../../../examples/repositories/contacts-repository.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAIxD,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,cAAc,CAAC,QAAQ,CAAC;IACtE,OAAO,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ;IAM5B,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAAC,QAAQ,CAAC;IASlD,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,SAAO,GAAG,OAAO,CAAC,GAAG,CAAC;CAKjD"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
const data: {
|
|
3
|
-
object: string;
|
|
4
|
-
id: number;
|
|
5
|
-
title: string;
|
|
6
|
-
first_name: string;
|
|
7
|
-
last_name: string;
|
|
8
|
-
email: string;
|
|
9
|
-
second_email: any;
|
|
10
|
-
phone: string;
|
|
11
|
-
phone_alternative: any;
|
|
12
|
-
mobile: string;
|
|
13
|
-
position: string;
|
|
14
|
-
department: any;
|
|
15
|
-
created_at: string;
|
|
16
|
-
updated_at: string;
|
|
17
|
-
readable_created_at: string;
|
|
18
|
-
readable_updated_at: string;
|
|
19
|
-
owner: string;
|
|
20
|
-
comments_guid: string;
|
|
21
|
-
street: string;
|
|
22
|
-
state: string;
|
|
23
|
-
city: string;
|
|
24
|
-
zip_code: string;
|
|
25
|
-
country: string;
|
|
26
|
-
}[];
|
|
27
|
-
namespace meta {
|
|
28
|
-
const include: any[];
|
|
29
|
-
const custom: any[];
|
|
30
|
-
namespace pagination {
|
|
31
|
-
const total: number;
|
|
32
|
-
const count: number;
|
|
33
|
-
const per_page: number;
|
|
34
|
-
const current_page: number;
|
|
35
|
-
const total_pages: number;
|
|
36
|
-
namespace links {
|
|
37
|
-
const next: string;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export default _default;
|
|
43
|
-
//# sourceMappingURL=contact.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../../examples/repositories/data/contact.js"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface Icontact {
|
|
2
|
-
id?: number;
|
|
3
|
-
title?: string;
|
|
4
|
-
first_name?: string;
|
|
5
|
-
last_name?: string;
|
|
6
|
-
email: string;
|
|
7
|
-
phone?: string;
|
|
8
|
-
mobile?: string;
|
|
9
|
-
position?: string;
|
|
10
|
-
comments_guid?: string;
|
|
11
|
-
city: string;
|
|
12
|
-
state?: string;
|
|
13
|
-
zip_code: string;
|
|
14
|
-
street?: string;
|
|
15
|
-
country?: string;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=icontact.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icontact.d.ts","sourceRoot":"","sources":["../../../examples/types/icontact.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAEpB"}
|