@fewangsit/wangsvue-fats 1.0.0-alpha.9 → 1.0.0-alpha.90
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 +9 -1
- package/components/assetinfo/AssetInfo.vue.d.ts +39 -0
- package/components/badgegroup/BadgeGroup.vue.d.ts +3 -1
- package/components/basetree/BaseTree.vue.d.ts +6 -1
- package/components/button/Button.vue.d.ts +7 -3
- package/components/buttonaddbyscan/ButtonAddByScan.vue.d.ts +40 -0
- 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 +202 -0
- package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +46 -0
- package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +2 -1
- package/components/buttonsplit/ButtonSplit.vue.d.ts +352 -34
- package/components/buttonsync/ButtonSync.vue.d.ts +22 -0
- package/components/buttontoggle/ButtonToggle.vue.d.ts +1 -0
- package/components/buttonviewlog/ButtonViewLog.vue.d.ts +17 -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 +12 -4
- package/components/dialog/Dialog.vue.d.ts +4 -3
- package/components/dialogassetnamedetail/DialogAssetNameDetail.vue.d.ts +46 -0
- package/components/dialogassetnamedetail/options/columns.d.ts +2 -0
- package/components/dialogassetnamedetail/options/filter.d.ts +2 -0
- package/components/dialogconfirm/DialogConfirm.vue.d.ts +1 -0
- package/components/dialogform/DialogForm.vue.d.ts +3 -2
- package/components/dialogprintqr/DialogPrintQR.vue.d.ts +18 -0
- package/components/dialogreportdamage/DialogReportDamage.vue.d.ts +34 -0
- package/components/dialogreportmissing/DialogReportMissing.vue.d.ts +33 -0
- package/components/dialogreporttag/DialogReportTag.vue.d.ts +31 -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 +23 -4
- package/components/editor/Editor.vue.d.ts +1 -0
- package/components/fieldwrapper/FieldWrapper.vue.d.ts +12 -2
- package/components/fileupload/FileUpload.vue.d.ts +1 -0
- package/components/filtercontainer/FilterContainer.vue.d.ts +12 -8
- package/components/form/Form.vue.d.ts +2 -1
- package/components/icon/Icon.vue.d.ts +3 -0
- package/components/image/Image.vue.d.ts +8 -0
- package/components/imagecompressor/ImageCompressor.vue.d.ts +6 -0
- package/components/index.d.ts +27 -18
- package/components/inputcurrency/helpers/currency.helper.d.ts +5 -1
- package/components/inputemail/InputEmail.vue.d.ts +1 -0
- package/components/inputnumber/InputNumber.vue.d.ts +6 -0
- package/components/inputpassword/InputPassword.vue.d.ts +1 -0
- package/components/inputrangenumber/InputRangeNumber.vue.d.ts +1 -0
- package/components/inputsearch/InputSearch.vue.d.ts +36 -0
- package/components/inputtext/InputText.vue.d.ts +2 -1
- package/components/inputurl/InputURL.vue.d.ts +4 -2
- package/components/invisiblefield/InvisibleField.vue.d.ts +32 -36
- package/components/languagedropdown/LanguageDropdown.vue.d.ts +5 -19
- package/components/litedropdown/LiteDropdown.vue.d.ts +5 -3
- package/components/loading/store/loading.store.d.ts +3 -3
- package/components/menu/Menu.vue.d.ts +2 -1
- package/components/multiselect/MultiSelect.vue.d.ts +7 -4
- package/components/overlaypanel/OverlayPanel.vue.d.ts +1 -0
- package/components/paginator/Paginator.vue.d.ts +285 -0
- package/components/tabmenu/TabMenu.vue.d.ts +6 -190
- package/components/tagtype/TagType.vue.d.ts +26 -0
- package/components/textarea/Textarea.vue.d.ts +2 -1
- package/components/timeline/Timeline.vue.d.ts +21 -2
- 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 +6 -3
- package/components/tree/helpers/filterNodeKeys.helper.d.ts +8 -2
- package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +3 -1
- package/components/username/UserName.vue.d.ts +6 -1
- package/components/userwithicon/UserWithIcon.vue.d.ts +21 -0
- package/config/defaultProps.d.ts +1 -1
- package/config/index.d.ts +1 -1
- package/config/locale.d.ts +1 -1
- package/directives/focus.d.ts +1 -1
- package/event-bus/index.d.ts +55 -50
- package/event-bus/mitt.d.ts +29 -14
- package/main.d.ts +34 -2
- package/package.json +10 -6
- package/plugins/VueHtmlToPaper.d.ts +11 -0
- package/plugins/WangsVue.d.ts +266 -98
- package/plugins/formValidation.d.ts +15 -6
- package/plugins/i18n-extension.d.ts +4 -0
- package/plugins/i18n.d.ts +89 -113
- package/stats.html +4949 -0
- package/style.css +1 -1
- package/utils/date.util.d.ts +64 -31
- package/utils/formatTagCode.util.d.ts +1 -0
- package/utils/getSeverityByAssetStatus.util.d.ts +3 -0
- package/utils/index.d.ts +6 -20
- package/utils/listenSidebarChanges.util.d.ts +16 -0
- package/utils/object.util.d.ts +14 -3
- package/utils/role.util.d.ts +67 -1
- package/utils/toast.util.d.ts +78 -78
- package/wangsvue-fats.js +56016 -0
- package/wangsvue-fats.system.js +204 -267
- package/assets/json/currencies.json.d.ts +0 -1068
- package/assets/lottie/admin/loading-page.lottie +0 -0
- package/assets/lottie/admin/loading-table.lottie +0 -0
- package/assets/lottie/admin/no-data.lottie +0 -0
- package/assets/lottie/supplyasset/loading-page.lottie +0 -0
- package/assets/lottie/supplyasset/loading-table.lottie +0 -0
- package/assets/lottie/supplyasset/no-data.lottie +0 -0
- package/assets/lottie/workspace/loading-page.lottie +0 -0
- package/assets/lottie/workspace/loading-plane.lottie +0 -0
- package/assets/lottie/workspace/loading-table.lottie +0 -0
- package/assets/lottie/workspace/no-data.lottie +0 -0
- package/build-entry.d.ts +0 -14
- package/components/buttonsplit/ButtonSplit.d.ts +0 -350
- package/components/calendar/BaseCalendar.vue.d.ts +0 -86
- package/components/codesnippet/CodeSnippet.vue.d.ts +0 -14
- package/components/customcolumn/ColumnList.vue.d.ts +0 -27
- package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -12
- package/components/datatable/MultiRow.vue.d.ts +0 -16
- package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
- package/components/datatable/helpers/filter.helper.d.ts +0 -28
- package/components/datatable/helpers/index.d.ts +0 -3
- package/components/datatable/helpers/readConfig.helper.d.ts +0 -2
- package/components/datatable/store/dataTable.store.d.ts +0 -22
- package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -92
- package/components/editor/EditorButton.vue.d.ts +0 -15
- package/components/editor/MentionList.vue.d.ts +0 -35
- package/components/editor/MentionSection.vue.d.ts +0 -92
- package/components/editor/codeSnippetExtension.d.ts +0 -3
- package/components/editor/mentionSectionExtension.d.ts +0 -3
- package/components/editor/suggestion.d.ts +0 -2
- package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -5
- package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
- package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -3
- package/components/gallerypreview/GalleryPreview.vue.d.ts +0 -31
- package/components/helpers/convertToArrayClass.helper.d.ts +0 -2
- package/components/helpers/index.d.ts +0 -2
- package/components/helpers/label.d.ts +0 -15
- package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -36
- package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -30
- package/components/inputgroup/InputGroup.vue.d.ts +0 -141
- package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
- package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +0 -18
- package/components/menu/helpers/filterMenu.helper.d.ts +0 -12
- package/components/menu/helpers/index.d.ts +0 -1
- package/components/menuitem/MenuItem.vue.d.ts +0 -19
- package/components/progressbar/ProgressBar.vue.d.ts +0 -72
- package/components/quickfilter/QuickFilter.vue.d.ts +0 -25
- package/components/timeline/TimelineContentByType.vue.d.ts +0 -16
- package/components/tooltipspan/TooltipSpan.vue.d.ts +0 -20
- package/components/tree/helpers/index.d.ts +0 -3
- package/components/usergroup/UserGroup.vue.d.ts +0 -57
- package/components/validatormessage/ValidatorMessage.vue.d.ts +0 -12
- package/types/options.type.d.ts +0 -16
- package/utils/addAttachment.util.d.ts +0 -43
- package/utils/exportToExcel.util.d.ts +0 -20
- package/utils/filterOptions.util.d.ts +0 -3
- package/utils/genPlaceholder.util.d.ts +0 -8
- package/utils/getAttachmentIcon.util.d.ts +0 -8
- package/utils/mergePropsWithDefaults.util.d.ts +0 -20
- package/utils/textFormatter.util.d.ts +0 -17
- package/wangsvue-fats.es.js +0 -132347
|
@@ -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,33 @@
|
|
|
1
|
+
import { ClassComponent } from '../../components/ts-helpers.d';
|
|
2
|
+
|
|
3
|
+
export type ReportSourceType =
|
|
4
|
+
| 'Available Asset'
|
|
5
|
+
| 'Borrowed Asset'
|
|
6
|
+
| 'Assigned Asset'
|
|
7
|
+
| 'Transfer Asset';
|
|
8
|
+
|
|
9
|
+
export interface DialogReportMissingProps {
|
|
10
|
+
id: string; // The Asset id to get asset detail
|
|
11
|
+
reportSource: ReportSourceType;
|
|
12
|
+
trackingId?: string; // The tracking Id to submit permanently missing report
|
|
13
|
+
visible?: boolean;
|
|
14
|
+
permanentlyMissing?: boolean;
|
|
15
|
+
successMessage?: string;
|
|
16
|
+
submitWithoutApi?: boolean;
|
|
17
|
+
submitFunction?: (body: {
|
|
18
|
+
notes: string;
|
|
19
|
+
}) => Promise<{ status?: number; message?: string } | undefined>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type DialogReportMissingEmits = {
|
|
23
|
+
'update:visible': [value: boolean];
|
|
24
|
+
'reported': [payload?: { notes: string }];
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
declare class DialogReportMissing extends ClassComponent<
|
|
28
|
+
DialogReportMissingProps,
|
|
29
|
+
unknown,
|
|
30
|
+
DialogReportMissingEmits
|
|
31
|
+
> {}
|
|
32
|
+
|
|
33
|
+
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;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { TreeSelectionKeys } from 'primevue/tree';
|
|
2
|
+
import { Slot } from 'vue';
|
|
3
|
+
|
|
2
4
|
import { TreeNode } from '../basetree/BaseTree.vue.d';
|
|
3
5
|
import { QueryParams, ShortFetchResponse } from '../datatable/DataTable.vue.d';
|
|
4
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
5
6
|
import TreeInstance, { TreeProps } from '../tree/Tree.vue.d';
|
|
6
|
-
import {
|
|
7
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
7
8
|
|
|
8
9
|
export interface DialogSelectTreeProps
|
|
9
10
|
extends Omit<TreeProps, 'type' | 'filter'> {
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { FetchListResponse } from '@fewangsit/workspace-api-services/src/types/fetchResponse.type';
|
|
2
|
+
import { FetchUserRoleOptionResponse } from '@tagsamurai/fats-api-services/src/dto/role.dto';
|
|
3
|
+
import { User } from '@tagsamurai/fats-api-services/src/types/user.type';
|
|
4
|
+
|
|
5
|
+
import { QueryParams } from '../../components/datatable/DataTable.vue.d';
|
|
6
|
+
import { ClassComponent } from '../../components/ts-helpers';
|
|
7
|
+
|
|
8
|
+
export type EmitSelectionValue = {
|
|
9
|
+
checkbox: User[];
|
|
10
|
+
single: User;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export type SelectionType = 'single' | 'checkbox';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Props for DialogSelectUser component
|
|
17
|
+
*/
|
|
18
|
+
export interface DialogSelectUserProps {
|
|
19
|
+
/**
|
|
20
|
+
* The header of the dialog.
|
|
21
|
+
*
|
|
22
|
+
* @defaultValue "Select User"
|
|
23
|
+
*/
|
|
24
|
+
header?: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The description of the table.
|
|
28
|
+
*
|
|
29
|
+
* @defaultValue "Select user"
|
|
30
|
+
*/
|
|
31
|
+
description?: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Table's selection type
|
|
35
|
+
*/
|
|
36
|
+
selectionType: SelectionType;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the visibility of the dialog.
|
|
40
|
+
* @defaultValue false
|
|
41
|
+
*/
|
|
42
|
+
visible?: boolean | undefined;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* List that will be show above the table
|
|
46
|
+
* @defaultValue undefined
|
|
47
|
+
*/
|
|
48
|
+
list?: string[];
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Set custom button select label
|
|
52
|
+
*/
|
|
53
|
+
selectButtonLabel?: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The function to fetch data on DataTable mounted and on queryParams dependencies updated.
|
|
57
|
+
*
|
|
58
|
+
* @param params this is required
|
|
59
|
+
*/
|
|
60
|
+
fetchFunction?: (
|
|
61
|
+
params: QueryParams,
|
|
62
|
+
) => Promise<FetchListResponse | undefined>;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* The function to fetch options on DialogSelectUserFilter.
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
fetchOptionFunction?: () => Promise<
|
|
69
|
+
FetchUserRoleOptionResponse['data'] | undefined
|
|
70
|
+
>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Emits for DialogSelectUser component
|
|
75
|
+
*/
|
|
76
|
+
export type DialogSelectUserEmits<T = User> = {
|
|
77
|
+
/**
|
|
78
|
+
* Emits when the dialog is closed. Wether from cancel button, close button, or ESC button pressed.
|
|
79
|
+
*/
|
|
80
|
+
'update:visible': [state: boolean];
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Emits when you done selected user.
|
|
84
|
+
*/
|
|
85
|
+
'selected': [user: T];
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* **TSVue - DialogSelectUser**
|
|
90
|
+
*
|
|
91
|
+
* --- ---
|
|
92
|
+
* 
|
|
93
|
+
*
|
|
94
|
+
* @group components
|
|
95
|
+
*/
|
|
96
|
+
declare const DialogSelectUser: ClassComponent<
|
|
97
|
+
DialogSelectUserProps,
|
|
98
|
+
unknown,
|
|
99
|
+
DialogSelectUserEmits
|
|
100
|
+
>;
|
|
101
|
+
|
|
102
|
+
export default DialogSelectUser;
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { Slot } from 'vue';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { BadgeProps } from '../../components/badge/Badge.vue.d';
|
|
4
|
+
import { WangsIcons } from '../../components/icon/Icon.vue.d';
|
|
5
|
+
|
|
3
6
|
import { CustomValidation } from '../form/Form.vue.d';
|
|
4
7
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
5
|
-
|
|
8
|
+
|
|
9
|
+
export type OptionValue = string | number | boolean | Record<string, any>;
|
|
10
|
+
|
|
11
|
+
export type Option = {
|
|
12
|
+
label?: string;
|
|
13
|
+
value?: OptionValue;
|
|
14
|
+
visible?: boolean;
|
|
15
|
+
icon?: WangsIcons;
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
6
18
|
|
|
7
19
|
/**
|
|
8
20
|
* Configuration interface for localizing dropdown component placeholders and error messages.
|
|
@@ -77,7 +89,7 @@ export interface DropdownProps {
|
|
|
77
89
|
/**
|
|
78
90
|
* List of options to display.
|
|
79
91
|
*/
|
|
80
|
-
options?:
|
|
92
|
+
options?: Option[] | string[] | Record<string, any>;
|
|
81
93
|
|
|
82
94
|
/**
|
|
83
95
|
* Allows `null` to be treated as a valid selectable option in the dropdown.
|
|
@@ -208,11 +220,18 @@ export interface DropdownProps {
|
|
|
208
220
|
* @default 'Search'
|
|
209
221
|
*/
|
|
210
222
|
filterPlaceholder?: string;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* To determine whether dropdown panel width should fit its max content or not
|
|
226
|
+
*
|
|
227
|
+
* @default false
|
|
228
|
+
*/
|
|
229
|
+
panelMaxContent?: boolean;
|
|
211
230
|
}
|
|
212
231
|
|
|
213
232
|
export interface DropdownSlots {
|
|
214
233
|
'value': Slot<{ value: string; originalValue: any }>;
|
|
215
|
-
'option': Slot<{ option:
|
|
234
|
+
'option': Slot<{ option: Option }>;
|
|
216
235
|
'addon-left': Slot;
|
|
217
236
|
'addon-right': Slot;
|
|
218
237
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Slot } from 'vue';
|
|
2
|
+
|
|
3
|
+
import { ClassComponent } from '../ts-helpers';
|
|
2
4
|
|
|
3
5
|
export interface FieldWrapperLocaleConfig {
|
|
4
6
|
/**
|
|
@@ -64,6 +66,14 @@ export interface FieldWrapperProps {
|
|
|
64
66
|
tooltipPos?: 'top' | 'right' | 'bottom' | 'left';
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
|
|
69
|
+
export interface FieldWrapperSlots {
|
|
70
|
+
'label-addon': Slot;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare class FieldWrapper extends ClassComponent<
|
|
74
|
+
FieldWrapperProps,
|
|
75
|
+
FieldWrapperSlots,
|
|
76
|
+
unknown
|
|
77
|
+
> {}
|
|
68
78
|
|
|
69
79
|
export default FieldWrapper;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { MultiSelectOption } from 'lib/types/options.type';
|
|
2
1
|
import { DefineComponent, Slot } from 'vue';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
DropdownProps,
|
|
5
|
+
Option,
|
|
6
|
+
} from '../../components/dropdown/Dropdown.vue.d';
|
|
7
|
+
|
|
8
|
+
import { ButtonSelectTreeProps } from '../buttonselecttree/ButtonSelectTree.vue.d';
|
|
3
9
|
import { CalendarProps } from '../calendar/Calendar.vue.d';
|
|
4
10
|
import { QueryParams } from '../datatable/DataTable.vue.d';
|
|
5
|
-
import { DropdownProps } from '../dropdown/Dropdown.vue.d';
|
|
6
11
|
import { InputRangeNumberProps } from '../inputrangenumber/InputRangeNumber.vue.d';
|
|
7
12
|
import { MultiSelectProps } from '../multiselect/MultiSelect.vue.d';
|
|
8
|
-
import { ButtonSelectTreeProps } from '../buttonselecttree/ButtonSelectTree.vue.d';
|
|
9
13
|
|
|
10
14
|
export type FilterMatchMode =
|
|
11
15
|
| 'CONTAINS'
|
|
@@ -33,8 +37,8 @@ export interface MultiSelectFilterField extends MultiSelectProps {
|
|
|
33
37
|
optionField?: string; // @example - actionOptions
|
|
34
38
|
params?: QueryParams; // Additional QueryParams for the fetchOptionFn
|
|
35
39
|
fetchOptionFn?:
|
|
36
|
-
| ((args?: any) =>
|
|
37
|
-
| ((args?: any) => Promise<
|
|
40
|
+
| ((args?: any) => Option[] | undefined) // Sync function to fetch options
|
|
41
|
+
| ((args?: any) => Promise<Option[] | undefined>); // Async function
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
export interface DropdownFilterField extends DropdownProps {
|
|
@@ -50,8 +54,8 @@ export interface DropdownFilterField extends DropdownProps {
|
|
|
50
54
|
optionField?: string; // @example - actionOptions
|
|
51
55
|
params?: QueryParams; // Additional QueryParams for the fetchOptionFn
|
|
52
56
|
fetchOptionFn?:
|
|
53
|
-
| ((args?: any) =>
|
|
54
|
-
| ((args?: any) => Promise<
|
|
57
|
+
| ((args?: any) => Option[] | undefined) // Sync function to fetch options
|
|
58
|
+
| ((args?: any) => Promise<Option[]> | undefined); // Async function
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
export interface RangeNumberFilterField extends InputRangeNumberProps {
|
|
@@ -107,7 +111,7 @@ export type FilterField =
|
|
|
107
111
|
|
|
108
112
|
export type FilterOptions<Opt = Record<string, boolean>> = Record<
|
|
109
113
|
keyof Opt,
|
|
110
|
-
|
|
114
|
+
Option[]
|
|
111
115
|
>;
|
|
112
116
|
|
|
113
117
|
export type LoadingFilters = Record<string, boolean>;
|
|
@@ -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'
|
|
@@ -123,6 +124,7 @@ export type WangsIcons =
|
|
|
123
124
|
| 'link-unlink-m'
|
|
124
125
|
| 'list-settings'
|
|
125
126
|
| 'loader-4'
|
|
127
|
+
| 'lock-line'
|
|
126
128
|
| 'logout-box-r'
|
|
127
129
|
| 'mail-open'
|
|
128
130
|
| 'mail-send'
|
|
@@ -151,6 +153,7 @@ export type WangsIcons =
|
|
|
151
153
|
| 'qr'
|
|
152
154
|
| 'qr-scan'
|
|
153
155
|
| 'reception'
|
|
156
|
+
| 'recycle-bin'
|
|
154
157
|
| 'refresh'
|
|
155
158
|
| 'replace-tag'
|
|
156
159
|
| 'report-tag'
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
11
|
import { TransitionProps, VNode } from 'vue';
|
|
12
|
+
|
|
12
13
|
import { ComponentHooks } from '../basecomponent';
|
|
13
14
|
import { PassThroughOptions } from '../passthrough';
|
|
14
15
|
import {
|
|
@@ -195,6 +196,13 @@ export interface ImageProps {
|
|
|
195
196
|
* The thumbnail image.
|
|
196
197
|
*/
|
|
197
198
|
src?: string | Blob;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Wether use preview full image functionality
|
|
202
|
+
*
|
|
203
|
+
* @default true
|
|
204
|
+
*/
|
|
205
|
+
preview?: boolean;
|
|
198
206
|
/**
|
|
199
207
|
* The thumbnail image width.
|
|
200
208
|
*
|
|
@@ -141,6 +141,12 @@ export interface ImageCompressorProps {
|
|
|
141
141
|
* @default true
|
|
142
142
|
*/
|
|
143
143
|
showInfo?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Change the requirements of the photo
|
|
146
|
+
*
|
|
147
|
+
* @default undefined - will use maxSizeRequirement, imageTypeRequirement from LocaleConfig
|
|
148
|
+
*/
|
|
149
|
+
customRequirements?: string[];
|
|
144
150
|
/**
|
|
145
151
|
* Show dialog confirmation before delete the image.
|
|
146
152
|
*/
|
package/components/index.d.ts
CHANGED
|
@@ -1,39 +1,35 @@
|
|
|
1
|
-
export * from '.././components';
|
|
2
|
-
export { default as Animation } from './animation/Animation.vue';
|
|
3
1
|
export { default as ApproverInfo } from './approverinfo/ApproverInfo.vue';
|
|
4
2
|
export { default as Badge } from './badge/Badge.vue';
|
|
5
3
|
export { default as BadgeGroup } from './badgegroup/BadgeGroup.vue';
|
|
6
|
-
export { default as BaseTree } from '
|
|
4
|
+
export { default as BaseTree } from './basetree/BaseTree.vue';
|
|
7
5
|
export { default as Breadcrumb } from './breadcrumb/Breadcrumb.vue';
|
|
8
6
|
export { default as Button } from './button/Button.vue';
|
|
9
7
|
export { default as ButtonBulkAction } from './buttonbulkaction/ButtonBulkAction.vue';
|
|
10
8
|
export { default as ButtonCopy } from './buttoncopy/ButtonCopy.vue';
|
|
11
9
|
export { default as ButtonDownload } from './buttondownload/ButtonDownload.vue';
|
|
12
10
|
export { default as ButtonFilter } from './buttonfilter/ButtonFilter.vue';
|
|
13
|
-
export { default as ButtonImportExcel } from './buttonImportExcel/ButtonImportExcel.vue';
|
|
14
11
|
export { default as ButtonRadio } from './buttonradio/ButtonRadio.vue';
|
|
12
|
+
export { default as ButtonScan } from './buttonscan/ButtonScan.vue';
|
|
13
|
+
export { default as ButtonSearchByScan } from './buttonsearchbyscan/ButtonSearchByScan.vue';
|
|
15
14
|
export { default as ButtonSearch } from './buttonsearch/ButtonSearch.vue';
|
|
16
|
-
export { default as ButtonSelectTree } from '
|
|
17
|
-
export { default as
|
|
15
|
+
export { default as ButtonSelectTree } from './buttonselecttree/ButtonSelectTree.vue';
|
|
16
|
+
export { default as ButtonSync } from './buttonsync/ButtonSync.vue';
|
|
18
17
|
export { default as ButtonToggle } from './buttontoggle/ButtonToggle.vue';
|
|
19
|
-
export { default as Calendar } from '
|
|
18
|
+
export { default as Calendar } from './calendar/Calendar.vue';
|
|
20
19
|
export { default as Card } from './card/Card.vue';
|
|
21
20
|
export { default as Checkbox } from './checkbox/Checkbox.vue';
|
|
22
|
-
export { default as CodeSnippet } from './codesnippet/CodeSnippet.vue';
|
|
23
21
|
export { default as DataTable } from './datatable/DataTable.vue';
|
|
24
22
|
export { default as Dialog } from './dialog/Dialog.vue';
|
|
25
23
|
export { default as DialogConfirm } from './dialogconfirm/DialogConfirm.vue';
|
|
26
24
|
export { default as DialogForm } from './dialogform/DialogForm.vue';
|
|
27
|
-
export { default as DialogSelectTree } from '
|
|
25
|
+
export { default as DialogSelectTree } from './dialogselecttree/DialogSelectTree.vue';
|
|
28
26
|
export { default as Dropdown } from './dropdown/Dropdown.vue';
|
|
29
|
-
export { default as Editor } from './editor/Editor.vue';
|
|
30
27
|
export { default as FileUpload } from './fileupload/FileUpload.vue';
|
|
31
|
-
export { default as FilterContainer } from './filtercontainer/FilterContainer.vue';
|
|
32
28
|
export { default as Form } from './form/Form.vue';
|
|
33
29
|
export { default as Icon } from './icon/Icon.vue';
|
|
34
30
|
export { default as Image } from './image/Image.vue';
|
|
35
31
|
export { default as ImageCompressor } from './imagecompressor/ImageCompressor.vue';
|
|
36
|
-
export { default as InlineMessage } from '
|
|
32
|
+
export { default as InlineMessage } from './inlinemessage/InlineMessage.vue';
|
|
37
33
|
export { default as InputBadge } from './inputbadge/InputBadge.vue';
|
|
38
34
|
export { default as InputCurrency } from './inputcurrency/InputCurrency.vue';
|
|
39
35
|
export { default as InputEmail } from './inputemail/InputEmail.vue';
|
|
@@ -44,20 +40,33 @@ export { default as InputRangeNumber } from './inputrangenumber/InputRangeNumber
|
|
|
44
40
|
export { default as InputText } from './inputtext/InputText.vue';
|
|
45
41
|
export { default as InputURL } from './inputurl/InputURL.vue';
|
|
46
42
|
export { default as InvisibleField } from './invisiblefield/InvisibleField.vue';
|
|
47
|
-
export { default as LanguageDropdown } from './languagedropdown/LanguageDropdown.vue';
|
|
48
43
|
export { default as LiteDropdown } from './litedropdown/LiteDropdown.vue';
|
|
44
|
+
export { default as LanguageSwitcher } from './languageswitcher/LanguageSwitcher.vue';
|
|
49
45
|
export { default as Loading } from './loading/Loading.vue';
|
|
50
46
|
export { default as Menu } from './menu/Menu.vue';
|
|
51
47
|
export { default as MultiSelect } from './multiselect/MultiSelect.vue';
|
|
52
48
|
export { default as OverlayPanel } from './overlaypanel/OverlayPanel.vue';
|
|
53
|
-
export { default as
|
|
54
|
-
export { default as QuickFilter } from './quickfilter/QuickFilter.vue';
|
|
49
|
+
export { default as Paginator } from './paginator/Paginator.vue';
|
|
55
50
|
export { default as TabMenu } from './tabmenu/TabMenu.vue';
|
|
51
|
+
export { default as TagType } from './tagtype/TagType.vue';
|
|
56
52
|
export { default as Textarea } from './textarea/Textarea.vue';
|
|
57
53
|
export { default as Timeline } from './timeline/Timeline.vue';
|
|
58
54
|
export { default as Toast } from './toast/Toast.vue';
|
|
59
55
|
export { default as ToggleSwitch } from './toggleswitch/ToggleSwitch.vue';
|
|
60
|
-
export { default as
|
|
61
|
-
export { default as Tree } from '.././components/tree/Tree.vue';
|
|
62
|
-
export { default as UserGroup } from './usergroup/UserGroup.vue';
|
|
56
|
+
export { default as Tree } from './tree/Tree.vue';
|
|
63
57
|
export { default as UserName } from './username/UserName.vue';
|
|
58
|
+
|
|
59
|
+
export { default as AssetInfo } from './assetinfo/AssetInfo.vue';
|
|
60
|
+
export { default as ButtonAddByScan } from './buttonaddbyscan/ButtonAddByScan.vue';
|
|
61
|
+
export { default as ButtonSelectUser } from './buttonselectuser/ButtonSelectUser.vue';
|
|
62
|
+
export { default as ButtonViewLog } from './buttonviewlog/ButtonViewLog.vue';
|
|
63
|
+
export { default as DialogSelectUser } from './dialogselectuser/DialogSelectUser.vue';
|
|
64
|
+
export { default as UserWithIcon } from './userwithicon/UserWithIcon.vue';
|
|
65
|
+
export { default as FilterContainer } from './filtercontainer/FilterContainer.vue';
|
|
66
|
+
export { default as InputSearch } from './inputsearch/InputSearch.vue';
|
|
67
|
+
export { default as TransactionRoles } from './transactionroles/TransactionRoles.vue';
|
|
68
|
+
export { default as DialogPrintQR } from './dialogprintqr/DialogPrintQR.vue';
|
|
69
|
+
export { default as DialogAssetNameDetail } from './dialogassetnamedetail/DialogAssetNameDetail.vue';
|
|
70
|
+
export { default as DialogReportTag } from './dialogreporttag/DialogReportTag.vue';
|
|
71
|
+
export { default as DialogReportDamage } from './dialogreportdamage/DialogReportDamage.vue';
|
|
72
|
+
export { default as DialogReportMissing } from './dialogreportmissing/DialogReportMissing.vue';
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { CurrencyFormat } from '../InputCurrency.vue.d';
|
|
2
2
|
declare const getCurrency: (code?: string) => CurrencyFormat;
|
|
3
|
-
declare const formatCurrency: (
|
|
3
|
+
declare const formatCurrency: (
|
|
4
|
+
value?: number | string | null,
|
|
5
|
+
currency?: string,
|
|
6
|
+
prefix?: boolean,
|
|
7
|
+
) => string;
|
|
4
8
|
export { getCurrency, formatCurrency };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DefineComponent, Slot } from 'vue';
|
|
2
|
+
|
|
2
3
|
import { CustomValidation } from '../form/Form.vue.d';
|
|
3
4
|
|
|
4
5
|
export type InputNumberEvent = number | string | undefined;
|
|
@@ -261,6 +262,11 @@ export type InputNumberEmits = {
|
|
|
261
262
|
export interface InputNumberSlots {
|
|
262
263
|
'addon-left': Slot;
|
|
263
264
|
'addon-right': Slot;
|
|
265
|
+
/**
|
|
266
|
+
* Slot for content in the right side of field label
|
|
267
|
+
*/
|
|
268
|
+
'field-label-addon': Slot;
|
|
269
|
+
'validatormessage': Slot;
|
|
264
270
|
}
|
|
265
271
|
|
|
266
272
|
/**
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ClassComponent,
|
|
3
|
+
GlobalComponentConstructor,
|
|
4
|
+
} from '../../components/ts-helpers';
|
|
5
|
+
|
|
6
|
+
export type InputSearchEmits = {
|
|
7
|
+
/**
|
|
8
|
+
* Emits when the Enter key is pressed.
|
|
9
|
+
*/
|
|
10
|
+
search: [payload?: string];
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* **WangsVue - InputSearch**
|
|
15
|
+
*
|
|
16
|
+
* _InputSearch is an search input for fixed asset navbar_
|
|
17
|
+
*
|
|
18
|
+
* [Live Demo](https://fewangsit.github.io/wangsvue/inputsearch)
|
|
19
|
+
* --- ---
|
|
20
|
+
* 
|
|
21
|
+
*
|
|
22
|
+
* @group Component
|
|
23
|
+
*/
|
|
24
|
+
declare class InputSearch extends ClassComponent<
|
|
25
|
+
unknown,
|
|
26
|
+
unknown,
|
|
27
|
+
InputSearchEmits
|
|
28
|
+
> {}
|
|
29
|
+
|
|
30
|
+
declare module '@vue/runtime-core' {
|
|
31
|
+
interface GlobalComponents {
|
|
32
|
+
InputSearch: GlobalComponentConstructor<InputSearch>;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export default InputSearch;
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
import { InputHTMLAttributes, Slot } from 'vue';
|
|
11
|
+
|
|
11
12
|
import { ComponentHooks } from '../basecomponent';
|
|
12
|
-
import { ClassComponent, Nullable } from '../ts-helpers';
|
|
13
13
|
import { CustomValidation } from '../form/Form.vue.d';
|
|
14
|
+
import { ClassComponent, Nullable } from '../ts-helpers';
|
|
14
15
|
export declare type InputTextPassThroughOptionType<T = any> =
|
|
15
16
|
| InputTextPassThroughAttributes
|
|
16
17
|
| ((
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Slot } from 'vue';
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import {
|
|
4
4
|
InputTextEmits,
|
|
5
5
|
InputTextProps,
|
|
6
|
-
} from '
|
|
6
|
+
} from '../../components/inputtext/InputText.vue.d';
|
|
7
|
+
|
|
8
|
+
import { ClassComponent } from '../ts-helpers';
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* InputURL component props
|