@fewangsit/wangsvue-fats 1.0.0-alpha.66 → 1.0.0-alpha.68

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.
@@ -17,6 +17,11 @@ export interface AssetInfoProps {
17
17
  * It will prevent dynamic fetch of asset information.
18
18
  */
19
19
  transactionDetail?: Record<string, unknown>;
20
+
21
+ /**
22
+ * @default true
23
+ */
24
+ useNfc?: boolean;
20
25
  }
21
26
 
22
27
  declare class AssetInfo extends ClassComponent<
@@ -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;
@@ -48,6 +48,7 @@ export { default as MultiSelect } from './multiselect/MultiSelect.vue';
48
48
  export { default as OverlayPanel } from './overlaypanel/OverlayPanel.vue';
49
49
  export { default as Paginator } from './paginator/Paginator.vue';
50
50
  export { default as TabMenu } from './tabmenu/TabMenu.vue';
51
+ export { default as TagType } from './tagtype/TagType.vue';
51
52
  export { default as Textarea } from './textarea/Textarea.vue';
52
53
  export { default as Timeline } from './timeline/Timeline.vue';
53
54
  export { default as Toast } from './toast/Toast.vue';
@@ -65,3 +66,6 @@ export { default as InputSearch } from './inputsearch/InputSearch.vue';
65
66
  export { default as TransactionRoles } from './transactionroles/TransactionRoles.vue';
66
67
  export { default as DialogPrintQR } from './dialogprintqr/DialogPrintQR.vue';
67
68
  export { default as DialogAssetNameDetail } from './dialogassetnamedetail/DialogAssetNameDetail.vue';
69
+ export { default as DialogReportTag } from './dialogreporttag/DialogReportTag.vue';
70
+ export { default as DialogReportDamage } from './dialogreportdamage/DialogReportDamage.vue';
71
+ export { default as DialogReportMissing } from './dialogreportmissing/DialogReportMissing.vue';
@@ -0,0 +1,26 @@
1
+ import { ClassComponent } from 'primevue/ts-helpers';
2
+
3
+ export type AssetTagType =
4
+ | 'QR'
5
+ | 'RFID'
6
+ | 'NFC'
7
+ | 'RFID & NFC'
8
+ | 'RFID & QR'
9
+ | 'NFC & QR'
10
+ | 'RFID & NFC & QR'
11
+ | 'Non TAG';
12
+
13
+ export interface TagTypeProps {
14
+ type: AssetTagType;
15
+
16
+ /**
17
+ * @default true
18
+ */
19
+ useNfc?: boolean;
20
+ }
21
+
22
+ export default class TagType extends ClassComponent<
23
+ TagTypeProps,
24
+ unknown,
25
+ unknown
26
+ > {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-fats",
3
- "version": "1.0.0-alpha.66",
3
+ "version": "1.0.0-alpha.68",
4
4
  "author": "Wangsit FE Developer",
5
5
  "description": "Fixed Asset Tagsamurai VueJS Component Library",
6
6
  "type": "module",