tsv2-library 1.1.1-dev-alpha.7 → 1.1.1-dev-alpha.10
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/columns/assetColumns.d.ts +1 -1
- package/dist/src/components/v2/DialogForm/DialogForm.vue.d.ts +13 -2
- package/dist/src/components/v2/DialogPrintLabel/DialogPrintLabel.vue.d.ts +11 -2
- package/dist/src/components/v2/TransactionRoles/TransactionRoles.vue.d.ts +2 -0
- package/dist/src/services/assets.service.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/tsv2-library.es.js +81 -39
- package/dist/tsv2-library.umd.js +3 -3
- package/package.json +1 -1
- package/src/components/v2/DialogForm/DialogForm.vue.d.ts +13 -2
- package/src/components/v2/DialogPrintLabel/DialogPrintLabel.vue.d.ts +11 -2
- package/src/components/v2/TransactionRoles/TransactionRoles.vue.d.ts +2 -0
- package/src/services/assets.service.ts +5 -0
|
@@ -2,6 +2,6 @@ import { TableColumn } from '../../DataTable/DataTable.vue.d';
|
|
|
2
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"];
|
|
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" | "
|
|
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 & {
|
|
6
6
|
field: AssetColField;
|
|
7
7
|
}>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Slot } from 'vue';
|
|
2
|
-
import { FormPayload, FormProps } from '../Form/Form.vue.d';
|
|
2
|
+
import FormInstance, { FormPayload, FormProps } from '../Form/Form.vue.d';
|
|
3
3
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
4
4
|
import { GenericObject } from 'vee-validate';
|
|
5
5
|
import { TSVueIcons } from '../Icon/Icon.vue.d';
|
|
@@ -216,7 +216,18 @@ declare class DialogForm extends ClassComponent<
|
|
|
216
216
|
DialogFormProps,
|
|
217
217
|
DialogFormSlots,
|
|
218
218
|
DialogFormEmits
|
|
219
|
-
> {
|
|
219
|
+
> {
|
|
220
|
+
/**
|
|
221
|
+
* The form instance.
|
|
222
|
+
*/
|
|
223
|
+
form: FormInstance;
|
|
224
|
+
/**
|
|
225
|
+
* Callback function for clear button click.
|
|
226
|
+
*
|
|
227
|
+
* @returns {void}
|
|
228
|
+
*/
|
|
229
|
+
clearField(): void;
|
|
230
|
+
}
|
|
220
231
|
|
|
221
232
|
declare module '@vue/runtime-core' {
|
|
222
233
|
interface GlobalComponents {
|
|
@@ -12,12 +12,21 @@ export type Label = {
|
|
|
12
12
|
* Props for DialogSelectAsset component
|
|
13
13
|
*/
|
|
14
14
|
export interface DialogPrintLabelProps {
|
|
15
|
-
selectedData:
|
|
16
|
-
|
|
15
|
+
selectedData: Pick<
|
|
16
|
+
AssetTableData,
|
|
17
|
+
'_id' | 'name' | 'category' | 'purchaseDate'
|
|
17
18
|
>[];
|
|
18
19
|
visible: boolean;
|
|
19
20
|
}
|
|
20
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Emits for DialogSelectAsset component
|
|
24
|
+
*/
|
|
25
|
+
export type DialogPrintLabelEmits = {
|
|
26
|
+
'printed': [];
|
|
27
|
+
'update:visible': [state: boolean];
|
|
28
|
+
};
|
|
29
|
+
|
|
21
30
|
/**
|
|
22
31
|
* TSVue - DialogPrintLabel
|
|
23
32
|
*
|
|
@@ -26,5 +26,6 @@ declare const _default: {
|
|
|
26
26
|
}) | undefined) => Promise<AxiosResponse<any, any, {}>>;
|
|
27
27
|
scanAsset: (tag: string) => Promise<AxiosResponse<any, any, {}>>;
|
|
28
28
|
getAssetMaps: (params?: GetAssetMapParams | undefined) => Promise<AxiosResponse<GetAssetMapResponse, any, {}>>;
|
|
29
|
+
printLabel: (assets: string[]) => Promise<AxiosResponse<any, any, {}>>;
|
|
29
30
|
};
|
|
30
31
|
export default _default;
|