@fewangsit/wangsvue-fats 1.0.0-alpha.37 → 1.0.0-alpha.38
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/components/calendar/Calendar.vue.d.ts +6 -1
- package/components/icon/Icon.vue.d.ts +2 -0
- package/components/index.d.ts +1 -0
- package/components/transactionroles/TransactionRoles.vue.d.ts +58 -0
- package/package.json +1 -1
- package/stats.html +4949 -0
- package/style.css +1 -1
- package/utils/index.d.ts +1 -3
- package/wangsvue-fats.es.js +22860 -25682
- package/wangsvue-fats.system.js +128 -154
|
@@ -344,7 +344,7 @@ export interface CalendarProps {
|
|
|
344
344
|
*
|
|
345
345
|
* @default 'single'
|
|
346
346
|
*/
|
|
347
|
-
selectionMode?: 'range' | 'single';
|
|
347
|
+
selectionMode?: 'range' | 'single' | 'multiple';
|
|
348
348
|
|
|
349
349
|
/**
|
|
350
350
|
* Whether to hide the overlay on date selection when showTime is enabled.
|
|
@@ -469,6 +469,11 @@ export interface CalendarProps {
|
|
|
469
469
|
*/
|
|
470
470
|
useTimeFormat?: boolean;
|
|
471
471
|
|
|
472
|
+
/**
|
|
473
|
+
* Only allow weekdays to be selected.
|
|
474
|
+
*/
|
|
475
|
+
onlyWeekdays?: boolean;
|
|
476
|
+
|
|
472
477
|
/**
|
|
473
478
|
* The minimum selectable date.
|
|
474
479
|
*/
|
|
@@ -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'
|
package/components/index.d.ts
CHANGED
|
@@ -56,3 +56,4 @@ export { default as ButtonViewLog } from './buttonviewlog/ButtonViewLog.vue';
|
|
|
56
56
|
export { default as UserWithIcon } from './userwithicon/UserWithIcon.vue';
|
|
57
57
|
export { default as FilterContainer } from './filtercontainer/FilterContainer.vue';
|
|
58
58
|
export { default as InputSearch } from './inputsearch/InputSearch.vue';
|
|
59
|
+
export { default as TransactionRoles } from './transactionroles/TransactionRoles.vue';
|
|
@@ -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
|
+
* 
|
|
53
|
+
*
|
|
54
|
+
* @group buttons
|
|
55
|
+
*/
|
|
56
|
+
declare const TransactionRoles: DefineComponent<TransactionRolesProps>;
|
|
57
|
+
|
|
58
|
+
export default TransactionRoles;
|