@fewangsit/wangsvue-fats 1.0.0-alpha.33 → 1.0.0-alpha.34

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.
@@ -1,4 +1,5 @@
1
1
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
2
+
2
3
  type Field = 'brand' | 'model' | 'group' | 'status';
3
4
 
4
5
  export interface AssetInfoProps {
@@ -1,4 +1,5 @@
1
1
  import { ClassComponent } from '../ts-helpers.d';
2
+
2
3
  export interface ButtonViewLogProps {
3
4
  showLog?: boolean;
4
5
  }
@@ -103,6 +103,7 @@ export type WangsIcons =
103
103
  | 'filter'
104
104
  | 'folder'
105
105
  | 'folder-add-line'
106
+ | 'gate'
106
107
  | 'group'
107
108
  | 'hand-coin'
108
109
  | 'handheld'
@@ -151,6 +152,7 @@ export type WangsIcons =
151
152
  | 'qr'
152
153
  | 'qr-scan'
153
154
  | 'reception'
155
+ | 'recycle-bin'
154
156
  | 'refresh'
155
157
  | 'replace-tag'
156
158
  | 'report-tag'
@@ -56,3 +56,4 @@ export { default as ButtonViewLog } from './buttonviewlog/ButtonViewLog.vue.d';
56
56
  export { default as UserWithIcon } from './userwithicon/UserWithIcon.vue.d';
57
57
  export { default as FilterContainer } from './filtercontainer/FilterContainer.vue.d';
58
58
  export { default as InputSearch } from './inputsearch/InputSearch.vue.d';
59
+ export { default as TransactionRoles } from './transactionroles/TransactionRoles.vue.d';
@@ -1,4 +1,5 @@
1
1
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2
+
2
3
  export type InputSearchEmits = {
3
4
  /**
4
5
  * Emits when the Enter key is pressed.
@@ -0,0 +1,58 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+ export type TransactionRoles = Addon & {
4
+ borrowing: boolean;
5
+ assignment: boolean;
6
+ transfer: boolean;
7
+ disposal: boolean;
8
+ };
9
+
10
+ export type Addon = {
11
+ repairTicketing: boolean;
12
+ maintenance: boolean;
13
+ tracking: boolean;
14
+ audit: boolean;
15
+ assetControl: boolean;
16
+ };
17
+
18
+ type LicenseStatus = 'Managed' | 'Unmanaged' | null;
19
+
20
+ export type LicenseStatuses = {
21
+ fixedAsset: LicenseStatus;
22
+ repairTicketing: LicenseStatus;
23
+ maintenance: LicenseStatus;
24
+ tracking: LicenseStatus;
25
+ audit: LicenseStatus;
26
+ assetControl: LicenseStatus;
27
+ };
28
+
29
+ export type RoleData = {
30
+ [key: string]: unknown;
31
+ transactionRoles?: TransactionRoles;
32
+ addOn?: Addon;
33
+ transactions?: TransactionRoles; // For Policy Assets
34
+ licenseStatuses?: LicenseStatuses;
35
+ };
36
+
37
+ export interface TransactionRolesProps {
38
+ asset?: RoleData;
39
+ user?: Omit<RoleData, 'addon'>;
40
+ /**
41
+ * @default transaction
42
+ */
43
+ type?: 'transaction' | 'addon' | 'transaction-policy';
44
+ }
45
+
46
+ /**
47
+ * **TSVue V2 - TransactionRoles**
48
+ *
49
+ * _TransactionRoles is a component to show list of transaction role._
50
+ *
51
+ * --- ---
52
+ * ![TSVue](https://ik.imagekit.io/kurniadev/TS-HEAD-BLACK.png)
53
+ *
54
+ * @group buttons
55
+ */
56
+ declare const TransactionRoles: DefineComponent<TransactionRolesProps>;
57
+
58
+ export default TransactionRoles;
@@ -1,5 +1,6 @@
1
1
  import { UserDetail } from '@tagsamurai/fats-api-services/src/types/user.type';
2
2
  import { ClassComponent } from '../ts-helpers';
3
+
3
4
  export interface UserWithIconProps {
4
5
  user: UserDetail;
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-fats",
3
- "version": "1.0.0-alpha.33",
3
+ "version": "1.0.0-alpha.34",
4
4
  "author": "fewangsit",
5
5
  "description": "Admin Console Tagsamurai VueJS Component Library",
6
6
  "type": "module",