@fewangsit/wangsvue 1.5.178

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 (235) hide show
  1. package/assets/json/currencies.json.d.ts +1068 -0
  2. package/assets/json/emoji-by-group.json.d.ts +15629 -0
  3. package/assets/lottie/loading-plane.lottie +0 -0
  4. package/assets/lottie/loading-table.lottie +0 -0
  5. package/assets/lottie/no-data.lottie +0 -0
  6. package/build-entry.d.ts +12 -0
  7. package/components/animation/Animation.vue.d.ts +21 -0
  8. package/components/approverinfo/ApproverInfo.vue.d.ts +52 -0
  9. package/components/badge/Badge.vue.d.ts +57 -0
  10. package/components/badgegroup/BadgeGroup.vue.d.ts +33 -0
  11. package/components/breadcrumb/Breadcrumb.vue.d.ts +27 -0
  12. package/components/button/Button.vue.d.ts +186 -0
  13. package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +70 -0
  14. package/components/buttondownload/ButtonDownload.vue.d.ts +46 -0
  15. package/components/buttonfilter/ButtonFilter.vue.d.ts +13 -0
  16. package/components/buttonradio/ButtonRadio.vue.d.ts +219 -0
  17. package/components/buttonsearch/ButtonSearch.vue.d.ts +35 -0
  18. package/components/buttontoggle/ButtonToggle.vue.d.ts +22 -0
  19. package/components/calendar/Calendar.vue.d.ts +134 -0
  20. package/components/card/Card.vue.d.ts +128 -0
  21. package/components/changelog/Changelog.vue.d.ts +165 -0
  22. package/components/changelogpage/ChangelogFilter.vue.d.ts +16 -0
  23. package/components/changelogpage/ChangelogPage.vue.d.ts +180 -0
  24. package/components/checkbox/Checkbox.vue.d.ts +312 -0
  25. package/components/codesnippet/CodeSnippet.vue.d.ts +13 -0
  26. package/components/comment/Comment.vue.d.ts +180 -0
  27. package/components/comment/CommentBlock.vue.d.ts +35 -0
  28. package/components/customcolumn/CustomColumn.vue.d.ts +32 -0
  29. package/components/datatable/DataTable.vue.d.ts +659 -0
  30. package/components/datatable/MultiRow.vue.d.ts +16 -0
  31. package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +1 -0
  32. package/components/datatable/helpers/filter.helper.d.ts +28 -0
  33. package/components/datatable/helpers/index.d.ts +3 -0
  34. package/components/datatable/helpers/readConfig.helper.d.ts +2 -0
  35. package/components/datatable/store/dataTable.store.d.ts +22 -0
  36. package/components/detailmember/DetailMember.vue.d.ts +79 -0
  37. package/components/detailmember/DetailMemberAdmin.vue.d.ts +18 -0
  38. package/components/detailmember/DetailMemberLeader.vue.d.ts +15 -0
  39. package/components/detailmember/DetailMemberLog.vue.d.ts +15 -0
  40. package/components/detailmember/DialogMemberAdmin.vue.d.ts +23 -0
  41. package/components/detailsprint/DetailSprint.vue.d.ts +89 -0
  42. package/components/detailsprint/DialogAddPbi.vue.d.ts +24 -0
  43. package/components/detailsprint/DialogConfirmSprint.vue.d.ts +24 -0
  44. package/components/detailsprint/SprintSummary.vue.d.ts +15 -0
  45. package/components/detailsprint/helpers/updateSprintStatus.util.d.ts +3 -0
  46. package/components/detailsprint/options/quickFilterFields.d.ts +3 -0
  47. package/components/dialog/Dialog.vue.d.ts +451 -0
  48. package/components/dialogAdjustmentTask/DialogAdjustmentTask.vue.d.ts +158 -0
  49. package/components/dialogAdjustmentTask/DialogAdjustmentTaskHeader.vue.d.ts +27 -0
  50. package/components/dialogAdjustmentTask/common/TaskDependency.vue.d.ts +12 -0
  51. package/components/dialogAdjustmentTask/common/TaskStatusBadge.vue.d.ts +16 -0
  52. package/components/dialogAdjustmentTask/options/dialogAdjustmentTaskBulkAction.d.ts +3 -0
  53. package/components/dialogAdjustmentTask/options/dialogAdjustmentTaskSingleAction.d.ts +3 -0
  54. package/components/dialogAdjustmentTask/options/dialogAdjustmentTaskTableColumn.d.ts +2 -0
  55. package/components/dialogconfirm/DialogConfirm.vue.d.ts +136 -0
  56. package/components/dialogdetailpbi/AssignMember.vue.d.ts +23 -0
  57. package/components/dialogdetailpbi/DialogDetailPbi.vue.d.ts +120 -0
  58. package/components/dialogdetailpbi/TaskDetailPbi.vue.d.ts +29 -0
  59. package/components/dialogdetailpbi/TaskDetailUnassignedPbi.vue.d.ts +23 -0
  60. package/components/dialogdetailpbi/options/memberFilterFields.d.ts +2 -0
  61. package/components/dialogdetailpbi/options/taskQuickFilterFields.d.ts +3 -0
  62. package/components/dialogform/DialogForm.vue.d.ts +256 -0
  63. package/components/dialogimprovementtask/DialogImprovementTask.vue.d.ts +24 -0
  64. package/components/dialogreportbug/DialogReportBug.vue.d.ts +25 -0
  65. package/components/dialogreportbug/imageData.json.d.ts +28 -0
  66. package/components/dropdown/Dropdown.vue.d.ts +182 -0
  67. package/components/editor/CodeSnippetAdapter.vue.d.ts +68 -0
  68. package/components/editor/Editor.vue.d.ts +192 -0
  69. package/components/editor/EditorButton.vue.d.ts +15 -0
  70. package/components/editor/MentionList.vue.d.ts +35 -0
  71. package/components/editor/MentionSection.vue.d.ts +68 -0
  72. package/components/editor/codeSnippetExtension.d.ts +3 -0
  73. package/components/editor/mentionSectionExtension.d.ts +3 -0
  74. package/components/editor/suggestion.d.ts +2 -0
  75. package/components/fieldwrapper/FieldWrapper.vue.d.ts +15 -0
  76. package/components/fileupload/FileUpload.vue.d.ts +151 -0
  77. package/components/filtercontainer/FilterContainer.vue.d.ts +109 -0
  78. package/components/filtercontainer/helpers/applyFilter.helper.d.ts +3 -0
  79. package/components/filtercontainer/helpers/getOption.helper.d.ts +3 -0
  80. package/components/form/Form.vue.d.ts +207 -0
  81. package/components/helpers/convertToArrayClass.helper.d.ts +2 -0
  82. package/components/helpers/index.d.ts +2 -0
  83. package/components/icon/Icon.vue.d.ts +215 -0
  84. package/components/image/Image.vue.d.ts +370 -0
  85. package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +36 -0
  86. package/components/imagecompressor/ImageCompressor.vue.d.ts +192 -0
  87. package/components/imagecompressor/ImageInputInfo.vue.d.ts +30 -0
  88. package/components/index.d.ts +123 -0
  89. package/components/inputbadge/InputBadge.vue.d.ts +118 -0
  90. package/components/inputcurrency/InputCurrency.vue.d.ts +132 -0
  91. package/components/inputcurrency/helpers/currency.helper.d.ts +4 -0
  92. package/components/inputemail/InputEmail.vue.d.ts +26 -0
  93. package/components/inputgroup/InputGroup.vue.d.ts +131 -0
  94. package/components/inputinitialname/InputInitialName.vue.d.ts +118 -0
  95. package/components/inputnumber/InputNumber.vue.d.ts +222 -0
  96. package/components/inputpassword/InputPassword.vue.d.ts +33 -0
  97. package/components/inputphonenumber/InputPhoneNumber.vue.d.ts +96 -0
  98. package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +8 -0
  99. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +98 -0
  100. package/components/inputrepositoryname/InputRepositoryName.vue.d.ts +87 -0
  101. package/components/inputtext/InputText.vue.d.ts +226 -0
  102. package/components/inputurl/InputURL.vue.d.ts +99 -0
  103. package/components/invisiblefield/InvisibleField.vue.d.ts +36 -0
  104. package/components/litedropdown/LiteDropdown.vue.d.ts +97 -0
  105. package/components/loading/Loading.vue.d.ts +34 -0
  106. package/components/loading/store/loading.store.d.ts +8 -0
  107. package/components/menu/Menu.vue.d.ts +369 -0
  108. package/components/menu/helpers/filterMenu.helper.d.ts +10 -0
  109. package/components/menu/helpers/index.d.ts +1 -0
  110. package/components/menuitem/index.d.ts +93 -0
  111. package/components/multiselect/MultiSelect.vue.d.ts +169 -0
  112. package/components/notificationitem/NotificationItem.vue.d.ts +108 -0
  113. package/components/notificationitem/helpers/goToDetail.helper.d.ts +6 -0
  114. package/components/overlaypanel/OverlayPanel.vue.d.ts +292 -0
  115. package/components/pdfviewer/PDFViewer.vue.d.ts +28 -0
  116. package/components/progressbar/ProgressBar.vue.d.ts +73 -0
  117. package/components/quickfilter/QuickFilter.vue.d.ts +17 -0
  118. package/components/summaryaccordion/SummaryAccordion.vue.d.ts +123 -0
  119. package/components/tabmenu/TabMenu.vue.d.ts +275 -0
  120. package/components/taskdetail/TaskDetail.vue.d.ts +83 -0
  121. package/components/taskdetail/blocks/Tabs/DescriptionTab.vue.d.ts +2 -0
  122. package/components/taskdetail/blocks/Tabs/EventLogTab.vue.d.ts +2 -0
  123. package/components/taskdetail/blocks/Tabs/InfoTaskTab.vue.d.ts +2 -0
  124. package/components/taskdetail/blocks/Tabs/ReviewTab.vue.d.ts +2 -0
  125. package/components/taskdetail/blocks/common/AttachmentThumbnail.vue.d.ts +18 -0
  126. package/components/taskdetail/blocks/common/DialogAddAttachment.vue.d.ts +32 -0
  127. package/components/taskdetail/blocks/common/DialogAssignMember.vue.d.ts +30 -0
  128. package/components/taskdetail/blocks/common/DialogConfirmApproval.vue.d.ts +26 -0
  129. package/components/taskdetail/blocks/common/DialogConfirmDeleteTask.vue.d.ts +28 -0
  130. package/components/taskdetail/blocks/common/DialogConfirmEdit.vue.d.ts +24 -0
  131. package/components/taskdetail/blocks/common/DialogConfirmFinishTask.vue.d.ts +24 -0
  132. package/components/taskdetail/blocks/common/DialogPriorityValue.vue.d.ts +21 -0
  133. package/components/taskdetail/blocks/common/DialogSetDuration.vue.d.ts +18 -0
  134. package/components/taskdetail/blocks/common/InputAdditional.vue.d.ts +28 -0
  135. package/components/taskdetail/blocks/common/Legend.vue.d.ts +79 -0
  136. package/components/taskdetail/blocks/common/SonarQubeSummary.vue.d.ts +17 -0
  137. package/components/taskdetail/blocks/common/TaskMore.vue.d.ts +16 -0
  138. package/components/taskdetail/blocks/sections/API/API.vue.d.ts +2 -0
  139. package/components/taskdetail/blocks/sections/API/APIItem.vue.d.ts +28 -0
  140. package/components/taskdetail/blocks/sections/API/DialogAddEditApi.vue.d.ts +25 -0
  141. package/components/taskdetail/blocks/sections/API/DialogTestApi.vue.d.ts +22 -0
  142. package/components/taskdetail/blocks/sections/API/IsRequiredText.vue.d.ts +15 -0
  143. package/components/taskdetail/blocks/sections/API/TestApi/options/keyValueTableColumn.d.ts +2 -0
  144. package/components/taskdetail/blocks/sections/API/ValueFormDataInput.vue.d.ts +37 -0
  145. package/components/taskdetail/blocks/sections/Attachment/Attachment.vue.d.ts +2 -0
  146. package/components/taskdetail/blocks/sections/Attachment/AttachmentChangelog.vue.d.ts +18 -0
  147. package/components/taskdetail/blocks/sections/Attachment/AttachmentItem.vue.d.ts +65 -0
  148. package/components/taskdetail/blocks/sections/Checklist/Checklist.vue.d.ts +20 -0
  149. package/components/taskdetail/blocks/sections/Checklist/ChecklistChangelog.vue.d.ts +18 -0
  150. package/components/taskdetail/blocks/sections/Checklist/DialogAddChecklist.vue.d.ts +32 -0
  151. package/components/taskdetail/blocks/sections/Checklist/DialogConfirmChecklist.vue.d.ts +26 -0
  152. package/components/taskdetail/blocks/sections/Checklist/DialogDetailChecklistTemplate.vue.d.ts +18 -0
  153. package/components/taskdetail/blocks/sections/Checklist/DialogSaveChecklistTemplate.vue.d.ts +22 -0
  154. package/components/taskdetail/blocks/sections/Description/Description.vue.d.ts +2 -0
  155. package/components/taskdetail/blocks/sections/Review/DialogFinishReview.vue.d.ts +26 -0
  156. package/components/taskdetail/blocks/sections/Review/DialogReviewLeader.vue.d.ts +25 -0
  157. package/components/taskdetail/blocks/sections/Review/ReviewItem.vue.d.ts +16 -0
  158. package/components/taskdetail/blocks/sections/TaskDependency/DialogCustomDependency.vue.d.ts +20 -0
  159. package/components/taskdetail/blocks/sections/TaskDependency/TaskDependency.vue.d.ts +2 -0
  160. package/components/taskdetail/blocks/sections/TaskLink/DialogSetTaskLink.vue.d.ts +40 -0
  161. package/components/taskdetail/blocks/sections/TaskLink/TaskLink.vue.d.ts +2 -0
  162. package/components/taskdetail/blocks/sections/TaskLink/TaskLinkChangelog.vue.d.ts +22 -0
  163. package/components/taskdetail/blocks/sections/TaskList/LegendList.vue.d.ts +55 -0
  164. package/components/taskdetail/blocks/sections/TaskList/TaskList.vue.d.ts +15 -0
  165. package/components/taskdetail/blocks/sections/Ticket/Ticket.vue.d.ts +2 -0
  166. package/components/tasktable/DependencyCol.vue.d.ts +16 -0
  167. package/components/tasktable/DialogConfirmDeleteTaskPermanently.vue.d.ts +24 -0
  168. package/components/tasktable/DialogConfirmRestoreTask.vue.d.ts +24 -0
  169. package/components/tasktable/DialogSelectProject.vue.d.ts +20 -0
  170. package/components/tasktable/TaskTable.vue.d.ts +82 -0
  171. package/components/textarea/Textarea.vue.d.ts +121 -0
  172. package/components/timeline/Timeline.vue.d.ts +116 -0
  173. package/components/timeline/TimelineContentByType.vue.d.ts +16 -0
  174. package/components/toast/Toast.vue.d.ts +354 -0
  175. package/components/tooltipspan/TooltipSpan.vue.d.ts +21 -0
  176. package/components/ts-helpers.d.ts +62 -0
  177. package/components/usergroup/UserGroup.vue.d.ts +58 -0
  178. package/components/username/UserName.vue.d.ts +62 -0
  179. package/components/validatormessage/ValidatorMessage.vue.d.ts +13 -0
  180. package/components/workcalendar/WorkCalendar.vue.d.ts +55 -0
  181. package/directives/focus.d.ts +7 -0
  182. package/directives/index.d.ts +1 -0
  183. package/dto/member.dto.d.ts +65 -0
  184. package/dto/task.dto.d.ts +86 -0
  185. package/dto/taskApi.dto.d.ts +20 -0
  186. package/dto/taskAttachment.dto.d.ts +11 -0
  187. package/dto/taskChecklist.dto.d.ts +39 -0
  188. package/dto/taskDependency.dto.d.ts +9 -0
  189. package/event-bus/index.d.ts +47 -0
  190. package/event-bus/mitt.d.ts +21 -0
  191. package/index.d.ts +2 -0
  192. package/main.d.ts +2 -0
  193. package/package.json +16 -0
  194. package/plugins/formValidation.d.ts +10 -0
  195. package/services/calendar.service.d.ts +9 -0
  196. package/services/dataManager.service.d.ts +5 -0
  197. package/services/sonarQube.service.d.ts +10 -0
  198. package/style.css +13 -0
  199. package/types/member.type.d.ts +72 -0
  200. package/types/options.type.d.ts +14 -0
  201. package/types/project.type.d.ts +64 -0
  202. package/types/projectApproval.type.d.ts +3 -0
  203. package/types/projectModule.type.d.ts +6 -0
  204. package/types/projectProcess.type.d.ts +17 -0
  205. package/types/projectQc.type.d.ts +52 -0
  206. package/types/projectSubmodule.type.d.ts +14 -0
  207. package/types/queryParamsStringfy.type.d.ts +3 -0
  208. package/types/roleDetailAccess.type.d.ts +17 -0
  209. package/types/subModule.type.d.ts +4 -0
  210. package/types/task.type.d.ts +256 -0
  211. package/types/team.type.d.ts +4 -0
  212. package/types/ticket.type.d.ts +13 -0
  213. package/types/user.type.d.ts +19 -0
  214. package/types/wangsStatus.type.d.ts +8 -0
  215. package/utils/convertJsonImage.util.d.ts +3 -0
  216. package/utils/date.util.d.ts +17 -0
  217. package/utils/exportToExcel.util.d.ts +20 -0
  218. package/utils/filterOptions.util.d.ts +3 -0
  219. package/utils/genPlaceholder.util.d.ts +3 -0
  220. package/utils/getAttachmentIcon.util.d.ts +8 -0
  221. package/utils/getProjectPermission.util.d.ts +4 -0
  222. package/utils/getSalesRole.util.d.ts +30 -0
  223. package/utils/getUser.util.d.ts +3 -0
  224. package/utils/getUserType.util.d.ts +2 -0
  225. package/utils/index.d.ts +9 -0
  226. package/utils/isIntersect.d.ts +2 -0
  227. package/utils/object.util.d.ts +2 -0
  228. package/utils/queryParamsStringfy.util.d.ts +7 -0
  229. package/utils/role.util.d.ts +2 -0
  230. package/utils/statusSeverity.util.d.ts +3 -0
  231. package/utils/textFormatter.util.d.ts +4 -0
  232. package/utils/toast.util.d.ts +36 -0
  233. package/utils/translation.util.d.ts +15 -0
  234. package/wangsvue.es.js +152940 -0
  235. package/wangsvue.system.js +467 -0
@@ -0,0 +1,222 @@
1
+ import { DefineComponent, Slot } from 'vue';
2
+ import { CustomValidation } from '../form/Form.vue.d';
3
+
4
+
5
+ export type InputNumberEvent = number | string | undefined;
6
+
7
+ /**
8
+ * InputNumber component props
9
+ */
10
+ export interface InputNumberProps {
11
+ /**
12
+ * Number modelValue of the input.
13
+ */
14
+ modelValue?: number;
15
+ /**
16
+ * Sets the initial value of the field.
17
+ * This will only available with option 'useValidator'.
18
+ *
19
+ * In use case like edit form, you need to display the previous inputted value.
20
+ */
21
+ value?: number;
22
+ /**
23
+ * Existing values to be checked with validation 'exist' - check the validatorMessage props
24
+ *
25
+ * - Need to specify the custom validation : { empty: 'Error message when empty' } within props validatorMessage
26
+ */
27
+ existingValues?: number[];
28
+ /**
29
+ * The input label. Tell the user what input is this.
30
+ */
31
+ label?: string;
32
+ /**
33
+ * Min input number value.
34
+ */
35
+ min?: number;
36
+ /**
37
+ * Max input number value.
38
+ */
39
+ max?: number;
40
+ /**
41
+ * The maximum input length.
42
+ *
43
+ * @default 16 digit number
44
+ */
45
+ maxDigit?: number;
46
+ /**
47
+ * Set the pad start of value.
48
+ *
49
+ * Insert '0' in the front of value
50
+ * @default 1
51
+ */
52
+ padStart?: number;
53
+ /**
54
+ * Weather the input should be validated with vee-validator or not.
55
+ * If you use this component within form input, you need to set this props as true.
56
+ */
57
+ useValidator?: boolean;
58
+ /**
59
+ * This prop is required if you use this component in a form input.
60
+ * Specify the unique field name, match with your needs for API request.
61
+ *
62
+ * @default 'numberInput'
63
+ */
64
+ fieldName?: string;
65
+ /**
66
+ * Whether this input field is required or not.
67
+ */
68
+ mandatory?: boolean;
69
+ /**
70
+ * Set custom validator message.
71
+ * Will be show if invalid="true"
72
+ */
73
+ validatorMessage?: string | CustomValidation;
74
+ /**
75
+ * Show the validator message on error.
76
+ *
77
+ * @default true;
78
+ */
79
+ showValidatorMessage?: boolean;
80
+ /**
81
+ * Specify the input placeholder.
82
+ *
83
+ * @default 'Enter {label}' or 'Enter number'
84
+ */
85
+ placeholder?: string;
86
+ /**
87
+ * Disabled the input.
88
+ */
89
+ disabled?: boolean;
90
+ /**
91
+ * State of invalid input.
92
+ */
93
+ invalid?: boolean;
94
+ /**
95
+ * Displays increment/decrement buttons.
96
+ */
97
+ showButtons?: boolean;
98
+ /**
99
+ * The width of input.
100
+ */
101
+ size?: 'small' | 'normal' | 'full';
102
+ /**
103
+ * Defines the behavior of the component.
104
+ * @defaultValue decimal
105
+ */
106
+ mode?: 'decimal' | 'currency';
107
+ /**
108
+ * The currency to use in currency formatting. Possible values are the [ISO 4217 currency codes](https://www.six-group.com/en/products-services/financial-information/data-standards.html#scrollTo=maintenance-agency), such as 'USD' for the US dollar, 'EUR' for the euro, or 'CNY' for the Chinese RMB.
109
+ * There is no default value; if the style is 'currency', the currency property must be provided.
110
+ */
111
+ currency?: string | undefined;
112
+ /**
113
+ * The `locale` variable specifies the regional setting or language preference to be used.
114
+ * It is an optional string that can influence date, time, number formatting, and other locale-specific operations.
115
+ *
116
+ * If not provided, the system may default to a pre-configured or fallback locale.
117
+ */
118
+ locale?: string;
119
+ /**
120
+ * Text to display before the value.
121
+ */
122
+ prefix?: string | undefined;
123
+ /**
124
+ * Text to display after the value.
125
+ */
126
+ suffix?: string | undefined;
127
+ /**
128
+ * The minimal digits of decimal value.
129
+ */
130
+ minFractionDigits?: number;
131
+ /**
132
+ * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.
133
+ * @defaultValue false
134
+ */
135
+ useGrouping?: boolean;
136
+ /**
137
+ * Show information about the field.
138
+ */
139
+ fieldInfo?: string;
140
+ /**
141
+ * The filed info tooltip position
142
+ */
143
+ tooltipPos?: 'top' | 'right' | 'bottom' | 'left';
144
+ /**
145
+ * Specify the appearance of addon right and left
146
+ * - filled - has background and border
147
+ * - plain - no background, no border
148
+ *
149
+ * @defaultValue filled
150
+ */
151
+ addonVariant?: 'filled' | 'plain';
152
+ /**
153
+ * Class to be bind on addon left component
154
+ */
155
+ addonLeftClass?: any;
156
+ /**
157
+ * Class to be bind on input group component
158
+ */
159
+ inputGroupClass?: any;
160
+ /**
161
+ * Class to be bind on input number component
162
+ */
163
+ inputNumberClass?: any;
164
+ /**
165
+ * Unique id for input number element
166
+ */
167
+ inputId?: string;
168
+ /**
169
+ * Set auto Resize Input
170
+ * The input width is counted by the value length
171
+ *
172
+ * @default false
173
+ */
174
+ autoResize?: boolean;
175
+ /**
176
+ * Allow input to have value null or undefined.
177
+ * If it sets to 'false', when the value is empty, it will fall back to min value if exists, zero otherwise
178
+ *
179
+ * @default true
180
+ */
181
+ allowEmptyValue?: boolean;
182
+ }
183
+
184
+ /**
185
+ * InputNumber component emits
186
+ */
187
+ export type InputNumberEmits = {
188
+ /**
189
+ * Emits when the input has losen focus.
190
+ * The model value is the valid value from given min and max number.
191
+ *
192
+ * If the inputed number is above max, return the max. And vice versa.
193
+ */
194
+ 'update:modelValue': [payload?: number];
195
+ /**
196
+ * If you need to check validation, you can use this events.
197
+ */
198
+ 'input': [payload?: number];
199
+ };
200
+
201
+ export interface InputNumberSlots {
202
+ 'addon-left': Slot;
203
+ 'addon-right': Slot;
204
+ }
205
+
206
+ /**
207
+ * **WangsVue - InputNumber**
208
+ *
209
+ * _Handle input number with form validation._
210
+ *
211
+ * --- ---
212
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
213
+ *
214
+ * @group form
215
+ */
216
+ declare const InputNumber: DefineComponent<
217
+ InputNumberProps,
218
+ InputNumberEmits,
219
+ InputNumberSlots
220
+ >;
221
+
222
+ export default InputNumber;
@@ -0,0 +1,33 @@
1
+ import { DefineComponent } from 'vue';
2
+ import { CustomValidation } from '../form/Form.vue.d';
3
+
4
+
5
+ export type InputPasswordProps = {
6
+ modelValue?: string;
7
+ label?: string;
8
+ labelClass?: string;
9
+ inputContainerClass?: string;
10
+ mandatory?: boolean;
11
+ placeholder?: string;
12
+ feedback?: boolean;
13
+ fieldName?: string;
14
+ useValidator?: boolean;
15
+ invalid?: boolean;
16
+ /**
17
+ * Set custom validator message.
18
+ * Will be show if invalid="true"
19
+ */
20
+ validatorMessage?: string | CustomValidation;
21
+ validatorMessageClass?: string;
22
+ };
23
+
24
+ export type InputPasswordEmits = {
25
+ 'update:modelValue': [payload?: string];
26
+ };
27
+
28
+ declare const InputPassword: DefineComponent<
29
+ InputPasswordProps,
30
+ InputPasswordEmits
31
+ >;
32
+
33
+ export default InputPassword;
@@ -0,0 +1,96 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+
4
+ /**
5
+ * InputPhoneNumber component props
6
+ */
7
+ export interface InputPhoneNumberProps {
8
+ /**
9
+ * ModelValue of the input.
10
+ */
11
+ modelValue?: string;
12
+ /**
13
+ * Sets the initial value of the field.
14
+ * This will only available with option 'useValidator'.
15
+ *
16
+ * In usecase like edit form, you need to display the previous inputted value.
17
+ */
18
+ value?: string;
19
+ /**
20
+ * The input label. Tell the user what input is this.
21
+ */
22
+ label?: string;
23
+ /**
24
+ * Specify the input placeholder.
25
+ *
26
+ * @default 'Enter phone number'
27
+ */
28
+ placeholder?: string;
29
+ /**
30
+ * Disabled the input.
31
+ */
32
+ disabled?: boolean;
33
+ /**
34
+ * The maximum input length.
35
+ *
36
+ * @default 14 digit number
37
+ */
38
+ maxDigit?: number;
39
+ /**
40
+ * State of invalid input.
41
+ */
42
+ invalid?: boolean;
43
+ /**
44
+ * Wether the input should be validated with vee-validator or not.
45
+ * If you use this component within form input, you need to set this props as true.
46
+ */
47
+ useValidator?: boolean;
48
+ /**
49
+ * This prop is required if you use this component in a form input.
50
+ * Specify the unique field name, match with your needs for API request.
51
+ *
52
+ * @default 'numberInput'
53
+ */
54
+ fieldName?: string;
55
+ /**
56
+ * Wether this input field is required or not.
57
+ */
58
+ mandatory?: boolean;
59
+ /**
60
+ * Set the custom validator message.
61
+ * By default each field has preserved with its validator message, you don't need to worrying about the message.
62
+ */
63
+ validatorMessage?: string;
64
+ /**
65
+ * Show information about the field.
66
+ */
67
+ fieldInfo?: string;
68
+ }
69
+
70
+ /**
71
+ * InputPhoneNumber component emits
72
+ */
73
+ export type InputPhoneNumberEmits = {
74
+ /**
75
+ * Emits when the input already filled.
76
+ */
77
+ 'update:modelValue': [value?: string];
78
+ };
79
+
80
+ /**
81
+ * **WangsVue - InputPhoneNumber**
82
+ *
83
+ * _Handle input number with form validation._
84
+ *
85
+ * --- ---
86
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
87
+ *
88
+ * @group form
89
+ */
90
+ declare const InputPhoneNumber: DefineComponent<
91
+ InputPhoneNumberProps,
92
+ InputPhoneNumberEmits,
93
+ Record<string, unknown>
94
+ >;
95
+
96
+ export default InputPhoneNumber;
@@ -0,0 +1,8 @@
1
+ interface LocationData {
2
+ timezone: string;
3
+ region: string;
4
+ city: string;
5
+ country: string;
6
+ }
7
+ export default function getUserLocation(): LocationData;
8
+ export {};
@@ -0,0 +1,98 @@
1
+ import { DefineComponent } from 'vue';
2
+ import { CustomValidation } from '../form/Form.vue.d';
3
+
4
+
5
+ /**
6
+ * InputRangeNumber component props
7
+ */
8
+ export interface InputRangeNumberProps {
9
+ /**
10
+ * Number modelValue of the input.
11
+ */
12
+ modelValue?: number[];
13
+ /**
14
+ * Initial Form value.
15
+ */
16
+ value?: number[];
17
+ /**
18
+ * The input label. Tell the user what input is this.
19
+ */
20
+ label?: string;
21
+ /**
22
+ * Placeholder for both input
23
+ *
24
+ * @default undefined
25
+ */
26
+ placeholder?: string;
27
+ /**
28
+ * Specify the min number input placeholder.
29
+ *
30
+ * @default 'Tulis'
31
+ */
32
+ minPlaceholder?: string;
33
+ /**
34
+ * Specify the max number input placeholder.
35
+ *
36
+ * @default 'Tulis'
37
+ */
38
+ maxPlaceholder?: string;
39
+ /**
40
+ * Disabled the input.
41
+ */
42
+ disabled?: boolean;
43
+ /**
44
+ * State of invalid input.
45
+ */
46
+ invalid?: boolean;
47
+ /**
48
+ * Show the text (opsional)
49
+ *
50
+ * @default true if mandatory true
51
+ */
52
+ showOptionalText?: boolean;
53
+ /**
54
+ * Weather the input should be validated with vee-validator or not.
55
+ * If you use this component within form input, you need to set this props as true.
56
+ */
57
+ useValidator?: boolean;
58
+ /**
59
+ * Whether this input field is required or not.
60
+ */
61
+ mandatory?: boolean;
62
+ /**
63
+ * Set custom validator message.
64
+ * Will be show if invalid="true"
65
+ */
66
+ validatorMessage?: string | CustomValidation;
67
+ minFieldName?: string;
68
+ maxFieldName?: string;
69
+ }
70
+
71
+ /**
72
+ * InputRangeNumber component emits
73
+ */
74
+ export type InputRangeNumberEmits = {
75
+ /**
76
+ * Emits when the both input already filled.
77
+ */
78
+ 'update:modelValue': [payload?: (number | undefined)[]];
79
+ 'submit': [];
80
+ };
81
+
82
+ /**
83
+ * **WangsVUe - InputRangeNumber**
84
+ *
85
+ * _Handle input range number._
86
+ *
87
+ * --- ---
88
+ * ![WangsVUe](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
89
+ *
90
+ * @group form
91
+ */
92
+ declare const InputRangeNumber: DefineComponent<
93
+ InputRangeNumberProps,
94
+ InputRangeNumberEmits,
95
+ unknown
96
+ >;
97
+
98
+ export default InputRangeNumber;
@@ -0,0 +1,87 @@
1
+ import { ClassComponent, Nullable } from '../.././components/ts-helpers';
2
+ import { CustomValidation } from '../.././components/form/Form.vue.d';
3
+
4
+
5
+ /**
6
+ * InputRepositoryName component props
7
+ */
8
+ export interface InputRepositoryNameProps {
9
+ /**
10
+ * Model value for the input field
11
+ * @required
12
+ */
13
+ modelValue: string;
14
+
15
+ /**
16
+ * Label for the input field
17
+ */
18
+ label?: string;
19
+
20
+ /**
21
+ * Field name for the input field
22
+ */
23
+ fieldName?: string;
24
+
25
+ /**
26
+ * Determines if the field is mandatory
27
+ */
28
+ mandatory?: boolean;
29
+
30
+ /**
31
+ * Determines if the field uses a validator
32
+ */
33
+ useValidator?: boolean;
34
+
35
+ /**
36
+ * Validator message for the input field
37
+ */
38
+ validatorMessage?: string | CustomValidation;
39
+
40
+ /**
41
+ * Custom invalid state.
42
+ */
43
+ invalid?: boolean;
44
+
45
+ /**
46
+ * Placeholder for the input field
47
+ */
48
+ placeholder?: string;
49
+
50
+ /**
51
+ * Determines if the input field is disabled
52
+ */
53
+ disabled?: boolean;
54
+
55
+ /**
56
+ * Show information to user about the field.
57
+ */
58
+ fieldInfo?: string;
59
+ }
60
+
61
+ /**
62
+ * InputRepositoryName component emits
63
+ */
64
+ export type InputRepositoryNameEmits = {
65
+ /**
66
+ * Event emitted when the model value is updated
67
+ */
68
+ 'update:modelValue': [payload?: Nullable<string>];
69
+ };
70
+
71
+ /**
72
+ * **WangsVue - InputRepositoryName**
73
+ *
74
+ * _Handle input repository name with form validation._
75
+ *
76
+ * --- ---
77
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
78
+ *
79
+ * @group form
80
+ */
81
+ declare class InputRepositoryName extends ClassComponent<
82
+ InputRepositoryNameProps,
83
+ unknown,
84
+ InputRepositoryNameEmits
85
+ > {}
86
+
87
+ export default InputRepositoryName;