@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,180 @@
1
+ import { MultiSelectOption } from '../.././types/options.type';
2
+ import { ClassComponent, GlobalComponentConstructor } from '../.././components/ts-helpers';
3
+ import { ChangelogDefaultField, ChangelogTemplateColumn, ChangelogTemplateFilter } from '../changelog/Changelog.vue.d';
4
+
5
+
6
+ export type ChangelogType = {
7
+ _id: string;
8
+ action: string;
9
+ field: string;
10
+ oldValue?: string;
11
+ newValue?: string;
12
+ modifiedBy?: string;
13
+ object: string;
14
+ objectName: string;
15
+ createdAt: string;
16
+ oldValueNum?: number;
17
+ newValueNum?: number;
18
+ };
19
+
20
+ export type ChangelogFilter = {
21
+ objects?: string[];
22
+ field?: string[];
23
+ action?: string[];
24
+ modifiedBy?: number[];
25
+ createdAt?: number[];
26
+ };
27
+
28
+ export type ChangelogFilterQuery = {
29
+ [key: string]: string | undefined;
30
+ };
31
+
32
+ export type ChangelogOptionQuery = {
33
+ actionOptions?: boolean;
34
+ modifiedByOptions?: boolean;
35
+ objectOptions?: boolean;
36
+ fieldOptions?: boolean;
37
+ nameOptions?: boolean;
38
+ objectNameOptions?: boolean;
39
+ object?: string;
40
+ objects?: string;
41
+ moduleId?: string;
42
+ subModuleId?: string;
43
+ };
44
+
45
+ export type ChangelogOptionFilter = {
46
+ actionOptions?: MultiSelectOption[];
47
+ modifiedByOptions?: MultiSelectOption[];
48
+ objectOptions?: MultiSelectOption[];
49
+ fieldOptions?: MultiSelectOption[];
50
+ nameOptions?: MultiSelectOption[];
51
+ objectNameOptions?: MultiSelectOption[];
52
+ };
53
+
54
+ /**
55
+ * Props for Changelog component
56
+ */
57
+ export interface BaseChangelogPageProps {
58
+ /**
59
+ * Note: Dont use this props since it's just for changelog dialog purpose
60
+ * @ignore
61
+ */
62
+ isDialog?: boolean;
63
+ /**
64
+ * To give additional columns in changelog table
65
+ */
66
+ additionalTemplateColumns?: ChangelogTemplateColumn[];
67
+ /**
68
+ * To give additional filters in changelog filter
69
+ */
70
+ additionalTemplateFilters?: ChangelogTemplateFilter[];
71
+ /**
72
+ * Array to determine that these columns will be hidden
73
+ */
74
+ removedColumns?: ChangelogDefaultField[];
75
+ /**
76
+ * Array to determine that these filter fields will be hidden
77
+ */
78
+ removedFilters?: Omit<ChangelogDefaultField, 'oldValue' | 'newValue'>[];
79
+ /**
80
+ * To set custom name for specific column in changelog table
81
+ */
82
+ objectNameColumn?: string;
83
+ /**
84
+ * Title content of the dialog.
85
+ */
86
+ header?: string | undefined;
87
+ /**
88
+ * Changelog module Id.
89
+ */
90
+ moduleId?: string;
91
+ /**
92
+ * Changelog sub module Id.
93
+ */
94
+ subModuleId?: string;
95
+ /**
96
+ * Changelog object.
97
+ * Note: Even if this props is mandatory, if you fill props `objects` then props `object` will not be processed in component.
98
+ * @description If changelog using moduleId or subModuleId, just fill props object with any string (will not be used)
99
+ */
100
+ object: string;
101
+ /**
102
+ * Changelog objects.
103
+ * Note: This props will override props Object
104
+ */
105
+ objects?: string[];
106
+ /**
107
+ * Changelog object ID.
108
+ */
109
+ objectId?: string;
110
+ /**
111
+ * Changelog custom params, contains stringified filter query needed.
112
+ */
113
+ defaultParamsQuery?: ChangelogFilterQuery;
114
+ /**
115
+ * Changelog custom params, contains stringified filter query needed.
116
+ */
117
+ customParams?: ChangelogFilterQuery;
118
+ /**
119
+ * Now changelog support custom table name from outside
120
+ */
121
+ tableName?: string;
122
+ }
123
+
124
+ export interface ButtonDownloadTrue extends BaseChangelogPageProps {
125
+ /**
126
+ * Use this props if changelog need button download
127
+ */
128
+ useButtonDownload: true;
129
+ /**
130
+ * File name is a must if there's button download
131
+ * @default 'Changelog' only
132
+ */
133
+ fileName: string;
134
+ }
135
+
136
+ export interface ButtonDownloadFalse extends BaseChangelogPageProps {
137
+ /**
138
+ * Use this props if changelog need button download
139
+ */
140
+ useButtonDownload: false;
141
+ /**
142
+ * File name is a must if there's button download
143
+ * @default 'Changelog' only
144
+ */
145
+ fileName?: string;
146
+ }
147
+
148
+ export type ChangelogPageProps = ButtonDownloadFalse | ButtonDownloadTrue;
149
+
150
+ /**
151
+ * Emits for Changelog component
152
+ */
153
+ export type ChangelogPageEmits = {
154
+ hide: [];
155
+ };
156
+
157
+ /**
158
+ * **WangsVue - Changelog**
159
+ *
160
+ * _Changelog is a component for to show changelog dialog.
161
+ * You need to install vee-validate while using this component._
162
+ *
163
+ * --- ---
164
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
165
+ *
166
+ * @group components
167
+ */
168
+ declare class ChangelogPage extends ClassComponent<
169
+ ChangelogPageProps,
170
+ unknown,
171
+ ChangelogPageEmits
172
+ > {}
173
+
174
+ declare module '@vue/runtime-core' {
175
+ interface GlobalComponents {
176
+ Changelog: GlobalComponentConstructor<ChangelogPage>;
177
+ }
178
+ }
179
+
180
+ export default ChangelogPage;
@@ -0,0 +1,312 @@
1
+ import { VNode } from 'vue';
2
+ import { ComponentHooks } from '../basecomponent';
3
+ import { PassThroughOptions } from '../passthrough';
4
+ import { ClassComponent, GlobalComponentConstructor, Nullable, PassThrough } from '../ts-helpers';
5
+
6
+
7
+ export declare type CheckboxPassThroughOptionType =
8
+ | CheckboxPassThroughAttributes
9
+ | ((
10
+ options: CheckboxPassThroughMethodOptions,
11
+ ) => CheckboxPassThroughAttributes | string)
12
+ | string
13
+ | null
14
+ | undefined;
15
+
16
+ /**
17
+ * Custom passthrough(pt) option method.
18
+ */
19
+ export interface CheckboxPassThroughMethodOptions {
20
+ /**
21
+ * Defines instance.
22
+ */
23
+ instance: any;
24
+ /**
25
+ * Defines valid properties.
26
+ */
27
+ props: CheckboxProps;
28
+ /**
29
+ * Defines current inline state.
30
+ */
31
+ state: CheckboxState;
32
+ /**
33
+ * Defines current options.
34
+ */
35
+ context: CheckboxContext;
36
+ /**
37
+ * Defines valid attributes.
38
+ */
39
+ attrs: any;
40
+ /**
41
+ * Defines parent options.
42
+ */
43
+ parent: any;
44
+ /**
45
+ * Defines passthrough(pt) options in global config.
46
+ */
47
+ global: object | undefined;
48
+ }
49
+
50
+ /**
51
+ * Custom passthrough(pt) options.
52
+ * @see {@link CheckboxProps.pt}
53
+ */
54
+ export interface CheckboxPassThroughOptions {
55
+ /**
56
+ * Used to pass attributes to the root's DOM element.
57
+ */
58
+ root?: CheckboxPassThroughOptionType;
59
+ /**
60
+ * Used to pass attributes to the input's DOM element.
61
+ */
62
+ input?: CheckboxPassThroughOptionType;
63
+ /**
64
+ * Used to pass attributes to the box's DOM element.
65
+ */
66
+ box?: CheckboxPassThroughOptionType;
67
+ /**
68
+ * Used to pass attributes to the icon's DOM element.
69
+ */
70
+ icon?: CheckboxPassThroughOptionType;
71
+ /**
72
+ * Used to manage all lifecycle hooks.
73
+ * @see {@link BaseComponent.ComponentHooks}
74
+ */
75
+ hooks?: ComponentHooks;
76
+ }
77
+
78
+ /**
79
+ * Custom passthrough attributes for each DOM elements
80
+ */
81
+ export interface CheckboxPassThroughAttributes {
82
+ [key: string]: any;
83
+ }
84
+
85
+ /**
86
+ * Defines current inline state in Checkbox component.
87
+ */
88
+ export interface CheckboxState {
89
+ [key: string]: any;
90
+ }
91
+
92
+ export type CheckboxModelValue =
93
+ | Nullable<boolean>
94
+ | Record<string, any>
95
+ | Record<string, any>[];
96
+
97
+ /**
98
+ * Defines valid properties in Checkbox component.
99
+ */
100
+ export interface CheckboxProps {
101
+ /**
102
+ * Value of the checkbox. Can be used to set the checkbox field value when using use-validator
103
+ */
104
+ value?: any;
105
+ /**
106
+ * Value binding of the checkbox.
107
+ */
108
+ modelValue?: CheckboxModelValue;
109
+ /**
110
+ * The checkbox label.
111
+ */
112
+ label?: string;
113
+ /**
114
+ * Tooltip info about the checkbox.
115
+ */
116
+ tooltip?: string;
117
+ /**
118
+ * Tooltip position.
119
+ *
120
+ * @default 'top'
121
+ */
122
+ tooltipPos?: 'top' | 'right' | 'left' | 'bottom';
123
+ /**
124
+ * Name of the input element.
125
+ */
126
+ name?: string | undefined;
127
+ /**
128
+ * To specify different style when used inside table header
129
+ *
130
+ * @default false
131
+ */
132
+ withinTable?: boolean;
133
+ /**
134
+ * Allows to select a boolean value instead of multiple values.
135
+ * @default true
136
+ */
137
+ binary?: boolean;
138
+ /**
139
+ * When present, it specifies that the component should have invalid state style.
140
+ * @defaultValue false
141
+ */
142
+ invalid?: boolean | undefined;
143
+ /**
144
+ * When present, it specifies that the element should be disabled.
145
+ * @default false
146
+ */
147
+ disabled?: boolean | undefined;
148
+ /**
149
+ * When present, it specifies that the element should be selectable.
150
+ *
151
+ * Simillar to disabled state, but different style.
152
+ * @default true
153
+ */
154
+ selectable?: boolean | undefined;
155
+ /**
156
+ * Specifies the input variant of the component.
157
+ * @defaultValue outlined
158
+ */
159
+ variant?: 'outlined' | 'filled' | undefined;
160
+ /**
161
+ * When present, it specifies that an input field is read-only.
162
+ * @default false
163
+ */
164
+ readonly?: boolean | undefined;
165
+ useValidator?: boolean;
166
+ fieldName?: string;
167
+ /**
168
+ * When present, it specifies that the element is required.
169
+ * @default false
170
+ */
171
+ required?: boolean | undefined;
172
+ /**
173
+ * Index of the element in tabbing order.
174
+ */
175
+ tabindex?: number | undefined;
176
+ /**
177
+ * Value in checked state.
178
+ * @default true
179
+ */
180
+ trueValue?: any;
181
+ /**
182
+ * Value in unchecked state.
183
+ * @default false
184
+ */
185
+ falseValue?: any;
186
+ /**
187
+ * Identifier of the underlying input element.
188
+ */
189
+ inputId?: string | undefined;
190
+ /**
191
+ * Style class of the input field.
192
+ */
193
+ inputClass?: object | undefined;
194
+ /**
195
+ * Inline style of the input field.
196
+ */
197
+ inputStyle?: string | object | undefined;
198
+ /**
199
+ * Establishes relationships between the component and label(s) where its value should be one or more element IDs.
200
+ */
201
+ ariaLabelledby?: string | undefined;
202
+ /**
203
+ * Establishes a string value that labels the component.
204
+ */
205
+ ariaLabel?: string | undefined;
206
+ /**
207
+ * Used to pass attributes to DOM elements inside the component.
208
+ * @type {CheckboxPassThroughOptions}
209
+ */
210
+ pt?: PassThrough<CheckboxPassThroughOptions>;
211
+ /**
212
+ * Used to configure passthrough(pt) options of the component.
213
+ * @type {PassThroughOptions}
214
+ */
215
+ ptOptions?: PassThroughOptions;
216
+ /**
217
+ * When enabled, it removes component related styles in the core.
218
+ * @defaultValue false
219
+ */
220
+ unstyled?: boolean;
221
+ /**
222
+ * Style class of the checkbox's label.
223
+ */
224
+ labelClass?: any;
225
+ }
226
+
227
+ /**
228
+ * Defines current options in Checkbox component.
229
+ */
230
+ export interface CheckboxContext {
231
+ /**
232
+ * Current checked state of the item as a boolean.
233
+ * @defaultValue false
234
+ */
235
+ checked: boolean;
236
+ /**
237
+ * Current disabled state of the item as a boolean.
238
+ * @defaultValue false
239
+ */
240
+ disabled: boolean;
241
+ }
242
+
243
+ /**
244
+ * Defines valid slots in Checkbox component.
245
+ */
246
+ export interface CheckboxSlots {
247
+ /**
248
+ * Custom icon template.
249
+ * @param {Object} scope - icon slot's params.
250
+ */
251
+ icon(scope: {
252
+ /**
253
+ * State of the checkbox.
254
+ */
255
+ checked: boolean;
256
+ /**
257
+ * Style class of the icon.
258
+ */
259
+ class: string;
260
+ }): VNode[];
261
+ }
262
+
263
+ /**
264
+ * Defines valid emits in Checkbox component.
265
+ */
266
+ export type CheckboxEmits = {
267
+ /**
268
+ * Emitted when the value changes.
269
+ * @param {*} value - New value.
270
+ */
271
+ 'update:modelValue': [value: CheckboxModelValue];
272
+ /**
273
+ * Callback to invoke on value change.
274
+ * @param {Event} event - Browser event.
275
+ */
276
+ 'change': [event: Event];
277
+ /**
278
+ * Callback to invoke when the component receives focus.
279
+ * @param {Event} event - Browser event.
280
+ */
281
+ 'focus': [event: Event];
282
+ /**
283
+ * Callback to invoke when the component loses focus.
284
+ * @param {Event} event - Browser event.
285
+ */
286
+ 'blur': [event: Event];
287
+ };
288
+
289
+ /**
290
+ * **WangsVue - Checkbox**
291
+ *
292
+ * Checkbox is an extension to checkbox element with label and info tooltip.
293
+ *
294
+ * --- ---
295
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
296
+ *
297
+ * @group Component
298
+ *
299
+ */
300
+ declare class Checkbox extends ClassComponent<
301
+ CheckboxProps,
302
+ CheckboxSlots,
303
+ CheckboxEmits
304
+ > {}
305
+
306
+ declare module '@vue/runtime-core' {
307
+ interface GlobalComponents {
308
+ Checkbox: GlobalComponentConstructor<Checkbox>;
309
+ }
310
+ }
311
+
312
+ export default Checkbox;
@@ -0,0 +1,13 @@
1
+ export interface CodeSnippetProps {
2
+ code?: string;
3
+ /**
4
+ * @default 'json'
5
+ */
6
+ lang?: 'javascript' | 'typescript' | 'html' | 'json';
7
+ /**
8
+ * Make the code snippets readonly
9
+ *
10
+ * @default false editable
11
+ */
12
+ readonly?: boolean;
13
+ }
@@ -0,0 +1,180 @@
1
+ import { JSONContent } from '@tiptap/vue-3';
2
+ import { ClassComponent } from '../.././components/ts-helpers';
3
+ import { QueryParams } from '../.././components/datatable/DataTable.vue.d';
4
+ import { GetMentionSuggestionResponse } from '../.././components/editor/Editor.vue.d';
5
+
6
+
7
+ export interface CommentProps {
8
+ /**
9
+ * Current Login User Account.
10
+ */
11
+ user: User;
12
+ /**
13
+ * Unique Id from detail page
14
+ */
15
+ objectId: string;
16
+ /**
17
+ * Type Of Comment where you use it
18
+ */
19
+ commentType: CommentType;
20
+ /**
21
+ * To determine all of comments position based on input field
22
+ *
23
+ * @default below
24
+ */
25
+ commentPosition?: 'above' | 'below';
26
+ /**
27
+ * To determine whether using reactions or not
28
+ * @default true
29
+ */
30
+ useReactions?: boolean;
31
+ /**
32
+ * To determine whether using replies or not
33
+ * @default true
34
+ */
35
+ useReplies?: boolean;
36
+ /**
37
+ * To determine whether each comment should display time stamp or not
38
+ * @default true
39
+ */
40
+ useTimeStamp?: boolean;
41
+ /**
42
+ * To determine whether component comment should use external services or not
43
+ * @default false
44
+ */
45
+ useExternalServices?: boolean;
46
+ /**
47
+ * To pass comments data from external services
48
+ */
49
+ data?: GetCommentsResponse;
50
+ /**
51
+ * Mention Section or String to highlight where you really comment
52
+ */
53
+ mentionSection?: (cb: MentionSectionFunc) => void;
54
+ /**
55
+ * Query Params Comment for search, etc
56
+ */
57
+ search?: string;
58
+ }
59
+
60
+ export type MentionSectionFunc = (titleText: string) => void;
61
+
62
+ export interface PostCommentsBody {
63
+ objectId: string;
64
+ replyToId?: string;
65
+ mentions?: string[];
66
+ type: CommentType;
67
+ content: JSONContent | object;
68
+ }
69
+
70
+ export interface PostCommentsReactionBody {
71
+ emoji: string;
72
+ }
73
+
74
+ export interface PostCommentsUploadBody {
75
+ images: File[];
76
+ }
77
+
78
+ export interface GetCommentsResponse<T = CommentData> {
79
+ status: number;
80
+ message: string;
81
+ data: T[];
82
+ }
83
+
84
+ export interface CommentsQueryParams extends QueryParams {
85
+ search: string;
86
+ }
87
+
88
+ export type CommentType = 'ticket' | 'task' | 'module' | 'sub-module' | 'pbi';
89
+
90
+ export interface Reaction {
91
+ count: number;
92
+ emoji: string;
93
+ users: User[];
94
+ }
95
+
96
+ export interface User {
97
+ _id: string;
98
+ name: string;
99
+ profilePicture: string;
100
+ }
101
+
102
+ export interface CommentData {
103
+ _id: string;
104
+ replyToId: string;
105
+ type: CommentType;
106
+ objectId: string;
107
+ sender: Sender;
108
+ reactions: Reaction[];
109
+ replies: CommentData[];
110
+ content: JSONContent;
111
+ createdAt: string;
112
+ editedAt?: string | null;
113
+ }
114
+
115
+ export interface PostCommentsUploadResponse {
116
+ status: number;
117
+ message: string;
118
+ data: string[];
119
+ }
120
+
121
+ export interface PutCommentsByIdBody {
122
+ content: JSONContent;
123
+ }
124
+
125
+ export interface Sender {
126
+ _id: string;
127
+ name: string;
128
+ profilePicture: string;
129
+ }
130
+
131
+ export interface NewCommentResponse extends CommentData {
132
+ replyToId: string;
133
+ }
134
+
135
+ export interface UpdatedCommentReponse {
136
+ _id: string;
137
+ content: JSONContent;
138
+ }
139
+
140
+ export interface PostCommentsReactionsByCommentIdBody {
141
+ emoji: string;
142
+ }
143
+
144
+ export interface CommentsMentionQueryParams extends QueryParams {
145
+ objectID: string;
146
+ type: CommentType;
147
+ search?: string;
148
+ }
149
+
150
+ export interface CommentsReactionResponse {
151
+ _id: string;
152
+ reactions: Reaction[];
153
+ }
154
+
155
+ export interface CommentBlockProps extends CommentData {
156
+ commentType: CommentType;
157
+ user: User;
158
+ /**
159
+ * To determine whether using reactions or not
160
+ * @default true
161
+ */
162
+ useReactions?: boolean;
163
+ /**
164
+ * To determine whether using replies or not
165
+ * @default true
166
+ */
167
+ useReplies?: boolean;
168
+ /**
169
+ * To determine whether each comment should display time stamp or not
170
+ * @default true
171
+ */
172
+ useTimeStamp?: boolean;
173
+ fetchMentionSuggestionFunction?: () => Promise<
174
+ GetMentionSuggestionResponse | undefined
175
+ >;
176
+ }
177
+
178
+ declare class Comment extends ClassComponent<CommentProps, any, any> {}
179
+
180
+ export default Comment;
@@ -0,0 +1,35 @@
1
+ import { CommentBlockProps } from './Comment.vue.d';
2
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<CommentBlockProps>, {
3
+ replies: () => any[];
4
+ useReactions: boolean;
5
+ useReplies: boolean;
6
+ useTimeStamp: boolean;
7
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CommentBlockProps>, {
8
+ replies: () => any[];
9
+ useReactions: boolean;
10
+ useReplies: boolean;
11
+ useTimeStamp: boolean;
12
+ }>>>, {
13
+ useReactions: boolean;
14
+ useReplies: boolean;
15
+ useTimeStamp: boolean;
16
+ replies: import('./Comment.vue.d').CommentData[];
17
+ }, {}>;
18
+ export default _default;
19
+ type __VLS_WithDefaults<P, D> = {
20
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
21
+ default: D[K];
22
+ }> : P[K];
23
+ };
24
+ type __VLS_Prettify<T> = {
25
+ [K in keyof T]: T[K];
26
+ } & {};
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToOption<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: import('vue').PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };