@fewangsit/wangsvue-fats 1.0.0-alpha.8 → 1.0.0-alpha.80

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 (155) hide show
  1. package/components/animation/Animation.vue.d.ts +9 -1
  2. package/components/assetinfo/AssetInfo.vue.d.ts +39 -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 +4 -3
  20. package/components/dialogassetnamedetail/DialogAssetNameDetail.vue.d.ts +46 -0
  21. package/components/dialogassetnamedetail/options/columns.d.ts +2 -0
  22. package/components/dialogassetnamedetail/options/filter.d.ts +2 -0
  23. package/components/dialogconfirm/DialogConfirm.vue.d.ts +1 -0
  24. package/components/dialogform/DialogForm.vue.d.ts +3 -2
  25. package/components/dialogprintqr/DialogPrintQR.vue.d.ts +18 -0
  26. package/components/dialogreportdamage/DialogReportDamage.vue.d.ts +34 -0
  27. package/components/dialogreportmissing/DialogReportMissing.vue.d.ts +26 -0
  28. package/components/dialogreporttag/DialogReportTag.vue.d.ts +31 -0
  29. package/components/dialogselecttree/DialogSelectTree.vue.d.ts +3 -2
  30. package/components/dialogselectuser/DialogSelectUser.vue.d.ts +102 -0
  31. package/components/dialogselectuser/options/columns.d.ts +3 -0
  32. package/components/dropdown/Dropdown.vue.d.ts +23 -4
  33. package/components/editor/Editor.vue.d.ts +1 -0
  34. package/components/fieldwrapper/FieldWrapper.vue.d.ts +12 -2
  35. package/components/fileupload/FileUpload.vue.d.ts +1 -0
  36. package/components/filtercontainer/FilterContainer.vue.d.ts +13 -8
  37. package/components/form/Form.vue.d.ts +2 -1
  38. package/components/icon/Icon.vue.d.ts +3 -0
  39. package/components/image/Image.vue.d.ts +8 -0
  40. package/components/imagecompressor/ImageCompressor.vue.d.ts +6 -0
  41. package/components/index.d.ts +26 -18
  42. package/components/inputcurrency/helpers/currency.helper.d.ts +5 -1
  43. package/components/inputemail/InputEmail.vue.d.ts +1 -0
  44. package/components/inputnumber/InputNumber.vue.d.ts +6 -0
  45. package/components/inputpassword/InputPassword.vue.d.ts +1 -0
  46. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +1 -0
  47. package/components/inputsearch/InputSearch.vue.d.ts +36 -0
  48. package/components/inputtext/InputText.vue.d.ts +2 -1
  49. package/components/inputurl/InputURL.vue.d.ts +4 -2
  50. package/components/invisiblefield/InvisibleField.vue.d.ts +32 -36
  51. package/components/languagedropdown/LanguageDropdown.vue.d.ts +5 -19
  52. package/components/litedropdown/LiteDropdown.vue.d.ts +5 -3
  53. package/components/loading/store/loading.store.d.ts +3 -3
  54. package/components/menu/Menu.vue.d.ts +2 -1
  55. package/components/multiselect/MultiSelect.vue.d.ts +7 -4
  56. package/components/overlaypanel/OverlayPanel.vue.d.ts +1 -0
  57. package/components/paginator/Paginator.vue.d.ts +285 -0
  58. package/components/tabmenu/TabMenu.vue.d.ts +6 -190
  59. package/components/tagtype/TagType.vue.d.ts +26 -0
  60. package/components/textarea/Textarea.vue.d.ts +2 -1
  61. package/components/timeline/Timeline.vue.d.ts +14 -2
  62. package/components/toast/Toast.vue.d.ts +2 -1
  63. package/components/toggleswitch/ToggleSwitch.vue.d.ts +1 -0
  64. package/components/transactionroles/TransactionRoles.vue.d.ts +58 -0
  65. package/components/tree/Tree.vue.d.ts +6 -3
  66. package/components/tree/helpers/filterNodeKeys.helper.d.ts +8 -2
  67. package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +3 -1
  68. package/components/username/UserName.vue.d.ts +6 -1
  69. package/components/userwithicon/UserWithIcon.vue.d.ts +21 -0
  70. package/config/defaultProps.d.ts +1 -1
  71. package/config/index.d.ts +1 -1
  72. package/config/locale.d.ts +1 -1
  73. package/directives/focus.d.ts +1 -1
  74. package/event-bus/index.d.ts +55 -50
  75. package/event-bus/mitt.d.ts +29 -14
  76. package/main.d.ts +34 -2
  77. package/package.json +10 -6
  78. package/plugins/VueHtmlToPaper.d.ts +11 -0
  79. package/plugins/WangsVue.d.ts +266 -98
  80. package/plugins/formValidation.d.ts +15 -6
  81. package/plugins/i18n-extension.d.ts +1 -1
  82. package/plugins/i18n.d.ts +89 -113
  83. package/stats.html +4949 -0
  84. package/style.css +1 -1
  85. package/utils/date.util.d.ts +64 -31
  86. package/utils/formatTagCode.util.d.ts +1 -0
  87. package/utils/getSeverityByAssetStatus.util.d.ts +3 -0
  88. package/utils/index.d.ts +6 -20
  89. package/utils/listenSidebarChanges.util.d.ts +16 -0
  90. package/utils/object.util.d.ts +14 -3
  91. package/utils/role.util.d.ts +67 -1
  92. package/utils/toast.util.d.ts +78 -78
  93. package/wangsvue-fats.js +55844 -0
  94. package/wangsvue-fats.system.js +204 -267
  95. package/assets/json/currencies.json.d.ts +0 -1068
  96. package/assets/lottie/admin/loading-page.lottie +0 -0
  97. package/assets/lottie/admin/loading-table.lottie +0 -0
  98. package/assets/lottie/admin/no-data.lottie +0 -0
  99. package/assets/lottie/supplyasset/loading-page.lottie +0 -0
  100. package/assets/lottie/supplyasset/loading-table.lottie +0 -0
  101. package/assets/lottie/supplyasset/no-data.lottie +0 -0
  102. package/assets/lottie/workspace/loading-page.lottie +0 -0
  103. package/assets/lottie/workspace/loading-plane.lottie +0 -0
  104. package/assets/lottie/workspace/loading-table.lottie +0 -0
  105. package/assets/lottie/workspace/no-data.lottie +0 -0
  106. package/build-entry.d.ts +0 -14
  107. package/components/buttonsplit/ButtonSplit.d.ts +0 -350
  108. package/components/calendar/BaseCalendar.vue.d.ts +0 -86
  109. package/components/codesnippet/CodeSnippet.vue.d.ts +0 -14
  110. package/components/customcolumn/ColumnList.vue.d.ts +0 -27
  111. package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -12
  112. package/components/datatable/MultiRow.vue.d.ts +0 -16
  113. package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
  114. package/components/datatable/helpers/filter.helper.d.ts +0 -28
  115. package/components/datatable/helpers/index.d.ts +0 -3
  116. package/components/datatable/helpers/readConfig.helper.d.ts +0 -2
  117. package/components/datatable/store/dataTable.store.d.ts +0 -22
  118. package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -92
  119. package/components/editor/EditorButton.vue.d.ts +0 -15
  120. package/components/editor/MentionList.vue.d.ts +0 -35
  121. package/components/editor/MentionSection.vue.d.ts +0 -92
  122. package/components/editor/codeSnippetExtension.d.ts +0 -3
  123. package/components/editor/mentionSectionExtension.d.ts +0 -3
  124. package/components/editor/suggestion.d.ts +0 -2
  125. package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -5
  126. package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
  127. package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -3
  128. package/components/gallerypreview/GalleryPreview.vue.d.ts +0 -31
  129. package/components/helpers/convertToArrayClass.helper.d.ts +0 -2
  130. package/components/helpers/index.d.ts +0 -2
  131. package/components/helpers/label.d.ts +0 -15
  132. package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -36
  133. package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -30
  134. package/components/inputgroup/InputGroup.vue.d.ts +0 -141
  135. package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
  136. package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +0 -18
  137. package/components/menu/helpers/filterMenu.helper.d.ts +0 -12
  138. package/components/menu/helpers/index.d.ts +0 -1
  139. package/components/menuitem/MenuItem.vue.d.ts +0 -19
  140. package/components/progressbar/ProgressBar.vue.d.ts +0 -72
  141. package/components/quickfilter/QuickFilter.vue.d.ts +0 -25
  142. package/components/timeline/TimelineContentByType.vue.d.ts +0 -16
  143. package/components/tooltipspan/TooltipSpan.vue.d.ts +0 -20
  144. package/components/tree/helpers/index.d.ts +0 -3
  145. package/components/usergroup/UserGroup.vue.d.ts +0 -57
  146. package/components/validatormessage/ValidatorMessage.vue.d.ts +0 -12
  147. package/types/options.type.d.ts +0 -16
  148. package/utils/addAttachment.util.d.ts +0 -43
  149. package/utils/exportToExcel.util.d.ts +0 -20
  150. package/utils/filterOptions.util.d.ts +0 -3
  151. package/utils/genPlaceholder.util.d.ts +0 -8
  152. package/utils/getAttachmentIcon.util.d.ts +0 -8
  153. package/utils/mergePropsWithDefaults.util.d.ts +0 -20
  154. package/utils/textFormatter.util.d.ts +0 -17
  155. package/wangsvue-fats.es.js +0 -132301
@@ -1,4 +1,4 @@
1
- import { ClassComponent } from 'lib/components/ts-helpers.d';
1
+ import { ClassComponent } from '../../components/ts-helpers.d';
2
2
 
3
3
  export interface AnimationDefaultConfig {
4
4
  libPath: 'supplyasset' | 'workspace' | 'admin';
@@ -6,6 +6,14 @@ export interface AnimationDefaultConfig {
6
6
 
7
7
  export interface AnimationProps {
8
8
  animation: 'no-data' | 'loading-plane' | 'loading-page' | 'loading-table';
9
+ /**
10
+ * @default true
11
+ */
12
+ autoplay?: boolean;
13
+ /**
14
+ * @default true
15
+ */
16
+ loop?: boolean;
9
17
  }
10
18
 
11
19
  /**
@@ -0,0 +1,39 @@
1
+ import {
2
+ ClassComponent,
3
+ GlobalComponentConstructor,
4
+ } from '../../components/ts-helpers.d';
5
+
6
+ type Field = 'brand' | 'model' | 'group' | 'status';
7
+
8
+ export interface AssetInfoProps {
9
+ id: string;
10
+ /**
11
+ * Specifys the field/information to be fisplayed
12
+ */
13
+ fields?: Field[];
14
+ /**
15
+ * The Transaction Detail contains the asset infomation.
16
+ *
17
+ * It will prevent dynamic fetch of asset information.
18
+ */
19
+ transactionDetail?: Record<string, unknown>;
20
+
21
+ /**
22
+ * @default true
23
+ */
24
+ useNfc?: boolean;
25
+ }
26
+
27
+ declare class AssetInfo extends ClassComponent<
28
+ AssetInfoProps,
29
+ unknown,
30
+ unknown
31
+ > {}
32
+
33
+ declare module 'vue' {
34
+ export interface GlobalComponents {
35
+ AssetInfo: GlobalComponentConstructor<AssetInfo>;
36
+ }
37
+ }
38
+
39
+ export default AssetInfo;
@@ -1,5 +1,7 @@
1
1
  import { Slot } from 'vue';
2
- import { BadgeProps } from 'lib/components/badge/Badge.vue.d';
2
+
3
+ import { BadgeProps } from '../../components/badge/Badge.vue.d';
4
+
3
5
  import { ClassComponent, HintedString } from '../ts-helpers.d';
4
6
 
5
7
  export type ObjectBadge = {
@@ -8,7 +8,9 @@
8
8
  *
9
9
  */
10
10
  import { VNode } from 'vue';
11
+
11
12
  import { ComponentHooks } from '../basecomponent';
13
+ import { MenuItem } from '../menuitem';
12
14
  import { PassThroughOptions } from '../passthrough';
13
15
  import {
14
16
  ClassComponent,
@@ -16,7 +18,6 @@ import {
16
18
  HintedString,
17
19
  PassThrough,
18
20
  } from '../ts-helpers';
19
- import { MenuItem } from '../menuitem';
20
21
 
21
22
  export declare type TreePassThroughOptionType<T = any> =
22
23
  | TreePassThroughAttributes
@@ -350,6 +351,10 @@ export interface BaseTreeProps {
350
351
  * @defaultValue false
351
352
  */
352
353
  loading?: boolean | undefined;
354
+ /**
355
+ * Defines the group tree to showing disposable groups.
356
+ */
357
+ showDisposableGroups?: boolean;
353
358
  /**
354
359
  * Icon to display when tree is loading.
355
360
  * @deprecated since v3.27.0. Use 'loadingicon' slot.
@@ -1,8 +1,12 @@
1
+ import { TooltipOptions } from 'primevue/tooltip';
1
2
  import { ButtonHTMLAttributes, VNode } from 'vue';
3
+
2
4
  import { WangsIcons } from '../icon/Icon.vue.d';
3
- import { TooltipOptions } from 'primevue/tooltip';
4
- import { GlobalComponentConstructor } from '../ts-helpers.d';
5
- import { ClassComponent, HintedString } from '../ts-helpers';
5
+ import {
6
+ ClassComponent,
7
+ GlobalComponentConstructor,
8
+ HintedString,
9
+ } from '../ts-helpers';
6
10
 
7
11
  /**
8
12
  * Defines valid properties in Button component.
@@ -1,4 +1,5 @@
1
1
  import { DefineComponent } from 'vue';
2
+
2
3
  import { MenuItem } from '../menuitem';
3
4
 
4
5
  export interface ButtonBulkActionLocaleConfig {
@@ -1,4 +1,5 @@
1
1
  import { StyleValue } from 'vue';
2
+
2
3
  import { ComponentHooks } from '../basecomponent';
3
4
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
4
5
 
@@ -0,0 +1,202 @@
1
+ import { ButtonProps } from '../../components/button/Button.vue.d';
2
+ import { ClassComponent, HintedString } from '../../components/ts-helpers.d';
3
+
4
+ import { WangsIcons } from '../icon/Icon.vue.d';
5
+
6
+ export type ScannerErrorCode =
7
+ | 'DRIVER_NOT_FOUND'
8
+ | 'DEVICE_NOT_CONNECTED'
9
+ | 'DEVICE_DISCONNECTED'
10
+ | 'NOT_SUPPORTED_SYSTEM'
11
+ | 'HARDWARE_NOT_SYNCHRONIZED';
12
+
13
+ export type ScannerErrorMessage = {
14
+ title: string;
15
+ detail: string;
16
+ };
17
+
18
+ export type ScannerOption = Partial<Device> & {
19
+ label: string;
20
+ device: Device | undefined;
21
+ };
22
+
23
+ export type Device = {
24
+ jenisDevice: string;
25
+ serialNumber: string;
26
+ API: string;
27
+ rfidScan: boolean;
28
+ qrScan: boolean;
29
+ name: string;
30
+ };
31
+
32
+ export type RegisteredDevice = {
33
+ _id: string;
34
+ imageSmall: string;
35
+ imageBig: string;
36
+ serialNumber: string;
37
+ status: string;
38
+ lastReportDate: string;
39
+ createdAt: string;
40
+ updatedAt: string;
41
+ group: null;
42
+ name: string;
43
+ };
44
+
45
+ export type DeviceList = Device[];
46
+
47
+ export interface ButtonScanProps extends Omit<ButtonProps, 'type'> {
48
+ /**
49
+ * Set custom button label.
50
+ *
51
+ * @default Scan Type
52
+ */
53
+ label?: string;
54
+ /**
55
+ * Set custom button icon.
56
+ *
57
+ * @default 'qr' | 'rfid'
58
+ */
59
+ icon?: WangsIcons;
60
+ /**
61
+ * Scpecify the scan type
62
+ */
63
+ type?: 'RFID' | 'QR';
64
+ /**
65
+ * Automatically switch between RFID and QR scan types during the scanning process.
66
+ * This allows the scan type to change dynamically based on the validation of the scanned code.
67
+ *
68
+ * The scan type will alternate between RFID and QR based on the validation result:
69
+ * - If the current scan is valid, it proceeds with the next scan type.
70
+ * - If the scan is invalid, it will re-scan using the previous scan type.
71
+ *
72
+ * This behavior continues in a loop until a stop condition is met, typically triggered by the parent component.
73
+ *
74
+ * Note: Only work with single Scan
75
+ *
76
+ * @default false
77
+ * @type {boolean}
78
+ *
79
+ * @example
80
+ * // Example usage in a component:
81
+ * <Button :auto-switch="true" />
82
+ *
83
+ * In this case, scanning will automatically switch between RFID and QR based on the validation results.
84
+ */
85
+ autoSwitch?: boolean;
86
+
87
+ /**
88
+ * Do validation when a tag is scanned, if valid, it will emits scan, otherwise re-scanning.
89
+ * when need to show toast on validation failed, set the toast group to `scan-error-validation`
90
+ *
91
+ * @param type
92
+ * @param code
93
+ * @param serialNumber
94
+ * @returns
95
+ */
96
+ scanValidation?: (
97
+ type: 'RFID' | 'QR',
98
+ code: string,
99
+ serialNumber: string,
100
+ ) => Promise<boolean>;
101
+
102
+ /**
103
+ * The value of the input (tag).
104
+ *
105
+ * @deprecated use `onScan` instead.
106
+ */
107
+ modelValue?: string;
108
+ /**
109
+ * Whether the scanner is in bulk mode.
110
+ *
111
+ * @toto add support bulk scan
112
+ */
113
+ bulk?: boolean;
114
+ /**
115
+ * The id of the button element.
116
+ */
117
+ id?: string;
118
+ /**
119
+ * Wether the button should be disabled.
120
+ */
121
+ disabled?: boolean;
122
+ /**
123
+ * Whether the scanner is a powerbank.
124
+ *
125
+ * @deprecated
126
+ */
127
+ powerbank?: boolean;
128
+ /**
129
+ * Display the label only (wihout icon).
130
+ *
131
+ * @default false
132
+ */
133
+ labelOnly?: boolean;
134
+ /**
135
+ * Add a border class without a background initially.
136
+ * @default false
137
+ */
138
+ outlined?: boolean | undefined;
139
+ /**
140
+ * Defines the style of the button.
141
+ */
142
+ severity?:
143
+ | HintedString<
144
+ | 'secondary'
145
+ | 'success'
146
+ | 'info'
147
+ | 'warning'
148
+ | 'help'
149
+ | 'danger'
150
+ | 'contrast'
151
+ >
152
+ | undefined;
153
+ /**
154
+ * Defines the size of the button.
155
+ */
156
+ size: 'small' | 'large';
157
+ }
158
+
159
+ export type ButtonScanEmits = {
160
+ 'update:modelValue': [tag: string];
161
+ 'connect': [];
162
+ 'connected': [device?: Device];
163
+ 'scan': [tag: string, deviceSerialNumber: string];
164
+ 'stop': [];
165
+ 'error': [error: unknown | Event];
166
+ 'beforeStartScan': [];
167
+ };
168
+
169
+ export interface ButtonScanExposes {
170
+ onBeforeStartScan: () => void;
171
+ startScan: () => void;
172
+ /**
173
+ * Method to stop the scan process.
174
+ */
175
+ stopScan: (afterScan?: boolean) => void;
176
+ }
177
+
178
+ /**
179
+ * **TSVue v2 - ButtonScan**
180
+ *
181
+ * _ButtonScan is component for scanning RFID or QR Tag._
182
+ *
183
+ * --- ---
184
+ * ![TSVue](https://ik.imagekit.io/kurniadev/TS-HEAD-BLACK.png)
185
+ *
186
+ * @group Component
187
+ */
188
+ declare class ButtonScan
189
+ extends ClassComponent<ButtonScanProps, ButtonScanEmits, unknown>
190
+ implements ButtonScanExposes
191
+ {
192
+ onBeforeStartScan: () => void;
193
+ startScan: () => void;
194
+ stopScan: (afterScan?: boolean) => void;
195
+ }
196
+
197
+ interface Window {
198
+ scannerWorker: Worker;
199
+ toastGroups: string[] | undefined;
200
+ }
201
+
202
+ export default ButtonScan;
@@ -0,0 +1,44 @@
1
+ import { DefineComponent } from 'vue';
2
+ import { ButtonScanProps } from '../buttonscan/ButtonScan.vue.d';
3
+ import { WangsIcons } from '../icon/Icon.vue.d';
4
+
5
+ export type ScanPayload = {
6
+ type: 'RFID' | 'QR';
7
+ code: string;
8
+ device: string; // Serial Number
9
+ };
10
+
11
+ export type ButtonSearchByScanEmits = {
12
+ scan: [payload: ScanPayload];
13
+ };
14
+
15
+ export interface ButtonSearchByScanProps {
16
+ /**
17
+ * The button label.
18
+ *
19
+ * @default 'Search by Scan'
20
+ */
21
+ label?: string;
22
+ /**
23
+ * The button icon.
24
+ */
25
+ icon?: WangsIcons;
26
+ /**
27
+ * The datatable tablename which handles the search by scan.
28
+ *
29
+ * @default 'datatable' - default DataTable tablename
30
+ */
31
+ tableName?: string;
32
+ scanValidation?: ButtonScanProps['scanValidation'];
33
+ }
34
+
35
+ export type ButtonSearchByScanExposes = {
36
+ stopScan: (afterScan?: boolean) => void;
37
+ };
38
+
39
+ declare const ButtonSearchByScan: DefineComponent<
40
+ ButtonSearchByScanProps,
41
+ ButtonSearchByScanEmits
42
+ >;
43
+
44
+ export default ButtonSearchByScan;
@@ -1,7 +1,8 @@
1
1
  import { Slot } from 'vue';
2
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2
+
3
3
  import { TreeNode } from '../basetree/BaseTree.vue.d';
4
- import { ShortFetchResponse } from '../datatable/DataTable.vue.d';
4
+ import { QueryParams, ShortFetchResponse } from '../datatable/DataTable.vue.d';
5
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
5
6
 
6
7
  export type KeysModelValue = number[] | undefined;
7
8
  export type NodeModelValue =
@@ -75,7 +76,9 @@ export interface ButtonSelectTreeProps {
75
76
 
76
77
  fetchTree?: (
77
78
  type: 'group' | 'category',
79
+ params?: QueryParams,
78
80
  ) => Promise<ShortFetchResponse<TreeNode> | undefined>;
81
+ params?: QueryParams;
79
82
  /**
80
83
  * Specify wether the all tree node should be auto checked once it rendered.
81
84
  * @default false