@fewangsit/wangsvue-fats 1.0.0-alpha.65 → 1.0.0-alpha.67

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.
@@ -0,0 +1,34 @@
1
+ import { ClassComponent } from '../../components/ts-helpers.d';
2
+
3
+ export type ReportSourceType =
4
+ | 'Available Asset'
5
+ | 'Audit Asset'
6
+ | 'Borrowed Asset'
7
+ | 'Assigned Asset'
8
+ | 'Tracking Asset'
9
+ | 'Maintenance Asset';
10
+
11
+ export interface DialogReportDamageProps {
12
+ id: string;
13
+ reportSource: ReportSourceType;
14
+ visible?: boolean;
15
+ byUser?: boolean;
16
+ successMessage?: string;
17
+ submitFunction?: (body: {
18
+ notes: string;
19
+ image: File;
20
+ }) => Promise<{ status?: number; message?: string } | undefined>;
21
+ }
22
+
23
+ export type DialogReportDamageEmits = {
24
+ 'update:visible': [value: boolean];
25
+ 'reported': [];
26
+ };
27
+
28
+ declare class DialogReportDamage extends ClassComponent<
29
+ DialogReportDamageProps,
30
+ unknown,
31
+ DialogReportDamageEmits
32
+ > {}
33
+
34
+ export default DialogReportDamage;
@@ -0,0 +1,26 @@
1
+ import { ClassComponent } from '../../components/ts-helpers.d';
2
+
3
+ export interface DialogReportMissingProps {
4
+ id: string; // The Asset id to get asset detail
5
+ trackingId?: string; // The tracking Id to submit permanently missing report
6
+ visible?: boolean;
7
+ permanentlyMissing?: boolean;
8
+ successMessage?: string;
9
+ submitWithoutApi?: boolean;
10
+ submitFunction?: (body: {
11
+ notes: string;
12
+ }) => Promise<{ status?: number; message?: string } | undefined>;
13
+ }
14
+
15
+ export type DialogReportMissingEmits = {
16
+ 'update:visible': [value: boolean];
17
+ 'reported': [payload?: { notes: string }];
18
+ };
19
+
20
+ declare class DialogReportMissing extends ClassComponent<
21
+ DialogReportMissingProps,
22
+ unknown,
23
+ DialogReportMissingEmits
24
+ > {}
25
+
26
+ export default DialogReportMissing;
@@ -0,0 +1,31 @@
1
+ import { ClassComponent } from '../../components/ts-helpers.d';
2
+
3
+ export interface DialogReportTagProps {
4
+ id: string;
5
+ tagReported?: ReportTagBody;
6
+ visible?: boolean;
7
+ successMessage?: string;
8
+ submitLabel?: string;
9
+ submitWithoutApi?: boolean;
10
+ submitFunction?: (
11
+ body: ReportTagBody,
12
+ ) => Promise<{ status?: number; message?: string } | undefined>;
13
+ }
14
+
15
+ export type DialogReportTagEmits = {
16
+ 'update:visible': [value: boolean];
17
+ 'reported': [payload?: ReportTagBody];
18
+ };
19
+
20
+ export type ReportTagBody = {
21
+ qr: boolean;
22
+ rfid: boolean;
23
+ };
24
+
25
+ declare class DialogReportTag extends ClassComponent<
26
+ DialogReportTagProps,
27
+ unknown,
28
+ DialogReportTagEmits
29
+ > {}
30
+
31
+ export default DialogReportTag;
@@ -65,3 +65,6 @@ export { default as InputSearch } from './inputsearch/InputSearch.vue';
65
65
  export { default as TransactionRoles } from './transactionroles/TransactionRoles.vue';
66
66
  export { default as DialogPrintQR } from './dialogprintqr/DialogPrintQR.vue';
67
67
  export { default as DialogAssetNameDetail } from './dialogassetnamedetail/DialogAssetNameDetail.vue';
68
+ export { default as DialogReportTag } from './dialogreporttag/DialogReportTag.vue';
69
+ export { default as DialogReportDamage } from './dialogreportdamage/DialogReportDamage.vue';
70
+ export { default as DialogReportMissing } from './dialogreportmissing/DialogReportMissing.vue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-fats",
3
- "version": "1.0.0-alpha.65",
3
+ "version": "1.0.0-alpha.67",
4
4
  "author": "Wangsit FE Developer",
5
5
  "description": "Fixed Asset Tagsamurai VueJS Component Library",
6
6
  "type": "module",