@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,354 @@
1
+ import { TransitionProps, VNode } from 'vue';
2
+ import { ComponentHooks } from '../basecomponent';
3
+ import { PassThroughOptions } from '../passthrough';
4
+ import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
5
+ import { WangsIcons } from '../icon/Icon.vue.d';
6
+
7
+
8
+ export declare type ToastPassThroughOptionType =
9
+ | ToastPassThroughAttributes
10
+ | ((
11
+ options: ToastPassThroughMethodOptions,
12
+ ) => ToastPassThroughAttributes | string)
13
+ | string
14
+ | null
15
+ | undefined;
16
+
17
+ export declare type ToastPassThroughTransitionType =
18
+ | TransitionProps
19
+ | ((options: ToastPassThroughMethodOptions) => TransitionProps)
20
+ | undefined;
21
+
22
+ /**
23
+ * Custom passthrough(pt) option method.
24
+ */
25
+ export interface ToastPassThroughMethodOptions {
26
+ /**
27
+ * Defines instance.
28
+ */
29
+ instance: any;
30
+ /**
31
+ * Defines valid properties.
32
+ */
33
+ props: ToastProps;
34
+ /**
35
+ * Defines current inline state.
36
+ */
37
+ state: ToastState;
38
+ /**
39
+ * Defines valid attributes.
40
+ */
41
+ attrs: any;
42
+ /**
43
+ * Defines parent options.
44
+ */
45
+ parent: any;
46
+ /**
47
+ * Defines passthrough(pt) options in global config.
48
+ */
49
+ global: object | undefined;
50
+ }
51
+
52
+ /**
53
+ * Custom passthrough(pt) options.
54
+ * @see {@link ToastProps.pt}
55
+ */
56
+ export interface ToastPassThroughOptions {
57
+ /**
58
+ * Used to pass attributes to the root's DOM element.
59
+ */
60
+ root?: ToastPassThroughOptionType;
61
+ /**
62
+ * Used to pass attributes to the message's DOM element.
63
+ */
64
+ message?: ToastPassThroughOptionType;
65
+ /**
66
+ * Used to pass attributes to the container's DOM element.
67
+ */
68
+ container?: ToastPassThroughOptionType;
69
+ /**
70
+ * Used to pass attributes to the content's DOM element.
71
+ */
72
+ content?: ToastPassThroughOptionType;
73
+ /**
74
+ * Used to pass attributes to the icon's DOM element.
75
+ */
76
+ icon?: ToastPassThroughOptionType;
77
+ /**
78
+ * Used to pass attributes to the text's DOM element.
79
+ */
80
+ text?: ToastPassThroughOptionType;
81
+ /**
82
+ * Used to pass attributes to the summary's DOM element.
83
+ */
84
+ summary?: ToastPassThroughOptionType;
85
+ /**
86
+ * Used to pass attributes to the detail's DOM element.
87
+ */
88
+ detail?: ToastPassThroughOptionType;
89
+ /**
90
+ * Used to pass attributes to the button container's DOM element.
91
+ */
92
+ buttonContainer?: ToastPassThroughOptionType;
93
+ /**
94
+ * Used to pass attributes to the button's DOM element.
95
+ * @deprecated since v3.30.2. Use 'closeButton' option.
96
+ */
97
+ button?: ToastPassThroughOptionType;
98
+ /**
99
+ * Used to pass attributes to the button's DOM element.
100
+ */
101
+ closeButton?: ToastPassThroughOptionType;
102
+ /**
103
+ * Used to pass attributes to the button icon's DOM element.
104
+ * @deprecated since v3.30.2. Use 'closeIcon' option.
105
+ */
106
+ buttonIcon?: ToastPassThroughOptionType;
107
+ /**
108
+ * Used to pass attributes to the button icon's DOM element.
109
+ */
110
+ closeIcon?: ToastPassThroughOptionType;
111
+ /**
112
+ * Used to manage all lifecycle hooks.
113
+ * @see {@link BaseComponent.ComponentHooks}
114
+ */
115
+ hooks?: ComponentHooks;
116
+ /**
117
+ * Used to control Vue Transition API.
118
+ */
119
+ transition?: ToastPassThroughTransitionType;
120
+ }
121
+
122
+ /**
123
+ * Custom passthrough attributes for each DOM elements
124
+ */
125
+ export interface ToastPassThroughAttributes {
126
+ [key: string]: any;
127
+ }
128
+
129
+ /**
130
+ * Defines message options in Toast component.
131
+ */
132
+ export interface ToastMessageOptions {
133
+ /**
134
+ * Severity level of the message.
135
+ * @defaultValue info
136
+ */
137
+ severity?:
138
+ | 'success'
139
+ | 'info'
140
+ | 'warn'
141
+ | 'error'
142
+ | 'secondary'
143
+ | 'contrast'
144
+ | undefined;
145
+ /**
146
+ * Summary content of the message.
147
+ */
148
+ summary?: string | undefined;
149
+ /**
150
+ * Detail content of the message.
151
+ */
152
+ detail?: any | undefined;
153
+ /**
154
+ * Whether the message can be closed manually using the close icon.
155
+ * @defaultValue true
156
+ */
157
+ closable?: boolean | undefined;
158
+ /**
159
+ * Delay in milliseconds to close the message automatically.
160
+ */
161
+ life?: number | undefined;
162
+ /**
163
+ * Key of the Toast to display the message.
164
+ */
165
+ group?: string | undefined;
166
+ /**
167
+ * Style class of the message.
168
+ */
169
+ styleClass?: any;
170
+ /**
171
+ * Style class of the content.
172
+ */
173
+ contentStyleClass?: any;
174
+ }
175
+
176
+ /**
177
+ * Defines breakpoints type in Toast component.
178
+ */
179
+ export interface ToastBreakpointsType {
180
+ /**
181
+ * Breakpoint for responsive mode.
182
+ *
183
+ * Example:
184
+ *
185
+ * <Toast :breakpoints="{'960px': { width: '75vw', ... }" ... />
186
+ *
187
+ */
188
+ [key: string]: any;
189
+ }
190
+
191
+ /**
192
+ * Defines current inline state in Toast component.
193
+ */
194
+ export interface ToastState {
195
+ /**
196
+ * Current messages.
197
+ */
198
+ messages: any[];
199
+ }
200
+
201
+ /**
202
+ * Defines valid properties in Toast component.
203
+ */
204
+ export interface ToastProps {
205
+ /**
206
+ * Unique identifier of a message group.
207
+ */
208
+ group?: string | undefined;
209
+ /**
210
+ * Position of the toast in viewport.
211
+ * @defaultValue bottom-right
212
+ */
213
+ position?:
214
+ | 'top-left'
215
+ | 'top-center'
216
+ | 'top-right'
217
+ | 'bottom-left'
218
+ | 'bottom-center'
219
+ | 'bottom-right'
220
+ | 'center'
221
+ | undefined;
222
+ /**
223
+ * Whether to automatically manage layering.
224
+ * @defaultValue true
225
+ */
226
+ autoZIndex?: boolean | undefined;
227
+ /**
228
+ * Base zIndex value to use in layering.
229
+ * @defaultValue 0
230
+ */
231
+ baseZIndex?: number | undefined;
232
+ /**
233
+ * Object literal to define styles per screen size.
234
+ * @see ToastBreakpointsType
235
+ */
236
+ breakpoints?: ToastBreakpointsType;
237
+ /**
238
+ * Used to access message options.
239
+ * @type {ToastMessageOptions}
240
+ */
241
+ message?: ToastMessageOptions;
242
+ icon?: WangsIcons;
243
+ /**
244
+ * Used to pass attributes to DOM elements inside the component.
245
+ * @type {ToastPassThroughOptions}
246
+ */
247
+ pt?: PassThrough<ToastPassThroughOptions>;
248
+ /**
249
+ * Used to configure passthrough(pt) options of the component.
250
+ * @type {PassThroughOptions}
251
+ */
252
+ ptOptions?: PassThroughOptions;
253
+ /**
254
+ * When enabled, it removes component related styles in the core.
255
+ * @defaultValue false
256
+ */
257
+ unstyled?: boolean;
258
+ }
259
+
260
+ /**
261
+ * Defines valid slot in Toast component.
262
+ */
263
+ export interface ToastSlots {
264
+ /**
265
+ * Custom message template.
266
+ * @param {Object} scope - message slot's params.
267
+ */
268
+ message(scope: {
269
+ /**
270
+ * Message of the component
271
+ */
272
+ message: any;
273
+ }): VNode[];
274
+ /**
275
+ * Custom icon template.
276
+ * @param {Object} scope - icon slot's params.
277
+ */
278
+ icon(scope: {
279
+ /**
280
+ * Style class of the icon
281
+ */
282
+ class: any;
283
+ }): VNode[];
284
+ /**
285
+ * Custom close icon template.
286
+ * @param {Object} scope - close icon slot's params.
287
+ */
288
+ closeicon(scope: {
289
+ /**
290
+ * Style class of the close icon
291
+ */
292
+ class: any;
293
+ }): VNode[];
294
+ /**
295
+ * Custom container slot.
296
+ * @param {Object} scope - container slot's params.
297
+ */
298
+ container(scope: {
299
+ /**
300
+ * Message of the component
301
+ */
302
+ message: any;
303
+ /**
304
+ * Close toast function
305
+ * @deprecated since v3.39.0. Use 'closeCallback' property instead.
306
+ */
307
+ onClose: () => void;
308
+ /**
309
+ * Close sidebar function.
310
+ */
311
+ closeCallback: () => void;
312
+ }): VNode[];
313
+ }
314
+
315
+ /**
316
+ * Defines valid emits in Toast component.
317
+ */
318
+ export type ToastEmits = {
319
+ /**
320
+ * Callback to invoke when the toast is closed.
321
+ * @param {ToastMessageOptions} message - Toast message.
322
+ */
323
+ close: [message: ToastMessageOptions];
324
+ /**
325
+ * Callback to invoke when the toast's timeout is over.
326
+ * @param {ToastMessageOptions} message - Toast message.
327
+ */
328
+ lifeEnd: [message: ToastMessageOptions];
329
+ };
330
+
331
+ /**
332
+ * **WangsVue - Toast**
333
+ *
334
+ * _Toast is used to display messages in an overlay._
335
+ *
336
+ * --- ---
337
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
338
+ *
339
+ * @group Component
340
+ *
341
+ */
342
+ declare class Toast extends ClassComponent<
343
+ ToastProps,
344
+ ToastSlots,
345
+ ToastEmits
346
+ > {}
347
+
348
+ declare module '@vue/runtime-core' {
349
+ interface GlobalComponents {
350
+ Toast: GlobalComponentConstructor<Toast>;
351
+ }
352
+ }
353
+
354
+ export default Toast;
@@ -0,0 +1,21 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+
4
+ export type TooltipSpanProps = {
5
+ /**
6
+ * The full text to be displayed on the tooltip.
7
+ * The tooltip will only be shown if the text is truncated.
8
+ * @default ''
9
+ */
10
+ fullText?: string;
11
+ /**
12
+ * The maximum length of the text displayed on the span. If the text is longer
13
+ * than this value, it will be truncated and an ellipsis (...) will be added.
14
+ * @default 36
15
+ */
16
+ length?: number;
17
+ };
18
+
19
+ declare const TooltipSpan: DefineComponent<TooltipSpanProps>;
20
+
21
+ export default TooltipSpan;
@@ -0,0 +1,62 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ import {
3
+ AllowedComponentProps,
4
+ ComponentCustomProps,
5
+ ObjectEmitsOptions,
6
+ VNode,
7
+ VNodeProps,
8
+ } from 'vue';
9
+
10
+ declare type PublicProps = VNodeProps &
11
+ AllowedComponentProps &
12
+ ComponentCustomProps;
13
+
14
+ declare type UnionToIntersection<U> = (
15
+ U extends any ? (k: U) => void : never
16
+ ) extends (k: infer I) => void
17
+ ? I
18
+ : never;
19
+
20
+ declare type EmitFn<
21
+ Options = ObjectEmitsOptions,
22
+ Event extends keyof Options = keyof Options,
23
+ > =
24
+ Options extends Array<infer V>
25
+ ? (event: V, ...args: any[]) => void
26
+ : object extends Options
27
+ ? (event: string, ...args: any[]) => void
28
+ : UnionToIntersection<
29
+ {
30
+ [key in Event]: Options[key] extends (...args: infer Args) => any
31
+ ? (event: key, ...args: Args) => void
32
+ : (event: key, ...args: any[]) => void;
33
+ }[Event]
34
+ >;
35
+
36
+ export class ClassComponent<Props, Slots, Emits> {
37
+ $props: Props & PublicProps;
38
+ $slots: Slots;
39
+ $emit: EmitFn<Emits>;
40
+ }
41
+
42
+ export type GlobalComponentConstructor<T> = {
43
+ new (): T;
44
+ };
45
+
46
+ /**
47
+ * Custom types
48
+ */
49
+ export declare type Booleanish = boolean | 'true' | 'false';
50
+
51
+ export declare type Numberish = number | string;
52
+
53
+ export declare type Nullable<T = void> = T | null | undefined;
54
+
55
+ export declare type PassThrough<T = void> = T | object | undefined;
56
+
57
+ export declare type DefaultPassThrough<T = void> =
58
+ | T
59
+ | ((instance?: VNode) => T | undefined)
60
+ | undefined;
61
+
62
+ export declare type HintedString<T extends string> = (string & {}) | T;
@@ -0,0 +1,58 @@
1
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2
+
3
+
4
+ /**
5
+ * Defines valid properties in UserGroup component.
6
+ */
7
+ export interface UserGroupProps {
8
+ /**
9
+ * The user objects array
10
+ */
11
+ users: Record<string, any>[];
12
+ /**
13
+ * The limit of how many users to display
14
+ */
15
+ limit?: number;
16
+ /**
17
+ * Specify the field of user to be used as display name
18
+ *
19
+ * @example 'name.fullName'
20
+ *
21
+ * @default 'nickName'
22
+ */
23
+ userNameField?: string;
24
+ /**
25
+ * Specify the field of user to be used as display picture
26
+ *
27
+ * @example 'image.profile'
28
+ *
29
+ * @default 'profilePicture'
30
+ */
31
+ profilePictureField?: string;
32
+ withDialogDetail?: boolean;
33
+ dialogHeaderLabel?: string;
34
+ }
35
+
36
+ /**
37
+ * **WangsVue - UserGroup**
38
+ *
39
+ * _Displays an user and profile image._
40
+ *
41
+ * --- ---
42
+ *
43
+ * @group Component
44
+ *
45
+ */
46
+ declare class UserGroup extends ClassComponent<
47
+ UserGroupProps,
48
+ unknown,
49
+ unknown
50
+ > {}
51
+
52
+ declare module '@vue/runtime-core' {
53
+ interface GlobalComponents {
54
+ UserGroup: GlobalComponentConstructor<UserGroup>;
55
+ }
56
+ }
57
+
58
+ export default UserGroup;
@@ -0,0 +1,62 @@
1
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2
+
3
+
4
+ /**
5
+ * Defines valid properties in UserName component.
6
+ */
7
+ export interface UserNameProps {
8
+ /**
9
+ * @default 'picture' - Show user profile picture instead of user icon
10
+ */
11
+ type?: 'icon' | 'picture';
12
+ /**
13
+ * The full user Object
14
+ */
15
+ user?: Record<string, any>;
16
+ /**
17
+ * Specify the field of user to be used as display name
18
+ *
19
+ * @example 'name.fullName'
20
+ *
21
+ * @default 'nickName'
22
+ */
23
+ userNameField?: string;
24
+ /**
25
+ * Specify the field of user to be used as display picture
26
+ *
27
+ * @example 'image.profile'
28
+ *
29
+ * @default 'profilePicture'
30
+ */
31
+ profilePictureField?: string;
32
+ /**
33
+ * Specify if the component can be emptyable
34
+ *
35
+ * @default false
36
+ */
37
+ emptyable?: boolean;
38
+ }
39
+
40
+ /**
41
+ * **WangsVue - UserName**
42
+ *
43
+ * _Displays an user and profile image._
44
+ *
45
+ * --- ---
46
+ *
47
+ * @group Component
48
+ *
49
+ */
50
+ declare class UserName extends ClassComponent<
51
+ UserNameProps,
52
+ unknown,
53
+ unknown
54
+ > {}
55
+
56
+ declare module '@vue/runtime-core' {
57
+ interface GlobalComponents {
58
+ UserName: GlobalComponentConstructor<UserName>;
59
+ }
60
+ }
61
+
62
+ export default UserName;
@@ -0,0 +1,13 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+
4
+ export interface ValidatorMessageProps {
5
+ /**
6
+ * Shows validator message if message exist.
7
+ */
8
+ message?: string;
9
+ }
10
+
11
+ declare const ValidatorMessage: DefineComponent<ValidatorMessageProps>;
12
+
13
+ export default ValidatorMessage;
@@ -0,0 +1,55 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+
4
+ export type WorkCalendarState = 'view' | 'edit';
5
+
6
+ /**
7
+ * WorkCalendar component props
8
+ */
9
+ export interface WorkCalendarProps {
10
+ /**
11
+ * Initial Value or saved Workdays in a year
12
+ * Date string in format: "yyyy-mm-dd" (ISO 8601 format)
13
+ *
14
+ * @example {
15
+ * 2020: ['2020-05-01'],
16
+ * 2021: ['2021-05-01'],
17
+ * 2022: ['2021-05-01'],
18
+ * }
19
+ */
20
+ workDays?: Record<number, string[]>;
21
+ /**
22
+ * Default work days in number array 0 - 6
23
+ *
24
+ * @defaultValue '[1, 2, 3, 4, 5]'
25
+ */
26
+ defaultWorkDays?: number[];
27
+ /**
28
+ * @default 'view'
29
+ */
30
+ state?: WorkCalendarState;
31
+ }
32
+
33
+ /**
34
+ * WorkCalendar component emits
35
+ */
36
+ export type WorkCalendarEmits = {
37
+ 'update:modelValue': [date?: number | number[]];
38
+ };
39
+
40
+ /**
41
+ * **WangsVue - WorkCalendar**
42
+ *
43
+ * _Handle input date with form validation._
44
+ *
45
+ * --- ---
46
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
47
+ *
48
+ * @group form
49
+ */
50
+ declare const WorkCalendar: DefineComponent<
51
+ WorkCalendarProps,
52
+ WorkCalendarEmits
53
+ >;
54
+
55
+ export default WorkCalendar;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This directive is used to focus the html input on a component.
3
+ */
4
+ declare const Focus: {
5
+ mounted: (el: HTMLElement) => Promise<void>;
6
+ };
7
+ export default Focus;
@@ -0,0 +1 @@
1
+ export { default as Focus } from './focus';
@@ -0,0 +1,65 @@
1
+ import { FetchResponse } from '.././components/datatable/DataTable.vue.d';
2
+ export interface MemberListResponse extends FetchResponse {
3
+ status: number;
4
+ message: string;
5
+ data: MemberData;
6
+ }
7
+ interface MemberData {
8
+ totalRecords: number;
9
+ data: Member[];
10
+ }
11
+ export interface Member extends Record<string, unknown> {
12
+ _id: string;
13
+ isActive: boolean;
14
+ key: number;
15
+ profilePictureBig: string;
16
+ profilePictureMedium: string;
17
+ profilePictureSmall: string;
18
+ fullName: string;
19
+ nickName: string;
20
+ finishedDate: string;
21
+ employeeType: string;
22
+ division: string;
23
+ position: string;
24
+ teams: string[];
25
+ email: string;
26
+ phoneNumber: string;
27
+ initial: string;
28
+ groupMember: GroupMember;
29
+ needLeaderReview: boolean;
30
+ needTestingAccount: boolean;
31
+ lastLogin: string;
32
+ lastLoginIp: string;
33
+ groupMemberAssignedBy: AssignedBy;
34
+ groupMemberAssignedAt: string;
35
+ permission: Permission;
36
+ hasAdminRoles: boolean;
37
+ projectCount: number;
38
+ isTeamLeader: boolean;
39
+ isSubModuleLeader: boolean;
40
+ isAssignedToTask: boolean;
41
+ isProjectManager: boolean;
42
+ isActivate: boolean;
43
+ progress: string;
44
+ }
45
+ interface GroupMember {
46
+ name: string;
47
+ targetType: string;
48
+ _id: string;
49
+ }
50
+ interface AssignedBy {
51
+ fullName: string;
52
+ nickName: string;
53
+ key: number;
54
+ profilePictureBig: string;
55
+ profilePictureMedium: string;
56
+ profilePictureSmall: string;
57
+ _id: string;
58
+ }
59
+ interface Permission {
60
+ create: boolean;
61
+ read: boolean;
62
+ update: boolean;
63
+ delete: boolean;
64
+ }
65
+ export {};