@fewangsit/wangsvue-fats 1.0.0-alpha.37 → 1.0.0-alpha.39
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/animation/Animation.vue.d.ts +8 -0
- package/components/badgegroup/BadgeGroup.vue.d.ts +2 -0
- package/components/basetree/BaseTree.vue.d.ts +2 -1
- package/components/button/Button.vue.d.ts +3 -2
- package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +1 -0
- package/components/buttonradio/ButtonRadio.vue.d.ts +1 -0
- package/components/buttonscan/ButtonScan.vue.d.ts +2 -1
- package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +2 -1
- package/components/buttonsplit/ButtonSplit.vue.d.ts +7 -5
- package/components/buttontoggle/ButtonToggle.vue.d.ts +1 -0
- package/components/calendar/Calendar.vue.d.ts +32 -4
- package/components/card/Card.vue.d.ts +1 -0
- package/components/checkbox/Checkbox.vue.d.ts +1 -0
- package/components/datatable/DataTable.vue.d.ts +4 -2
- package/components/dialog/Dialog.vue.d.ts +1 -0
- package/components/dialogconfirm/DialogConfirm.vue.d.ts +1 -0
- package/components/dialogform/DialogForm.vue.d.ts +1 -0
- package/components/dialogselecttree/DialogSelectTree.vue.d.ts +3 -2
- package/components/dialogselectuser/DialogSelectUser.vue.d.ts +102 -0
- package/components/dialogselectuser/options/columns.d.ts +3 -0
- package/components/dropdown/Dropdown.vue.d.ts +4 -2
- package/components/editor/Editor.vue.d.ts +1 -0
- package/components/fileupload/FileUpload.vue.d.ts +1 -0
- package/components/filtercontainer/FilterContainer.vue.d.ts +5 -3
- package/components/form/Form.vue.d.ts +2 -1
- package/components/icon/Icon.vue.d.ts +2 -0
- package/components/image/Image.vue.d.ts +1 -0
- package/components/index.d.ts +1 -0
- package/components/inputemail/InputEmail.vue.d.ts +1 -0
- package/components/inputnumber/InputNumber.vue.d.ts +1 -0
- package/components/inputpassword/InputPassword.vue.d.ts +1 -0
- package/components/inputrangenumber/InputRangeNumber.vue.d.ts +1 -0
- package/components/inputtext/InputText.vue.d.ts +2 -1
- package/components/inputurl/InputURL.vue.d.ts +3 -1
- package/components/languagedropdown/LanguageDropdown.vue.d.ts +1 -0
- package/components/litedropdown/LiteDropdown.vue.d.ts +3 -1
- package/components/menu/Menu.vue.d.ts +2 -1
- package/components/multiselect/MultiSelect.vue.d.ts +1 -0
- package/components/overlaypanel/OverlayPanel.vue.d.ts +1 -0
- package/components/tabmenu/TabMenu.vue.d.ts +2 -1
- package/components/textarea/Textarea.vue.d.ts +2 -1
- package/components/timeline/Timeline.vue.d.ts +1 -1
- package/components/toast/Toast.vue.d.ts +2 -1
- package/components/toggleswitch/ToggleSwitch.vue.d.ts +1 -0
- package/components/transactionroles/TransactionRoles.vue.d.ts +58 -0
- package/components/tree/Tree.vue.d.ts +4 -2
- package/components/username/UserName.vue.d.ts +5 -0
- package/components/userwithicon/UserWithIcon.vue.d.ts +1 -0
- package/event-bus/index.d.ts +1 -1
- package/package.json +1 -1
- package/plugins/WangsVue.d.ts +33 -33
- package/plugins/formValidation.d.ts +3 -3
- package/plugins/i18n.d.ts +1 -1
- package/stats.html +4949 -0
- package/style.css +1 -1
- package/utils/index.d.ts +1 -3
- package/wangsvue-fats.es.js +47423 -119473
- package/wangsvue-fats.system.js +71 -236
|
@@ -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;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { Slot } from 'vue';
|
|
2
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
1
|
import { TreeSelectionKeys } from 'primevue/tree';
|
|
2
|
+
import { Slot } from 'vue';
|
|
3
|
+
|
|
4
4
|
import { MenuItem } from '../../components/menuitem';
|
|
5
|
+
|
|
5
6
|
import { BaseTreeProps, TreeNode } from '../basetree/BaseTree.vue.d';
|
|
6
7
|
import { QueryParams, ShortFetchResponse } from '../datatable/DataTable.vue.d';
|
|
8
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
7
9
|
|
|
8
10
|
export interface TreeProps extends BaseTreeProps {
|
|
9
11
|
/**
|
|
@@ -37,6 +37,11 @@ export interface UserNameComponentConfigs {
|
|
|
37
37
|
*/
|
|
38
38
|
type?: 'icon' | 'picture';
|
|
39
39
|
|
|
40
|
+
/**
|
|
41
|
+
* Whether to show the user's name. If false, only the user's icon will be shown.
|
|
42
|
+
* @default true
|
|
43
|
+
*/
|
|
44
|
+
showUserName?: boolean;
|
|
40
45
|
/**
|
|
41
46
|
* Specify the field of user to be used as display name
|
|
42
47
|
*
|
package/event-bus/index.d.ts
CHANGED
package/package.json
CHANGED
package/plugins/WangsVue.d.ts
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import { Plugin } from 'vue';
|
|
2
|
+
import { AnimationDefaultConfig } from '../components/animation/Animation.vue.d';
|
|
3
|
+
import { BadgeComponentConfigs } from '../components/badge/Badge.vue.d';
|
|
2
4
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from '../components/
|
|
5
|
+
ButtonBulkActionLocaleConfig,
|
|
6
|
+
ButtonBulkActionProps,
|
|
7
|
+
} from '../components/buttonbulkaction/ButtonBulkAction.vue.d';
|
|
8
|
+
import { ButtonSearchLocaleConfig } from '../components/buttonsearch/ButtonSearch.vue.d';
|
|
6
9
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from '../components/
|
|
10
|
-
import { TreeProps } from '../components/tree/Tree.vue.d';
|
|
11
|
-
import { DialogConfirmLocaleConfig } from '../components/dialogconfirm/DialogConfirm.vue.d';
|
|
10
|
+
CalendarLocaleConfig,
|
|
11
|
+
CalendarPresetOptions,
|
|
12
|
+
} from '../components/calendar/Calendar.vue.d';
|
|
12
13
|
import { CustomColumnLocaleConfig } from '../components/customcolumn/CustomColumn.vue.d';
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
import {
|
|
15
|
+
DataTableLocaleConfig,
|
|
16
|
+
DataTableProps,
|
|
17
|
+
} from '../components/datatable/DataTable.vue.d';
|
|
18
|
+
import { DialogConfirmLocaleConfig } from '../components/dialogconfirm/DialogConfirm.vue.d';
|
|
19
|
+
import { DialogFormLocaleConfig } from '../components/dialogform/DialogForm.vue.d';
|
|
16
20
|
import {
|
|
17
21
|
DropdownLocaleConfig,
|
|
18
22
|
DropdownProps,
|
|
19
23
|
} from '../components/dropdown/Dropdown.vue.d';
|
|
24
|
+
import {
|
|
25
|
+
FieldWrapperLocaleConfig,
|
|
26
|
+
FieldWrapperProps,
|
|
27
|
+
} from '../components/fieldwrapper/FieldWrapper.vue.d';
|
|
28
|
+
import { FilterContainerLocaleConfig } from '../components/filtercontainer/FilterContainer.vue.d';
|
|
29
|
+
import { ImageProps } from '../components/image/Image.vue.d';
|
|
30
|
+
import { ImageCompressorLocaleConfig } from '../components/imagecompressor/ImageCompressor.vue.d';
|
|
20
31
|
import { InputCurrencyLocaleConfig } from '../components/inputcurrency/InputCurrency.vue.d';
|
|
21
|
-
import {
|
|
22
|
-
import { InputrangeNumberLocaleConfig } from '../components/inputrangenumber/InputRangeNumber.vue.d';
|
|
23
|
-
import { DialogFormLocaleConfig } from '../components/dialogform/DialogForm.vue.d';
|
|
24
|
-
import { InputPhoneNumberLocaleConfig } from '../components/inputphonenumber/InputPhoneNumber.vue.d';
|
|
32
|
+
import { InputEmailProps } from '../components/inputemail/InputEmail.vue.d';
|
|
25
33
|
import { InputNumberLocaleConfig } from '../components/inputnumber/InputNumber.vue.d';
|
|
34
|
+
import { InputPhoneNumberLocaleConfig } from '../components/inputphonenumber/InputPhoneNumber.vue.d';
|
|
35
|
+
import { InputrangeNumberLocaleConfig } from '../components/inputrangenumber/InputRangeNumber.vue.d';
|
|
26
36
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from '../components/
|
|
30
|
-
import { OverlayPanelPassThroughOptions } from '../components/overlaypanel/OverlayPanel.vue.d';
|
|
37
|
+
InputTextLocaleConfig,
|
|
38
|
+
InputTextProps,
|
|
39
|
+
} from '../components/inputtext/InputText.vue.d';
|
|
31
40
|
import { InputURLProps } from '../components/inputurl/InputURL.vue.d';
|
|
32
|
-
import { InputEmailProps } from '../components/inputemail/InputEmail.vue.d';
|
|
33
|
-
import { ImageProps } from '../components/image/Image.vue.d';
|
|
34
|
-
import { MenuLocaleConfig } from '../components/menu/Menu.vue.d';
|
|
35
|
-
import {
|
|
36
|
-
ButtonBulkActionLocaleConfig,
|
|
37
|
-
ButtonBulkActionProps,
|
|
38
|
-
} from '../components/buttonbulkaction/ButtonBulkAction.vue.d';
|
|
39
|
-
import { AnimationDefaultConfig } from '../components/animation/Animation.vue.d';
|
|
40
41
|
import { LoadingPresetOptions } from '../components/loading/Loading.vue.d';
|
|
41
|
-
import {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
} from '../components/
|
|
45
|
-
import {
|
|
42
|
+
import { MenuLocaleConfig } from '../components/menu/Menu.vue.d';
|
|
43
|
+
import { MultiSelectLocaleConfig } from '../components/multiselect/MultiSelect.vue.d';
|
|
44
|
+
import { OverlayPanelPassThroughOptions } from '../components/overlaypanel/OverlayPanel.vue.d';
|
|
45
|
+
import { TextareaLocaleConfig } from '../components/textarea/Textarea.vue.d';
|
|
46
|
+
import { TreeProps } from '../components/tree/Tree.vue.d';
|
|
46
47
|
import {
|
|
47
48
|
UserNameComponentConfigs,
|
|
48
49
|
UserNameLocaleConfig,
|
|
49
50
|
UserNamePresetOptions,
|
|
50
51
|
} from '../components/username/UserName.vue.d';
|
|
51
|
-
import { ImageCompressorLocaleConfig } from '../components/imagecompressor/ImageCompressor.vue.d';
|
|
52
52
|
import { type UseToastConfig } from '../utils/toast.util';
|
|
53
53
|
/**
|
|
54
54
|
* A Record of component names with theirs props interface
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MaybeRef, MaybeRefOrGetter } from 'vue';
|
|
2
1
|
import {
|
|
3
|
-
FormContext as VeeFormContext,
|
|
4
2
|
FieldContext,
|
|
5
|
-
RuleExpression,
|
|
6
3
|
FieldOptions,
|
|
4
|
+
FormContext as VeeFormContext,
|
|
5
|
+
RuleExpression,
|
|
7
6
|
} from 'vee-validate';
|
|
7
|
+
import { MaybeRef, MaybeRefOrGetter } from 'vue';
|
|
8
8
|
export interface FormContext<T> {
|
|
9
9
|
values: T;
|
|
10
10
|
handleSubmit: VeeFormContext['handleSubmit'];
|