@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,28 @@
|
|
|
1
|
+
export declare const FilterMatchMode: {
|
|
2
|
+
CONTAINS: string;
|
|
3
|
+
EQUALS: string;
|
|
4
|
+
IN: string;
|
|
5
|
+
LESS_THAN: string;
|
|
6
|
+
LESS_THAN_OR_EQUAL_TO: string;
|
|
7
|
+
GREATER_THAN: string;
|
|
8
|
+
GREATER_THAN_OR_EQUAL_TO: string;
|
|
9
|
+
DATE_BETWEEN: string;
|
|
10
|
+
DATE_BEFORE: string;
|
|
11
|
+
DATE_AFTER: string;
|
|
12
|
+
};
|
|
13
|
+
type FilterFunction = (value: any, filter: any, filterLocale?: string) => boolean;
|
|
14
|
+
declare class FilterService {
|
|
15
|
+
private readonly filters;
|
|
16
|
+
constructor();
|
|
17
|
+
filter(value: any[], fields: string[], filterValue: any, filterMatchMode: string, filterLocale?: string): any[];
|
|
18
|
+
register(rule: string, fn: FilterFunction): void;
|
|
19
|
+
private contains;
|
|
20
|
+
private dateBetween;
|
|
21
|
+
private in;
|
|
22
|
+
private lt;
|
|
23
|
+
private lte;
|
|
24
|
+
private gt;
|
|
25
|
+
private gte;
|
|
26
|
+
}
|
|
27
|
+
declare const _default: FilterService;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface DataTableStore {
|
|
2
|
+
/**
|
|
3
|
+
* Get the config object from the store.
|
|
4
|
+
*/
|
|
5
|
+
config: DataTableConfig;
|
|
6
|
+
/**
|
|
7
|
+
* Update config for specific Table.
|
|
8
|
+
*
|
|
9
|
+
* @param id The table ID
|
|
10
|
+
* @param columnsConfig The columns configuration
|
|
11
|
+
*/
|
|
12
|
+
setConfig: (id: string, columnsConfig: DataTableColumnConfig[]) => Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
export type DataTableConfig = Record<string, DataTableColumnConfig[]>;
|
|
15
|
+
export interface DataTableColumnConfig {
|
|
16
|
+
field: string;
|
|
17
|
+
width: number | string;
|
|
18
|
+
fixed: boolean;
|
|
19
|
+
visible: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const useDataTableStore: () => Promise<DataTableStore>;
|
|
22
|
+
export default useDataTableStore;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { User } from '../../types/user.type';
|
|
2
|
+
import { ClassComponent } from '../.././components/ts-helpers';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export type Role = {
|
|
6
|
+
_id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
objectName: string;
|
|
9
|
+
description: string;
|
|
10
|
+
createdAt: string;
|
|
11
|
+
updatedAt: string;
|
|
12
|
+
totalMembers: number;
|
|
13
|
+
modifiedBy?: User;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export interface RoleMemberPatch {
|
|
17
|
+
create?: boolean;
|
|
18
|
+
read?: boolean;
|
|
19
|
+
update?: boolean;
|
|
20
|
+
delete?: boolean;
|
|
21
|
+
isActive?: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type MemberAdminRole = {
|
|
25
|
+
_id: string;
|
|
26
|
+
role: Pick<Role, '_id' | 'name'>;
|
|
27
|
+
isActive: boolean;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
type ModuleProgress = {
|
|
31
|
+
completedModules: number;
|
|
32
|
+
totalModules: number;
|
|
33
|
+
percentage: number;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
type TaskProgress = {
|
|
37
|
+
completedTasks: number;
|
|
38
|
+
totalTasks: number;
|
|
39
|
+
percentage: number;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type ProjectLeaders = {
|
|
43
|
+
_id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
createdAt: string;
|
|
46
|
+
projectManager: Pick<User, '_id' | 'nickName' | 'profilePicture'>[];
|
|
47
|
+
moduleProgress: ModuleProgress;
|
|
48
|
+
taskProgress: TaskProgress;
|
|
49
|
+
totalTeams: number;
|
|
50
|
+
totalMembers: number;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export interface DetailMemberProps {
|
|
54
|
+
/**
|
|
55
|
+
* The index of the detail shown
|
|
56
|
+
*/
|
|
57
|
+
activeIndex: number;
|
|
58
|
+
/**
|
|
59
|
+
* ID of the member
|
|
60
|
+
*/
|
|
61
|
+
memberId: string;
|
|
62
|
+
/**
|
|
63
|
+
* Access to member modification
|
|
64
|
+
*/
|
|
65
|
+
access?: {
|
|
66
|
+
create: boolean;
|
|
67
|
+
read: boolean;
|
|
68
|
+
update: boolean;
|
|
69
|
+
delete: boolean;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare class DetailMember extends ClassComponent<
|
|
74
|
+
DetailMemberProps,
|
|
75
|
+
unknown,
|
|
76
|
+
unknown
|
|
77
|
+
> {}
|
|
78
|
+
|
|
79
|
+
export default DetailMember;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RoleMemberPermission } from '../../types/roleDetailAccess.type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
+
memberId: string;
|
|
4
|
+
access?: RoleMemberPermission;
|
|
5
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
6
|
+
memberId: string;
|
|
7
|
+
access?: RoleMemberPermission;
|
|
8
|
+
}>>>, {}, {}>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToOption<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
2
|
+
memberId: string;
|
|
3
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
4
|
+
memberId: string;
|
|
5
|
+
}>>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToOption<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
2
|
+
memberId: string;
|
|
3
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
4
|
+
memberId: string;
|
|
5
|
+
}>>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToOption<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MemberAdminRole } from './DetailMember.vue.d';
|
|
2
|
+
declare let __VLS_typeProps: {
|
|
3
|
+
memberId: string;
|
|
4
|
+
memberAdmin?: MemberAdminRole[];
|
|
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,89 @@
|
|
|
1
|
+
import { Project } from '../../types/project.type';
|
|
2
|
+
import { Pbi } from '../dialogdetailpbi/DialogDetailPbi.vue.d';
|
|
3
|
+
import { ClassComponent } from '../.././components/ts-helpers';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export type SprintSummary = {
|
|
7
|
+
membersDetails: SummaryMemberDetail[];
|
|
8
|
+
remainingTasks: number;
|
|
9
|
+
finishedTasks: number;
|
|
10
|
+
date: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
type SummaryMemberDetail = {
|
|
14
|
+
taskProgress: string;
|
|
15
|
+
_id?: string;
|
|
16
|
+
nickName?: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type SprintStatus =
|
|
20
|
+
| 'Backlog'
|
|
21
|
+
| 'Waiting for Approval'
|
|
22
|
+
| 'Ready to Sprint'
|
|
23
|
+
| 'Sprint'
|
|
24
|
+
| 'Selesai';
|
|
25
|
+
|
|
26
|
+
export type Sprint = {
|
|
27
|
+
_id: string;
|
|
28
|
+
sprintNumber: number;
|
|
29
|
+
status: SprintStatus;
|
|
30
|
+
totalProductBacklogItems: number;
|
|
31
|
+
totalTasks?: number;
|
|
32
|
+
progressTasks?: string;
|
|
33
|
+
sprintInterval: string;
|
|
34
|
+
startAt: number;
|
|
35
|
+
finishedAt: number;
|
|
36
|
+
isNeedApproval: boolean;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type SprintDetail = Omit<Sprint, 'finishedAt'> & {
|
|
40
|
+
finishAt: number;
|
|
41
|
+
sprintInterval: number;
|
|
42
|
+
sprintIntervalUnit: string;
|
|
43
|
+
productBacklogItems: (Pick<Pbi, '_id' | 'name' | 'status'> & {
|
|
44
|
+
canViewDetail?: boolean;
|
|
45
|
+
})[];
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export interface PbiOptions {
|
|
49
|
+
sprint?: boolean;
|
|
50
|
+
editedBy?: boolean;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface IntervalPut {
|
|
54
|
+
period: number;
|
|
55
|
+
periodUnit: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface DetailSprintProps {
|
|
59
|
+
/**
|
|
60
|
+
* ID of sprint to display
|
|
61
|
+
*/
|
|
62
|
+
sprintId: string;
|
|
63
|
+
/**
|
|
64
|
+
* Project detail, used to determine whether the current user is a PM or not
|
|
65
|
+
*/
|
|
66
|
+
project?: Project;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the sprint is being approved or not
|
|
69
|
+
*
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
isApproving?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* ID of sprint's approval
|
|
75
|
+
*/
|
|
76
|
+
approvalId?: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type DetailSprintEmits = {
|
|
80
|
+
approveAndRejectApprovalResponse: [isApprove: boolean, isSuccess: boolean];
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
declare class DetailSprint extends ClassComponent<
|
|
84
|
+
DetailSprintProps,
|
|
85
|
+
unknown,
|
|
86
|
+
DetailSprintEmits
|
|
87
|
+
> {}
|
|
88
|
+
|
|
89
|
+
export default DetailSprint;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SprintDetail } from './DetailSprint.vue.d';
|
|
2
|
+
declare let __VLS_typeProps: {
|
|
3
|
+
selectedSprint?: SprintDetail;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_PublicProps = {
|
|
6
|
+
'visible': boolean;
|
|
7
|
+
} & typeof __VLS_typeProps;
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"update:visible": (visible: boolean) => void;
|
|
10
|
+
add: (args_0?: void) => void;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
|
|
12
|
+
"onUpdate:visible"?: (visible: boolean) => any;
|
|
13
|
+
onAdd?: (args_0?: void) => any;
|
|
14
|
+
}, {}, {}>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
+
type __VLS_TypePropsToOption<T> = {
|
|
18
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
+
} : {
|
|
21
|
+
type: import('vue').PropType<T[K]>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Sprint } from './DetailSprint.vue.d';
|
|
2
|
+
declare let __VLS_typeProps: {
|
|
3
|
+
sprint?: Sprint;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_PublicProps = {
|
|
6
|
+
'visible': boolean;
|
|
7
|
+
} & typeof __VLS_typeProps;
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"update:visible": (visible: boolean) => void;
|
|
10
|
+
createApproval: (args_0?: void) => void;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
|
|
12
|
+
"onUpdate:visible"?: (visible: boolean) => any;
|
|
13
|
+
onCreateApproval?: (args_0?: void) => any;
|
|
14
|
+
}, {}, {}>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
+
type __VLS_TypePropsToOption<T> = {
|
|
18
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
+
} : {
|
|
21
|
+
type: import('vue').PropType<T[K]>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
2
|
+
sprintId: string | undefined;
|
|
3
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
4
|
+
sprintId: string | undefined;
|
|
5
|
+
}>>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToOption<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|