@fewangsit/wangsvue-fats 1.0.0-alpha.21 → 1.0.0-alpha.22

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 (179) hide show
  1. package/event-bus/mitt.d.ts +25 -7
  2. package/package.json +1 -1
  3. package/plugins/WangsVue.d.ts +184 -16
  4. package/plugins/formValidation.d.ts +11 -2
  5. package/plugins/i18n.d.ts +23 -5
  6. package/utils/addAttachment.util.d.ts +18 -2
  7. package/utils/date.util.d.ts +33 -4
  8. package/utils/filterOptions.util.d.ts +4 -2
  9. package/utils/genPlaceholder.util.d.ts +11 -6
  10. package/utils/mergePropsWithDefaults.util.d.ts +4 -1
  11. package/utils/object.util.d.ts +14 -3
  12. package/utils/role.util.d.ts +5 -32
  13. package/utils/textFormatter.util.d.ts +15 -3
  14. package/assets/json/currencies.json.d.ts +0 -1068
  15. package/assets/lottie/admin/loading-page.lottie +0 -0
  16. package/assets/lottie/admin/loading-table.lottie +0 -0
  17. package/assets/lottie/admin/no-data.lottie +0 -0
  18. package/assets/lottie/supplyasset/loading-page.lottie +0 -0
  19. package/assets/lottie/supplyasset/loading-table.lottie +0 -0
  20. package/assets/lottie/supplyasset/no-data.lottie +0 -0
  21. package/assets/lottie/workspace/loading-page.lottie +0 -0
  22. package/assets/lottie/workspace/loading-plane.lottie +0 -0
  23. package/assets/lottie/workspace/loading-table.lottie +0 -0
  24. package/assets/lottie/workspace/no-data.lottie +0 -0
  25. package/build-entry.d.ts +0 -14
  26. package/components/animation/Animation.vue.d.ts +0 -24
  27. package/components/approverinfo/ApproverInfo.vue.d.ts +0 -51
  28. package/components/assetinfo/AssetInfo.vue.d.ts +0 -32
  29. package/components/badge/Badge.vue.d.ts +0 -73
  30. package/components/badgegroup/BadgeGroup.vue.d.ts +0 -52
  31. package/components/basecomponent/index.d.ts +0 -28
  32. package/components/basetree/BaseTree.vue.d.ts +0 -591
  33. package/components/basetree/TreeNode.vue.d.ts +0 -35
  34. package/components/breadcrumb/Breadcrumb.vue.d.ts +0 -26
  35. package/components/button/Button.vue.d.ts +0 -188
  36. package/components/buttonImportExcel/ButtonImportExcel.vue.d.ts +0 -35
  37. package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +0 -104
  38. package/components/buttoncopy/ButtonCopy.vue.d.ts +0 -26
  39. package/components/buttondownload/ButtonDownload.vue.d.ts +0 -49
  40. package/components/buttonfilter/ButtonFilter.vue.d.ts +0 -12
  41. package/components/buttonradio/ButtonRadio.vue.d.ts +0 -257
  42. package/components/buttonscan/ButtonScan.vue.d.ts +0 -201
  43. package/components/buttonscan/helpers/getErrorCode.helper.d.ts +0 -3
  44. package/components/buttonscan/helpers/index.d.ts +0 -1
  45. package/components/buttonscan/workers/scanner.worker.d.ts +0 -1
  46. package/components/buttonsearch/ButtonSearch.vue.d.ts +0 -38
  47. package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +0 -200
  48. package/components/buttonsplit/ButtonSplit.d.ts +0 -350
  49. package/components/buttonsplit/ButtonSplit.vue.d.ts +0 -34
  50. package/components/buttonsync/ButtonSync.vue.d.ts +0 -10
  51. package/components/buttontoggle/ButtonToggle.vue.d.ts +0 -18
  52. package/components/buttonviewlog/ButtonViewLog.vue.d.ts +0 -17
  53. package/components/calendar/BaseCalendar.vue.d.ts +0 -86
  54. package/components/calendar/Calendar.vue.d.ts +0 -570
  55. package/components/card/Card.vue.d.ts +0 -139
  56. package/components/checkbox/Checkbox.vue.d.ts +0 -329
  57. package/components/codesnippet/CodeSnippet.vue.d.ts +0 -14
  58. package/components/customcolumn/ColumnList.vue.d.ts +0 -27
  59. package/components/customcolumn/CustomColumn.vue.d.ts +0 -37
  60. package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -12
  61. package/components/datatable/DataTable.vue.d.ts +0 -735
  62. package/components/datatable/MultiRow.vue.d.ts +0 -16
  63. package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
  64. package/components/datatable/helpers/filter.helper.d.ts +0 -28
  65. package/components/datatable/helpers/index.d.ts +0 -3
  66. package/components/datatable/helpers/readConfig.helper.d.ts +0 -2
  67. package/components/datatable/store/dataTable.store.d.ts +0 -22
  68. package/components/dialog/Dialog.vue.d.ts +0 -464
  69. package/components/dialogconfirm/DialogConfirm.vue.d.ts +0 -164
  70. package/components/dialogform/DialogForm.vue.d.ts +0 -349
  71. package/components/dialogselecttree/DialogSelectTree.vue.d.ts +0 -136
  72. package/components/dropdown/Dropdown.vue.d.ts +0 -264
  73. package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -92
  74. package/components/editor/Editor.vue.d.ts +0 -191
  75. package/components/editor/EditorButton.vue.d.ts +0 -15
  76. package/components/editor/MentionList.vue.d.ts +0 -35
  77. package/components/editor/MentionSection.vue.d.ts +0 -92
  78. package/components/editor/codeSnippetExtension.d.ts +0 -3
  79. package/components/editor/mentionSectionExtension.d.ts +0 -3
  80. package/components/editor/suggestion.d.ts +0 -2
  81. package/components/fieldwrapper/FieldWrapper.vue.d.ts +0 -69
  82. package/components/fileupload/FileUpload.vue.d.ts +0 -169
  83. package/components/filtercontainer/FilterContainer.vue.d.ts +0 -182
  84. package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -5
  85. package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
  86. package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -3
  87. package/components/form/Form.vue.d.ts +0 -316
  88. package/components/gallerypreview/GalleryPreview.vue.d.ts +0 -31
  89. package/components/hardwaresync/store/device.store.d.ts +0 -36
  90. package/components/helpers/convertToArrayClass.helper.d.ts +0 -2
  91. package/components/helpers/index.d.ts +0 -2
  92. package/components/helpers/label.d.ts +0 -15
  93. package/components/icon/Icon.vue.d.ts +0 -256
  94. package/components/image/Image.vue.d.ts +0 -403
  95. package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -36
  96. package/components/imagecompressor/ImageCompressor.vue.d.ts +0 -229
  97. package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -32
  98. package/components/index.d.ts +0 -69
  99. package/components/inlinemessage/InlineMessage.vue.d.ts +0 -167
  100. package/components/inputbadge/InputBadge.vue.d.ts +0 -122
  101. package/components/inputcurrency/InputCurrency.vue.d.ts +0 -170
  102. package/components/inputcurrency/helpers/currency.helper.d.ts +0 -4
  103. package/components/inputemail/InputEmail.vue.d.ts +0 -25
  104. package/components/inputgroup/InputGroup.vue.d.ts +0 -141
  105. package/components/inputnumber/InputNumber.vue.d.ts +0 -282
  106. package/components/inputpassword/InputPassword.vue.d.ts +0 -32
  107. package/components/inputphonenumber/InputPhoneNumber.vue.d.ts +0 -99
  108. package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
  109. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +0 -120
  110. package/components/inputsearch/InputSearch.vue.d.ts +0 -32
  111. package/components/inputtext/InputText.vue.d.ts +0 -352
  112. package/components/inputurl/InputURL.vue.d.ts +0 -39
  113. package/components/invisiblefield/InvisibleField.vue.d.ts +0 -36
  114. package/components/languagedropdown/LanguageDropdown.vue.d.ts +0 -47
  115. package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +0 -18
  116. package/components/languageswitcher/LanguageSwitcher.vue.d.ts +0 -15
  117. package/components/litedropdown/LiteDropdown.vue.d.ts +0 -96
  118. package/components/loading/Loading.vue.d.ts +0 -47
  119. package/components/loading/store/loading.store.d.ts +0 -8
  120. package/components/menu/Menu.vue.d.ts +0 -390
  121. package/components/menu/helpers/filterMenu.helper.d.ts +0 -12
  122. package/components/menu/helpers/index.d.ts +0 -1
  123. package/components/menuitem/MenuItem.vue.d.ts +0 -19
  124. package/components/menuitem/index.d.ts +0 -106
  125. package/components/multiselect/MultiSelect.vue.d.ts +0 -192
  126. package/components/overlaypanel/OverlayPanel.vue.d.ts +0 -301
  127. package/components/passthrough/index.d.ts +0 -16
  128. package/components/progressbar/ProgressBar.vue.d.ts +0 -72
  129. package/components/quickfilter/QuickFilter.vue.d.ts +0 -25
  130. package/components/tabmenu/TabMenu.vue.d.ts +0 -288
  131. package/components/tagtype/TagType.vue.d.ts +0 -21
  132. package/components/textarea/Textarea.vue.d.ts +0 -170
  133. package/components/timeline/Timeline.vue.d.ts +0 -121
  134. package/components/timeline/TimelineContentByType.vue.d.ts +0 -16
  135. package/components/toast/Toast.vue.d.ts +0 -367
  136. package/components/toggleswitch/ToggleSwitch.vue.d.ts +0 -281
  137. package/components/tooltipspan/TooltipSpan.vue.d.ts +0 -20
  138. package/components/tree/Tree.vue.d.ts +0 -148
  139. package/components/tree/helpers/filterNodeKeys.helper.d.ts +0 -16
  140. package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +0 -6
  141. package/components/tree/helpers/index.d.ts +0 -3
  142. package/components/treesearchinput/TreeSearchInput.vue.d.ts +0 -16
  143. package/components/ts-helpers.d.ts +0 -83
  144. package/components/usergroup/UserGroup.vue.d.ts +0 -57
  145. package/components/username/UserName.vue.d.ts +0 -113
  146. package/components/userwithicon/UserWithIcon.vue.d.ts +0 -21
  147. package/components/validatormessage/ValidatorMessage.vue.d.ts +0 -12
  148. package/config/defaultProps.d.ts +0 -3
  149. package/config/index.d.ts +0 -3
  150. package/config/locale.d.ts +0 -3
  151. package/loading-page-BrQattYE.js +0 -1
  152. package/loading-page-CgfbWppy.js +0 -1
  153. package/loading-page-CoC9UhfC.js +0 -4
  154. package/loading-page-CoXtqoc9.js +0 -4
  155. package/loading-page-DbLuqCHa.js +0 -1
  156. package/loading-page-f8D03l3G.js +0 -4
  157. package/loading-plane-CgfbWppy.js +0 -1
  158. package/loading-plane-CoXtqoc9.js +0 -4
  159. package/loading-table-Bdr9ZhtP.js +0 -1
  160. package/loading-table-ByUoWqUo.js +0 -4
  161. package/loading-table-BygEMzFM.js +0 -4
  162. package/loading-table-BzrSQlA0.js +0 -1
  163. package/loading-table-D9bw9OcI.js +0 -4
  164. package/loading-table-chOgXi94.js +0 -1
  165. package/main.d.ts +0 -2
  166. package/no-data-CTKux8RI.js +0 -4
  167. package/no-data-Cgze_Rvp.js +0 -1
  168. package/no-data-DLHO1L_u.js +0 -4
  169. package/no-data-Dep79CBh.js +0 -1
  170. package/no-data-g0dJCy2p.js +0 -4
  171. package/no-data-y1X5WtcQ.js +0 -1
  172. package/plugins/i18n-extension.d.ts +0 -4
  173. package/style.css +0 -1
  174. package/types/options.type.d.ts +0 -16
  175. package/utils/getSeverityByAssetStatus.util.d.ts +0 -3
  176. package/utils/index.d.ts +0 -22
  177. package/utils/listenSidebarChanges.util.d.ts +0 -11
  178. package/wangsvue-fats.es.js +0 -133302
  179. package/wangsvue-fats.system.js +0 -489
@@ -1,69 +0,0 @@
1
- import { DefineComponent } from 'vue';
2
-
3
- export interface FieldWrapperLocaleConfig {
4
- /**
5
- * The indicator for mandatory field.
6
- * @default '*''
7
- */
8
- labelRequired?: string;
9
-
10
- /**
11
- * The indicator for optional field.
12
- * @default '(optional)''
13
- */
14
- labelOptional?: string;
15
- }
16
-
17
- /**
18
- * Props for the FieldWrapper component.
19
- */
20
- export interface FieldWrapperProps {
21
- /**
22
- * The label text to display for the field.
23
- * @default undefined
24
- */
25
- label?: string;
26
-
27
- /**
28
- * Indicates whether the field is mandatory (required).
29
- * If `true`, this may trigger the display of a required indicator.
30
- * @default false
31
- */
32
- mandatory?: boolean;
33
-
34
- /**
35
- * When `true`, displays an "(optional)" text next to the label if the field is not mandatory.
36
- */
37
- showOptionalText?: boolean;
38
-
39
- /**
40
- * When `true`, displays an asterisk (`*`) next to the label if the field is mandatory.
41
- * @default false
42
- */
43
- showAsterisk?: boolean;
44
-
45
- /**
46
- * Additional information or description for the field.
47
- * Can be used to display tooltips or inline helper text.
48
- * @default undefined
49
- */
50
- info?: string;
51
-
52
- /**
53
- * Custom CSS class to apply to the label element.
54
- * Useful for styling the label specifically.
55
- * @default undefined
56
- */
57
- labelClass?: string;
58
-
59
- /**
60
- * Position of the tooltip, if one is displayed.
61
- * Accepted values are `'top'`, `'right'`, `'bottom'`, and `'left'`.
62
- * @default undefined
63
- */
64
- tooltipPos?: 'top' | 'right' | 'bottom' | 'left';
65
- }
66
-
67
- declare const FieldWrapper: DefineComponent<FieldWrapperProps>;
68
-
69
- export default FieldWrapper;
@@ -1,169 +0,0 @@
1
- import {
2
- FileUploadErrorEvent,
3
- FileUploadUploadEvent,
4
- } from 'primevue/fileupload';
5
- import { CustomValidation } from '../form/Form.vue.d';
6
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
7
-
8
- export type InputErrorCodes = 'FILE_SIZE_TOO_LARGE';
9
-
10
- /**
11
- * Defines valid properties in FileUpload component.
12
- */
13
- export type FileUploadProps = {
14
- /**
15
- * Pattern to restrict the allowed file types such as 'image/*'.
16
- */
17
- accept?: string | undefined;
18
- /**
19
- * Disables the upload functionality.
20
- * @defaultValue false
21
- */
22
- disabled?: boolean | undefined;
23
- /**
24
- * Maximum file size allowed in bytes.
25
- */
26
- maxFileSize?: number | undefined;
27
-
28
- /**
29
- * V-model for the file upload component.
30
- * Be careful while using this props since the validation can't work while using this.
31
- * You must do manual validation when choosing the file to be set on the component.
32
- */
33
- modelValue?: File | File[];
34
-
35
- /**
36
- * Props to determine whether file upload support multiple files or not
37
- *
38
- * @default false
39
- */
40
- multiple?: boolean;
41
- /**
42
- * Message of the invalid fize size.
43
- * - Use {0} to get the file's name
44
- * - Use {1} to get the max file size
45
- * - Use {2} to get the accepted file types from props.accept
46
- * - Use {2.1} to get the accepted file types from props.fileExtensions
47
- * @defaultValue {0}: Invalid file size, file size should be smaller than {1}.
48
- */
49
- invalidFileSizeMessage?: string | undefined;
50
- /**
51
- * Message of the invalid fize type.
52
- * - Use {0} to get the file's name
53
- * - Use {1} to get the max file size
54
- * - Use {2} to get the accepted file types
55
- * - Use {2.1} to get the accepted file types from props.fileExtensions
56
- * @defaultValue '{0}: Invalid file type, allowed file types: {2}'
57
- */
58
- invalidFileTypeMessage?: string | undefined;
59
- /**
60
- * Label of the file upload.
61
- * @defaultValue 'Upload File'
62
- */
63
- label?: string | undefined;
64
- /**
65
- * Whether to use an upload button.
66
- * @defaultValue true
67
- */
68
- withUpload?: boolean | undefined;
69
- /**
70
- * Label of the upload button.
71
- * @defaultValue 'Upload'.
72
- */
73
- uploadLabel?: string | undefined;
74
- /**
75
- * Placeholder of the file upload.
76
- * @defaultValue 'Select File'
77
- */
78
- placeholder?: string | undefined;
79
- /**
80
- * File extensions to display the accepted extensions.
81
- */
82
- fileExtensions?: string | undefined;
83
- /**
84
- * The note about the requirements of file for being uploaded.
85
- *
86
- * Placed at the bottom right of input.
87
- */
88
- fileRequirements?: string | undefined;
89
- /**
90
- * The function to be called after the upload button is clicked. (Must be used when withUpload is true)
91
- */
92
- uploadFunction?: (files: File[]) => Promise<void>;
93
- /**
94
- * Whether the input should be validated with vee-validator or not.
95
- * If you use this component within form input, you need to set this props as true.
96
- */
97
- useValidator?: boolean;
98
- /**
99
- * This prop is required if you use this component in a form input.
100
- * Specify the unique field name, match with your needs for API request.
101
- *
102
- * @default 'fileUpload'
103
- */
104
- fieldName?: string;
105
- /**
106
- * Whether this input field is required or not.
107
- */
108
- mandatory?: boolean;
109
- /**
110
- * Whether show toast error message on invalid file input
111
- *
112
- * @default true;
113
- */
114
- useErrorToast?: boolean;
115
- /**
116
- * Set custom validator message.
117
- * Will be show if invalid="true"
118
- */
119
- validatorMessage?: string | CustomValidation;
120
- /**
121
- * Classes for validator message in input field.
122
- */
123
- validatorMessageClass?: string;
124
- };
125
-
126
- export type FileUploadEmits = {
127
- /**
128
- * Callback to invoke when there is a file selected.
129
- */
130
- 'select': [event: File | File[]];
131
- /**
132
- * Callback to invoke when model changed.
133
- */
134
- 'update:modelValue': [event: File | File[]];
135
- /**
136
- * Callback to invoke when file upload is complete.
137
- */
138
- 'upload': [event: FileUploadUploadEvent];
139
- /**
140
- * Callback to invoke if file upload fails.
141
- */
142
- 'error': [event: FileUploadErrorEvent | InputErrorCodes];
143
- };
144
-
145
- /**
146
- * **WangsVue - FileUpload**
147
- *
148
- * _FileUpload is an advanced uploader with dragdrop support, multi file uploads, auto uploading, progress tracking and validations._
149
- *
150
- * [Live Demo](https://fewangsit.github.io/wangsvue/button)
151
- * --- ---
152
- * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
153
- *
154
- * @group Component
155
- *
156
- */
157
- declare class FileUpload extends ClassComponent<
158
- FileUploadProps,
159
- null,
160
- FileUploadEmits
161
- > {}
162
-
163
- declare module '@vue/runtime-core' {
164
- interface GlobalComponents {
165
- FileUpload: GlobalComponentConstructor<FileUpload>;
166
- }
167
- }
168
-
169
- export default FileUpload;
@@ -1,182 +0,0 @@
1
- import { MultiSelectOption } from 'lib/types/options.type';
2
- import { DefineComponent, Slot } from 'vue';
3
- import { CalendarProps } from '../calendar/Calendar.vue.d';
4
- import { QueryParams } from '../datatable/DataTable.vue.d';
5
- import { DropdownProps } from '../dropdown/Dropdown.vue.d';
6
- import { InputRangeNumberProps } from '../inputrangenumber/InputRangeNumber.vue.d';
7
- import { MultiSelectProps } from '../multiselect/MultiSelect.vue.d';
8
- import { ButtonSelectTreeProps } from '../buttonselecttree/ButtonSelectTree.vue.d';
9
-
10
- export type FilterMatchMode =
11
- | 'CONTAINS'
12
- | 'EQUALS'
13
- | 'NOT_EQUALS'
14
- | 'IN'
15
- | 'LESS_THAN'
16
- | 'LESS_THAN_OR_EQUAL_TO'
17
- | 'GREATER_THAN'
18
- | 'GREATER_THAN_OR_EQUAL_TO'
19
- | 'BETWEEN'
20
- | 'DATE_BETWEEN';
21
-
22
- // More specific filter field types
23
- export interface MultiSelectFilterField extends MultiSelectProps {
24
- type: 'multiselect';
25
- /**
26
- * The name of the field this filter applies to.
27
- *
28
- * When using a static filter, it also specifies the field in the data to be used for generating unique options.
29
- * For example, if filtering by a user's full name, the field could be 'user.fullName', which will extract
30
- * unique full names from the table data and use them as filter options.
31
- */
32
- field: string;
33
- optionField?: string; // @example - actionOptions
34
- params?: QueryParams; // Additional QueryParams for the fetchOptionFn
35
- fetchOptionFn?:
36
- | ((args?: any) => MultiSelectOption[] | undefined) // Sync function to fetch options
37
- | ((args?: any) => Promise<MultiSelectOption[] | undefined>); // Async function
38
- }
39
-
40
- export interface DropdownFilterField extends DropdownProps {
41
- type: 'dropdown';
42
- /**
43
- * The name of the field this filter applies to.
44
- *
45
- * When using a static filter, it also specifies the field in the data to be used for generating unique options.
46
- * For example, if filtering by a user's full name, the field could be 'user.fullName', which will extract
47
- * unique full names from the table data and use them as filter options.
48
- */
49
- field: string;
50
- optionField?: string; // @example - actionOptions
51
- params?: QueryParams; // Additional QueryParams for the fetchOptionFn
52
- fetchOptionFn?:
53
- | ((args?: any) => MultiSelectOption[] | undefined) // Sync function to fetch options
54
- | ((args?: any) => Promise<MultiSelectOption[]> | undefined); // Async function
55
- }
56
-
57
- export interface RangeNumberFilterField extends InputRangeNumberProps {
58
- type: 'rangenumber';
59
- /**
60
- * Specify min and max field
61
- *
62
- * @example ['minAge', 'maxAge']
63
- */
64
- fields?: string[];
65
-
66
- /**
67
- * Specify single field for both min and max input.
68
- * The value will be a number array.
69
- *
70
- * Prever use this property when you are working with Static Filtering
71
- *
72
- * @example value: [1000,5000] or equal to 'value.0': 1000 & 'value.1': 5000
73
- */
74
- field?: string;
75
- tooltip?: string;
76
- }
77
-
78
- export interface ButtonSelectTreeFilterField
79
- extends Omit<ButtonSelectTreeProps, 'type' | 'label' | 'fieldLabel'> {
80
- type: 'group' | 'category';
81
- field: string; // The name of the field this filter applies to
82
- /**
83
- * The field label.
84
- */
85
- label?: string;
86
- /**
87
- * The button label.
88
- * @default to Select Group|Category
89
- */
90
- buttonLabel?: string;
91
- params?: QueryParams; // Override QueryParams for the fetchTree
92
- }
93
-
94
- export interface CalendarFilterField extends CalendarProps {
95
- type: 'calendar';
96
- field: string;
97
- }
98
-
99
- export type AdditionalFilterField = ButtonSelectTreeFilterField;
100
-
101
- export type FilterField =
102
- | AdditionalFilterField
103
- | MultiSelectFilterField
104
- | DropdownFilterField
105
- | RangeNumberFilterField
106
- | CalendarFilterField;
107
-
108
- export type FilterOptions<Opt = Record<string, boolean>> = Record<
109
- keyof Opt,
110
- MultiSelectOption[]
111
- >;
112
-
113
- export type LoadingFilters = Record<string, boolean>;
114
-
115
- export type FetchOptionResponse<Opt = Record<string, boolean>> = {
116
- message: string;
117
- data: FilterOptions<Opt>;
118
- };
119
-
120
- export interface FilterContainerLocaleConfig {
121
- clearFieldText?: string;
122
- applyText?: string;
123
- }
124
-
125
- export interface FilterContainerProps {
126
- /**
127
- * Specify the table name integrated with this filter.
128
- *
129
- * @default datatable - the default table name
130
- */
131
- tableName?: string;
132
- /**
133
- * Set the fields count in a row
134
- *
135
- * @default 4 grid columns
136
- */
137
- fieldsPerRow?: number;
138
- fields: FilterField[];
139
- /**
140
- * Enable static filtering
141
- */
142
- static?: boolean;
143
- }
144
-
145
- /**
146
- * Slots for FilterContainer component
147
- */
148
- export type FilterContainerSlots = {
149
- /**
150
- * @deprecated Please use props.fields instead
151
- */
152
- default: Slot;
153
-
154
- /**
155
- * Additional template for field.
156
- */
157
- field: Slot<{ field: AdditionalFilterField; fieldName: string }>;
158
- };
159
-
160
- export type FilterContainerEmits = {
161
- apply: [filter: QueryParams];
162
- };
163
-
164
- /**
165
- * **WangsVue - FilterContainer**
166
- *
167
- * _FilterContainer is a component for generating a dynamic grid-based layout for any count of filter fields.
168
- * It calculates the number of children in the container and sets their grid area style dynamically.
169
- *
170
- * The grid layout is determined by the row and column position, which are incremented based on the child count.
171
- * If the child count is odd and the child is the last one (which is Buttons Action),
172
- * it is placed in the 4th column._
173
- *
174
- * @group components
175
- */
176
- declare const FilterContainer: DefineComponent<
177
- FilterContainerProps,
178
- FilterContainerEmits,
179
- FilterContainerSlots
180
- >;
181
-
182
- export default FilterContainer;
@@ -1,5 +0,0 @@
1
- import { GenericObject } from 'vee-validate';
2
- import { FilterField } from '../FilterContainer.vue.d';
3
- declare const applyFilter: (values: GenericObject, tableName: string, emit?: (...args: any[]) => any) => void;
4
- export declare const applyStaticFilter: (values: GenericObject, tableName: string, fields: FilterField[], emit?: (...args: any[]) => any) => void;
5
- export default applyFilter;
@@ -1,7 +0,0 @@
1
- /**
2
- * Format the time in range selection when not show time.
3
- * It will adjust the end range time to 23.59.59 and the start to 00.00.00
4
- *
5
- * @returns {number[]} - The formatted date time range in millis. [start, end]
6
- */
7
- export declare const formatDateTimeRange: (e: number[]) => number[];
@@ -1,3 +0,0 @@
1
- import { FilterOptions, LoadingFilters, MultiSelectFilterField } from '../FilterContainer.vue.d';
2
- declare const getOptions: (fn: MultiSelectFilterField["fetchOptionFn"], field: string, filterOption: FilterOptions, loading: LoadingFilters) => Promise<void>;
3
- export default getOptions;