@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.
- package/assets/json/currencies.json.d.ts +1068 -0
- package/assets/json/emoji-by-group.json.d.ts +15629 -0
- package/assets/lottie/loading-plane.lottie +0 -0
- package/assets/lottie/loading-table.lottie +0 -0
- package/assets/lottie/no-data.lottie +0 -0
- package/build-entry.d.ts +12 -0
- package/components/animation/Animation.vue.d.ts +21 -0
- package/components/approverinfo/ApproverInfo.vue.d.ts +52 -0
- package/components/badge/Badge.vue.d.ts +57 -0
- package/components/badgegroup/BadgeGroup.vue.d.ts +33 -0
- package/components/breadcrumb/Breadcrumb.vue.d.ts +27 -0
- package/components/button/Button.vue.d.ts +186 -0
- package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +70 -0
- package/components/buttondownload/ButtonDownload.vue.d.ts +46 -0
- package/components/buttonfilter/ButtonFilter.vue.d.ts +13 -0
- package/components/buttonradio/ButtonRadio.vue.d.ts +219 -0
- package/components/buttonsearch/ButtonSearch.vue.d.ts +35 -0
- package/components/buttontoggle/ButtonToggle.vue.d.ts +22 -0
- package/components/calendar/Calendar.vue.d.ts +134 -0
- package/components/card/Card.vue.d.ts +128 -0
- package/components/changelog/Changelog.vue.d.ts +165 -0
- package/components/changelogpage/ChangelogFilter.vue.d.ts +16 -0
- package/components/changelogpage/ChangelogPage.vue.d.ts +180 -0
- package/components/checkbox/Checkbox.vue.d.ts +312 -0
- package/components/codesnippet/CodeSnippet.vue.d.ts +13 -0
- package/components/comment/Comment.vue.d.ts +180 -0
- package/components/comment/CommentBlock.vue.d.ts +35 -0
- package/components/customcolumn/CustomColumn.vue.d.ts +32 -0
- package/components/datatable/DataTable.vue.d.ts +659 -0
- package/components/datatable/MultiRow.vue.d.ts +16 -0
- package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +1 -0
- package/components/datatable/helpers/filter.helper.d.ts +28 -0
- package/components/datatable/helpers/index.d.ts +3 -0
- package/components/datatable/helpers/readConfig.helper.d.ts +2 -0
- package/components/datatable/store/dataTable.store.d.ts +22 -0
- package/components/detailmember/DetailMember.vue.d.ts +79 -0
- package/components/detailmember/DetailMemberAdmin.vue.d.ts +18 -0
- package/components/detailmember/DetailMemberLeader.vue.d.ts +15 -0
- package/components/detailmember/DetailMemberLog.vue.d.ts +15 -0
- package/components/detailmember/DialogMemberAdmin.vue.d.ts +23 -0
- package/components/detailsprint/DetailSprint.vue.d.ts +89 -0
- package/components/detailsprint/DialogAddPbi.vue.d.ts +24 -0
- package/components/detailsprint/DialogConfirmSprint.vue.d.ts +24 -0
- package/components/detailsprint/SprintSummary.vue.d.ts +15 -0
- package/components/detailsprint/helpers/updateSprintStatus.util.d.ts +3 -0
- package/components/detailsprint/options/quickFilterFields.d.ts +3 -0
- package/components/dialog/Dialog.vue.d.ts +451 -0
- package/components/dialogAdjustmentTask/DialogAdjustmentTask.vue.d.ts +158 -0
- package/components/dialogAdjustmentTask/DialogAdjustmentTaskHeader.vue.d.ts +27 -0
- package/components/dialogAdjustmentTask/common/TaskDependency.vue.d.ts +12 -0
- package/components/dialogAdjustmentTask/common/TaskStatusBadge.vue.d.ts +16 -0
- package/components/dialogAdjustmentTask/options/dialogAdjustmentTaskBulkAction.d.ts +3 -0
- package/components/dialogAdjustmentTask/options/dialogAdjustmentTaskSingleAction.d.ts +3 -0
- package/components/dialogAdjustmentTask/options/dialogAdjustmentTaskTableColumn.d.ts +2 -0
- package/components/dialogconfirm/DialogConfirm.vue.d.ts +136 -0
- package/components/dialogdetailpbi/AssignMember.vue.d.ts +23 -0
- package/components/dialogdetailpbi/DialogDetailPbi.vue.d.ts +120 -0
- package/components/dialogdetailpbi/TaskDetailPbi.vue.d.ts +29 -0
- package/components/dialogdetailpbi/TaskDetailUnassignedPbi.vue.d.ts +23 -0
- package/components/dialogdetailpbi/options/memberFilterFields.d.ts +2 -0
- package/components/dialogdetailpbi/options/taskQuickFilterFields.d.ts +3 -0
- package/components/dialogform/DialogForm.vue.d.ts +256 -0
- package/components/dialogimprovementtask/DialogImprovementTask.vue.d.ts +24 -0
- package/components/dialogreportbug/DialogReportBug.vue.d.ts +25 -0
- package/components/dialogreportbug/imageData.json.d.ts +28 -0
- package/components/dropdown/Dropdown.vue.d.ts +182 -0
- package/components/editor/CodeSnippetAdapter.vue.d.ts +68 -0
- package/components/editor/Editor.vue.d.ts +192 -0
- package/components/editor/EditorButton.vue.d.ts +15 -0
- package/components/editor/MentionList.vue.d.ts +35 -0
- package/components/editor/MentionSection.vue.d.ts +68 -0
- package/components/editor/codeSnippetExtension.d.ts +3 -0
- package/components/editor/mentionSectionExtension.d.ts +3 -0
- package/components/editor/suggestion.d.ts +2 -0
- package/components/fieldwrapper/FieldWrapper.vue.d.ts +15 -0
- package/components/fileupload/FileUpload.vue.d.ts +151 -0
- package/components/filtercontainer/FilterContainer.vue.d.ts +109 -0
- package/components/filtercontainer/helpers/applyFilter.helper.d.ts +3 -0
- package/components/filtercontainer/helpers/getOption.helper.d.ts +3 -0
- package/components/form/Form.vue.d.ts +207 -0
- package/components/helpers/convertToArrayClass.helper.d.ts +2 -0
- package/components/helpers/index.d.ts +2 -0
- package/components/icon/Icon.vue.d.ts +215 -0
- package/components/image/Image.vue.d.ts +370 -0
- package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +36 -0
- package/components/imagecompressor/ImageCompressor.vue.d.ts +192 -0
- package/components/imagecompressor/ImageInputInfo.vue.d.ts +30 -0
- package/components/index.d.ts +123 -0
- package/components/inputbadge/InputBadge.vue.d.ts +118 -0
- package/components/inputcurrency/InputCurrency.vue.d.ts +132 -0
- package/components/inputcurrency/helpers/currency.helper.d.ts +4 -0
- package/components/inputemail/InputEmail.vue.d.ts +26 -0
- package/components/inputgroup/InputGroup.vue.d.ts +131 -0
- package/components/inputinitialname/InputInitialName.vue.d.ts +118 -0
- package/components/inputnumber/InputNumber.vue.d.ts +222 -0
- package/components/inputpassword/InputPassword.vue.d.ts +33 -0
- package/components/inputphonenumber/InputPhoneNumber.vue.d.ts +96 -0
- package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +8 -0
- package/components/inputrangenumber/InputRangeNumber.vue.d.ts +98 -0
- package/components/inputrepositoryname/InputRepositoryName.vue.d.ts +87 -0
- package/components/inputtext/InputText.vue.d.ts +226 -0
- package/components/inputurl/InputURL.vue.d.ts +99 -0
- package/components/invisiblefield/InvisibleField.vue.d.ts +36 -0
- package/components/litedropdown/LiteDropdown.vue.d.ts +97 -0
- package/components/loading/Loading.vue.d.ts +34 -0
- package/components/loading/store/loading.store.d.ts +8 -0
- package/components/menu/Menu.vue.d.ts +369 -0
- package/components/menu/helpers/filterMenu.helper.d.ts +10 -0
- package/components/menu/helpers/index.d.ts +1 -0
- package/components/menuitem/index.d.ts +93 -0
- package/components/multiselect/MultiSelect.vue.d.ts +169 -0
- package/components/notificationitem/NotificationItem.vue.d.ts +108 -0
- package/components/notificationitem/helpers/goToDetail.helper.d.ts +6 -0
- package/components/overlaypanel/OverlayPanel.vue.d.ts +292 -0
- package/components/pdfviewer/PDFViewer.vue.d.ts +28 -0
- package/components/progressbar/ProgressBar.vue.d.ts +73 -0
- package/components/quickfilter/QuickFilter.vue.d.ts +17 -0
- package/components/summaryaccordion/SummaryAccordion.vue.d.ts +123 -0
- package/components/tabmenu/TabMenu.vue.d.ts +275 -0
- package/components/taskdetail/TaskDetail.vue.d.ts +83 -0
- package/components/taskdetail/blocks/Tabs/DescriptionTab.vue.d.ts +2 -0
- package/components/taskdetail/blocks/Tabs/EventLogTab.vue.d.ts +2 -0
- package/components/taskdetail/blocks/Tabs/InfoTaskTab.vue.d.ts +2 -0
- package/components/taskdetail/blocks/Tabs/ReviewTab.vue.d.ts +2 -0
- package/components/taskdetail/blocks/common/AttachmentThumbnail.vue.d.ts +18 -0
- package/components/taskdetail/blocks/common/DialogAddAttachment.vue.d.ts +32 -0
- package/components/taskdetail/blocks/common/DialogAssignMember.vue.d.ts +30 -0
- package/components/taskdetail/blocks/common/DialogConfirmApproval.vue.d.ts +26 -0
- package/components/taskdetail/blocks/common/DialogConfirmDeleteTask.vue.d.ts +28 -0
- package/components/taskdetail/blocks/common/DialogConfirmEdit.vue.d.ts +24 -0
- package/components/taskdetail/blocks/common/DialogConfirmFinishTask.vue.d.ts +24 -0
- package/components/taskdetail/blocks/common/DialogPriorityValue.vue.d.ts +21 -0
- package/components/taskdetail/blocks/common/DialogSetDuration.vue.d.ts +18 -0
- package/components/taskdetail/blocks/common/InputAdditional.vue.d.ts +28 -0
- package/components/taskdetail/blocks/common/Legend.vue.d.ts +79 -0
- package/components/taskdetail/blocks/common/SonarQubeSummary.vue.d.ts +17 -0
- package/components/taskdetail/blocks/common/TaskMore.vue.d.ts +16 -0
- package/components/taskdetail/blocks/sections/API/API.vue.d.ts +2 -0
- package/components/taskdetail/blocks/sections/API/APIItem.vue.d.ts +28 -0
- package/components/taskdetail/blocks/sections/API/DialogAddEditApi.vue.d.ts +25 -0
- package/components/taskdetail/blocks/sections/API/DialogTestApi.vue.d.ts +22 -0
- package/components/taskdetail/blocks/sections/API/IsRequiredText.vue.d.ts +15 -0
- package/components/taskdetail/blocks/sections/API/TestApi/options/keyValueTableColumn.d.ts +2 -0
- package/components/taskdetail/blocks/sections/API/ValueFormDataInput.vue.d.ts +37 -0
- package/components/taskdetail/blocks/sections/Attachment/Attachment.vue.d.ts +2 -0
- package/components/taskdetail/blocks/sections/Attachment/AttachmentChangelog.vue.d.ts +18 -0
- package/components/taskdetail/blocks/sections/Attachment/AttachmentItem.vue.d.ts +65 -0
- package/components/taskdetail/blocks/sections/Checklist/Checklist.vue.d.ts +20 -0
- package/components/taskdetail/blocks/sections/Checklist/ChecklistChangelog.vue.d.ts +18 -0
- package/components/taskdetail/blocks/sections/Checklist/DialogAddChecklist.vue.d.ts +32 -0
- package/components/taskdetail/blocks/sections/Checklist/DialogConfirmChecklist.vue.d.ts +26 -0
- package/components/taskdetail/blocks/sections/Checklist/DialogDetailChecklistTemplate.vue.d.ts +18 -0
- package/components/taskdetail/blocks/sections/Checklist/DialogSaveChecklistTemplate.vue.d.ts +22 -0
- package/components/taskdetail/blocks/sections/Description/Description.vue.d.ts +2 -0
- package/components/taskdetail/blocks/sections/Review/DialogFinishReview.vue.d.ts +26 -0
- package/components/taskdetail/blocks/sections/Review/DialogReviewLeader.vue.d.ts +25 -0
- package/components/taskdetail/blocks/sections/Review/ReviewItem.vue.d.ts +16 -0
- package/components/taskdetail/blocks/sections/TaskDependency/DialogCustomDependency.vue.d.ts +20 -0
- package/components/taskdetail/blocks/sections/TaskDependency/TaskDependency.vue.d.ts +2 -0
- package/components/taskdetail/blocks/sections/TaskLink/DialogSetTaskLink.vue.d.ts +40 -0
- package/components/taskdetail/blocks/sections/TaskLink/TaskLink.vue.d.ts +2 -0
- package/components/taskdetail/blocks/sections/TaskLink/TaskLinkChangelog.vue.d.ts +22 -0
- package/components/taskdetail/blocks/sections/TaskList/LegendList.vue.d.ts +55 -0
- package/components/taskdetail/blocks/sections/TaskList/TaskList.vue.d.ts +15 -0
- package/components/taskdetail/blocks/sections/Ticket/Ticket.vue.d.ts +2 -0
- package/components/tasktable/DependencyCol.vue.d.ts +16 -0
- package/components/tasktable/DialogConfirmDeleteTaskPermanently.vue.d.ts +24 -0
- package/components/tasktable/DialogConfirmRestoreTask.vue.d.ts +24 -0
- package/components/tasktable/DialogSelectProject.vue.d.ts +20 -0
- package/components/tasktable/TaskTable.vue.d.ts +82 -0
- package/components/textarea/Textarea.vue.d.ts +121 -0
- package/components/timeline/Timeline.vue.d.ts +116 -0
- package/components/timeline/TimelineContentByType.vue.d.ts +16 -0
- package/components/toast/Toast.vue.d.ts +354 -0
- package/components/tooltipspan/TooltipSpan.vue.d.ts +21 -0
- package/components/ts-helpers.d.ts +62 -0
- package/components/usergroup/UserGroup.vue.d.ts +58 -0
- package/components/username/UserName.vue.d.ts +62 -0
- package/components/validatormessage/ValidatorMessage.vue.d.ts +13 -0
- package/components/workcalendar/WorkCalendar.vue.d.ts +55 -0
- package/directives/focus.d.ts +7 -0
- package/directives/index.d.ts +1 -0
- package/dto/member.dto.d.ts +65 -0
- package/dto/task.dto.d.ts +86 -0
- package/dto/taskApi.dto.d.ts +20 -0
- package/dto/taskAttachment.dto.d.ts +11 -0
- package/dto/taskChecklist.dto.d.ts +39 -0
- package/dto/taskDependency.dto.d.ts +9 -0
- package/event-bus/index.d.ts +47 -0
- package/event-bus/mitt.d.ts +21 -0
- package/index.d.ts +2 -0
- package/main.d.ts +2 -0
- package/package.json +16 -0
- package/plugins/formValidation.d.ts +10 -0
- package/services/calendar.service.d.ts +9 -0
- package/services/dataManager.service.d.ts +5 -0
- package/services/sonarQube.service.d.ts +10 -0
- package/style.css +13 -0
- package/types/member.type.d.ts +72 -0
- package/types/options.type.d.ts +14 -0
- package/types/project.type.d.ts +64 -0
- package/types/projectApproval.type.d.ts +3 -0
- package/types/projectModule.type.d.ts +6 -0
- package/types/projectProcess.type.d.ts +17 -0
- package/types/projectQc.type.d.ts +52 -0
- package/types/projectSubmodule.type.d.ts +14 -0
- package/types/queryParamsStringfy.type.d.ts +3 -0
- package/types/roleDetailAccess.type.d.ts +17 -0
- package/types/subModule.type.d.ts +4 -0
- package/types/task.type.d.ts +256 -0
- package/types/team.type.d.ts +4 -0
- package/types/ticket.type.d.ts +13 -0
- package/types/user.type.d.ts +19 -0
- package/types/wangsStatus.type.d.ts +8 -0
- package/utils/convertJsonImage.util.d.ts +3 -0
- package/utils/date.util.d.ts +17 -0
- package/utils/exportToExcel.util.d.ts +20 -0
- package/utils/filterOptions.util.d.ts +3 -0
- package/utils/genPlaceholder.util.d.ts +3 -0
- package/utils/getAttachmentIcon.util.d.ts +8 -0
- package/utils/getProjectPermission.util.d.ts +4 -0
- package/utils/getSalesRole.util.d.ts +30 -0
- package/utils/getUser.util.d.ts +3 -0
- package/utils/getUserType.util.d.ts +2 -0
- package/utils/index.d.ts +9 -0
- package/utils/isIntersect.d.ts +2 -0
- package/utils/object.util.d.ts +2 -0
- package/utils/queryParamsStringfy.util.d.ts +7 -0
- package/utils/role.util.d.ts +2 -0
- package/utils/statusSeverity.util.d.ts +3 -0
- package/utils/textFormatter.util.d.ts +4 -0
- package/utils/toast.util.d.ts +36 -0
- package/utils/translation.util.d.ts +15 -0
- package/wangsvue.es.js +152940 -0
- package/wangsvue.system.js +467 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { FormDataBody } from '../dto/taskApi.dto';
|
|
2
|
+
import { Member } from './member.type';
|
|
3
|
+
import { DropdownOption, MultiSelectOption } from '.././types/options.type';
|
|
4
|
+
import { Project } from './project.type';
|
|
5
|
+
import { ProjectModule } from './projectModule.type';
|
|
6
|
+
import { ProjectProcess } from './projectProcess.type';
|
|
7
|
+
import { ProjectSubModule } from './projectSubmodule.type';
|
|
8
|
+
import { WangsitStatus } from './wangsStatus.type';
|
|
9
|
+
import { JSONContent } from '.././components/editor/Editor.vue.d';
|
|
10
|
+
import { ChildGroup } from '.././components/datatable/DataTable.vue.d';
|
|
11
|
+
import { FileType } from '../components/taskdetail/blocks/sections/Attachment/AttachmentItem.vue.d';
|
|
12
|
+
import { Pbi } from '../components/dialogdetailpbi/DialogDetailPbi.vue.d';
|
|
13
|
+
export type TaskDetailData = {
|
|
14
|
+
_id: string;
|
|
15
|
+
project: Project;
|
|
16
|
+
process: ProjectProcess;
|
|
17
|
+
module: ProjectModule;
|
|
18
|
+
subModule: ProjectSubModule;
|
|
19
|
+
productBacklogItem?: Pick<Pbi, '_id' | 'name'>;
|
|
20
|
+
repository: string;
|
|
21
|
+
sonarqube?: string;
|
|
22
|
+
name: string;
|
|
23
|
+
assignedTo: Member[];
|
|
24
|
+
team: string[];
|
|
25
|
+
status: WangsitStatus;
|
|
26
|
+
priority: number | null;
|
|
27
|
+
timeReportedBug: number;
|
|
28
|
+
startDate: Date | null;
|
|
29
|
+
finishedDate: Date | null;
|
|
30
|
+
duration: number | null;
|
|
31
|
+
timerStartedAt: string | null;
|
|
32
|
+
timerStartedValue: number | null;
|
|
33
|
+
approvalStatus: string;
|
|
34
|
+
isInActiveSprint: boolean;
|
|
35
|
+
};
|
|
36
|
+
export type TaskDescription = {
|
|
37
|
+
_id: string;
|
|
38
|
+
description: string | null;
|
|
39
|
+
updatedBy: Member | null;
|
|
40
|
+
updatedAt: string | Date | null;
|
|
41
|
+
};
|
|
42
|
+
export type TaskChildren = {
|
|
43
|
+
process?: Pick<ProjectProcess, '_id' | 'name'>;
|
|
44
|
+
module?: Pick<ProjectModule, '_id' | 'name'>;
|
|
45
|
+
subModule?: Pick<ProjectSubModule, '_id' | 'name'>;
|
|
46
|
+
tasks?: TaskDependencyDetail[];
|
|
47
|
+
options?: DropdownOption[];
|
|
48
|
+
selectedOptions?: string[];
|
|
49
|
+
};
|
|
50
|
+
export type TaskDependency = {
|
|
51
|
+
process?: Pick<ProjectProcess, '_id' | 'name'>;
|
|
52
|
+
module?: Pick<ProjectModule, '_id' | 'name' | 'initial'>;
|
|
53
|
+
subModule?: Pick<ProjectSubModule, '_id' | 'name'>;
|
|
54
|
+
task?: TaskDependencyDetail[];
|
|
55
|
+
options?: DropdownOption[];
|
|
56
|
+
selectedOptions?: string[];
|
|
57
|
+
loading?: boolean;
|
|
58
|
+
custom?: boolean;
|
|
59
|
+
processOptions?: DropdownOption[] | MultiSelectOption[];
|
|
60
|
+
moduleOptions?: DropdownOption[] | MultiSelectOption[];
|
|
61
|
+
subModuleOptions?: DropdownOption[] | MultiSelectOption[];
|
|
62
|
+
subModuleVisibility?: boolean;
|
|
63
|
+
};
|
|
64
|
+
export type TaskDependencyDetail = {
|
|
65
|
+
_id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
assignedTo: Member[];
|
|
68
|
+
status: WangsitStatus;
|
|
69
|
+
taskLink: TaskLink;
|
|
70
|
+
caption: string;
|
|
71
|
+
showCaption?: boolean;
|
|
72
|
+
};
|
|
73
|
+
export type TaskLinkType = 'task' | 'service';
|
|
74
|
+
export type TaskLinkURLType = 'url' | 'embedded';
|
|
75
|
+
export type TaskLink = {
|
|
76
|
+
_id: string;
|
|
77
|
+
type: TaskLinkType;
|
|
78
|
+
link: string;
|
|
79
|
+
linkType: TaskLinkURLType;
|
|
80
|
+
updatedBy: Member;
|
|
81
|
+
createdAt: string | Date;
|
|
82
|
+
updatedAt: string | Date;
|
|
83
|
+
};
|
|
84
|
+
export type TaskChecklist = {
|
|
85
|
+
_id: string;
|
|
86
|
+
name: string;
|
|
87
|
+
task: string;
|
|
88
|
+
caption?: string;
|
|
89
|
+
checklistItems?: TaskChecklistItem[];
|
|
90
|
+
showRenameChecklist?: boolean;
|
|
91
|
+
showAddItem?: boolean;
|
|
92
|
+
isRequested?: boolean;
|
|
93
|
+
};
|
|
94
|
+
export type TaskChecklistItem = {
|
|
95
|
+
_id: string;
|
|
96
|
+
name: string;
|
|
97
|
+
checked: boolean;
|
|
98
|
+
updatedBy?: {
|
|
99
|
+
_id: string;
|
|
100
|
+
fullName: string;
|
|
101
|
+
nickName: string;
|
|
102
|
+
};
|
|
103
|
+
isRequested: boolean;
|
|
104
|
+
checkedAt?: string;
|
|
105
|
+
caption?: string;
|
|
106
|
+
createdAt: string;
|
|
107
|
+
updatedAt: string;
|
|
108
|
+
attachments: any[];
|
|
109
|
+
showRenameItem?: boolean;
|
|
110
|
+
showCaptionItem?: boolean;
|
|
111
|
+
content?: JSONContent;
|
|
112
|
+
key?: number;
|
|
113
|
+
};
|
|
114
|
+
export type TaskChecklistTemplate = {
|
|
115
|
+
_id: string;
|
|
116
|
+
project: string;
|
|
117
|
+
name: string;
|
|
118
|
+
module: string;
|
|
119
|
+
subModule: string;
|
|
120
|
+
task: string;
|
|
121
|
+
items: string[];
|
|
122
|
+
createdBy: Member;
|
|
123
|
+
createdAt: string;
|
|
124
|
+
updatedAt: string;
|
|
125
|
+
};
|
|
126
|
+
export interface TaskAPI {
|
|
127
|
+
_id: string;
|
|
128
|
+
name: string;
|
|
129
|
+
header?: string;
|
|
130
|
+
url?: string;
|
|
131
|
+
method?: string;
|
|
132
|
+
query?: string[];
|
|
133
|
+
contentType: string;
|
|
134
|
+
jsonBody?: string;
|
|
135
|
+
formDataBody?: FormDataBody[];
|
|
136
|
+
response?: string;
|
|
137
|
+
isIntact?: boolean;
|
|
138
|
+
isSuccess?: boolean;
|
|
139
|
+
updatedBy: Member;
|
|
140
|
+
updatedAt: string;
|
|
141
|
+
anyChanges?: boolean;
|
|
142
|
+
taskStatus?: WangsitStatus;
|
|
143
|
+
}
|
|
144
|
+
export type FormDataBodyCustom = Omit<FormDataBody, 'isMandatory'> & {
|
|
145
|
+
isMandatory: 'ya' | 'tidak';
|
|
146
|
+
};
|
|
147
|
+
export type TaskAPIFormDataCustom = Omit<TaskAPI, 'formDataBody'> & {
|
|
148
|
+
formDataBody: FormDataBodyCustom[];
|
|
149
|
+
};
|
|
150
|
+
export interface TaskReview {
|
|
151
|
+
_id: string;
|
|
152
|
+
task: string;
|
|
153
|
+
user: Member;
|
|
154
|
+
title: string;
|
|
155
|
+
content?: string;
|
|
156
|
+
checklists?: TaskReviewChecklist[];
|
|
157
|
+
createdAt: string;
|
|
158
|
+
updatedAt: string;
|
|
159
|
+
}
|
|
160
|
+
interface TaskReviewChecklist {
|
|
161
|
+
name: string;
|
|
162
|
+
items: TaskReviewChecklistItem[];
|
|
163
|
+
}
|
|
164
|
+
interface TaskReviewChecklistItem {
|
|
165
|
+
name: string;
|
|
166
|
+
result: 'Ok' | 'Bug';
|
|
167
|
+
content?: string;
|
|
168
|
+
}
|
|
169
|
+
export type TaskType = 'parent' | 'child' | 'dependency';
|
|
170
|
+
export interface TaskTableItem {
|
|
171
|
+
_id: string;
|
|
172
|
+
project: Project;
|
|
173
|
+
process: ProjectProcess;
|
|
174
|
+
module: ProjectModule;
|
|
175
|
+
subModule: ProjectSubModule;
|
|
176
|
+
name: string;
|
|
177
|
+
assignedTo: Member[];
|
|
178
|
+
team: string[];
|
|
179
|
+
status: WangsitStatus;
|
|
180
|
+
priority?: number;
|
|
181
|
+
timeReportedBug: number;
|
|
182
|
+
childTask: number;
|
|
183
|
+
dependency: TaskTableItemDependency;
|
|
184
|
+
exportDependencyField?: string;
|
|
185
|
+
lastUpdatedAt: string;
|
|
186
|
+
children?: ChildGroup[];
|
|
187
|
+
hasChildren?: boolean;
|
|
188
|
+
taskType?: TaskType;
|
|
189
|
+
isProjectManager?: boolean;
|
|
190
|
+
isTeamLeader?: boolean;
|
|
191
|
+
duration?: number;
|
|
192
|
+
}
|
|
193
|
+
export interface TaskTableItemDependency {
|
|
194
|
+
done: number;
|
|
195
|
+
onProgress: number;
|
|
196
|
+
}
|
|
197
|
+
export interface TaskTableOptionQuery {
|
|
198
|
+
projectOptions?: boolean;
|
|
199
|
+
moduleOptions?: boolean;
|
|
200
|
+
subModuleOptions?: boolean;
|
|
201
|
+
memberOptions?: boolean;
|
|
202
|
+
taskOptions?: boolean;
|
|
203
|
+
processOptions?: boolean;
|
|
204
|
+
project?: string;
|
|
205
|
+
module?: string;
|
|
206
|
+
subModule?: string;
|
|
207
|
+
}
|
|
208
|
+
export interface TaskTableFamily {
|
|
209
|
+
dependencies: TaskTableItem[];
|
|
210
|
+
children: TaskTableItem[];
|
|
211
|
+
}
|
|
212
|
+
export interface TaskTableFamilyResponse {
|
|
213
|
+
status: number;
|
|
214
|
+
message: string;
|
|
215
|
+
data: TaskTableFamily;
|
|
216
|
+
}
|
|
217
|
+
export interface TaskAttachmentChangelogItem {
|
|
218
|
+
_id: string;
|
|
219
|
+
type: FileType;
|
|
220
|
+
attachmentSrc: string;
|
|
221
|
+
attachment: string;
|
|
222
|
+
action: string;
|
|
223
|
+
user: Member;
|
|
224
|
+
createdAt: string;
|
|
225
|
+
updatedAt: string;
|
|
226
|
+
}
|
|
227
|
+
export interface TaskLinkChangelogItem {
|
|
228
|
+
_id: string;
|
|
229
|
+
type: TaskLinkType;
|
|
230
|
+
action: string;
|
|
231
|
+
oldValue: TaskLinkChangelogItemValue;
|
|
232
|
+
newValue: TaskLinkChangelogItemValue;
|
|
233
|
+
user: Member;
|
|
234
|
+
createdAt: string;
|
|
235
|
+
updatedAt: string;
|
|
236
|
+
}
|
|
237
|
+
export interface TaskLinkChangelogItemValue {
|
|
238
|
+
type: TaskLinkURLType;
|
|
239
|
+
link: string;
|
|
240
|
+
}
|
|
241
|
+
export interface TaskChecklistChangelogItem {
|
|
242
|
+
_id: string;
|
|
243
|
+
task: string;
|
|
244
|
+
action: string;
|
|
245
|
+
oldValue: string;
|
|
246
|
+
newValue: string;
|
|
247
|
+
attachment: {
|
|
248
|
+
type: FileType;
|
|
249
|
+
name: string;
|
|
250
|
+
src: string;
|
|
251
|
+
};
|
|
252
|
+
user: Member;
|
|
253
|
+
createdAt: string;
|
|
254
|
+
updatedAt: string;
|
|
255
|
+
}
|
|
256
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type TicketTaskIdResponse = {
|
|
2
|
+
status: number;
|
|
3
|
+
message: string;
|
|
4
|
+
data: TicketTaskId[];
|
|
5
|
+
};
|
|
6
|
+
export type TicketTaskId = {
|
|
7
|
+
_id: string;
|
|
8
|
+
ticketId: string;
|
|
9
|
+
status: TicketStatus;
|
|
10
|
+
subject: string;
|
|
11
|
+
deadline: string;
|
|
12
|
+
};
|
|
13
|
+
export type TicketStatus = 'Open' | 'On Verification' | 'Request Cancel' | 'On Progress' | 'Need Confirmation' | 'Closed' | 'Cancel Ticket';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Teams } from './project.type';
|
|
2
|
+
import { RoleDetailAccess } from './roleDetailAccess.type';
|
|
3
|
+
export type User = {
|
|
4
|
+
_id: string;
|
|
5
|
+
key: number;
|
|
6
|
+
profilePicture?: string;
|
|
7
|
+
profilePictureBig: string;
|
|
8
|
+
profilePictureMedium: string;
|
|
9
|
+
profilePictureSmall: string;
|
|
10
|
+
fullName: string;
|
|
11
|
+
nickName: string;
|
|
12
|
+
email: string;
|
|
13
|
+
division: string;
|
|
14
|
+
position: string;
|
|
15
|
+
teams: Teams[];
|
|
16
|
+
permission: RoleDetailAccess;
|
|
17
|
+
isTeamLeader: boolean;
|
|
18
|
+
isProjectManager: boolean;
|
|
19
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type UserStatus = 'Aktif' | 'Nonaktif';
|
|
2
|
+
export type ProjectStatus = 'Sprint' | 'Backlog' | 'Selesai';
|
|
3
|
+
export type TaskStatus = 'Waiting for Approval' | 'Backlog' | 'Sprint' | 'Pending Review Leader' | 'Reported Bug' | 'Fixing Bug' | 'Penyesuaian' | 'Selesai';
|
|
4
|
+
export type ProductBacklogItemStatus = DevelopmentStatus | 'Overdue' | 'Pending E2E Testing';
|
|
5
|
+
export type DeploymentStatus = 'Not Ready Yet' | 'Ready to Deploy' | 'Finish Deployment' | 'On Deployment';
|
|
6
|
+
export type DevelopmentStatus = ProjectStatus | 'Pending E2E Testing Dev' | 'Selesai Dev' | 'Pending E2E Testing Staging' | 'Selesai Staging' | 'Reported Bug';
|
|
7
|
+
export type StatusSeverity = 'success' | 'primary' | 'dark' | 'warning' | 'danger' | 'info';
|
|
8
|
+
export type WangsitStatus = ProjectStatus | UserStatus | TaskStatus | DeploymentStatus | DevelopmentStatus | ProductBacklogItemStatus;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type TDateFormat = 'd/m/yy' | 'd/mm/yy' | 'dd/mm/yy' | 'dd/mm/yyyy' | 'dd M yy' | 'dd M yyyy' | 'dd MM yy' | 'dd MM yyyy' | 'D dd M yy' | 'D dd M yyyy' | 'DD dd MM yy' | 'DD dd MM yyyy' | 'D, dd M yy' | 'D, dd M yyyy' | 'DD, dd MM yy' | 'DD, dd MM yyyy';
|
|
2
|
+
export type TTimeFormat = 'HH:mm' | 'HH:mm a' | 'HH:mm:ss' | 'HH:mm:ss a';
|
|
3
|
+
export type TTimeOptions = {
|
|
4
|
+
locale?: string;
|
|
5
|
+
dateFormat?: TDateFormat;
|
|
6
|
+
timeFormat?: TTimeFormat;
|
|
7
|
+
};
|
|
8
|
+
export declare const formatDate: (date: Date, options?: TTimeOptions) => string;
|
|
9
|
+
export declare const formatISODate: (date: string | Date) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Formats a date to human readable form (timeago / relative time from now).
|
|
12
|
+
*
|
|
13
|
+
* @param date - The date to be displayed. Can be a Date object or a string in a recognized date format.
|
|
14
|
+
* @param maxSeconds - Max value of seconds difference. Use it for formats a date according to the user's general settings.
|
|
15
|
+
* @returns The formatted date string.
|
|
16
|
+
*/
|
|
17
|
+
export declare const formatDateReadable: (date: Date, maxSeconds?: number) => string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface ITable {
|
|
2
|
+
headers: string[];
|
|
3
|
+
data: Record<string, unknown>[];
|
|
4
|
+
tableName: string;
|
|
5
|
+
tableTitle?: string;
|
|
6
|
+
}
|
|
7
|
+
interface IExcelOptions {
|
|
8
|
+
tables: ITable[];
|
|
9
|
+
fileName: string;
|
|
10
|
+
additionalTexts?: (string | string[])[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Function to export excel, previously this only handle for 1 table in 1 file
|
|
14
|
+
* Now this function has been refactored to be able to format multiple tables in 1 file without altered its original functionality
|
|
15
|
+
* However, the way to called this function is changing a little bit (look for component DataTable and find usage of util `exportToExcel`)
|
|
16
|
+
*
|
|
17
|
+
* @param options - param that contain tables and filename for excel
|
|
18
|
+
*/
|
|
19
|
+
declare const exportToExcel: (options: IExcelOptions) => Promise<void>;
|
|
20
|
+
export default exportToExcel;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type SalesRole = {
|
|
2
|
+
sales: boolean;
|
|
3
|
+
seniorSales: boolean;
|
|
4
|
+
admin: boolean;
|
|
5
|
+
elsa: boolean;
|
|
6
|
+
licenseTrial: boolean;
|
|
7
|
+
incentive: boolean;
|
|
8
|
+
priceInformation: boolean;
|
|
9
|
+
referenceNumber: boolean;
|
|
10
|
+
manageDistributor: boolean;
|
|
11
|
+
managePartner: boolean;
|
|
12
|
+
manageProduct: boolean;
|
|
13
|
+
settingsUser: boolean;
|
|
14
|
+
settingsApproval: boolean;
|
|
15
|
+
settingsRole: boolean;
|
|
16
|
+
settingsExpiredTime: boolean;
|
|
17
|
+
settingsPPN: boolean;
|
|
18
|
+
settingsCustomField: boolean;
|
|
19
|
+
settingsTermAndCondition: boolean;
|
|
20
|
+
approvalProduct: boolean;
|
|
21
|
+
approvalLicenseTrial: boolean;
|
|
22
|
+
approvalSPRF: boolean;
|
|
23
|
+
approvalQuotation: boolean;
|
|
24
|
+
approvalBillingForm: boolean;
|
|
25
|
+
approvalCashback: boolean;
|
|
26
|
+
approvalElsa: boolean;
|
|
27
|
+
approvalQRF: boolean;
|
|
28
|
+
};
|
|
29
|
+
declare const getSalesRole: () => SalesRole;
|
|
30
|
+
export default getSalesRole;
|
package/utils/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { formatDate, formatISODate, formatDateReadable, formatUserName, getInititalName, useToast, getNestedProperyValue, checkRouteAccess, isEmptyObject, } from '.././utils';
|
|
2
|
+
export { queryParamsStringfy } from './queryParamsStringfy.util';
|
|
3
|
+
export { default as getSalesRole } from './getSalesRole.util';
|
|
4
|
+
export { default as getStatusSeverity } from './statusSeverity.util';
|
|
5
|
+
export { default as getUser } from './getUser.util';
|
|
6
|
+
export { default as getUserType } from './getUserType.util';
|
|
7
|
+
export { default as getProjectPermission } from './getProjectPermission.util';
|
|
8
|
+
export { default as isIntersect } from './isIntersect';
|
|
9
|
+
export { default as convertJsonImage } from './convertJsonImage.util';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { QueryParams } from '.././components/datatable/DataTable.vue.d';
|
|
2
|
+
import { QueryParamsStringfy } from '../types/queryParamsStringfy.type';
|
|
3
|
+
/**
|
|
4
|
+
* This Function will turn all array query params to string
|
|
5
|
+
* using JSON Stringfy
|
|
6
|
+
*/
|
|
7
|
+
export declare const queryParamsStringfy: (data: QueryParams | undefined) => QueryParamsStringfy | undefined;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const formatUserName: (name?: string) => string;
|
|
2
|
+
export declare const getInititalName: (existing: string[], fullName?: string, maxLength?: number) => string;
|
|
3
|
+
export declare const getInitialsByConsonant: (existingInitials: string[], fullName: string, maxLength: number) => string;
|
|
4
|
+
export declare const getInitialsBy3FirstLetter: (existingInitials: string[], fullName: string, maxLength: number) => string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { WangsIcons } from '../components/icon/Icon.vue.d';
|
|
2
|
+
export interface ToastParams {
|
|
3
|
+
message: string;
|
|
4
|
+
/**
|
|
5
|
+
* Whether the message should be prepended with the default message template.
|
|
6
|
+
*/
|
|
7
|
+
customMessage?: boolean;
|
|
8
|
+
severity?: 'success' | 'error' | 'info';
|
|
9
|
+
/**
|
|
10
|
+
* @default emotion-happy-fill
|
|
11
|
+
*/
|
|
12
|
+
icon?: WangsIcons;
|
|
13
|
+
iconClass?: any;
|
|
14
|
+
/**
|
|
15
|
+
* The error object from catch statement.
|
|
16
|
+
*/
|
|
17
|
+
error?: unknown;
|
|
18
|
+
/**
|
|
19
|
+
* Set the duration of toast in milisecond.
|
|
20
|
+
*
|
|
21
|
+
* @default 3000 - 3s
|
|
22
|
+
*/
|
|
23
|
+
life?: number;
|
|
24
|
+
group?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ToastMethod {
|
|
27
|
+
add(params: ToastParams): void;
|
|
28
|
+
/**
|
|
29
|
+
* Clears the messages that belongs to the group.
|
|
30
|
+
* @param {string} group - Name of the message group.
|
|
31
|
+
*/
|
|
32
|
+
removeGroup(group: string): void;
|
|
33
|
+
removeAllGroups(): void;
|
|
34
|
+
}
|
|
35
|
+
declare const useToast: () => ToastMethod;
|
|
36
|
+
export default useToast;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TranslateOptions } from 'vue-i18n';
|
|
2
|
+
export interface I18n {
|
|
3
|
+
t: <T = string>(
|
|
4
|
+
/**
|
|
5
|
+
* @param text Text to find the variable name
|
|
6
|
+
*/
|
|
7
|
+
text: string, plural?: number, options?: TranslateOptions<string>) => T;
|
|
8
|
+
}
|
|
9
|
+
export declare const getTranslationKey: (text: string) => string;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @param text Text from Figma to be translated.
|
|
13
|
+
*/
|
|
14
|
+
declare const useI18n: () => I18n;
|
|
15
|
+
export default useI18n;
|