tsv2-library 1.1.16 → 1.1.17

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.
@@ -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
  }>>;
@@ -119,6 +119,7 @@ export interface Asset {
119
119
  assetImage?: 'string';
120
120
  image?: 'string';
121
121
  firstImage?: string;
122
+ labelStatus?: 'Printed' | 'Not Printed';
122
123
  }
123
124
 
124
125
  export type QueryParams = {
@@ -140,6 +141,12 @@ export interface DialogSelectAssetProps {
140
141
  * @default true
141
142
  */
142
143
  withButton?: boolean;
144
+ /**
145
+ * With print column or not
146
+ *
147
+ * @default false
148
+ */
149
+ withPrint?: boolean;
143
150
  /**
144
151
  * Dialog visibility model when not using default button.
145
152
  */
@@ -106,6 +106,7 @@ export type TSVueIcons =
106
106
  | 'pencil'
107
107
  | 'phone-line'
108
108
  | 'printer'
109
+ | 'price-tag-2-line'
109
110
  | 'price-tag-3-line'
110
111
  | 'pushpin-2-line'
111
112
  | 'pushpin-fill'
@@ -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;