@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,136 @@
1
+ import { Slot } from 'vue';
2
+ import { WangsIcons } from '../icon/Icon.vue.d';
3
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
4
+
5
+
6
+ type ConfirmDialogSeverity = 'success' | 'danger';
7
+
8
+ /**
9
+ * Props for DialogConfirm component
10
+ */
11
+ export interface DialogConfirmProps {
12
+ /**
13
+ * The header of the dialog.
14
+ */
15
+ header: string;
16
+ /**
17
+ * The severity of the dialog.
18
+ * The severity will determine the dialog icons and color scheme.
19
+ */
20
+ severity: ConfirmDialogSeverity;
21
+ /**
22
+ * The boolean modelValue to show dialog.
23
+ */
24
+ visible: boolean;
25
+
26
+ /**
27
+ * Determines if the dialog should close after confirm.
28
+ * @default true
29
+ */
30
+ closeAfterConfirm?: boolean;
31
+ /**
32
+ * The label of the close/cancel button.
33
+ */
34
+ closeLabel?: string;
35
+ /**
36
+ * To hide/show the confirm button.
37
+ *
38
+ * Set to 'false' Make the confirm dialog cannot be confirmed.
39
+ *
40
+ * @default true;
41
+ */
42
+ actionable?: boolean;
43
+ /**
44
+ * The label of the confirm button.
45
+ * @default 'Yes, Continue'
46
+ */
47
+ confirmLabel?: string;
48
+ /**
49
+ * Custom header icon. Default is 'error' icon for danger severity, and 'checkbox-circle' for success severity.
50
+ */
51
+ headerIcon?: WangsIcons;
52
+ /**
53
+ * The lists to be displayed in the dialog.
54
+ */
55
+ list?: (string | object)[] | Set<string | object>;
56
+ /**
57
+ * The label of the list if your list item is an object.
58
+ * Choose a property from the item to be displayed on the list.
59
+ */
60
+ listLabel?: string;
61
+ /**
62
+ * The confirmation message.
63
+ */
64
+ message?: string;
65
+ /**
66
+ * Whether show icon header or not.
67
+ * @default true;
68
+ */
69
+ showIcon?: boolean;
70
+ /**
71
+ * Whether show close button or not (footer button that has label, not close button with icon 'X').
72
+ * @default true;
73
+ */
74
+ showCloseButton?: boolean;
75
+ }
76
+
77
+ /**
78
+ * Slots for DialogConfirm component
79
+ */
80
+ export interface DialogConfirmSlots {
81
+ /**
82
+ * The body slot for the dialog. Here is where you can put your dialog body.
83
+ */
84
+ body?: Slot | string;
85
+ /**
86
+ * The footer slot for the dialog. Here is where you can put your dialog footer.
87
+ * Use this slot if you need to custom the dialog buttons.
88
+ */
89
+ footer?: Slot | string;
90
+ }
91
+
92
+ /**
93
+ * Emits for DialogConfirm component
94
+ */
95
+ export type DialogConfirmEmits = {
96
+ /**
97
+ * Emits when close button clicked.
98
+ */
99
+ 'close': [];
100
+ /**
101
+ * Emits when Confirm button clicked.
102
+ */
103
+ 'confirm': [];
104
+ /**
105
+ * Emits when dialog closed.
106
+ */
107
+ 'hide': [];
108
+ /**
109
+ * Emits when the dialog is closed. Wether from cancel button, close button, or ESC button pressed.
110
+ */
111
+ 'update:visible': [state: boolean];
112
+ };
113
+
114
+ /**
115
+ * **WangsVue - DialogConfirm**
116
+ *
117
+ * _DialogConfirm is a component for creating confirmation dialogs._
118
+ *
119
+ * --- ---
120
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
121
+ *
122
+ * @group components
123
+ */
124
+ declare class DialogConfirm extends ClassComponent<
125
+ DialogConfirmProps,
126
+ DialogConfirmSlots,
127
+ DialogConfirmEmits
128
+ > {}
129
+
130
+ declare module '@vue/runtime-core' {
131
+ interface GlobalComponents {
132
+ DialogConfirm: GlobalComponentConstructor<DialogConfirm>;
133
+ }
134
+ }
135
+
136
+ export default DialogConfirm;
@@ -0,0 +1,23 @@
1
+ import { Pbi } from './DialogDetailPbi.vue.d';
2
+ import { Project } from '../../types/project.type';
3
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
4
+ pbiBody?: Pbi;
5
+ project?: Project;
6
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ add: (args_0?: void) => void;
8
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
9
+ pbiBody?: Pbi;
10
+ project?: Project;
11
+ }>>> & {
12
+ onAdd?: (args_0?: void) => any;
13
+ }, {}, {}>;
14
+ export default _default;
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToOption<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: import('vue').PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
@@ -0,0 +1,120 @@
1
+ import { JSONContent } from '../.././components/editor/Editor.vue.d';
2
+ import { ClassComponent } from '../.././components/ts-helpers';
3
+ import { Project, Teams } from '../../types/project.type';
4
+ import { User } from '../../types/user.type';
5
+
6
+
7
+ type PbiCategory = 'Fitur' | 'Bug' | 'Performance & Security' | 'Dokumentasi';
8
+
9
+ type PbiStatus =
10
+ | 'Backlog'
11
+ | 'Overdue'
12
+ | 'Reported Bug'
13
+ | 'Sprint'
14
+ | 'Pending Testing'
15
+ | 'Selesai';
16
+
17
+ type Platform = 'Web' | 'Mobile';
18
+
19
+ export type Pbi = {
20
+ _id: string;
21
+ name: string;
22
+ sprint?: {
23
+ _id: string;
24
+ key: number;
25
+ } | null;
26
+ category: PbiCategory;
27
+ status: PbiStatus;
28
+ totalTask?: number;
29
+ estimateDuration?: string;
30
+ duration?: string;
31
+ iteration?: number;
32
+ editedBy: Partial<Pick<User, '_id' | 'nickName'> & { imageUrl: string }>;
33
+ createdBy: {
34
+ _id: string;
35
+ teams: Teams[];
36
+ };
37
+ createdAt: string;
38
+ lastModified?: string;
39
+ finishedAt?: string;
40
+ description?: JSONContent;
41
+ isMemberAssigned: boolean;
42
+ platform: Platform;
43
+ totalBug?: number;
44
+ };
45
+
46
+ export type TaskStatus =
47
+ | 'Waiting Approval'
48
+ | 'Backlog'
49
+ | 'Sprint'
50
+ | 'Pending Review Leader'
51
+ | 'Reported Bug'
52
+ | 'Fixing Bug'
53
+ | 'Penyesuaian'
54
+ | 'Selesai';
55
+
56
+ export interface TaskOptions {
57
+ project?: string;
58
+ module?: string;
59
+ subModule?: string;
60
+ pbi?: string;
61
+ excludePbi?: string;
62
+ status?: string;
63
+ member?: string;
64
+ memberOptions?: boolean;
65
+ projectOptions?: boolean;
66
+ moduleOptions?: boolean;
67
+ taskOptions?: boolean;
68
+ subModuleOptions?: boolean;
69
+ processOptions?: boolean;
70
+ }
71
+
72
+ export type AssignedMember = Pick<User, '_id' | 'key' | 'nickName'> & {
73
+ imageUrl: string;
74
+ progress: string;
75
+ team: Teams;
76
+ tasks?: {
77
+ _id: string;
78
+ status: string;
79
+ }[];
80
+ };
81
+
82
+ export interface AssignedMemberOptions {
83
+ member?: boolean;
84
+ team?: boolean;
85
+ }
86
+
87
+ export interface DialogDetailPbiProps {
88
+ /**
89
+ * The boolean modelValue to show dialog.
90
+ */
91
+ visible: boolean;
92
+ /**
93
+ * PBI data to display on the dialog
94
+ */
95
+ selectedPbi?: Pbi;
96
+ /**
97
+ * Project detail, used to determine whether the current user is a PM or not
98
+ */
99
+ project?: Project;
100
+ /**
101
+ * Whether the PBI can be edited or not
102
+ *
103
+ * @default true
104
+ */
105
+ editable?: boolean;
106
+ /**
107
+ * Whether the current user is a QC or not
108
+ *
109
+ * @default false
110
+ */
111
+ isQc?: boolean;
112
+ }
113
+
114
+ declare class DialogDetailPbi extends ClassComponent<
115
+ DialogDetailPbiProps,
116
+ unknown,
117
+ unknown
118
+ > {}
119
+
120
+ export default DialogDetailPbi;
@@ -0,0 +1,29 @@
1
+ import { ClassComponent } from '../.././components/ts-helpers';
2
+ import { Project } from '../../types/project.type';
3
+ import { Pbi } from './DialogDetailPbi.vue.d';
4
+
5
+
6
+ export interface TaskDetailPbiProps {
7
+ /**
8
+ * PBI data to display on the dialog
9
+ */
10
+ selectedPbi?: Pbi;
11
+ /**
12
+ * Project detail, used to determine whether the current user is a PM or not
13
+ */
14
+ project?: Project;
15
+ /**
16
+ * Whether the PBI can be edited or not
17
+ *
18
+ * @default true
19
+ */
20
+ editable?: boolean;
21
+ }
22
+
23
+ declare class TaskDetailPbi extends ClassComponent<
24
+ TaskDetailPbiProps,
25
+ unknown,
26
+ unknown
27
+ > {}
28
+
29
+ export default TaskDetailPbi;
@@ -0,0 +1,23 @@
1
+ import { AssignedMember, Pbi } from './DialogDetailPbi.vue.d';
2
+ declare let __VLS_typeProps: {
3
+ selectedPbi?: Pbi;
4
+ assignedMembers?: AssignedMember[];
5
+ };
6
+ type __VLS_PublicProps = {
7
+ 'visible': boolean;
8
+ } & typeof __VLS_typeProps;
9
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ "update:visible": (visible: boolean) => void;
11
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
12
+ "onUpdate:visible"?: (visible: boolean) => any;
13
+ }, {}, {}>;
14
+ export default _default;
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToOption<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: import('vue').PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
@@ -0,0 +1,2 @@
1
+ import { FilterField } from '../../.././components/filtercontainer/FilterContainer.vue.d';
2
+ export declare const filterFieldsMember: (projectId: string, pbiId: string, isAssign: boolean, isDocumentation: boolean) => FilterField[];
@@ -0,0 +1,3 @@
1
+ import { FilterField } from '../../.././components/filtercontainer/FilterContainer.vue.d';
2
+ declare const filterFields: (projectId: string, pbiId?: string) => FilterField[];
3
+ export default filterFields;
@@ -0,0 +1,256 @@
1
+ import { GenericObject } from 'vee-validate';
2
+ import { Slot } from 'vue';
3
+ import { FormPayload, FormProps } from '../form/Form.vue.d';
4
+ import { WangsIcons } from '../icon/Icon.vue.d';
5
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
6
+
7
+
8
+ export type DialogFormValue =
9
+ | string
10
+ | string[]
11
+ | number
12
+ | number[]
13
+ | boolean
14
+ | boolean[]
15
+ | Record<string, unknown>
16
+ | Record<string, unknown>[];
17
+
18
+ /**
19
+ * Generic form payload, able to receive types from outside
20
+ */
21
+ export type DialogFormPayload<
22
+ FormValuesType = Record<string, DialogFormValue>,
23
+ > = {
24
+ stayAfterSubmit: boolean;
25
+ formValues: FormValuesType;
26
+ };
27
+
28
+ /**
29
+ * Props for DialogForm component
30
+ */
31
+ export interface DialogFormProps extends FormProps {
32
+ /**
33
+ * The template for form buttons.
34
+ */
35
+ buttonsTemplate: ('clear' | 'submit' | 'cancel')[];
36
+ /**
37
+ * The dialog header.
38
+ */
39
+ header: string;
40
+ /**
41
+ * Value binding to show/hide the dialog.
42
+ */
43
+ visible: boolean;
44
+
45
+ /**
46
+ * Determine the button label for form.
47
+ */
48
+ actionLabel?: string;
49
+ /**
50
+ * With in pixel
51
+ *
52
+ * @default 260
53
+ */
54
+ asideRightWidth?: number;
55
+ class?: string | string[];
56
+ /**
57
+ * Custom button cancel label.
58
+ */
59
+ cancelBtnLabel?: string;
60
+ /**
61
+ * Custom button clear label.
62
+ */
63
+ clearBtnLabel?: string;
64
+ /**
65
+ * Wether show the Close icon or not.
66
+ */
67
+ closable?: boolean;
68
+ /**
69
+ * Close dialog after form validated and submitted.
70
+ *
71
+ * @default true
72
+ */
73
+ closeOnSubmit?: boolean;
74
+ /**
75
+ * @deprecated
76
+ */
77
+ contentClass?: string | string[];
78
+ /**
79
+ * Show Date time on header.
80
+ */
81
+ dateHeader?: string;
82
+ /**
83
+ * Set the header icon left beside of the title.
84
+ */
85
+ headerIcon?: WangsIcons;
86
+ /**
87
+ * Sets the invalid state.
88
+ *
89
+ * @default false
90
+ */
91
+ invalid?: boolean;
92
+ /**
93
+ * Prevent form resets after submitted. Default is resetted.
94
+ *
95
+ * @default true
96
+ */
97
+ resetAfterSubmit?: boolean;
98
+ /**
99
+ * The severity of the dialog.
100
+ * The severity will determine the dialog icons and color scheme.
101
+ */
102
+ severity?: 'success' | 'danger' | 'primary';
103
+ /**
104
+ * Show or hide the checkbox 'Stay after submit.'
105
+ *
106
+ * @default true - if the action is submit.
107
+ * @default false - if the action is save.
108
+ */
109
+ showStayCheckbox?: boolean;
110
+ /**
111
+ * Custom label for stay checkbox.
112
+ */
113
+ stayCheckboxLabel?: string;
114
+ /**
115
+ * Custom button submit label.
116
+ */
117
+ submitBtnLabel?: string;
118
+ /**
119
+ * Define the invalid message to be shown on invalid state above the Form submit button.
120
+ *
121
+ * @default undefined
122
+ */
123
+ validatorMessage?: string;
124
+ /**
125
+ * Additional validation function.
126
+ * Within this this function, you need to set the invalid props value.
127
+ *
128
+ * If after executing this function the props invalid is true, the form will not be submitted.
129
+ * Otherwise, 'submit' event will be emitted.
130
+ */
131
+ validationFunction?: () => void | Promise<void>;
132
+ /**
133
+ * Set the dialog size.
134
+ *
135
+ * - small: 400px
136
+ * - medium: 500px
137
+ * - large: 572px
138
+ * - semi-xlarge: 600px
139
+ * - xlarge: 800px
140
+ *
141
+ * @default 'small';
142
+ */
143
+ width?: 'small' | 'medium' | 'large' | 'semi-xlarge' | 'xlarge';
144
+ }
145
+
146
+ export interface ConfirmSlots {
147
+ /**
148
+ * The Visible state.
149
+ */
150
+ visible: boolean;
151
+ /**
152
+ * Hide the confirm dialog.
153
+ */
154
+ hide: () => void;
155
+ /**
156
+ * The submit function to be called after confirmation.
157
+ */
158
+ submit: (submitFn: (value: FormPayload) => Promise<void> | void) => void;
159
+ }
160
+
161
+ export interface ActionSlots {
162
+ /**
163
+ * The submit function to be called after confirmation.
164
+ */
165
+ submit: (submitFn: () => Promise<void> | void) => void;
166
+ }
167
+
168
+ /**
169
+ * Slots for DialogForm component
170
+ */
171
+ export interface DialogFormSlots {
172
+ /**
173
+ * Slot for action buttons.
174
+ */
175
+ 'actionButtons': Slot<ActionSlots>;
176
+ /**
177
+ * Slot for aside right expansion.
178
+ */
179
+ 'aside-right': Slot;
180
+ /**
181
+ * Slot for dialog confirm.
182
+ */
183
+ 'confirm': Slot<ConfirmSlots>;
184
+ /**
185
+ * The fields slot for the Dialogform. Here is where you can put your Dialogform fields.
186
+ */
187
+ 'fields': Slot<{ formValues: GenericObject; key?: number }>;
188
+ /**
189
+ * Slot for dialog header.
190
+ */
191
+ 'header': Slot;
192
+ }
193
+
194
+ /**
195
+ * Emits for DialogForm component
196
+ */
197
+ export type DialogFormEmits = {
198
+ /**
199
+ * Emits when 'Clear Field' button clicked.
200
+ */
201
+ 'clear': [];
202
+ /**
203
+ * When dialog is closed by close button.
204
+ */
205
+ 'close': [];
206
+ /**
207
+ * Callback to invoke when dialog is hidden.
208
+ */
209
+ 'hide': [];
210
+ /**
211
+ * Callback to invoke when dialog is shown.
212
+ */
213
+ 'show': [];
214
+ /**
215
+ * Emits when the form validation succes and props.invalid is 'false'.
216
+ */
217
+ 'submit': [values: DialogFormPayload];
218
+ /**
219
+ * When dialog is closed.
220
+ */
221
+ 'update:visible': [state: boolean];
222
+ };
223
+
224
+ /**
225
+ * **WangsVue - DialogForm**
226
+ *
227
+ * _DialogForm is combination of Form and Dialog. Handles validation on submit using vee-validate.
228
+ * You need to install vee-validate while using this component._
229
+ *
230
+ * --- ---
231
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
232
+ *
233
+ * @group components
234
+ */
235
+ declare class DialogForm extends ClassComponent<
236
+ DialogFormProps,
237
+ DialogFormSlots,
238
+ DialogFormEmits
239
+ > {
240
+ /**
241
+ * Exposed function to clears the form fields.
242
+ */
243
+ clearField: () => void;
244
+ /**
245
+ * The ref of form element.
246
+ */
247
+ form: HTMLFormElement;
248
+ }
249
+
250
+ declare module '@vue/runtime-core' {
251
+ interface GlobalComponents {
252
+ DialogForm: GlobalComponentConstructor<DialogForm>;
253
+ }
254
+ }
255
+
256
+ export default DialogForm;
@@ -0,0 +1,24 @@
1
+ import { ClassComponent } from '../.././components/ts-helpers';
2
+
3
+
4
+ export interface DialogImprovementTaskProps {
5
+ projectId: string | undefined;
6
+ taskId: string | undefined;
7
+ notificationId: string | undefined;
8
+ }
9
+
10
+ export type DialogImprovementTaskEmits = {
11
+ /**
12
+ * Emits when the notification is read and
13
+ * the dialog is closed
14
+ */
15
+ close: [id: string];
16
+ };
17
+
18
+ declare class DialogImprovementTask extends ClassComponent<
19
+ DialogImprovementTaskProps,
20
+ unknown,
21
+ DialogImprovementTaskEmits
22
+ > {}
23
+
24
+ export default DialogImprovementTask;
@@ -0,0 +1,25 @@
1
+ declare let __VLS_typeProps: {
2
+ header?: string;
3
+ };
4
+ type __VLS_PublicProps = {
5
+ 'visible'?: boolean;
6
+ } & typeof __VLS_typeProps;
7
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ "update:visible": (visible: boolean) => void;
9
+ close: () => void;
10
+ submit: (note?: string) => void;
11
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
12
+ onSubmit?: (note?: string) => any;
13
+ "onUpdate:visible"?: (visible: boolean) => any;
14
+ onClose?: () => any;
15
+ }, {}, {}>;
16
+ export default _default;
17
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ type __VLS_TypePropsToOption<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('vue').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
@@ -0,0 +1,28 @@
1
+ declare const _default: [
2
+ {
3
+ "title": "Console.png",
4
+ "date": "21 Maret 2024 15:00",
5
+ "size": "129.46 KB",
6
+ "imgUrl": "https://i.ibb.co.com/wzph22v/Console.jpg"
7
+ },
8
+ {
9
+ "title": "Network-Headers.png",
10
+ "date": "21 Maret 2024 15:00",
11
+ "size": "129.46 KB",
12
+ "imgUrl": "https://i.ibb.co.com/wwGYhYK/Network-Headers.jpg"
13
+ },
14
+ {
15
+ "title": "Network-Payload.png",
16
+ "date": "21 Maret 2024 15:00",
17
+ "size": "129.46 KB",
18
+ "imgUrl": "https://i.ibb.co.com/RysBDVj/Network-Payload.jpg"
19
+ },
20
+ {
21
+ "title": "Network-Response.png",
22
+ "date": "21 Maret 2024 15:00",
23
+ "size": "129.46 KB",
24
+ "imgUrl": "https://i.ibb.co.com/XzYV6hh/Network-Response.jpg"
25
+ }
26
+ ];
27
+
28
+ export default _default;