@fewangsit/wangsvue 1.5.216-alpha.0 → 1.5.217-alpha.0
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/components/animation/Animation.vue.d.ts +9 -1
- package/components/badge/Badge.vue.d.ts +1 -1
- package/components/badgegroup/BadgeGroup.vue.d.ts +3 -1
- package/components/basetree/BaseTree.vue.d.ts +7 -2
- package/components/button/Button.vue.d.ts +4 -3
- package/components/buttonImportExcel/ButtonImportExcel.vue.d.ts +1 -1
- package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +1 -0
- package/components/buttondownload/ButtonDownload.vue.d.ts +31 -0
- package/components/buttonradio/ButtonRadio.vue.d.ts +2 -1
- package/components/buttonscan/ButtonScan.vue.d.ts +3 -2
- package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +2 -0
- package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +11 -1
- package/components/buttonsplit/ButtonSplit.vue.d.ts +10 -7
- package/components/buttonsync/ButtonSync.vue.d.ts +1 -1
- package/components/buttontoggle/ButtonToggle.vue.d.ts +1 -0
- package/components/card/Card.vue.d.ts +2 -1
- package/components/changelog/Changelog.vue.d.ts +7 -5
- package/components/changelogpage/ChangelogPage.vue.d.ts +10 -3
- package/components/checkbox/Checkbox.vue.d.ts +2 -1
- package/components/comment/Comment.vue.d.ts +3 -4
- package/components/customcolumn/CustomColumn.vue.d.ts +1 -1
- package/components/datatable/DataTable.vue.d.ts +14 -4
- package/components/detailmember/DetailMember.vue.d.ts +2 -2
- package/components/detailsprint/DetailSprint.vue.d.ts +2 -2
- package/components/detailsprint/helpers/updateSprintStatus.util.d.ts +7 -2
- package/components/detailsprint/options/quickFilterFields.d.ts +5 -2
- package/components/dialog/Dialog.vue.d.ts +1 -1
- package/components/{dialogAdjustmentTask → dialogadjustmenttask}/DialogAdjustmentTask.vue.d.ts +5 -5
- package/components/dialogadjustmenttask/options/dialogAdjustmentTaskBulkAction.d.ts +7 -0
- package/components/dialogadjustmenttask/options/dialogAdjustmentTaskSingleAction.d.ts +7 -0
- package/components/dialogadjustmenttask/options/dialogAdjustmentTaskTableColumn.d.ts +2 -0
- package/components/dialogconfirm/DialogConfirm.vue.d.ts +3 -2
- package/components/dialogdetailcomponent/DialogDetailComponent.vue.d.ts +1 -1
- package/components/dialogdetailpbi/DialogDetailPbi.vue.d.ts +3 -3
- package/components/dialogform/DialogForm.vue.d.ts +1 -1
- package/components/dialogimprovementtask/DialogImprovementTask.vue.d.ts +1 -2
- package/components/{detailsprint → dialogpreparepbi}/DialogPreparePbi.vue.d.ts +2 -2
- package/components/dialogselecttree/DialogSelectTree.vue.d.ts +14 -3
- package/components/dropdown/Dropdown.vue.d.ts +22 -3
- package/components/editor/Editor.vue.d.ts +2 -1
- package/components/fieldwrapper/FieldWrapper.vue.d.ts +19 -2
- package/components/fileupload/FileUpload.vue.d.ts +2 -1
- package/components/filtercontainer/FilterContainer.vue.d.ts +103 -67
- package/components/form/Form.vue.d.ts +5 -2
- package/components/icon/Icon.vue.d.ts +4 -1
- package/components/image/Image.vue.d.ts +9 -1
- package/components/imagecompressor/ImageCompressor.vue.d.ts +9 -1
- package/components/index.d.ts +32 -30
- package/components/inlinemessage/InlineMessage.vue.d.ts +1 -1
- package/components/inputbadge/InputBadge.vue.d.ts +1 -1
- package/components/inputcurrency/InputCurrency.vue.d.ts +1 -1
- package/components/inputcurrency/helpers/currency.helper.d.ts +5 -1
- package/components/inputemail/InputEmail.vue.d.ts +1 -0
- package/components/inputinitialname/InputInitialName.vue.d.ts +1 -2
- package/components/inputnumber/InputNumber.vue.d.ts +6 -0
- package/components/inputpassword/InputPassword.vue.d.ts +1 -0
- package/components/inputrangenumber/InputRangeNumber.vue.d.ts +1 -0
- package/components/inputrepositoryname/InputRepositoryName.vue.d.ts +2 -3
- package/components/inputtext/InputText.vue.d.ts +2 -1
- package/components/inputurl/InputURL.vue.d.ts +4 -2
- package/components/invisiblefield/InvisibleField.vue.d.ts +1 -1
- package/components/languagedropdown/LanguageDropdown.vue.d.ts +3 -2
- package/components/litedropdown/LiteDropdown.vue.d.ts +4 -2
- package/components/loading/store/loading.store.d.ts +3 -3
- package/components/menu/Menu.vue.d.ts +3 -2
- package/components/multiselect/MultiSelect.vue.d.ts +3 -2
- package/components/notificationitem/NotificationItem.vue.d.ts +4 -3
- package/components/notificationitem/helpers/goToDetail.helper.d.ts +13 -4
- package/components/overlaypanel/OverlayPanel.vue.d.ts +2 -1
- package/components/paginator/Paginator.vue.d.ts +285 -0
- package/components/progressbar/ProgressBar.vue.d.ts +2 -1
- package/components/quickfilter/QuickFilter.vue.d.ts +2 -1
- package/components/summaryaccordion/SummaryAccordion.vue.d.ts +3 -3
- package/components/tabmenu/TabMenu.vue.d.ts +7 -191
- package/components/taskdetail/TaskDetail.vue.d.ts +4 -2
- package/components/taskdetail/blocks/sections/API/TestApi/options/keyValueTableColumn.d.ts +1 -1
- package/components/{dialogdetailpbi → taskdetailpbi}/TaskDetailPbi.vue.d.ts +3 -3
- package/components/taskdetailpbi/options/memberFilterFields.d.ts +7 -0
- package/components/taskdetailpbi/options/taskQuickFilterFields.d.ts +6 -0
- package/components/tasktable/TaskTable.vue.d.ts +2 -2
- package/components/textarea/Textarea.vue.d.ts +2 -1
- package/components/timeline/Timeline.vue.d.ts +22 -3
- package/components/toast/Toast.vue.d.ts +3 -2
- package/components/toggleswitch/ToggleSwitch.vue.d.ts +2 -1
- package/components/tree/Tree.vue.d.ts +9 -3
- package/components/ts-helpers.d.ts +8 -0
- package/components/usergroup/UserGroup.vue.d.ts +1 -1
- package/components/username/UserName.vue.d.ts +9 -4
- package/components/workcalendar/WorkCalendar.vue.d.ts +0 -1
- package/config/defaultProps.d.ts +1 -1
- package/config/index.d.ts +1 -1
- package/config/locale.d.ts +1 -1
- package/directives/focus.d.ts +1 -1
- package/dto/member.dto.d.ts +52 -52
- package/dto/task.dto.d.ts +65 -65
- package/dto/taskApi.dto.d.ts +15 -15
- package/dto/taskAttachment.dto.d.ts +5 -5
- package/dto/taskChecklist.dto.d.ts +23 -23
- package/dto/taskDependency.dto.d.ts +4 -4
- package/event-bus/index.d.ts +59 -56
- package/event-bus/mitt.d.ts +29 -14
- package/main.d.ts +30 -2
- package/no-data-CTKux8RI.js +4 -0
- package/no-data-Dep79CBh.js +1 -0
- package/package.json +19 -8
- package/plugins/WangsVue.d.ts +276 -214
- package/plugins/formValidation.d.ts +16 -6
- package/services/calendar.service.d.ts +4 -4
- package/stats.html +4949 -0
- package/style.css +4 -2
- package/types/member.type.d.ts +68 -59
- package/types/project.type.d.ts +52 -52
- package/types/projectApproval.type.d.ts +1 -1
- package/types/projectModule.type.d.ts +4 -4
- package/types/projectProcess.type.d.ts +12 -12
- package/types/projectQc.type.d.ts +38 -38
- package/types/projectSubmodule.type.d.ts +8 -8
- package/types/queryParamsStringfy.type.d.ts +1 -1
- package/types/roleDetailAccess.type.d.ts +13 -13
- package/types/subModule.type.d.ts +2 -2
- package/types/task.type.d.ts +196 -196
- package/types/team.type.d.ts +2 -2
- package/types/ticket.type.d.ts +16 -9
- package/types/user.type.d.ts +15 -15
- package/types/wangsStatus.type.d.ts +40 -6
- package/utils/addAttachment.util.d.ts +28 -12
- package/utils/convertJsonImage.util.d.ts +4 -2
- package/utils/date.util.d.ts +64 -31
- package/utils/exportToExcel.util.d.ts +23 -16
- package/utils/genPlaceholder.util.d.ts +7 -2
- package/utils/getProjectPermission.util.d.ts +4 -1
- package/utils/getSalesRole.util.d.ts +26 -26
- package/utils/index.d.ts +17 -14
- package/utils/object.util.d.ts +14 -3
- package/utils/queryParamsStringfy.util.d.ts +4 -2
- package/utils/role.util.d.ts +5 -1
- package/utils/statusSeverity.util.d.ts +4 -2
- package/utils/toast.util.d.ts +78 -78
- package/utils/xlsx.util.d.ts +19 -0
- package/wangsvue.js +66286 -0
- package/wangsvue.system.js +73 -258
- package/assets/json/currencies.json.d.ts +0 -1068
- package/assets/json/emoji-by-group.json.d.ts +0 -15629
- package/assets/lottie/admin/loading-page.lottie +0 -0
- package/assets/lottie/admin/loading-table.lottie +0 -0
- package/assets/lottie/admin/no-data.lottie +0 -0
- package/assets/lottie/supplyasset/loading-page.lottie +0 -0
- package/assets/lottie/supplyasset/loading-table.lottie +0 -0
- package/assets/lottie/supplyasset/no-data.lottie +0 -0
- package/assets/lottie/workspace/loading-page.lottie +0 -0
- package/assets/lottie/workspace/loading-plane.lottie +0 -0
- package/assets/lottie/workspace/loading-table.lottie +0 -0
- package/assets/lottie/workspace/no-data.lottie +0 -0
- package/build-entry.d.ts +0 -13
- package/components/approverinfo/ApproverInfo.vue.d.ts +0 -51
- package/components/buttonscan/helpers/getErrorCode.helper.d.ts +0 -3
- package/components/buttonscan/helpers/index.d.ts +0 -1
- package/components/buttonscan/workers/scanner.worker.d.ts +0 -1
- package/components/calendar/BaseCalendar.vue.d.ts +0 -96
- package/components/calendar/Calendar.vue.d.ts +0 -597
- package/components/changelogpage/ChangelogFilter.vue.d.ts +0 -16
- package/components/comment/CommentBlock.vue.d.ts +0 -35
- package/components/customcolumn/ColumnList.vue.d.ts +0 -27
- package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -12
- package/components/datatable/MultiRow.vue.d.ts +0 -16
- package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
- package/components/datatable/helpers/filter.helper.d.ts +0 -28
- package/components/datatable/helpers/index.d.ts +0 -3
- package/components/datatable/helpers/readConfig.helper.d.ts +0 -2
- package/components/datatable/store/dataTable.store.d.ts +0 -22
- package/components/detailmember/DetailMemberAdmin.vue.d.ts +0 -18
- package/components/detailmember/DetailMemberLeader.vue.d.ts +0 -15
- package/components/detailmember/DetailMemberLog.vue.d.ts +0 -15
- package/components/detailmember/DialogMemberAdmin.vue.d.ts +0 -23
- package/components/detailsprint/DialogAddPbi.vue.d.ts +0 -24
- package/components/detailsprint/DialogConfirmSprint.vue.d.ts +0 -24
- package/components/detailsprint/SprintSummary.vue.d.ts +0 -15
- package/components/dialogAdjustmentTask/DialogAdjustmentTaskHeader.vue.d.ts +0 -27
- package/components/dialogAdjustmentTask/common/TaskDependency.vue.d.ts +0 -12
- package/components/dialogAdjustmentTask/common/TaskStatusBadge.vue.d.ts +0 -16
- package/components/dialogAdjustmentTask/options/dialogAdjustmentTaskBulkAction.d.ts +0 -3
- package/components/dialogAdjustmentTask/options/dialogAdjustmentTaskSingleAction.d.ts +0 -3
- package/components/dialogAdjustmentTask/options/dialogAdjustmentTaskTableColumn.d.ts +0 -2
- package/components/dialogdetailpbi/AssignMember.vue.d.ts +0 -30
- package/components/dialogdetailpbi/TaskDetailUnassignedPbi.vue.d.ts +0 -27
- package/components/dialogdetailpbi/options/memberFilterFields.d.ts +0 -2
- package/components/dialogdetailpbi/options/taskQuickFilterFields.d.ts +0 -3
- package/components/dialogreportbug/DialogReportBug.vue.d.ts +0 -25
- package/components/dialogreportbug/imageData.json.d.ts +0 -28
- package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -92
- package/components/editor/EditorButton.vue.d.ts +0 -15
- package/components/editor/MentionList.vue.d.ts +0 -35
- package/components/editor/MentionSection.vue.d.ts +0 -92
- package/components/editor/codeSnippetExtension.d.ts +0 -3
- package/components/editor/mentionSectionExtension.d.ts +0 -3
- package/components/editor/suggestion.d.ts +0 -2
- package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -5
- package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -3
- package/components/hardwaresync/HardwareSync.vue.d.ts +0 -30
- package/components/hardwaresync/store/device.store.d.ts +0 -36
- package/components/helpers/convertToArrayClass.helper.d.ts +0 -2
- package/components/helpers/index.d.ts +0 -2
- package/components/helpers/label.d.ts +0 -15
- package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -36
- package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -32
- package/components/inputgroup/InputGroup.vue.d.ts +0 -141
- package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
- package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +0 -18
- package/components/languageswitcher/LanguageSwitcher.vue.d.ts +0 -15
- package/components/menu/helpers/filterMenu.helper.d.ts +0 -12
- package/components/menu/helpers/index.d.ts +0 -1
- package/components/menuitem/MenuItem.vue.d.ts +0 -19
- package/components/notificationitem/dialogs/ConfirmDeploy.vue.d.ts +0 -24
- package/components/tagtype/TagType.vue.d.ts +0 -21
- package/components/taskdetail/blocks/Tabs/DescriptionTab.vue.d.ts +0 -2
- package/components/taskdetail/blocks/Tabs/EventLogTab.vue.d.ts +0 -2
- package/components/taskdetail/blocks/Tabs/InfoTaskTab.vue.d.ts +0 -2
- package/components/taskdetail/blocks/Tabs/ReviewTab.vue.d.ts +0 -2
- package/components/taskdetail/blocks/common/AttachmentThumbnail.vue.d.ts +0 -18
- package/components/taskdetail/blocks/common/DialogAddAttachment.vue.d.ts +0 -32
- package/components/taskdetail/blocks/common/DialogAssignMember.vue.d.ts +0 -30
- package/components/taskdetail/blocks/common/DialogConfirmApproval.vue.d.ts +0 -26
- package/components/taskdetail/blocks/common/DialogConfirmDeleteTask.vue.d.ts +0 -28
- package/components/taskdetail/blocks/common/DialogConfirmEdit.vue.d.ts +0 -24
- package/components/taskdetail/blocks/common/DialogConfirmFinishTask.vue.d.ts +0 -24
- package/components/taskdetail/blocks/common/DialogPriorityValue.vue.d.ts +0 -21
- package/components/taskdetail/blocks/common/DialogSetDuration.vue.d.ts +0 -18
- package/components/taskdetail/blocks/common/InputAdditional.vue.d.ts +0 -30
- package/components/taskdetail/blocks/common/Legend.vue.d.ts +0 -79
- package/components/taskdetail/blocks/common/SonarQubeSummary.vue.d.ts +0 -17
- package/components/taskdetail/blocks/common/TaskMore.vue.d.ts +0 -16
- package/components/taskdetail/blocks/sections/API/API.vue.d.ts +0 -2
- package/components/taskdetail/blocks/sections/API/APIItem.vue.d.ts +0 -29
- package/components/taskdetail/blocks/sections/API/DialogAPIChangelog.vue.d.ts +0 -18
- package/components/taskdetail/blocks/sections/API/DialogAddEditApi.vue.d.ts +0 -25
- package/components/taskdetail/blocks/sections/API/DialogCopyApi.vue.d.ts +0 -22
- package/components/taskdetail/blocks/sections/API/DialogTestApi.vue.d.ts +0 -22
- package/components/taskdetail/blocks/sections/API/IsRequiredText.vue.d.ts +0 -15
- package/components/taskdetail/blocks/sections/API/ValueFormDataInput.vue.d.ts +0 -37
- package/components/taskdetail/blocks/sections/Attachment/Attachment.vue.d.ts +0 -2
- package/components/taskdetail/blocks/sections/Attachment/AttachmentChangelog.vue.d.ts +0 -18
- package/components/taskdetail/blocks/sections/Attachment/AttachmentItem.vue.d.ts +0 -65
- package/components/taskdetail/blocks/sections/Checklist/Checklist.vue.d.ts +0 -22
- package/components/taskdetail/blocks/sections/Checklist/ChecklistChangelog.vue.d.ts +0 -18
- package/components/taskdetail/blocks/sections/Checklist/DialogAddChecklist.vue.d.ts +0 -32
- package/components/taskdetail/blocks/sections/Checklist/DialogConfirmChecklist.vue.d.ts +0 -26
- package/components/taskdetail/blocks/sections/Checklist/DialogDetailChecklistTemplate.vue.d.ts +0 -18
- package/components/taskdetail/blocks/sections/Checklist/DialogSaveChecklistTemplate.vue.d.ts +0 -22
- package/components/taskdetail/blocks/sections/Description/Description.vue.d.ts +0 -2
- package/components/taskdetail/blocks/sections/Review/DialogFinishReview.vue.d.ts +0 -26
- package/components/taskdetail/blocks/sections/Review/DialogReviewLeader.vue.d.ts +0 -25
- package/components/taskdetail/blocks/sections/Review/ReviewItem.vue.d.ts +0 -16
- package/components/taskdetail/blocks/sections/TaskDependency/DialogCustomDependency.vue.d.ts +0 -20
- package/components/taskdetail/blocks/sections/TaskDependency/TaskDependency.vue.d.ts +0 -2
- package/components/taskdetail/blocks/sections/TaskLink/DialogSetTaskLink.vue.d.ts +0 -40
- package/components/taskdetail/blocks/sections/TaskLink/TaskLink.vue.d.ts +0 -2
- package/components/taskdetail/blocks/sections/TaskLink/TaskLinkChangelog.vue.d.ts +0 -22
- package/components/taskdetail/blocks/sections/TaskList/LegendList.vue.d.ts +0 -55
- package/components/taskdetail/blocks/sections/TaskList/TaskList.vue.d.ts +0 -15
- package/components/taskdetail/blocks/sections/Ticket/Ticket.vue.d.ts +0 -2
- package/components/tasktable/DependencyCol.vue.d.ts +0 -16
- package/components/tasktable/DialogConfirmDeleteTaskPermanently.vue.d.ts +0 -24
- package/components/tasktable/DialogConfirmRestoreTask.vue.d.ts +0 -24
- package/components/tasktable/DialogSelectProject.vue.d.ts +0 -20
- package/components/timeline/TimelineContentByType.vue.d.ts +0 -16
- package/components/tooltipspan/TooltipSpan.vue.d.ts +0 -20
- package/components/tree/helpers/filterNodeKeys.helper.d.ts +0 -16
- package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +0 -6
- package/components/tree/helpers/index.d.ts +0 -3
- package/index.d.ts +0 -2
- package/plugins/i18n.d.ts +0 -94
- package/utils/filterOptions.util.d.ts +0 -3
- package/utils/getAttachmentIcon.util.d.ts +0 -8
- package/utils/mergePropsWithDefaults.util.d.ts +0 -20
- package/utils/textFormatter.util.d.ts +0 -17
- package/wangsvue.es.js +0 -161460
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { TextareaHTMLAttributes } from 'vue';
|
|
2
|
+
|
|
3
|
+
import { CustomValidation } from '../form/Form.vue.d';
|
|
2
4
|
import {
|
|
3
5
|
ClassComponent,
|
|
4
6
|
GlobalComponentConstructor,
|
|
5
7
|
Nullable,
|
|
6
8
|
Numberish,
|
|
7
9
|
} from '../ts-helpers.d';
|
|
8
|
-
import { CustomValidation } from '../form/Form.vue.d';
|
|
9
10
|
|
|
10
11
|
export interface TextareaLocaleConfig {
|
|
11
12
|
/**
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
|
|
2
3
|
import { BadgeProps } from '../badge/Badge.vue.d';
|
|
3
|
-
import {
|
|
4
|
+
import { JSONContent } from '../editor/Editor.vue.d';
|
|
5
|
+
import { ClassComponent } from '../ts-helpers.d';
|
|
4
6
|
|
|
5
7
|
export interface AttachmentFile {
|
|
6
8
|
type: 'image' | 'xls' | 'doc' | 'pdf' | 'csv' | 'video' | 'data';
|
|
@@ -70,12 +72,17 @@ export type DetailType =
|
|
|
70
72
|
| DetailJSONContent
|
|
71
73
|
| DetailBadge;
|
|
72
74
|
|
|
75
|
+
export type DetailAnyRecord = Record<string, any>;
|
|
76
|
+
|
|
77
|
+
export type SlotDetailType = string | DetailAnyRecord;
|
|
78
|
+
|
|
73
79
|
export type KeyValue = Record<string, string | DetailType>;
|
|
74
80
|
|
|
75
81
|
export type TimelineItem = {
|
|
76
82
|
_id: string;
|
|
77
83
|
action: string;
|
|
78
84
|
createdAt: string;
|
|
85
|
+
username?: string;
|
|
79
86
|
user?: {
|
|
80
87
|
_id: string;
|
|
81
88
|
nickName: string;
|
|
@@ -102,6 +109,18 @@ export type TimelineProps = {
|
|
|
102
109
|
noFormatDate?: boolean;
|
|
103
110
|
};
|
|
104
111
|
|
|
112
|
+
export type TimelineSlots = {
|
|
113
|
+
/**
|
|
114
|
+
* Custom detail template.
|
|
115
|
+
*
|
|
116
|
+
* Use this slot if you want to configure your own detail value in each timeline
|
|
117
|
+
*/
|
|
118
|
+
detail(slotProps: {
|
|
119
|
+
key: string;
|
|
120
|
+
value: SlotDetailType; // Type DetailAnyRecord only used when using slot since you can use your own object structure
|
|
121
|
+
}): VNode[];
|
|
122
|
+
};
|
|
123
|
+
|
|
105
124
|
/**
|
|
106
125
|
* **WangsVue - Timeline**
|
|
107
126
|
*
|
|
@@ -114,7 +133,7 @@ export type TimelineProps = {
|
|
|
114
133
|
*/
|
|
115
134
|
declare class Timeline extends ClassComponent<
|
|
116
135
|
TimelineProps,
|
|
117
|
-
|
|
136
|
+
TimelineSlots,
|
|
118
137
|
unknown
|
|
119
138
|
> {}
|
|
120
139
|
|
|
@@ -9,14 +9,15 @@
|
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
11
|
import { TransitionProps, VNode } from 'vue';
|
|
12
|
+
|
|
12
13
|
import { ComponentHooks } from '../basecomponent';
|
|
14
|
+
import { WangsIcons } from '../icon/Icon.vue.d';
|
|
13
15
|
import { PassThroughOptions } from '../passthrough';
|
|
14
16
|
import {
|
|
15
17
|
ClassComponent,
|
|
16
18
|
GlobalComponentConstructor,
|
|
17
19
|
PassThrough,
|
|
18
|
-
} from '../ts-helpers';
|
|
19
|
-
import { WangsIcons } from '../icon/Icon.vue.d';
|
|
20
|
+
} from '../ts-helpers.d';
|
|
20
21
|
|
|
21
22
|
export declare type ToastPassThroughOptionType =
|
|
22
23
|
| ToastPassThroughAttributes
|
|
@@ -6,13 +6,14 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
import { StyleValue } from 'vue';
|
|
9
|
+
|
|
9
10
|
import { ComponentHooks } from '../basecomponent';
|
|
10
11
|
import { PassThroughOptions } from '../passthrough';
|
|
11
12
|
import {
|
|
12
13
|
ClassComponent,
|
|
13
14
|
GlobalComponentConstructor,
|
|
14
15
|
PassThrough,
|
|
15
|
-
} from '../ts-helpers';
|
|
16
|
+
} from '../ts-helpers.d';
|
|
16
17
|
|
|
17
18
|
export declare type ToggleSwitchPassThroughOptionType =
|
|
18
19
|
| ToggleSwitchPassThroughAttributes
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Slot } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { MenuItem } from 'lib/components/menuitem';
|
|
2
|
+
import { MenuItem } from '../../components/menuitem';
|
|
3
|
+
|
|
5
4
|
import { BaseTreeProps, TreeNode } from '../basetree/BaseTree.vue.d';
|
|
6
5
|
import { QueryParams, ShortFetchResponse } from '../datatable/DataTable.vue.d';
|
|
6
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
|
|
7
|
+
|
|
8
|
+
import { TreeSelectionKeys } from 'primevue/tree';
|
|
7
9
|
|
|
8
10
|
export interface TreeProps extends BaseTreeProps {
|
|
9
11
|
/**
|
|
@@ -15,6 +17,10 @@ export interface TreeProps extends BaseTreeProps {
|
|
|
15
17
|
type: 'group' | 'category',
|
|
16
18
|
params?: QueryParams,
|
|
17
19
|
) => Promise<ShortFetchResponse<TreeNode> | undefined>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* For query: roleType, transactionAttribute, systemRole is already stringified in components default props, but for the rest of query params need to be stringified outside
|
|
23
|
+
*/
|
|
18
24
|
params?: QueryParams;
|
|
19
25
|
selectedKeys?: TreeSelectionKeys | number[] | undefined;
|
|
20
26
|
selectedTreeNodes?: TreeNode[] | undefined;
|
|
@@ -81,3 +81,11 @@ export declare type PresetMethodOptions = {
|
|
|
81
81
|
export declare type PresetOptionMethodType<Opt = PresetMethodOptions> = (
|
|
82
82
|
options: Partial<Opt>,
|
|
83
83
|
) => PresetAttributes;
|
|
84
|
+
|
|
85
|
+
export type StringKeyOf<T> = Extract<keyof T, string>;
|
|
86
|
+
|
|
87
|
+
declare const TypeException: unique symbol;
|
|
88
|
+
|
|
89
|
+
export type TypeError<T extends string> = {
|
|
90
|
+
[TypeException]: T;
|
|
91
|
+
};
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
GlobalComponentConstructor,
|
|
4
4
|
PresetAttributes,
|
|
5
5
|
PresetOptionMethodType,
|
|
6
|
-
} from '../ts-helpers';
|
|
6
|
+
} from '../ts-helpers.d';
|
|
7
7
|
|
|
8
8
|
export interface UserNamePresetOptions {
|
|
9
9
|
root: PresetAttributes;
|
|
@@ -30,7 +30,7 @@ export interface UserNameComponentConfigs {
|
|
|
30
30
|
/**
|
|
31
31
|
* @example `/tim-member/member/{userId}/detail-member`
|
|
32
32
|
*/
|
|
33
|
-
detailUserPath
|
|
33
|
+
detailUserPath?: string;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* @default 'picture' - Show user profile picture instead of user icon
|
|
@@ -42,6 +42,11 @@ export interface UserNameComponentConfigs {
|
|
|
42
42
|
* @default true
|
|
43
43
|
*/
|
|
44
44
|
showUserName?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Whether to shorten the user's name..
|
|
47
|
+
* @default true
|
|
48
|
+
*/
|
|
49
|
+
formatUserName?: boolean;
|
|
45
50
|
/**
|
|
46
51
|
* Specify the field of user to be used as display name
|
|
47
52
|
*
|
|
@@ -60,7 +65,7 @@ export interface UserNameComponentConfigs {
|
|
|
60
65
|
* @param userId The user id
|
|
61
66
|
* @returns Full user detail object
|
|
62
67
|
*/
|
|
63
|
-
getUserDetail
|
|
68
|
+
getUserDetail?: (
|
|
64
69
|
userId: string,
|
|
65
70
|
) => UserNameProps['user'] | Promise<UserNameProps['user']>;
|
|
66
71
|
}
|
|
@@ -85,7 +90,7 @@ export interface UserNameProps extends Partial<UserNameComponentConfigs> {
|
|
|
85
90
|
/**
|
|
86
91
|
* The full user Object
|
|
87
92
|
*/
|
|
88
|
-
user?: GeneralUser
|
|
93
|
+
user?: Partial<GeneralUser>;
|
|
89
94
|
|
|
90
95
|
/**
|
|
91
96
|
* When it sets to false, the props.user will be used
|
package/config/defaultProps.d.ts
CHANGED
package/config/index.d.ts
CHANGED
package/config/locale.d.ts
CHANGED
package/directives/focus.d.ts
CHANGED
package/dto/member.dto.d.ts
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { FetchResponse } from '
|
|
1
|
+
import { FetchResponse } from '../components/datatable/DataTable.vue.d';
|
|
2
2
|
export interface MemberListResponse extends FetchResponse {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
status: number;
|
|
4
|
+
message: string;
|
|
5
|
+
data: MemberData;
|
|
6
6
|
}
|
|
7
7
|
interface MemberData {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
totalRecords: number;
|
|
9
|
+
data: Member[];
|
|
10
10
|
}
|
|
11
11
|
export interface Member extends Record<string, unknown> {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
12
|
+
_id: string;
|
|
13
|
+
isActive: boolean;
|
|
14
|
+
key: number;
|
|
15
|
+
profilePictureBig: string;
|
|
16
|
+
profilePictureMedium: string;
|
|
17
|
+
profilePictureSmall: string;
|
|
18
|
+
fullName: string;
|
|
19
|
+
nickName: string;
|
|
20
|
+
finishedDate: string;
|
|
21
|
+
employeeType: string;
|
|
22
|
+
division: string;
|
|
23
|
+
position: string;
|
|
24
|
+
teams: string[];
|
|
25
|
+
email: string;
|
|
26
|
+
phoneNumber: string;
|
|
27
|
+
initial: string;
|
|
28
|
+
groupMember: GroupMember;
|
|
29
|
+
needLeaderReview: boolean;
|
|
30
|
+
needTestingAccount: boolean;
|
|
31
|
+
lastLogin: string;
|
|
32
|
+
lastLoginIp: string;
|
|
33
|
+
groupMemberAssignedBy: AssignedBy;
|
|
34
|
+
groupMemberAssignedAt: string;
|
|
35
|
+
permission: Permission;
|
|
36
|
+
hasAdminRoles: boolean;
|
|
37
|
+
projectCount: number;
|
|
38
|
+
isTeamLeader: boolean;
|
|
39
|
+
isSubModuleLeader: boolean;
|
|
40
|
+
isAssignedToTask: boolean;
|
|
41
|
+
isProjectManager: boolean;
|
|
42
|
+
isActivate: boolean;
|
|
43
|
+
progress: string;
|
|
44
44
|
}
|
|
45
45
|
interface GroupMember {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
name: string;
|
|
47
|
+
targetType: string;
|
|
48
|
+
_id: string;
|
|
49
49
|
}
|
|
50
50
|
interface AssignedBy {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
fullName: string;
|
|
52
|
+
nickName: string;
|
|
53
|
+
key: number;
|
|
54
|
+
profilePictureBig: string;
|
|
55
|
+
profilePictureMedium: string;
|
|
56
|
+
profilePictureSmall: string;
|
|
57
|
+
_id: string;
|
|
58
58
|
}
|
|
59
59
|
interface Permission {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
create: boolean;
|
|
61
|
+
read: boolean;
|
|
62
|
+
update: boolean;
|
|
63
|
+
delete: boolean;
|
|
64
64
|
}
|
|
65
65
|
export {};
|
package/dto/task.dto.d.ts
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
1
|
import { TaskLinkType, TaskLinkURLType } from '../types/task.type';
|
|
2
2
|
export interface CreateTaskDTO {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
project: string;
|
|
4
|
+
process: string;
|
|
5
|
+
module: string;
|
|
6
|
+
subModule?: string;
|
|
7
|
+
productBacklogItem?: string;
|
|
8
|
+
repository?: string;
|
|
9
|
+
name: string;
|
|
10
|
+
team?: string[];
|
|
11
|
+
assignedTo?: string[];
|
|
12
12
|
}
|
|
13
13
|
export interface EditTaskDTO {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Project _id
|
|
16
|
+
*/
|
|
17
|
+
project?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Process _id
|
|
20
|
+
*/
|
|
21
|
+
process?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Module _id
|
|
24
|
+
*/
|
|
25
|
+
module?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Sub Module _id
|
|
28
|
+
*/
|
|
29
|
+
subModule?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Task's name
|
|
32
|
+
*/
|
|
33
|
+
name?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Members assigned to the task (Member _id)
|
|
36
|
+
*/
|
|
37
|
+
repository?: string;
|
|
38
|
+
assignedTo?: string[];
|
|
39
|
+
/**
|
|
40
|
+
* Team initials.
|
|
41
|
+
*/
|
|
42
|
+
team?: string[];
|
|
43
|
+
duration?: number;
|
|
44
|
+
startDate?: string | Date;
|
|
45
|
+
priority?: number;
|
|
46
46
|
}
|
|
47
47
|
export interface UpdateTaskMemberDTO {
|
|
48
|
-
|
|
48
|
+
data: UpdateTaskMemberItem[];
|
|
49
49
|
}
|
|
50
50
|
export interface UpdateTaskMemberItem {
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
task: string;
|
|
52
|
+
member: string;
|
|
53
53
|
}
|
|
54
54
|
export interface EditDescriptionTaskDTO {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Stringified version of JSONContent from Editor
|
|
57
|
+
*/
|
|
58
|
+
description: string;
|
|
59
59
|
}
|
|
60
60
|
export interface EditTaskLinkDTO {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
/**
|
|
62
|
+
* The link, also the field to be used for embed.
|
|
63
|
+
*/
|
|
64
|
+
link: string;
|
|
65
|
+
linkType: TaskLinkURLType;
|
|
66
|
+
type: TaskLinkType;
|
|
67
67
|
}
|
|
68
68
|
export interface ReviewTaskDTO {
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
data: ReviewTaskData[];
|
|
70
|
+
checklists: ReviewTaskChecklist[];
|
|
71
71
|
}
|
|
72
72
|
export interface ReviewTaskData {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
checklistId: string;
|
|
74
|
+
checklistName: string;
|
|
75
|
+
checklistItemName: string;
|
|
76
|
+
result: 'Ok' | 'Bug';
|
|
77
|
+
content?: string;
|
|
78
78
|
}
|
|
79
79
|
export interface ReviewTaskChecklist {
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
checklistName: string;
|
|
81
|
+
checklistItems: ChecklistItem[];
|
|
82
82
|
}
|
|
83
83
|
export interface ChecklistItem {
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
checklistItemName: string;
|
|
85
|
+
content?: string;
|
|
86
86
|
}
|
package/dto/taskApi.dto.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export interface UpdateTaskApiDTO {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
name: string;
|
|
3
|
+
method?: string;
|
|
4
|
+
url?: string;
|
|
5
|
+
header?: string;
|
|
6
|
+
contentType?: string;
|
|
7
|
+
query?: string[];
|
|
8
|
+
caption?: string[];
|
|
9
|
+
jsonBody?: string;
|
|
10
|
+
formDataBody?: FormDataBody[];
|
|
11
|
+
response?: string;
|
|
12
12
|
}
|
|
13
13
|
export interface AddTaskApiDTO {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
name: string;
|
|
15
|
+
task: string;
|
|
16
16
|
}
|
|
17
17
|
export interface FormDataBody {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
key: string;
|
|
19
|
+
type: 'text' | 'file';
|
|
20
|
+
isMandatory: boolean;
|
|
21
21
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export interface AddTaskAttachmentFileDTO {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
file: any;
|
|
3
|
+
type: string;
|
|
4
4
|
}
|
|
5
5
|
export interface AddTaskAttachmentUrlDTO {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
url: string;
|
|
7
|
+
displayName?: string;
|
|
8
8
|
}
|
|
9
9
|
export interface UpdateTaskAttachmentCaptionDTO {
|
|
10
|
-
|
|
10
|
+
caption?: string;
|
|
11
11
|
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
export interface AddTaskChecklistDTO {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
name: string;
|
|
3
|
+
task: string;
|
|
4
|
+
template?: string;
|
|
5
5
|
}
|
|
6
6
|
export interface UpdateTaskChecklistDTO {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
name?: string;
|
|
8
|
+
caption?: string;
|
|
9
9
|
}
|
|
10
10
|
export interface AddTaskChecklistItemDTO {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
checklist: string;
|
|
12
|
+
name: string;
|
|
13
13
|
}
|
|
14
14
|
export interface UpdateTaskChecklistItemDTO extends UpdateTaskChecklistDTO {
|
|
15
|
-
|
|
15
|
+
template?: string;
|
|
16
16
|
}
|
|
17
17
|
export interface ToggleTaskChecklistItemDTO {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
checked: boolean;
|
|
19
|
+
reason: string;
|
|
20
20
|
}
|
|
21
21
|
export interface AddTaskChecklistTemplateDTO {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
project: string;
|
|
23
|
+
checklist: string;
|
|
24
|
+
name: string;
|
|
25
|
+
module: string;
|
|
26
|
+
subModule: string;
|
|
27
|
+
task: string;
|
|
28
|
+
templateReplaced?: string;
|
|
29
29
|
}
|
|
30
30
|
export interface AddTaskChecklistAttachmentFileDTO {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
checklistItem: string;
|
|
32
|
+
file: any;
|
|
33
|
+
type: string;
|
|
34
34
|
}
|
|
35
35
|
export interface AddTaskChecklistAttachmentUrlDTO {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
checklistItem: string;
|
|
37
|
+
url: any;
|
|
38
|
+
displayName?: string;
|
|
39
39
|
}
|