tsv2-library 1.1.1-dev-alpha.10 → 1.1.1-dev-alpha.12
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/AssetTable/AssetFilters.vue.d.ts +2 -0
- package/dist/src/components/v2/AssetTable/columns/assetColumns.d.ts +2 -2
- package/dist/src/components/v2/DialogSelectAsset/DialogSelectAsset.vue.d.ts +6 -0
- package/dist/src/components/v2/Icon/Icon.vue.d.ts +1 -0
- package/dist/src/types/assets.type.d.ts +1 -0
- package/dist/src/types/filterField.type.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/tsv2-library.es.js +58 -22
- package/dist/tsv2-library.umd.js +3 -3
- package/package.json +1 -1
- package/src/components/v2/AssetTable/AssetFilters.vue.d.ts +2 -0
- package/src/components/v2/DialogSelectAsset/DialogSelectAsset.vue.d.ts +6 -0
- package/src/components/v2/Icon/Icon.vue.d.ts +1 -0
|
@@ -15,6 +15,7 @@ export type AssetFilterFields =
|
|
|
15
15
|
| 'measurement'
|
|
16
16
|
| 'lastScannedAt'
|
|
17
17
|
| 'warrantyStatus'
|
|
18
|
+
| 'labelStatus'
|
|
18
19
|
| 'customField';
|
|
19
20
|
|
|
20
21
|
export interface AssetFilterQuery extends QueryParams {
|
|
@@ -32,6 +33,7 @@ export interface AssetFilterQuery extends QueryParams {
|
|
|
32
33
|
group?: string[];
|
|
33
34
|
lastScannedAt?: number[];
|
|
34
35
|
linkedAssetCount?: number[];
|
|
36
|
+
labelStatus?: string[];
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
export interface AssetFilterProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TableColumn } from '../../DataTable/DataTable.vue.d';
|
|
2
|
-
export declare const ASSET_COL_FIELDS: readonly ["assetImage", "name.nameWithSequence", "aliasName", "assetId", "group.name", "category.name", "brand.name", "model.name", "tagType", "measurement.name", "maintenanceStatus", "auditStatus", "transactions", "coordinates", "address", "warrantyStatus", "lastScannedAt", "linkedAssetCount"];
|
|
2
|
+
export declare const ASSET_COL_FIELDS: readonly ["assetImage", "name.nameWithSequence", "aliasName", "assetId", "group.name", "category.name", "brand.name", "model.name", "labelStatus", "tagType", "measurement.name", "maintenanceStatus", "auditStatus", "transactions", "coordinates", "address", "warrantyStatus", "lastScannedAt", "linkedAssetCount"];
|
|
3
3
|
export type AssetColField = (typeof ASSET_COL_FIELDS)[number];
|
|
4
4
|
export declare const assetValueColumns: import("vue").Ref<TableColumn[], TableColumn[]>, assetValueColumnsWithDefault: import("vue").Ref<TableColumn[], TableColumn[]>, customFieldColumns: import("vue").Ref<TableColumn[], TableColumn[]>;
|
|
5
|
-
export declare const defaultAssetColumns: import("vue").ComputedRef<Record<"tagType" | "transactions" | "assetImage" | "name.nameWithSequence" | "aliasName" | "assetId" | "group.name" | "category.name" | "brand.name" | "model.name" | "measurement.name" | "maintenanceStatus" | "auditStatus" | "coordinates" | "address" | "warrantyStatus" | "lastScannedAt" | "linkedAssetCount", TableColumn & {
|
|
5
|
+
export declare const defaultAssetColumns: import("vue").ComputedRef<Record<"tagType" | "transactions" | "assetImage" | "name.nameWithSequence" | "aliasName" | "assetId" | "group.name" | "category.name" | "brand.name" | "model.name" | "labelStatus" | "measurement.name" | "maintenanceStatus" | "auditStatus" | "coordinates" | "address" | "warrantyStatus" | "lastScannedAt" | "linkedAssetCount", TableColumn & {
|
|
6
6
|
field: AssetColField;
|
|
7
7
|
}>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DefineComponent, Slot } from 'vue';
|
|
2
2
|
import { FilterOption } from '../../../types/filterOption.type';
|
|
3
3
|
import { FilterField } from '../../../types/filterField.type';
|
|
4
|
+
import { AssetColField } from '../AssetTable/columns/assetColumns';
|
|
4
5
|
|
|
5
6
|
export interface DialogSelectAssetFilterModels {
|
|
6
7
|
assetName?: string[];
|
|
@@ -119,6 +120,7 @@ export interface Asset {
|
|
|
119
120
|
assetImage?: 'string';
|
|
120
121
|
image?: 'string';
|
|
121
122
|
firstImage?: string;
|
|
123
|
+
labelStatus?: 'Printed' | 'Not Printed';
|
|
122
124
|
}
|
|
123
125
|
|
|
124
126
|
export type QueryParams = {
|
|
@@ -140,6 +142,10 @@ export interface DialogSelectAssetProps {
|
|
|
140
142
|
* @default true
|
|
141
143
|
*/
|
|
142
144
|
withButton?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Define the columns to show
|
|
147
|
+
*/
|
|
148
|
+
showColumns?: AssetColField[];
|
|
143
149
|
/**
|
|
144
150
|
* Dialog visibility model when not using default button.
|
|
145
151
|
*/
|
|
@@ -147,6 +147,7 @@ export interface AssetTableData {
|
|
|
147
147
|
purchase?: AssetPurchase;
|
|
148
148
|
customFields?: Record<string, AssetCustomField>;
|
|
149
149
|
assetValues?: Record<string, AssetValue>;
|
|
150
|
+
labelStatus?: 'Printed' | 'Not Printed';
|
|
150
151
|
}
|
|
151
152
|
export interface AssetTableDataPrint extends Partial<Omit<AssetTableData, 'coordinates' | 'linkedAssetCount' | 'transactions' | 'assetValues' | 'customFields'>> {
|
|
152
153
|
coordinates?: string;
|
|
@@ -20,7 +20,7 @@ export interface FilterField<OptionsQueryParams extends QueryParams = QueryParam
|
|
|
20
20
|
* - A `Promise` resolving to an array of `Option` objects.
|
|
21
21
|
* - A `Promise` resolving to an `AxiosResponse` containing a `FetchOptionResponse` object.
|
|
22
22
|
*/
|
|
23
|
-
fetchOptionFn(args?: OptionsQueryParams): DropdownOption[] | Promise<DropdownOption[]> | Promise<AxiosResponse<CustomFieldFetchOptionResponse
|
|
23
|
+
fetchOptionFn(args?: OptionsQueryParams): DropdownOption[] | Promise<DropdownOption[]> | Promise<Partial<AxiosResponse<CustomFieldFetchOptionResponse>>>;
|
|
24
24
|
type: FilterFieldTypes;
|
|
25
25
|
field: keyof OptionsQueryParams;
|
|
26
26
|
label: string;
|