@fewangsit/wangsvue-fats 1.0.0-alpha.6 → 1.0.0-alpha.60

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 (153) hide show
  1. package/components/animation/Animation.vue.d.ts +9 -1
  2. package/components/assetinfo/AssetInfo.vue.d.ts +34 -0
  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 +7 -3
  6. package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +1 -0
  7. package/components/buttonradio/ButtonRadio.vue.d.ts +1 -0
  8. package/components/buttonscan/ButtonScan.vue.d.ts +202 -0
  9. package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +44 -0
  10. package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +5 -2
  11. package/components/buttonsplit/ButtonSplit.vue.d.ts +352 -34
  12. package/components/buttonsync/ButtonSync.vue.d.ts +22 -0
  13. package/components/buttontoggle/ButtonToggle.vue.d.ts +1 -0
  14. package/components/buttonviewlog/ButtonViewLog.vue.d.ts +17 -0
  15. package/components/calendar/Calendar.vue.d.ts +32 -4
  16. package/components/card/Card.vue.d.ts +1 -0
  17. package/components/checkbox/Checkbox.vue.d.ts +1 -0
  18. package/components/datatable/DataTable.vue.d.ts +12 -4
  19. package/components/dialog/Dialog.vue.d.ts +1 -0
  20. package/components/dialogconfirm/DialogConfirm.vue.d.ts +1 -0
  21. package/components/dialogform/DialogForm.vue.d.ts +1 -0
  22. package/components/dialogprintqr/DialogPrintQR.vue.d.ts +18 -0
  23. package/components/dialogselecttree/DialogSelectTree.vue.d.ts +3 -2
  24. package/components/dialogselectuser/DialogSelectUser.vue.d.ts +102 -0
  25. package/components/dialogselectuser/options/columns.d.ts +3 -0
  26. package/components/dropdown/Dropdown.vue.d.ts +16 -4
  27. package/components/editor/Editor.vue.d.ts +1 -0
  28. package/components/fieldwrapper/FieldWrapper.vue.d.ts +12 -2
  29. package/components/fileupload/FileUpload.vue.d.ts +1 -0
  30. package/components/filtercontainer/FilterContainer.vue.d.ts +13 -8
  31. package/components/form/Form.vue.d.ts +2 -1
  32. package/components/icon/Icon.vue.d.ts +2 -0
  33. package/components/image/Image.vue.d.ts +8 -0
  34. package/components/imagecompressor/ImageCompressor.vue.d.ts +6 -0
  35. package/components/index.d.ts +21 -20
  36. package/components/inputcurrency/helpers/currency.helper.d.ts +5 -1
  37. package/components/inputemail/InputEmail.vue.d.ts +1 -0
  38. package/components/inputnumber/InputNumber.vue.d.ts +6 -0
  39. package/components/inputpassword/InputPassword.vue.d.ts +1 -0
  40. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +1 -0
  41. package/components/inputsearch/InputSearch.vue.d.ts +36 -0
  42. package/components/inputtext/InputText.vue.d.ts +2 -1
  43. package/components/inputurl/InputURL.vue.d.ts +4 -2
  44. package/components/invisiblefield/InvisibleField.vue.d.ts +32 -36
  45. package/components/languagedropdown/LanguageDropdown.vue.d.ts +5 -22
  46. package/components/litedropdown/LiteDropdown.vue.d.ts +5 -3
  47. package/components/loading/store/loading.store.d.ts +3 -3
  48. package/components/menu/Menu.vue.d.ts +2 -1
  49. package/components/multiselect/MultiSelect.vue.d.ts +7 -4
  50. package/components/overlaypanel/OverlayPanel.vue.d.ts +1 -0
  51. package/components/paginator/Paginator.vue.d.ts +285 -0
  52. package/components/tabmenu/TabMenu.vue.d.ts +2 -1
  53. package/components/textarea/Textarea.vue.d.ts +2 -1
  54. package/components/timeline/Timeline.vue.d.ts +7 -1
  55. package/components/toast/Toast.vue.d.ts +2 -1
  56. package/components/toggleswitch/ToggleSwitch.vue.d.ts +1 -0
  57. package/components/transactionroles/TransactionRoles.vue.d.ts +58 -0
  58. package/components/tree/Tree.vue.d.ts +6 -3
  59. package/components/tree/helpers/filterNodeKeys.helper.d.ts +8 -2
  60. package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +3 -1
  61. package/components/username/UserName.vue.d.ts +5 -0
  62. package/components/userwithicon/UserWithIcon.vue.d.ts +21 -0
  63. package/config/defaultProps.d.ts +1 -1
  64. package/config/index.d.ts +1 -1
  65. package/config/locale.d.ts +1 -1
  66. package/directives/focus.d.ts +1 -1
  67. package/event-bus/index.d.ts +55 -50
  68. package/event-bus/mitt.d.ts +29 -14
  69. package/main.d.ts +34 -2
  70. package/package.json +10 -6
  71. package/plugins/VueHtmlToPaper.d.ts +11 -0
  72. package/plugins/WangsVue.d.ts +266 -98
  73. package/plugins/formValidation.d.ts +15 -6
  74. package/plugins/i18n-extension.d.ts +4 -0
  75. package/plugins/i18n.d.ts +103 -0
  76. package/stats.html +4949 -0
  77. package/style.css +1 -1
  78. package/utils/date.util.d.ts +64 -31
  79. package/utils/formatTagCode.util.d.ts +1 -0
  80. package/utils/getSeverityByAssetStatus.util.d.ts +3 -0
  81. package/utils/index.d.ts +6 -20
  82. package/utils/listenSidebarChanges.util.d.ts +16 -0
  83. package/utils/object.util.d.ts +14 -3
  84. package/utils/role.util.d.ts +67 -1
  85. package/utils/toast.util.d.ts +78 -78
  86. package/wangsvue-fats.js +54029 -0
  87. package/wangsvue-fats.system.js +200 -267
  88. package/assets/json/currencies.json.d.ts +0 -1068
  89. package/assets/json/supported-official-langs.json.d.ts +0 -530
  90. package/assets/lottie/admin/loading-page.lottie +0 -0
  91. package/assets/lottie/admin/loading-table.lottie +0 -0
  92. package/assets/lottie/admin/no-data.lottie +0 -0
  93. package/assets/lottie/supplyasset/loading-page.lottie +0 -0
  94. package/assets/lottie/supplyasset/loading-table.lottie +0 -0
  95. package/assets/lottie/supplyasset/no-data.lottie +0 -0
  96. package/assets/lottie/workspace/loading-page.lottie +0 -0
  97. package/assets/lottie/workspace/loading-plane.lottie +0 -0
  98. package/assets/lottie/workspace/loading-table.lottie +0 -0
  99. package/assets/lottie/workspace/no-data.lottie +0 -0
  100. package/build-entry.d.ts +0 -14
  101. package/components/buttonsplit/ButtonSplit.d.ts +0 -350
  102. package/components/calendar/BaseCalendar.vue.d.ts +0 -86
  103. package/components/changelog/Changelog.vue.d.ts +0 -158
  104. package/components/changelogpage/ChangelogFilter.vue.d.ts +0 -16
  105. package/components/changelogpage/ChangelogPage.vue.d.ts +0 -128
  106. package/components/codesnippet/CodeSnippet.vue.d.ts +0 -14
  107. package/components/customcolumn/ColumnList.vue.d.ts +0 -27
  108. package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -12
  109. package/components/datatable/MultiRow.vue.d.ts +0 -16
  110. package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
  111. package/components/datatable/helpers/filter.helper.d.ts +0 -28
  112. package/components/datatable/helpers/index.d.ts +0 -3
  113. package/components/datatable/helpers/readConfig.helper.d.ts +0 -2
  114. package/components/datatable/store/dataTable.store.d.ts +0 -22
  115. package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -92
  116. package/components/editor/EditorButton.vue.d.ts +0 -15
  117. package/components/editor/MentionList.vue.d.ts +0 -35
  118. package/components/editor/MentionSection.vue.d.ts +0 -92
  119. package/components/editor/codeSnippetExtension.d.ts +0 -3
  120. package/components/editor/mentionSectionExtension.d.ts +0 -3
  121. package/components/editor/suggestion.d.ts +0 -2
  122. package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -5
  123. package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
  124. package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -3
  125. package/components/gallerypreview/GalleryPreview.vue.d.ts +0 -31
  126. package/components/helpers/convertToArrayClass.helper.d.ts +0 -2
  127. package/components/helpers/index.d.ts +0 -2
  128. package/components/helpers/label.d.ts +0 -15
  129. package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -36
  130. package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -30
  131. package/components/inputgroup/InputGroup.vue.d.ts +0 -141
  132. package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
  133. package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +0 -18
  134. package/components/menu/helpers/filterMenu.helper.d.ts +0 -12
  135. package/components/menu/helpers/index.d.ts +0 -1
  136. package/components/menuitem/MenuItem.vue.d.ts +0 -19
  137. package/components/progressbar/ProgressBar.vue.d.ts +0 -72
  138. package/components/quickfilter/QuickFilter.vue.d.ts +0 -25
  139. package/components/timeline/TimelineContentByType.vue.d.ts +0 -16
  140. package/components/tooltipspan/TooltipSpan.vue.d.ts +0 -20
  141. package/components/tree/helpers/index.d.ts +0 -3
  142. package/components/usergroup/UserGroup.vue.d.ts +0 -57
  143. package/components/validatormessage/ValidatorMessage.vue.d.ts +0 -12
  144. package/plugins/translation.d.ts +0 -84
  145. package/types/options.type.d.ts +0 -16
  146. package/utils/addAttachment.util.d.ts +0 -43
  147. package/utils/exportToExcel.util.d.ts +0 -20
  148. package/utils/filterOptions.util.d.ts +0 -3
  149. package/utils/genPlaceholder.util.d.ts +0 -8
  150. package/utils/getAttachmentIcon.util.d.ts +0 -8
  151. package/utils/mergePropsWithDefaults.util.d.ts +0 -20
  152. package/utils/textFormatter.util.d.ts +0 -17
  153. package/wangsvue-fats.es.js +0 -133180
@@ -1,10 +1,19 @@
1
+ import {
2
+ FieldContext,
3
+ FieldOptions,
4
+ FormContext as VeeFormContext,
5
+ RuleExpression,
6
+ } from 'vee-validate';
1
7
  import { MaybeRef, MaybeRefOrGetter } from 'vue';
2
- import { FormContext as VeeFormContext, FieldContext, RuleExpression, FieldOptions } from 'vee-validate';
3
8
  export interface FormContext<T> {
4
- values: T;
5
- handleSubmit: VeeFormContext['handleSubmit'];
6
- setValues: VeeFormContext['setValues'];
7
- setFieldValue: VeeFormContext['setFieldValue'];
9
+ values: T;
10
+ handleSubmit: VeeFormContext['handleSubmit'];
11
+ setValues: VeeFormContext['setValues'];
12
+ setFieldValue: VeeFormContext['setFieldValue'];
8
13
  }
9
14
  export declare const useForm: <T>() => FormContext<T>;
10
- export declare const useField: <T>(path: MaybeRefOrGetter<string>, rules?: MaybeRef<RuleExpression<T>>, opts?: Partial<FieldOptions<T>>) => FieldContext<T>;
15
+ export declare const useField: <T>(
16
+ path: MaybeRefOrGetter<string>,
17
+ rules?: MaybeRef<RuleExpression<T>>,
18
+ opts?: Partial<FieldOptions<T>>,
19
+ ) => FieldContext<T>;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ install: (app: import('vue').App) => void;
3
+ };
4
+ export default _default;
@@ -0,0 +1,103 @@
1
+ import { AxiosResponse } from 'axios';
2
+ import { App, Ref } from 'vue';
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
+ }
19
+ export interface I18n {
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;
51
+ }
52
+ type MessageMap = Record<string, string>;
53
+ export interface I18nService {
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>;
84
+ }
85
+ export declare const useI18n: () => I18n;
86
+ declare const i18n: {
87
+ install: (app: App) => void;
88
+ };
89
+ export declare const createI18nWithExtension: (
90
+ service: I18nService,
91
+ ) => typeof i18n;
92
+ export default i18n;
93
+ declare module 'vue' {
94
+ interface ComponentCustomProperties {
95
+ $i18n: I18n;
96
+ $t: I18n['t'];
97
+ }
98
+ }
99
+ declare global {
100
+ interface Window {
101
+ i18n: I18n;
102
+ }
103
+ }