@fewangsit/wangsvue-fats 1.0.0-alpha.13 → 1.0.0-alpha.130

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 (163) hide show
  1. package/components/animation/Animation.vue.d.ts +9 -1
  2. package/components/assetinfo/AssetInfo.vue.d.ts +44 -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 +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/buttonradio/ButtonRadio.vue.d.ts +1 -0
  9. package/components/buttonscan/ButtonScan.vue.d.ts +202 -0
  10. package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +46 -0
  11. package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +2 -1
  12. package/components/buttonsplit/ButtonSplit.vue.d.ts +352 -34
  13. package/components/buttonsync/ButtonSync.vue.d.ts +22 -0
  14. package/components/buttontoggle/ButtonToggle.vue.d.ts +1 -0
  15. package/components/buttonviewlog/ButtonViewLog.vue.d.ts +17 -0
  16. package/components/calendar/Calendar.vue.d.ts +32 -4
  17. package/components/card/Card.vue.d.ts +1 -0
  18. package/components/carousel/Carousel.vue.d.ts +28 -0
  19. package/components/checkbox/Checkbox.vue.d.ts +1 -0
  20. package/components/datatable/DataTable.vue.d.ts +12 -4
  21. package/components/dialog/Dialog.vue.d.ts +4 -3
  22. package/components/dialogassetnamedetail/DialogAssetNameDetail.vue.d.ts +46 -0
  23. package/components/dialogassetnamedetail/options/columns.d.ts +2 -0
  24. package/components/dialogassetnamedetail/options/filter.d.ts +2 -0
  25. package/components/dialogconfirm/DialogConfirm.vue.d.ts +1 -0
  26. package/components/dialogform/DialogForm.vue.d.ts +3 -2
  27. package/components/dialoglinkedasset/DialogLinkedAsset.vue.d.ts +106 -0
  28. package/components/dialogprintqr/DialogPrintQR.vue.d.ts +18 -0
  29. package/components/dialogreportdamage/DialogReportDamage.vue.d.ts +34 -0
  30. package/components/dialogreportmissing/DialogReportMissing.vue.d.ts +33 -0
  31. package/components/dialogreporttag/DialogReportTag.vue.d.ts +31 -0
  32. package/components/dialogselecttree/DialogSelectTree.vue.d.ts +3 -2
  33. package/components/dialogselectuser/DialogSelectUser.vue.d.ts +102 -0
  34. package/components/dialogselectuser/options/columns.d.ts +3 -0
  35. package/components/dialogtransferlog/DialogTransferLog.vue.d.ts +16 -0
  36. package/components/dropdown/Dropdown.vue.d.ts +28 -4
  37. package/components/editor/Editor.vue.d.ts +1 -0
  38. package/components/fieldwrapper/FieldWrapper.vue.d.ts +19 -2
  39. package/components/fileupload/FileUpload.vue.d.ts +1 -0
  40. package/components/filtercontainer/FilterContainer.vue.d.ts +107 -69
  41. package/components/form/Form.vue.d.ts +2 -1
  42. package/components/icon/Icon.vue.d.ts +4 -0
  43. package/components/image/Image.vue.d.ts +8 -0
  44. package/components/imagecompressor/ImageCompressor.vue.d.ts +14 -0
  45. package/components/index.d.ts +34 -20
  46. package/components/inputcurrency/helpers/currency.helper.d.ts +5 -1
  47. package/components/inputemail/InputEmail.vue.d.ts +1 -0
  48. package/components/inputnumber/InputNumber.vue.d.ts +6 -0
  49. package/components/inputotp/InputOtp.vue.d.ts +3 -0
  50. package/components/inputpassword/InputPassword.vue.d.ts +1 -0
  51. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +1 -0
  52. package/components/inputsearch/InputSearch.vue.d.ts +7 -1
  53. package/components/inputtext/InputText.vue.d.ts +2 -1
  54. package/components/inputurl/InputURL.vue.d.ts +4 -2
  55. package/components/invisiblefield/InvisibleField.vue.d.ts +32 -36
  56. package/components/languagedropdown/LanguageDropdown.vue.d.ts +5 -19
  57. package/components/litedropdown/LiteDropdown.vue.d.ts +5 -3
  58. package/components/loading/store/loading.store.d.ts +3 -3
  59. package/components/menu/Menu.vue.d.ts +2 -1
  60. package/components/multiselect/MultiSelect.vue.d.ts +7 -4
  61. package/components/overlaypanel/OverlayPanel.vue.d.ts +1 -0
  62. package/components/paginator/Paginator.vue.d.ts +285 -0
  63. package/components/steps/Steps.vue.d.ts +20 -0
  64. package/components/tabmenu/TabMenu.vue.d.ts +7 -191
  65. package/components/tagtype/TagType.vue.d.ts +26 -0
  66. package/components/textarea/Textarea.vue.d.ts +2 -1
  67. package/components/timeline/Timeline.vue.d.ts +21 -2
  68. package/components/toast/Toast.vue.d.ts +2 -1
  69. package/components/toggleswitch/ToggleSwitch.vue.d.ts +1 -0
  70. package/components/transactionroles/TransactionRoles.vue.d.ts +58 -0
  71. package/components/tree/Tree.vue.d.ts +6 -3
  72. package/components/tree/helpers/filterNodeKeys.helper.d.ts +8 -2
  73. package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +3 -1
  74. package/components/ts-helpers.d.ts +8 -0
  75. package/components/username/UserName.vue.d.ts +6 -1
  76. package/components/userwithicon/UserWithIcon.vue.d.ts +21 -0
  77. package/config/defaultProps.d.ts +1 -1
  78. package/config/index.d.ts +1 -1
  79. package/config/locale.d.ts +1 -1
  80. package/directives/focus.d.ts +1 -1
  81. package/event-bus/index.d.ts +59 -53
  82. package/event-bus/mitt.d.ts +29 -14
  83. package/main.d.ts +34 -2
  84. package/package.json +14 -6
  85. package/plugins/VueHtmlToPaper.d.ts +11 -0
  86. package/plugins/WangsVue.d.ts +272 -98
  87. package/plugins/formValidation.d.ts +16 -6
  88. package/plugins/i18n-extension.d.ts +1 -1
  89. package/plugins/i18n.d.ts +90 -67
  90. package/stats.html +4949 -0
  91. package/style.css +1 -1
  92. package/utils/date.util.d.ts +64 -31
  93. package/utils/formatTagCode.util.d.ts +1 -0
  94. package/utils/getStatusSeverity.util.d.ts +23 -0
  95. package/utils/index.d.ts +7 -21
  96. package/utils/isBasic.util.d.ts +1 -0
  97. package/utils/listenSidebarChanges.util.d.ts +14 -9
  98. package/utils/object.util.d.ts +14 -3
  99. package/utils/role.util.d.ts +63 -26
  100. package/utils/toast.util.d.ts +78 -78
  101. package/wangsvue-fats.js +57805 -0
  102. package/wangsvue-fats.system.js +198 -281
  103. package/assets/json/currencies.json.d.ts +0 -1068
  104. package/assets/lottie/admin/loading-page.lottie +0 -0
  105. package/assets/lottie/admin/loading-table.lottie +0 -0
  106. package/assets/lottie/admin/no-data.lottie +0 -0
  107. package/assets/lottie/supplyasset/loading-page.lottie +0 -0
  108. package/assets/lottie/supplyasset/loading-table.lottie +0 -0
  109. package/assets/lottie/supplyasset/no-data.lottie +0 -0
  110. package/assets/lottie/workspace/loading-page.lottie +0 -0
  111. package/assets/lottie/workspace/loading-plane.lottie +0 -0
  112. package/assets/lottie/workspace/loading-table.lottie +0 -0
  113. package/assets/lottie/workspace/no-data.lottie +0 -0
  114. package/build-entry.d.ts +0 -14
  115. package/components/buttonsplit/ButtonSplit.d.ts +0 -350
  116. package/components/calendar/BaseCalendar.vue.d.ts +0 -86
  117. package/components/codesnippet/CodeSnippet.vue.d.ts +0 -14
  118. package/components/customcolumn/ColumnList.vue.d.ts +0 -27
  119. package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -12
  120. package/components/datatable/MultiRow.vue.d.ts +0 -16
  121. package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
  122. package/components/datatable/helpers/filter.helper.d.ts +0 -28
  123. package/components/datatable/helpers/index.d.ts +0 -3
  124. package/components/datatable/helpers/readConfig.helper.d.ts +0 -2
  125. package/components/datatable/store/dataTable.store.d.ts +0 -22
  126. package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -92
  127. package/components/editor/EditorButton.vue.d.ts +0 -15
  128. package/components/editor/MentionList.vue.d.ts +0 -35
  129. package/components/editor/MentionSection.vue.d.ts +0 -92
  130. package/components/editor/codeSnippetExtension.d.ts +0 -3
  131. package/components/editor/mentionSectionExtension.d.ts +0 -3
  132. package/components/editor/suggestion.d.ts +0 -2
  133. package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -5
  134. package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
  135. package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -3
  136. package/components/gallerypreview/GalleryPreview.vue.d.ts +0 -31
  137. package/components/helpers/convertToArrayClass.helper.d.ts +0 -2
  138. package/components/helpers/index.d.ts +0 -2
  139. package/components/helpers/label.d.ts +0 -15
  140. package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -36
  141. package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -30
  142. package/components/inputgroup/InputGroup.vue.d.ts +0 -141
  143. package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
  144. package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +0 -18
  145. package/components/menu/helpers/filterMenu.helper.d.ts +0 -12
  146. package/components/menu/helpers/index.d.ts +0 -1
  147. package/components/menuitem/MenuItem.vue.d.ts +0 -19
  148. package/components/progressbar/ProgressBar.vue.d.ts +0 -72
  149. package/components/quickfilter/QuickFilter.vue.d.ts +0 -25
  150. package/components/timeline/TimelineContentByType.vue.d.ts +0 -16
  151. package/components/tooltipspan/TooltipSpan.vue.d.ts +0 -20
  152. package/components/tree/helpers/index.d.ts +0 -3
  153. package/components/usergroup/UserGroup.vue.d.ts +0 -57
  154. package/components/validatormessage/ValidatorMessage.vue.d.ts +0 -12
  155. package/types/options.type.d.ts +0 -16
  156. package/utils/addAttachment.util.d.ts +0 -43
  157. package/utils/exportToExcel.util.d.ts +0 -20
  158. package/utils/filterOptions.util.d.ts +0 -3
  159. package/utils/genPlaceholder.util.d.ts +0 -8
  160. package/utils/getAttachmentIcon.util.d.ts +0 -8
  161. package/utils/mergePropsWithDefaults.util.d.ts +0 -20
  162. package/utils/textFormatter.util.d.ts +0 -17
  163. package/wangsvue-fats.es.js +0 -133530
@@ -1,11 +1,17 @@
1
- import { MultiSelectOption } from 'lib/types/options.type';
1
+ import { AxiosResponse } from 'axios';
2
2
  import { DefineComponent, Slot } from 'vue';
3
+
4
+ import {
5
+ DropdownProps,
6
+ Option,
7
+ } from '../../components/dropdown/Dropdown.vue.d';
8
+
9
+ import { ButtonSelectTreeProps } from '../buttonselecttree/ButtonSelectTree.vue.d';
3
10
  import { CalendarProps } from '../calendar/Calendar.vue.d';
4
11
  import { QueryParams } from '../datatable/DataTable.vue.d';
5
- import { DropdownProps } from '../dropdown/Dropdown.vue.d';
6
12
  import { InputRangeNumberProps } from '../inputrangenumber/InputRangeNumber.vue.d';
7
13
  import { MultiSelectProps } from '../multiselect/MultiSelect.vue.d';
8
- import { ButtonSelectTreeProps } from '../buttonselecttree/ButtonSelectTree.vue.d';
14
+ import { StringKeyOf, TypeError } from '../ts-helpers';
9
15
 
10
16
  export type FilterMatchMode =
11
17
  | 'CONTAINS'
@@ -19,66 +25,79 @@ export type FilterMatchMode =
19
25
  | 'BETWEEN'
20
26
  | 'DATE_BETWEEN';
21
27
 
22
- // More specific filter field types
23
- export interface MultiSelectFilterField extends MultiSelectProps {
24
- type: 'multiselect';
28
+ type BaseSelectField<OptionsQueryParams extends QueryParams> = {
25
29
  /**
26
- * The name of the field this filter applies to.
30
+ * Represents a function type for fetching options based on query parameters.
27
31
  *
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.
32
+ * @template T - The type of query parameters, extending `QueryParams`. Defaults to `any`.
44
33
  *
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
34
+ * This function can have one of the following signatures:
35
+ * - A synchronous function that takes query parameters and returns an array of `Option` objects.
36
+ * - An asynchronous function that takes query parameters and returns a `Promise` resolving to an array of `Option` objects.
37
+ * - An asynchronous function that takes query parameters and returns a `Promise` resolving to an `AxiosResponse` containing a `FetchOptionResponse` object.
61
38
  *
62
- * @example ['minAge', 'maxAge']
39
+ * @param args - The query parameters of type `T` used to fetch the options.
40
+ * @returns One of the following:
41
+ * - An array of `Option` objects.
42
+ * - A `Promise` resolving to an array of `Option` objects.
43
+ * - A `Promise` resolving to an `AxiosResponse` containing a `FetchOptionResponse` object.
63
44
  */
64
- fields?: string[];
45
+ fetchOptionFn?(
46
+ args: OptionsQueryParams,
47
+ ):
48
+ | Option[]
49
+ | Promise<Option[]>
50
+ | Promise<AxiosResponse<FetchOptionResponse<OptionsQueryParams>>>;
51
+
52
+ optionField?: keyof OptionsQueryParams; // @example - actionOptions
53
+ params?: OptionsQueryParams; // Additional QueryParams for the fetchOptionFn
54
+ };
65
55
 
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;
56
+ export interface MultiSelectFilterField<OptionsQueryParams extends QueryParams>
57
+ extends BaseSelectField<OptionsQueryParams>,
58
+ MultiSelectProps {
59
+ type: 'multiselect';
60
+ }
61
+
62
+ export interface DropdownFilterField<OptionsQueryParams extends QueryParams>
63
+ extends BaseSelectField<OptionsQueryParams>,
64
+ DropdownProps {
65
+ type: 'dropdown';
76
66
  }
77
67
 
78
- export interface ButtonSelectTreeFilterField
79
- extends Omit<ButtonSelectTreeProps, 'type' | 'label' | 'fieldLabel'> {
68
+ type RangeNumberFilterField<Field extends string> =
69
+ | (InputRangeNumberProps & {
70
+ type: 'rangenumber';
71
+ /**
72
+ * Specify min and max field
73
+ *
74
+ * @example ['minAge', 'maxAge']
75
+ */
76
+ fields: [Field, Field];
77
+ field?: TypeError<'`field` must not be specified when using `fields` property'>;
78
+ tooltip?: string;
79
+ })
80
+ | (InputRangeNumberProps & {
81
+ type: 'rangenumber';
82
+ /**
83
+ * Specify single field for both min and max input.
84
+ * The value will be a number array.
85
+ *
86
+ * Prefer using this property when working with Static Filtering
87
+ *
88
+ * @example value: [1000, 5000] or equivalent to 'value.0': 1000 & 'value.1': 5000
89
+ */
90
+ field: Field;
91
+ fields?: TypeError<'`fields` must not be specified when using `field` property'>;
92
+ tooltip?: string;
93
+ });
94
+
95
+ export interface ButtonSelectTreeFilterField<
96
+ Field extends string,
97
+ Params = QueryParams,
98
+ > extends Omit<ButtonSelectTreeProps, 'type' | 'label' | 'fieldLabel'> {
80
99
  type: 'group' | 'category';
81
- field: string; // The name of the field this filter applies to
100
+ field: Field; // The name of the field this filter applies to
82
101
  /**
83
102
  * The field label.
84
103
  */
@@ -88,26 +107,50 @@ export interface ButtonSelectTreeFilterField
88
107
  * @default to Select Group|Category
89
108
  */
90
109
  buttonLabel?: string;
91
- params?: QueryParams; // Override QueryParams for the fetchTree
110
+ params?: Params; // Override QueryParams for the fetchTree
92
111
  }
93
112
 
94
113
  export interface CalendarFilterField extends CalendarProps {
95
114
  type: 'calendar';
96
- field: string;
97
115
  }
98
116
 
99
- export type AdditionalFilterField = ButtonSelectTreeFilterField;
117
+ export type AdditionalFilterField<Field extends string = string> =
118
+ ButtonSelectTreeFilterField<Field>;
100
119
 
101
- export type FilterField =
102
- | AdditionalFilterField
103
- | MultiSelectFilterField
104
- | DropdownFilterField
105
- | RangeNumberFilterField
106
- | CalendarFilterField;
120
+ export type BaseFilterField<Params extends QueryParams = QueryParams> = {
121
+ /**
122
+ * Filter field visibility
123
+ *
124
+ * You dont need manually filter, this component already handle it.
125
+ */
126
+ visible?: boolean;
127
+ /**
128
+ * The name of the field this filter applies to.
129
+ *
130
+ * When using a static filter, it also specifies the field in the data to be used for generating unique options.
131
+ * For example, if filtering by a user's full name, the field could be 'user.fullName', which will extract
132
+ * unique full names from the table data and use them as filter options.
133
+ */
134
+ field: keyof Params;
135
+ };
136
+
137
+ export type FilterField<
138
+ Params extends QueryParams = QueryParams,
139
+ OptionsQueryParams extends QueryParams = QueryParams,
140
+ > =
141
+ | (BaseFilterField<Params> &
142
+ (
143
+ | AdditionalFilterField<StringKeyOf<Params>>
144
+ | MultiSelectFilterField<OptionsQueryParams>
145
+ | DropdownFilterField<OptionsQueryParams>
146
+ | CalendarFilterField
147
+ ))
148
+ | (Omit<BaseFilterField<Params>, 'field'> &
149
+ RangeNumberFilterField<StringKeyOf<Params>>);
107
150
 
108
151
  export type FilterOptions<Opt = Record<string, boolean>> = Record<
109
152
  keyof Opt,
110
- MultiSelectOption[]
153
+ Option[]
111
154
  >;
112
155
 
113
156
  export type LoadingFilters = Record<string, boolean>;
@@ -146,11 +189,6 @@ export interface FilterContainerProps {
146
189
  * Slots for FilterContainer component
147
190
  */
148
191
  export type FilterContainerSlots = {
149
- /**
150
- * @deprecated Please use props.fields instead
151
- */
152
- default: Slot;
153
-
154
192
  /**
155
193
  * Additional template for field.
156
194
  */
@@ -5,11 +5,12 @@ import {
5
5
  MaybeArray,
6
6
  } from 'vee-validate';
7
7
  import { Ref, Slot } from 'vue';
8
+
8
9
  import {
9
10
  ClassComponent,
10
11
  GlobalComponentConstructor,
11
- Nullable,
12
12
  HintedString,
13
+ Nullable,
13
14
  } from '../ts-helpers';
14
15
 
15
16
  export type Condition =
@@ -103,6 +103,7 @@ export type WangsIcons =
103
103
  | 'filter'
104
104
  | 'folder'
105
105
  | 'folder-add-line'
106
+ | 'gate'
106
107
  | 'group'
107
108
  | 'hand-coin'
108
109
  | 'handheld'
@@ -123,6 +124,7 @@ export type WangsIcons =
123
124
  | 'link-unlink-m'
124
125
  | 'list-settings'
125
126
  | 'loader-4'
127
+ | 'lock-line'
126
128
  | 'logout-box-r'
127
129
  | 'mail-open'
128
130
  | 'mail-send'
@@ -131,6 +133,7 @@ export type WangsIcons =
131
133
  | 'map-pin'
132
134
  | 'menu'
133
135
  | 'menu-unfold'
136
+ | 'mind-map'
134
137
  | 'minus'
135
138
  | 'money-cny-box'
136
139
  | 'money-dollar-circle'
@@ -151,6 +154,7 @@ export type WangsIcons =
151
154
  | 'qr'
152
155
  | 'qr-scan'
153
156
  | 'reception'
157
+ | 'recycle-bin'
154
158
  | 'refresh'
155
159
  | 'replace-tag'
156
160
  | 'report-tag'
@@ -9,6 +9,7 @@
9
9
  *
10
10
  */
11
11
  import { TransitionProps, VNode } from 'vue';
12
+
12
13
  import { ComponentHooks } from '../basecomponent';
13
14
  import { PassThroughOptions } from '../passthrough';
14
15
  import {
@@ -195,6 +196,13 @@ export interface ImageProps {
195
196
  * The thumbnail image.
196
197
  */
197
198
  src?: string | Blob;
199
+
200
+ /**
201
+ * Wether use preview full image functionality
202
+ *
203
+ * @default true
204
+ */
205
+ preview?: boolean;
198
206
  /**
199
207
  * The thumbnail image width.
200
208
  *
@@ -141,6 +141,12 @@ export interface ImageCompressorProps {
141
141
  * @default true
142
142
  */
143
143
  showInfo?: boolean;
144
+ /**
145
+ * Change the requirements of the photo
146
+ *
147
+ * @default undefined - will use maxSizeRequirement, imageTypeRequirement from LocaleConfig
148
+ */
149
+ customRequirements?: string[];
144
150
  /**
145
151
  * Show dialog confirmation before delete the image.
146
152
  */
@@ -162,6 +168,10 @@ export interface ImageCompressorProps {
162
168
  * @default 'webp'
163
169
  */
164
170
  fileType?: 'webp' | 'jpeg' | 'jpg';
171
+ /**
172
+ * @default normal
173
+ */
174
+ type?: 'inline-table' | 'normal';
165
175
  }
166
176
 
167
177
  export interface ImageCompressorSlots {
@@ -178,6 +188,10 @@ export type ImageCompressorEmits = {
178
188
  */
179
189
  'applyProp': [];
180
190
  'update:defaultImage': [index?: number];
191
+ /**
192
+ * Emits on every changes in `field.value`
193
+ */
194
+ 'update:fieldValue': [value?: File[] | File];
181
195
  /**
182
196
  * On delete button clicked.
183
197
  *
@@ -1,65 +1,79 @@
1
- export * from '.././components';
2
- export * from '../../reader-tagsamurai/components';
3
- export { default as Animation } from './animation/Animation.vue';
4
1
  export { default as ApproverInfo } from './approverinfo/ApproverInfo.vue';
5
2
  export { default as Badge } from './badge/Badge.vue';
6
3
  export { default as BadgeGroup } from './badgegroup/BadgeGroup.vue';
7
- export { default as BaseTree } from '.././components/basetree/BaseTree.vue';
4
+ export { default as BaseTree } from './basetree/BaseTree.vue';
8
5
  export { default as Breadcrumb } from './breadcrumb/Breadcrumb.vue';
9
6
  export { default as Button } from './button/Button.vue';
10
7
  export { default as ButtonBulkAction } from './buttonbulkaction/ButtonBulkAction.vue';
11
8
  export { default as ButtonCopy } from './buttoncopy/ButtonCopy.vue';
12
9
  export { default as ButtonDownload } from './buttondownload/ButtonDownload.vue';
13
10
  export { default as ButtonFilter } from './buttonfilter/ButtonFilter.vue';
14
- export { default as ButtonImportExcel } from './buttonImportExcel/ButtonImportExcel.vue';
15
11
  export { default as ButtonRadio } from './buttonradio/ButtonRadio.vue';
12
+ export { default as ButtonScan } from './buttonscan/ButtonScan.vue';
13
+ export { default as ButtonSearchByScan } from './buttonsearchbyscan/ButtonSearchByScan.vue';
16
14
  export { default as ButtonSearch } from './buttonsearch/ButtonSearch.vue';
17
- export { default as ButtonSelectTree } from '.././components/buttonselecttree/ButtonSelectTree.vue';
18
- export { default as ButtonSplit } from './buttonsplit/ButtonSplit.vue';
15
+ export { default as ButtonSelectTree } from './buttonselecttree/ButtonSelectTree.vue';
16
+ export { default as ButtonSync } from './buttonsync/ButtonSync.vue';
19
17
  export { default as ButtonToggle } from './buttontoggle/ButtonToggle.vue';
20
- export { default as Calendar } from '.././components/calendar/Calendar.vue';
18
+ export { default as Calendar } from './calendar/Calendar.vue';
21
19
  export { default as Card } from './card/Card.vue';
20
+ export { default as Carousel } from './carousel/Carousel.vue';
22
21
  export { default as Checkbox } from './checkbox/Checkbox.vue';
23
- export { default as CodeSnippet } from './codesnippet/CodeSnippet.vue';
24
22
  export { default as DataTable } from './datatable/DataTable.vue';
25
23
  export { default as Dialog } from './dialog/Dialog.vue';
26
24
  export { default as DialogConfirm } from './dialogconfirm/DialogConfirm.vue';
27
25
  export { default as DialogForm } from './dialogform/DialogForm.vue';
28
- export { default as DialogSelectTree } from '.././components/dialogselecttree/DialogSelectTree.vue';
26
+ export { default as DialogSelectTree } from './dialogselecttree/DialogSelectTree.vue';
29
27
  export { default as Dropdown } from './dropdown/Dropdown.vue';
30
- export { default as Editor } from './editor/Editor.vue';
31
28
  export { default as FileUpload } from './fileupload/FileUpload.vue';
32
- export { default as FilterContainer } from './filtercontainer/FilterContainer.vue';
33
29
  export { default as Form } from './form/Form.vue';
34
30
  export { default as Icon } from './icon/Icon.vue';
35
31
  export { default as Image } from './image/Image.vue';
36
32
  export { default as ImageCompressor } from './imagecompressor/ImageCompressor.vue';
37
- export { default as InlineMessage } from '.././components/inlinemessage/InlineMessage.vue';
33
+ export { default as InlineMessage } from './inlinemessage/InlineMessage.vue';
38
34
  export { default as InputBadge } from './inputbadge/InputBadge.vue';
39
35
  export { default as InputCurrency } from './inputcurrency/InputCurrency.vue';
40
36
  export { default as InputEmail } from './inputemail/InputEmail.vue';
41
37
  export { default as InputNumber } from './inputnumber/InputNumber.vue';
38
+ export { default as InputOtp } from './inputotp/InputOtp.vue';
42
39
  export { default as InputPassword } from './inputpassword/InputPassword.vue';
43
40
  export { default as InputPhoneNumber } from './inputphonenumber/InputPhoneNumber.vue';
44
41
  export { default as InputRangeNumber } from './inputrangenumber/InputRangeNumber.vue';
45
- export { default as InputSearch } from './inputsearch/InputSearch.vue';
46
42
  export { default as InputText } from './inputtext/InputText.vue';
47
43
  export { default as InputURL } from './inputurl/InputURL.vue';
48
44
  export { default as InvisibleField } from './invisiblefield/InvisibleField.vue';
49
- export { default as LanguageDropdown } from './languagedropdown/LanguageDropdown.vue';
50
45
  export { default as LiteDropdown } from './litedropdown/LiteDropdown.vue';
46
+ export { default as LanguageSwitcher } from './languageswitcher/LanguageSwitcher.vue';
51
47
  export { default as Loading } from './loading/Loading.vue';
52
48
  export { default as Menu } from './menu/Menu.vue';
53
49
  export { default as MultiSelect } from './multiselect/MultiSelect.vue';
54
50
  export { default as OverlayPanel } from './overlaypanel/OverlayPanel.vue';
55
- export { default as ProgressBar } from './progressbar/ProgressBar.vue';
56
- export { default as QuickFilter } from './quickfilter/QuickFilter.vue';
51
+ export { default as Paginator } from './paginator/Paginator.vue';
57
52
  export { default as TabMenu } from './tabmenu/TabMenu.vue';
53
+ export { default as TagType } from './tagtype/TagType.vue';
58
54
  export { default as Textarea } from './textarea/Textarea.vue';
59
55
  export { default as Timeline } from './timeline/Timeline.vue';
60
56
  export { default as Toast } from './toast/Toast.vue';
61
57
  export { default as ToggleSwitch } from './toggleswitch/ToggleSwitch.vue';
62
- export { default as TooltipSpan } from './tooltipspan/TooltipSpan.vue';
63
- export { default as Tree } from '.././components/tree/Tree.vue';
64
- export { default as UserGroup } from './usergroup/UserGroup.vue';
58
+ export { default as Tree } from './tree/Tree.vue';
65
59
  export { default as UserName } from './username/UserName.vue';
60
+
61
+ export { default as AssetInfo } from './assetinfo/AssetInfo.vue';
62
+ export { default as ButtonAddByScan } from './buttonaddbyscan/ButtonAddByScan.vue';
63
+ export { default as ButtonSelectUser } from './buttonselectuser/ButtonSelectUser.vue';
64
+ export { default as ButtonViewLog } from './buttonviewlog/ButtonViewLog.vue';
65
+ export { default as DialogLinkedAsset } from './dialoglinkedasset/DialogLinkedAsset.vue';
66
+ export { default as DialogSelectUser } from './dialogselectuser/DialogSelectUser.vue';
67
+ export { default as UserWithIcon } from './userwithicon/UserWithIcon.vue';
68
+ export { default as FilterContainer } from './filtercontainer/FilterContainer.vue';
69
+ export { default as InputSearch } from './inputsearch/InputSearch.vue';
70
+ export { default as TransactionRoles } from './transactionroles/TransactionRoles.vue';
71
+ export { default as DialogPrintQR } from './dialogprintqr/DialogPrintQR.vue';
72
+ export { default as DialogAssetNameDetail } from './dialogassetnamedetail/DialogAssetNameDetail.vue';
73
+ export { default as DialogReportTag } from './dialogreporttag/DialogReportTag.vue';
74
+ export { default as DialogReportDamage } from './dialogreportdamage/DialogReportDamage.vue';
75
+ export { default as DialogReportMissing } from './dialogreportmissing/DialogReportMissing.vue';
76
+ export { default as DialogTransferLog } from './dialogtransferlog/DialogTransferLog.vue';
77
+ export { default as DialogDamageLog } from './dialogdamagelog/DialogDamageLog.vue';
78
+ export { default as DisposalReport } from './disposalreport/DisposalReport.vue';
79
+ export { default as Steps } from './steps/Steps.vue';
@@ -1,4 +1,8 @@
1
1
  import { CurrencyFormat } from '../InputCurrency.vue.d';
2
2
  declare const getCurrency: (code?: string) => CurrencyFormat;
3
- declare const formatCurrency: (value?: number | string | null, currency?: string, prefix?: boolean) => string;
3
+ declare const formatCurrency: (
4
+ value?: number | string | null,
5
+ currency?: string,
6
+ prefix?: boolean,
7
+ ) => string;
4
8
  export { getCurrency, formatCurrency };
@@ -1,4 +1,5 @@
1
1
  import { DefineComponent } from 'vue';
2
+
2
3
  import { InputTextEmits, InputTextProps } from '../inputtext/InputText.vue.d';
3
4
 
4
5
  /**
@@ -1,4 +1,5 @@
1
1
  import { DefineComponent, Slot } from 'vue';
2
+
2
3
  import { CustomValidation } from '../form/Form.vue.d';
3
4
 
4
5
  export type InputNumberEvent = number | string | undefined;
@@ -261,6 +262,11 @@ export type InputNumberEmits = {
261
262
  export interface InputNumberSlots {
262
263
  'addon-left': Slot;
263
264
  'addon-right': Slot;
265
+ /**
266
+ * Slot for content in the right side of field label
267
+ */
268
+ 'field-label-addon': Slot;
269
+ 'validatormessage': Slot;
264
270
  }
265
271
 
266
272
  /**
@@ -0,0 +1,3 @@
1
+ import { WangsInputOtp } from '@wangs-ui/vue';
2
+
3
+ export default WangsInputOtp;
@@ -1,4 +1,5 @@
1
1
  import { DefineComponent } from 'vue';
2
+
2
3
  import { CustomValidation } from '../form/Form.vue.d';
3
4
 
4
5
  export type InputPasswordProps = {
@@ -1,4 +1,5 @@
1
1
  import { DefineComponent } from 'vue';
2
+
2
3
  import { CustomValidation } from '../form/Form.vue.d';
3
4
 
4
5
  export interface InputrangeNumberLocaleConfig {
@@ -1,4 +1,8 @@
1
- import { ClassComponent, GlobalComponentConstructor } from '../.././components/ts-helpers';
1
+ import {
2
+ ClassComponent,
3
+ GlobalComponentConstructor,
4
+ } from '../../components/ts-helpers';
5
+
2
6
  export type InputSearchEmits = {
3
7
  /**
4
8
  * Emits when the Enter key is pressed.
@@ -28,3 +32,5 @@ declare module '@vue/runtime-core' {
28
32
  InputSearch: GlobalComponentConstructor<InputSearch>;
29
33
  }
30
34
  }
35
+
36
+ export default InputSearch;
@@ -8,9 +8,10 @@
8
8
  *
9
9
  */
10
10
  import { InputHTMLAttributes, Slot } from 'vue';
11
+
11
12
  import { ComponentHooks } from '../basecomponent';
12
- import { ClassComponent, Nullable } from '../ts-helpers';
13
13
  import { CustomValidation } from '../form/Form.vue.d';
14
+ import { ClassComponent, Nullable } from '../ts-helpers';
14
15
  export declare type InputTextPassThroughOptionType<T = any> =
15
16
  | InputTextPassThroughAttributes
16
17
  | ((
@@ -1,9 +1,11 @@
1
1
  import { Slot } from 'vue';
2
- import { ClassComponent } from '../ts-helpers';
2
+
3
3
  import {
4
4
  InputTextEmits,
5
5
  InputTextProps,
6
- } from 'lib/components/inputtext/InputText.vue.d';
6
+ } from '../../components/inputtext/InputText.vue.d';
7
+
8
+ import { ClassComponent } from '../ts-helpers';
7
9
 
8
10
  /**
9
11
  * InputURL component props
@@ -1,36 +1,32 @@
1
- import { Nullable } from '../ts-helpers';
2
- type FieldValue = Nullable<string> | Nullable<number> | string | string[] | number | number[] | boolean | undefined | null | object;
3
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
4
- value?: FieldValue;
5
- fieldName?: string;
6
- }>, {
7
- value: any;
8
- fieldName: string;
9
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
10
- value?: FieldValue;
11
- fieldName?: string;
12
- }>, {
13
- value: any;
14
- fieldName: string;
15
- }>>>, {
16
- value: FieldValue;
17
- fieldName: string;
18
- }, {}>;
19
- export default _default;
20
- type __VLS_WithDefaults<P, D> = {
21
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
22
- default: D[K];
23
- }> : P[K];
24
- };
25
- type __VLS_Prettify<T> = {
26
- [K in keyof T]: T[K];
27
- } & {};
28
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
- type __VLS_TypePropsToOption<T> = {
30
- [K in keyof T]-?: {} extends Pick<T, K> ? {
31
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
32
- } : {
33
- type: import('vue').PropType<T[K]>;
34
- required: true;
35
- };
36
- };
1
+ import { ClassComponent, Nullable } from '../ts-helpers';
2
+
3
+ export type FieldValue =
4
+ | Nullable<string>
5
+ | Nullable<number>
6
+ | string
7
+ | string[]
8
+ | number
9
+ | number[]
10
+ | boolean
11
+ | undefined
12
+ | null
13
+ | object;
14
+
15
+ export interface InvisibleFieldProps {
16
+ value?: FieldValue;
17
+ fieldName?: string;
18
+ }
19
+
20
+ declare class InvisibleField extends ClassComponent<
21
+ InvisibleFieldProps,
22
+ unknown,
23
+ unknown
24
+ > {}
25
+
26
+ declare module 'vue' {
27
+ export interface GlobalComponents {
28
+ InvisibleField: typeof InvisibleField;
29
+ }
30
+ }
31
+
32
+ export default InvisibleField;
@@ -1,23 +1,9 @@
1
- import { DropdownEmits, DropdownProps } from '../dropdown/Dropdown.vue.d';
2
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
-
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
- /**
11
- * The name of the language in English (e.g., "English", "Français").
12
- */
13
- name: string;
1
+ import {
2
+ DropdownEmits,
3
+ DropdownProps,
4
+ } from '../../components/dropdown/Dropdown.vue.d';
14
5
 
15
- /**
16
- * The URL of the country's flag image.
17
- * Flags are sourced from https://flagcdn.com and are typically in SVG format for high-quality resolution.
18
- */
19
- flag?: string;
20
- }
6
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
21
7
 
22
8
  export type LanguageDropdownProps = DropdownProps & {};
23
9
  export type LanguageDropdownEmits = DropdownEmits & {};
@@ -1,13 +1,15 @@
1
- import { DropdownOption, OptionValue } from 'lib/types/options.type';
2
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
1
  import { DropdownChangeEvent } from 'primevue/dropdown';
4
2
 
3
+ import { Option, OptionValue } from '../../components/dropdown/Dropdown.vue.d';
4
+
5
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
6
+
5
7
  /**
6
8
  * Lite dropdown component props
7
9
  */
8
10
  export interface LiteDropdownProps {
9
11
  modelValue: OptionValue | undefined;
10
- options: DropdownOption[] | undefined;
12
+ options: Option[] | undefined;
11
13
  /**
12
14
  * Specify the property name of option to be used as label.
13
15
  *