tsv2-library 0.2.21 → 0.2.23
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/src/components/v2/DataTable/DataTable.vue.d.ts +5 -0
- package/dist/src/components/v2/DialogForm/DialogForm.vue.d.ts +4 -0
- package/dist/src/components/v2/DisposalReport/DisposalReportTable.vue.d.ts +8 -0
- package/dist/src/dto/assets.dto.d.ts +40 -0
- package/dist/src/services/assets.service.d.ts +2 -3
- package/dist/style.css +1 -1
- package/dist/tsv2-library.es.js +2816 -2791
- package/package.json +1 -1
- package/src/components/v2/DataTable/DataTable.vue.d.ts +5 -0
- package/src/components/v2/DialogForm/DialogForm.vue.d.ts +4 -0
- package/src/components/v2/Menu/MenuItem.d.ts +4 -0
- package/src/presets/datatable/index.js +10 -4
- package/src/presets/tabmenu/index.js +6 -9
- package/src/services/assets.service.ts +4 -4
|
@@ -80,6 +80,10 @@ export type TableColumn = {
|
|
|
80
80
|
* The result will be: "roleA, roleB, roleF" - Only the properties with truthy values will be included.
|
|
81
81
|
*/
|
|
82
82
|
includeTruthyProperties?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Convert boolean into text Yes/No
|
|
85
|
+
*/
|
|
86
|
+
booleanValue?: boolean;
|
|
83
87
|
bodyTemplate?: (data: any) => string | undefined;
|
|
84
88
|
bodyComponent?: (data: any) => TableCellComponent;
|
|
85
89
|
headerTemplate?: () => string;
|
|
@@ -201,6 +205,7 @@ export interface TSDataTableProps {
|
|
|
201
205
|
* @default '_id'
|
|
202
206
|
*/
|
|
203
207
|
childrenDataKey?: string;
|
|
208
|
+
childrenFilters?: DataTableFilterMeta;
|
|
204
209
|
/**
|
|
205
210
|
* An array of objects to display in the table.
|
|
206
211
|
*/
|
|
@@ -23,6 +23,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
23
23
|
type: StringConstructor;
|
|
24
24
|
required: false;
|
|
25
25
|
};
|
|
26
|
+
childrenFilters: {
|
|
27
|
+
type: null;
|
|
28
|
+
required: false;
|
|
29
|
+
};
|
|
26
30
|
data: {
|
|
27
31
|
type: ArrayConstructor;
|
|
28
32
|
required: false;
|
|
@@ -140,6 +144,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
140
144
|
type: StringConstructor;
|
|
141
145
|
required: false;
|
|
142
146
|
};
|
|
147
|
+
childrenFilters: {
|
|
148
|
+
type: null;
|
|
149
|
+
required: false;
|
|
150
|
+
};
|
|
143
151
|
data: {
|
|
144
152
|
type: ArrayConstructor;
|
|
145
153
|
required: false;
|
|
@@ -9,3 +9,43 @@ export type GetAvailableAssetsQueryParams = DataTableParams & DialogSelectAssetF
|
|
|
9
9
|
export type GetAssetDetailParams = DataTableParams & {
|
|
10
10
|
tag?: string;
|
|
11
11
|
};
|
|
12
|
+
export interface GetLinkedAssetFamiliesResponse {
|
|
13
|
+
status: number;
|
|
14
|
+
message: string;
|
|
15
|
+
data: Datum[];
|
|
16
|
+
}
|
|
17
|
+
interface Datum {
|
|
18
|
+
_id: string;
|
|
19
|
+
parent: Parent;
|
|
20
|
+
children: Parent[];
|
|
21
|
+
family: Parent[];
|
|
22
|
+
}
|
|
23
|
+
interface Parent {
|
|
24
|
+
_id: string;
|
|
25
|
+
name: Name;
|
|
26
|
+
group: Group;
|
|
27
|
+
brand: Brand;
|
|
28
|
+
model: Brand;
|
|
29
|
+
assetImageSmall: string;
|
|
30
|
+
assetImageMedium: string;
|
|
31
|
+
assetImageBig: string;
|
|
32
|
+
}
|
|
33
|
+
interface Brand {
|
|
34
|
+
_id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
key: number;
|
|
37
|
+
}
|
|
38
|
+
interface Group {
|
|
39
|
+
_id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
fullPath: string;
|
|
42
|
+
key: number;
|
|
43
|
+
}
|
|
44
|
+
interface Name {
|
|
45
|
+
_id: string;
|
|
46
|
+
nameWithSequence: string;
|
|
47
|
+
name: string;
|
|
48
|
+
key: number;
|
|
49
|
+
aliasCode: string;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
2
|
-
import { GetAssetDetailParams, GetAvailableAssetsQueryParams } from '../dto/assets.dto';
|
|
3
|
-
import { GetLinkedAssetFamilyResponse } from '../types/assets.type';
|
|
2
|
+
import { GetAssetDetailParams, GetAvailableAssetsQueryParams, GetLinkedAssetFamiliesResponse } from '../dto/assets.dto';
|
|
4
3
|
import { AssetOptionField } from '../components/v2/DialogSelectAsset/DialogSelectAsset.vue.d';
|
|
5
4
|
export interface ServiceOptions {
|
|
6
5
|
headers?: Record<string, unknown>;
|
|
@@ -12,7 +11,7 @@ declare const _default: {
|
|
|
12
11
|
getAssetsById: (_id: string, params: GetAvailableAssetsQueryParams) => Promise<AxiosResponse<any, any>>;
|
|
13
12
|
getAssetDetail: (id: string, params?: GetAssetDetailParams | undefined) => Promise<AxiosResponse<any, any>>;
|
|
14
13
|
matchAssetWithTag: (id: string, tag?: string | undefined) => Promise<AxiosResponse<any, any>>;
|
|
15
|
-
getLinkedAssetFamily: (
|
|
14
|
+
getLinkedAssetFamily: (id?: string | undefined) => Promise<AxiosResponse<GetLinkedAssetFamiliesResponse, any>>;
|
|
16
15
|
getUnlinkedAssets: (params: GetAvailableAssetsQueryParams) => Promise<AxiosResponse<any, any>>;
|
|
17
16
|
getOptions: (endpoint: "available" | "unlinked" | "by-id", params: Partial<Record<AssetOptionField, boolean>> & {
|
|
18
17
|
group?: string | undefined;
|