@fewangsit/wangsvue-fats 1.0.0-alpha.15 → 1.0.0-alpha.151

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.
Files changed (169) hide show
  1. package/components/animation/Animation.vue.d.ts +9 -1
  2. package/components/assetinfo/AssetInfo.vue.d.ts +15 -16
  3. package/components/badgegroup/BadgeGroup.vue.d.ts +3 -1
  4. package/components/basetree/BaseTree.vue.d.ts +6 -1
  5. package/components/button/Button.vue.d.ts +3 -2
  6. package/components/buttonaddbyscan/ButtonAddByScan.vue.d.ts +40 -0
  7. package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +1 -0
  8. package/components/buttondownload/ButtonDownload.vue.d.ts +31 -0
  9. package/components/buttonradio/ButtonRadio.vue.d.ts +1 -0
  10. package/components/buttonscan/ButtonScan.vue.d.ts +3 -2
  11. package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +46 -0
  12. package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +2 -1
  13. package/components/buttonsplit/ButtonSplit.vue.d.ts +352 -34
  14. package/components/buttonsync/ButtonSync.vue.d.ts +13 -1
  15. package/components/buttontoggle/ButtonToggle.vue.d.ts +1 -0
  16. package/components/buttonviewlog/ButtonViewLog.vue.d.ts +17 -0
  17. package/components/calendar/Calendar.vue.d.ts +32 -4
  18. package/components/card/Card.vue.d.ts +1 -0
  19. package/components/carousel/Carousel.vue.d.ts +28 -0
  20. package/components/checkbox/Checkbox.vue.d.ts +1 -0
  21. package/components/datatable/DataTable.vue.d.ts +14 -4
  22. package/components/dialog/Dialog.vue.d.ts +4 -3
  23. package/components/dialogassetnamedetail/DialogAssetNameDetail.vue.d.ts +46 -0
  24. package/components/dialogassetnamedetail/options/columns.d.ts +2 -0
  25. package/components/dialogassetnamedetail/options/filter.d.ts +2 -0
  26. package/components/dialogconfirm/DialogConfirm.vue.d.ts +2 -1
  27. package/components/dialogform/DialogForm.vue.d.ts +3 -2
  28. package/components/dialoglinkedasset/DialogLinkedAsset.vue.d.ts +106 -0
  29. package/components/dialogprintqr/DialogPrintQR.vue.d.ts +18 -0
  30. package/components/dialogreportdamage/DialogReportDamage.vue.d.ts +34 -0
  31. package/components/dialogreportmissing/DialogReportMissing.vue.d.ts +33 -0
  32. package/components/dialogreporttag/DialogReportTag.vue.d.ts +31 -0
  33. package/components/dialogselecttree/DialogSelectTree.vue.d.ts +3 -2
  34. package/components/dialogselectuser/DialogSelectUser.vue.d.ts +102 -0
  35. package/components/dialogselectuser/options/columns.d.ts +3 -0
  36. package/components/dialogtransferlog/DialogTransferLog.vue.d.ts +16 -0
  37. package/components/dropdown/Dropdown.vue.d.ts +28 -4
  38. package/components/editor/Editor.vue.d.ts +1 -0
  39. package/components/fieldwrapper/FieldWrapper.vue.d.ts +19 -2
  40. package/components/fileupload/FileUpload.vue.d.ts +1 -0
  41. package/components/filtercontainer/FilterContainer.vue.d.ts +104 -69
  42. package/components/form/Form.vue.d.ts +4 -1
  43. package/components/icon/Icon.vue.d.ts +4 -0
  44. package/components/image/Image.vue.d.ts +8 -0
  45. package/components/imagecompressor/ImageCompressor.vue.d.ts +14 -0
  46. package/components/index.d.ts +34 -22
  47. package/components/inputcurrency/helpers/currency.helper.d.ts +5 -1
  48. package/components/inputemail/InputEmail.vue.d.ts +1 -0
  49. package/components/inputnumber/InputNumber.vue.d.ts +6 -0
  50. package/components/inputotp/InputOtp.vue.d.ts +3 -0
  51. package/components/inputpassword/InputPassword.vue.d.ts +1 -0
  52. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +1 -0
  53. package/components/inputsearch/InputSearch.vue.d.ts +7 -1
  54. package/components/inputtext/InputText.vue.d.ts +2 -1
  55. package/components/inputurl/InputURL.vue.d.ts +4 -2
  56. package/components/invisiblefield/InvisibleField.vue.d.ts +32 -36
  57. package/components/languagedropdown/LanguageDropdown.vue.d.ts +5 -19
  58. package/components/litedropdown/LiteDropdown.vue.d.ts +5 -3
  59. package/components/loading/store/loading.store.d.ts +3 -3
  60. package/components/menu/Menu.vue.d.ts +2 -1
  61. package/components/multiselect/MultiSelect.vue.d.ts +7 -4
  62. package/components/overlaypanel/OverlayPanel.vue.d.ts +1 -0
  63. package/components/paginator/Paginator.vue.d.ts +285 -0
  64. package/components/steps/Steps.vue.d.ts +20 -0
  65. package/components/tabmenu/TabMenu.vue.d.ts +7 -191
  66. package/components/tagtype/TagType.vue.d.ts +5 -0
  67. package/components/textarea/Textarea.vue.d.ts +2 -1
  68. package/components/timeline/Timeline.vue.d.ts +21 -2
  69. package/components/toast/Toast.vue.d.ts +2 -1
  70. package/components/toggleswitch/ToggleSwitch.vue.d.ts +1 -0
  71. package/components/transactionroles/TransactionRoles.vue.d.ts +58 -0
  72. package/components/tree/Tree.vue.d.ts +6 -3
  73. package/components/tree/helpers/filterNodeKeys.helper.d.ts +8 -2
  74. package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +3 -1
  75. package/components/ts-helpers.d.ts +8 -0
  76. package/components/username/UserName.vue.d.ts +6 -1
  77. package/components/userwithicon/UserWithIcon.vue.d.ts +2 -2
  78. package/config/defaultProps.d.ts +1 -1
  79. package/config/index.d.ts +1 -1
  80. package/config/locale.d.ts +1 -1
  81. package/directives/focus.d.ts +1 -1
  82. package/event-bus/index.d.ts +59 -53
  83. package/event-bus/mitt.d.ts +29 -14
  84. package/main.d.ts +34 -2
  85. package/package.json +16 -8
  86. package/plugins/VueHtmlToPaper.d.ts +11 -0
  87. package/plugins/WangsVue.d.ts +278 -98
  88. package/plugins/formValidation.d.ts +16 -6
  89. package/plugins/i18n-extension.d.ts +1 -1
  90. package/plugins/i18n.d.ts +90 -67
  91. package/stats.html +4949 -0
  92. package/style.css +1 -1
  93. package/utils/date.util.d.ts +64 -31
  94. package/utils/exportToExcel.util.d.ts +23 -16
  95. package/utils/formatTagCode.util.d.ts +1 -0
  96. package/utils/getStatusSeverity.util.d.ts +30 -0
  97. package/utils/index.d.ts +8 -21
  98. package/utils/isBasic.util.d.ts +1 -0
  99. package/utils/listenSidebarChanges.util.d.ts +14 -9
  100. package/utils/object.util.d.ts +14 -3
  101. package/utils/role.util.d.ts +63 -26
  102. package/utils/toast.util.d.ts +78 -78
  103. package/utils/xlsx.util.d.ts +19 -0
  104. package/wangsvue-fats.js +56981 -0
  105. package/wangsvue-fats.system.js +199 -281
  106. package/assets/json/currencies.json.d.ts +0 -1068
  107. package/assets/lottie/admin/loading-page.lottie +0 -0
  108. package/assets/lottie/admin/loading-table.lottie +0 -0
  109. package/assets/lottie/admin/no-data.lottie +0 -0
  110. package/assets/lottie/supplyasset/loading-page.lottie +0 -0
  111. package/assets/lottie/supplyasset/loading-table.lottie +0 -0
  112. package/assets/lottie/supplyasset/no-data.lottie +0 -0
  113. package/assets/lottie/workspace/loading-page.lottie +0 -0
  114. package/assets/lottie/workspace/loading-plane.lottie +0 -0
  115. package/assets/lottie/workspace/loading-table.lottie +0 -0
  116. package/assets/lottie/workspace/no-data.lottie +0 -0
  117. package/build-entry.d.ts +0 -14
  118. package/components/buttonscan/helpers/getErrorCode.helper.d.ts +0 -3
  119. package/components/buttonscan/helpers/index.d.ts +0 -1
  120. package/components/buttonscan/workers/scanner.worker.d.ts +0 -1
  121. package/components/buttonsplit/ButtonSplit.d.ts +0 -350
  122. package/components/calendar/BaseCalendar.vue.d.ts +0 -86
  123. package/components/codesnippet/CodeSnippet.vue.d.ts +0 -14
  124. package/components/customcolumn/ColumnList.vue.d.ts +0 -27
  125. package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -12
  126. package/components/datatable/MultiRow.vue.d.ts +0 -16
  127. package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
  128. package/components/datatable/helpers/filter.helper.d.ts +0 -28
  129. package/components/datatable/helpers/index.d.ts +0 -3
  130. package/components/datatable/helpers/readConfig.helper.d.ts +0 -2
  131. package/components/datatable/store/dataTable.store.d.ts +0 -22
  132. package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -92
  133. package/components/editor/EditorButton.vue.d.ts +0 -15
  134. package/components/editor/MentionList.vue.d.ts +0 -35
  135. package/components/editor/MentionSection.vue.d.ts +0 -92
  136. package/components/editor/codeSnippetExtension.d.ts +0 -3
  137. package/components/editor/mentionSectionExtension.d.ts +0 -3
  138. package/components/editor/suggestion.d.ts +0 -2
  139. package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -5
  140. package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
  141. package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -3
  142. package/components/gallerypreview/GalleryPreview.vue.d.ts +0 -31
  143. package/components/hardwaresync/store/device.store.d.ts +0 -36
  144. package/components/helpers/convertToArrayClass.helper.d.ts +0 -2
  145. package/components/helpers/index.d.ts +0 -2
  146. package/components/helpers/label.d.ts +0 -15
  147. package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -36
  148. package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -30
  149. package/components/inputgroup/InputGroup.vue.d.ts +0 -141
  150. package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
  151. package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +0 -18
  152. package/components/menu/helpers/filterMenu.helper.d.ts +0 -12
  153. package/components/menu/helpers/index.d.ts +0 -1
  154. package/components/menuitem/MenuItem.vue.d.ts +0 -19
  155. package/components/progressbar/ProgressBar.vue.d.ts +0 -72
  156. package/components/quickfilter/QuickFilter.vue.d.ts +0 -25
  157. package/components/timeline/TimelineContentByType.vue.d.ts +0 -16
  158. package/components/tooltipspan/TooltipSpan.vue.d.ts +0 -20
  159. package/components/tree/helpers/index.d.ts +0 -3
  160. package/components/usergroup/UserGroup.vue.d.ts +0 -57
  161. package/types/options.type.d.ts +0 -16
  162. package/utils/addAttachment.util.d.ts +0 -43
  163. package/utils/filterOptions.util.d.ts +0 -3
  164. package/utils/genPlaceholder.util.d.ts +0 -8
  165. package/utils/getAttachmentIcon.util.d.ts +0 -8
  166. package/utils/getSeverityByAssetStatus.util.d.ts +0 -3
  167. package/utils/mergePropsWithDefaults.util.d.ts +0 -20
  168. package/utils/textFormatter.util.d.ts +0 -17
  169. package/wangsvue-fats.es.js +0 -133778
package/plugins/i18n.d.ts CHANGED
@@ -1,80 +1,103 @@
1
- import { App, Ref } from 'vue';
2
1
  import { AxiosResponse } from 'axios';
3
- import { LanguageOption } from '../components/languagedropdown/LanguageDropdown.vue.d';
2
+ import { App, Ref } from 'vue';
4
3
  export type Locale = string;
4
+ export interface LanguageOption {
5
+ /**
6
+ * ISO 639-1 language code (e.g., "en" for English, "fr" for French).
7
+ */
8
+ isoCode?: string;
9
+ /**
10
+ * The name of the language in English (e.g., "English", "Français").
11
+ */
12
+ name: string;
13
+ /**
14
+ * The URL of the country's flag image.
15
+ * Flags are sourced from https://flagcdn.com and are typically in SVG format for high-quality resolution.
16
+ */
17
+ flag?: string;
18
+ }
5
19
  export interface I18n {
6
- /**
7
- * Locale message translation
8
- *
9
- * @param key - The translation key
10
- * @param params - A values of named interpolation
11
- * @param args - Positional interpolation values
12
- *
13
- * @returns translation message
14
- * @example `t('Hello {user}!', { user: 'John Doe' })` - returns: 'Hello John Doe!'
15
- * @example `t('Hello %s! I am %s.', "John Doe", "Peter Smith")` - returns: 'Hello John Doe! I am Peter Smith.'
16
- */
17
- t: {
18
- (key: string, params: Record<string, any>): string;
19
- (key: string, ...args: (string | number | boolean)[]): string;
20
- };
21
- /**
22
- * Change the locale dynamically
23
- *
24
- * @param newLocale - The locale to switch to
25
- */
26
- setLocale: (newLocale: Locale) => Promise<void>;
27
- /**
28
- * Get the current locale
29
- *
30
- * @returns Current locale
31
- */
32
- locale: Ref<Locale>;
33
- /**
34
- * Service methods handle fetch requests
35
- */
36
- service?: I18nService;
20
+ /**
21
+ * Locale message translation
22
+ *
23
+ * @param key - The translation key
24
+ * @param params - A values of named interpolation
25
+ * @param args - Positional interpolation values
26
+ *
27
+ * @returns translation message
28
+ * @example `t('Hello {user}!', { user: 'John Doe' })` - returns: 'Hello John Doe!'
29
+ * @example `t('Hello %s! I am %s.', "John Doe", "Peter Smith")` - returns: 'Hello John Doe! I am Peter Smith.'
30
+ */
31
+ t: {
32
+ (key: string, params: Record<string, any>): string;
33
+ (key: string, ...args: (string | number | boolean)[]): string;
34
+ };
35
+ /**
36
+ * Change the locale dynamically
37
+ *
38
+ * @param newLocale - The locale to switch to
39
+ */
40
+ setLocale: (newLocale: Locale) => Promise<void>;
41
+ /**
42
+ * Get the current locale
43
+ *
44
+ * @returns Current locale
45
+ */
46
+ locale: Ref<Locale>;
47
+ /**
48
+ * Service methods handle fetch requests
49
+ */
50
+ service?: I18nService;
37
51
  }
38
52
  type MessageMap = Record<string, string>;
39
53
  export interface I18nService {
40
- /**
41
- * Fetch all translation messages for a specific locale.
42
- * @param locale The locale code (e.g., 'en', 'id').
43
- * @returns A promise resolving to a key-value record of messages.
44
- */
45
- getMessages(locale: string): Promise<AxiosResponse<{
46
- data: MessageMap;
47
- }>>;
48
- /**
49
- * Fetch all available lang options for LanguageDropdown and LanguageSwitcher
50
- *
51
- * @returns Promise Array of options
52
- */
53
- getLanguageOptions(): Promise<LanguageOption[]>;
54
- /**
55
- * Fetch single lang option meta data
56
- *
57
- * @param locale The locale code (e.g., 'en', 'id').
58
- * @returns Promise LanguageMeta
59
- */
60
- getLanguageOptionMeta(locale: string): Promise<LanguageOption>;
61
- /**
62
- * Translate a specific text to the target locale.
63
- * @param key Unique translation key.
64
- * @param locale Target locale code.
65
- * @returns A promise resolving to the translated string.
66
- */
67
- translateText(key: string, locale: string): Promise<string>;
54
+ /**
55
+ * Fetch all translation messages for a specific locale.
56
+ * @param locale The locale code (e.g., 'en', 'id').
57
+ * @returns A promise resolving to a key-value record of messages.
58
+ */
59
+ getMessages(locale: string): Promise<
60
+ AxiosResponse<{
61
+ data: MessageMap;
62
+ }>
63
+ >;
64
+ /**
65
+ * Fetch all available lang options for LanguageDropdown and LanguageSwitcher
66
+ *
67
+ * @returns Promise Array of options
68
+ */
69
+ getLanguageOptions(): Promise<LanguageOption[]>;
70
+ /**
71
+ * Fetch single lang option meta data
72
+ *
73
+ * @param locale The locale code (e.g., 'en', 'id').
74
+ * @returns Promise LanguageMeta
75
+ */
76
+ getLanguageOptionMeta(locale: string): Promise<LanguageOption>;
77
+ /**
78
+ * Translate a specific text to the target locale.
79
+ * @param key Unique translation key.
80
+ * @param locale Target locale code.
81
+ * @returns A promise resolving to the translated string.
82
+ */
83
+ translateText(key: string, locale: string): Promise<string>;
68
84
  }
69
85
  export declare const useI18n: () => I18n;
70
86
  declare const i18n: {
71
- install: (app: App) => void;
87
+ install: (app: App) => void;
72
88
  };
73
- export declare const createI18nWithExtension: (service: I18nService) => typeof i18n;
89
+ export declare const createI18nWithExtension: (
90
+ service: I18nService,
91
+ ) => typeof i18n;
74
92
  export default i18n;
75
93
  declare module 'vue' {
76
- interface ComponentCustomProperties {
77
- $i18n: I18n;
78
- $t: I18n['t'];
79
- }
94
+ interface ComponentCustomProperties {
95
+ $i18n: I18n;
96
+ $t: I18n['t'];
97
+ }
98
+ }
99
+ declare global {
100
+ interface Window {
101
+ i18n: I18n;
102
+ }
80
103
  }