@fewangsit/wangsvue-fats 1.0.0-alpha.14 → 1.0.0-alpha.141
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 +44 -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 +3 -2
- 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 +3 -2
- 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 +13 -1
- 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/carousel/Carousel.vue.d.ts +28 -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 +2 -1
- package/components/dialogform/DialogForm.vue.d.ts +3 -2
- package/components/dialoglinkedasset/DialogLinkedAsset.vue.d.ts +106 -0
- 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/dialogtransferlog/DialogTransferLog.vue.d.ts +16 -0
- package/components/dropdown/Dropdown.vue.d.ts +28 -4
- package/components/editor/Editor.vue.d.ts +1 -0
- package/components/fieldwrapper/FieldWrapper.vue.d.ts +19 -2
- package/components/fileupload/FileUpload.vue.d.ts +1 -0
- package/components/filtercontainer/FilterContainer.vue.d.ts +104 -69
- package/components/form/Form.vue.d.ts +4 -1
- package/components/icon/Icon.vue.d.ts +4 -0
- package/components/image/Image.vue.d.ts +8 -0
- package/components/imagecompressor/ImageCompressor.vue.d.ts +14 -0
- package/components/index.d.ts +34 -21
- 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/inputotp/InputOtp.vue.d.ts +3 -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 +7 -1
- 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/steps/Steps.vue.d.ts +20 -0
- package/components/tabmenu/TabMenu.vue.d.ts +7 -191
- 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/ts-helpers.d.ts +8 -0
- 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 +59 -53
- package/event-bus/mitt.d.ts +29 -14
- package/main.d.ts +34 -2
- package/package.json +16 -8
- package/plugins/VueHtmlToPaper.d.ts +11 -0
- package/plugins/WangsVue.d.ts +272 -98
- package/plugins/formValidation.d.ts +16 -6
- package/plugins/i18n-extension.d.ts +1 -1
- package/plugins/i18n.d.ts +90 -67
- package/stats.html +4949 -0
- package/style.css +1 -1
- package/utils/date.util.d.ts +64 -31
- package/utils/exportToExcel.util.d.ts +7 -14
- package/utils/formatTagCode.util.d.ts +1 -0
- package/utils/getStatusSeverity.util.d.ts +27 -0
- package/utils/index.d.ts +8 -21
- package/utils/isBasic.util.d.ts +1 -0
- package/utils/listenSidebarChanges.util.d.ts +14 -9
- package/utils/object.util.d.ts +14 -3
- package/utils/role.util.d.ts +63 -26
- package/utils/toast.util.d.ts +78 -78
- package/utils/xlsx.util.d.ts +19 -0
- package/wangsvue-fats.js +56922 -0
- package/wangsvue-fats.system.js +199 -281
- 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/buttonscan/helpers/getErrorCode.helper.d.ts +0 -3
- package/components/buttonscan/helpers/index.d.ts +0 -1
- package/components/buttonscan/workers/scanner.worker.d.ts +0 -1
- 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/hardwaresync/store/device.store.d.ts +0 -36
- 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/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 -133530
package/utils/toast.util.d.ts
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
1
|
import { WangsIcons } from '../components/icon/Icon.vue.d';
|
|
2
2
|
export type ToastSeverity = 'success' | 'error' | 'info';
|
|
3
3
|
export interface ToastParams {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
4
|
+
/**
|
|
5
|
+
* The main message to display in the toast. Will be formatted based on template message.
|
|
6
|
+
*/
|
|
7
|
+
message: string;
|
|
8
|
+
/**
|
|
9
|
+
* Indicates whether the message is customized and does not follow the default message template.
|
|
10
|
+
* If true, custom formatting will be applied.
|
|
11
|
+
*/
|
|
12
|
+
customMessage?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The severity level of the toast message.
|
|
15
|
+
* Can be 'success', 'error', or 'info'.
|
|
16
|
+
*/
|
|
17
|
+
severity?: ToastSeverity;
|
|
18
|
+
/**
|
|
19
|
+
* The icon to display in the toast.
|
|
20
|
+
*/
|
|
21
|
+
icon?: WangsIcons;
|
|
22
|
+
/**
|
|
23
|
+
* The custom CSS class to apply to the icon.
|
|
24
|
+
*/
|
|
25
|
+
iconClass?: any;
|
|
26
|
+
/**
|
|
27
|
+
* The error object from a catch statement, used to provide additional details for error toasts.
|
|
28
|
+
* Accepts any type of error object.
|
|
29
|
+
*/
|
|
30
|
+
error?: unknown;
|
|
31
|
+
/**
|
|
32
|
+
* The duration for which the toast will be displayed, in milliseconds.
|
|
33
|
+
* Set to 0 to show the message infinitely.
|
|
34
|
+
*
|
|
35
|
+
* @default 3000 - 3 seconds
|
|
36
|
+
*/
|
|
37
|
+
life?: number;
|
|
38
|
+
/**
|
|
39
|
+
* The name of the message group to which this toast belongs.
|
|
40
|
+
*/
|
|
41
|
+
group?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Unique identifier of the toast message.
|
|
44
|
+
*/
|
|
45
|
+
messageId?: string;
|
|
46
46
|
}
|
|
47
47
|
export interface ToastMethod {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
add(params: ToastParams): void;
|
|
49
|
+
/**
|
|
50
|
+
* Clears the messages that belongs to the group.
|
|
51
|
+
* @param {string} group - Name of the message group.
|
|
52
|
+
*/
|
|
53
|
+
removeGroup(group: string): void;
|
|
54
|
+
removeAllGroups(): void;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* Configuration options for the `useToast` hook.
|
|
58
58
|
*/
|
|
59
59
|
export interface UseToastConfig {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
60
|
+
/**
|
|
61
|
+
* Default message templates for each severity level.
|
|
62
|
+
* Keys represent the severity, and values are the template strings.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* {
|
|
66
|
+
* severity: {
|
|
67
|
+
* success: 'Success, {message}',
|
|
68
|
+
* error: 'Error, {message} {additionalMessage}',
|
|
69
|
+
* info: 'Info, {message} {additionalMessage}',
|
|
70
|
+
* },
|
|
71
|
+
* additionalMessage: ' Silahkan cek kembali koneksi Anda.'
|
|
72
|
+
* }
|
|
73
|
+
*/
|
|
74
|
+
template?: {
|
|
75
|
+
severity?: Record<string, string>;
|
|
76
|
+
additionalMessage?: string;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Icons for each severity level.
|
|
80
|
+
* Keys represent the severity, and values are the corresponding icon identifiers.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* {
|
|
84
|
+
* success: 'emotion-happy-fill',
|
|
85
|
+
* error: 'emotion-unhappy-fill',
|
|
86
|
+
* }
|
|
87
|
+
*/
|
|
88
|
+
icons?: Record<string, WangsIcons>;
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
91
|
* Hook to create and manage toast notifications.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as XLSX from 'xlsx/types/index';
|
|
2
|
+
/**
|
|
3
|
+
* Dynamically loads SheetJS (XLSX) from a CDN to avoid bundling its large package size.
|
|
4
|
+
*
|
|
5
|
+
* SheetJS is a powerful but heavy library (~700KB+ uncompressed). To improve bundle performance and reduce initial
|
|
6
|
+
* JavaScript payload, we load it only when needed (on demand), directly from a CDN.
|
|
7
|
+
*
|
|
8
|
+
* The official CDN build is a UMD module that exposes the `XLSX` object on the global `window`.
|
|
9
|
+
* This function ensures it's loaded once and cached for subsequent use.
|
|
10
|
+
*
|
|
11
|
+
* @returns {Promise<XLSXType>} A promise that resolves with the XLSX object once the script is loaded.
|
|
12
|
+
*/
|
|
13
|
+
declare const loadSheetJSFromCDN: () => Promise<typeof XLSX>;
|
|
14
|
+
export default loadSheetJSFromCDN;
|
|
15
|
+
declare global {
|
|
16
|
+
interface Window {
|
|
17
|
+
XLSX: typeof XLSX;
|
|
18
|
+
}
|
|
19
|
+
}
|