@fewangsit/wangsvue 1.5.178

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/assets/json/currencies.json.d.ts +1068 -0
  2. package/assets/json/emoji-by-group.json.d.ts +15629 -0
  3. package/assets/lottie/loading-plane.lottie +0 -0
  4. package/assets/lottie/loading-table.lottie +0 -0
  5. package/assets/lottie/no-data.lottie +0 -0
  6. package/build-entry.d.ts +12 -0
  7. package/components/animation/Animation.vue.d.ts +21 -0
  8. package/components/approverinfo/ApproverInfo.vue.d.ts +52 -0
  9. package/components/badge/Badge.vue.d.ts +57 -0
  10. package/components/badgegroup/BadgeGroup.vue.d.ts +33 -0
  11. package/components/breadcrumb/Breadcrumb.vue.d.ts +27 -0
  12. package/components/button/Button.vue.d.ts +186 -0
  13. package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +70 -0
  14. package/components/buttondownload/ButtonDownload.vue.d.ts +46 -0
  15. package/components/buttonfilter/ButtonFilter.vue.d.ts +13 -0
  16. package/components/buttonradio/ButtonRadio.vue.d.ts +219 -0
  17. package/components/buttonsearch/ButtonSearch.vue.d.ts +35 -0
  18. package/components/buttontoggle/ButtonToggle.vue.d.ts +22 -0
  19. package/components/calendar/Calendar.vue.d.ts +134 -0
  20. package/components/card/Card.vue.d.ts +128 -0
  21. package/components/changelog/Changelog.vue.d.ts +165 -0
  22. package/components/changelogpage/ChangelogFilter.vue.d.ts +16 -0
  23. package/components/changelogpage/ChangelogPage.vue.d.ts +180 -0
  24. package/components/checkbox/Checkbox.vue.d.ts +312 -0
  25. package/components/codesnippet/CodeSnippet.vue.d.ts +13 -0
  26. package/components/comment/Comment.vue.d.ts +180 -0
  27. package/components/comment/CommentBlock.vue.d.ts +35 -0
  28. package/components/customcolumn/CustomColumn.vue.d.ts +32 -0
  29. package/components/datatable/DataTable.vue.d.ts +659 -0
  30. package/components/datatable/MultiRow.vue.d.ts +16 -0
  31. package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +1 -0
  32. package/components/datatable/helpers/filter.helper.d.ts +28 -0
  33. package/components/datatable/helpers/index.d.ts +3 -0
  34. package/components/datatable/helpers/readConfig.helper.d.ts +2 -0
  35. package/components/datatable/store/dataTable.store.d.ts +22 -0
  36. package/components/detailmember/DetailMember.vue.d.ts +79 -0
  37. package/components/detailmember/DetailMemberAdmin.vue.d.ts +18 -0
  38. package/components/detailmember/DetailMemberLeader.vue.d.ts +15 -0
  39. package/components/detailmember/DetailMemberLog.vue.d.ts +15 -0
  40. package/components/detailmember/DialogMemberAdmin.vue.d.ts +23 -0
  41. package/components/detailsprint/DetailSprint.vue.d.ts +89 -0
  42. package/components/detailsprint/DialogAddPbi.vue.d.ts +24 -0
  43. package/components/detailsprint/DialogConfirmSprint.vue.d.ts +24 -0
  44. package/components/detailsprint/SprintSummary.vue.d.ts +15 -0
  45. package/components/detailsprint/helpers/updateSprintStatus.util.d.ts +3 -0
  46. package/components/detailsprint/options/quickFilterFields.d.ts +3 -0
  47. package/components/dialog/Dialog.vue.d.ts +451 -0
  48. package/components/dialogAdjustmentTask/DialogAdjustmentTask.vue.d.ts +158 -0
  49. package/components/dialogAdjustmentTask/DialogAdjustmentTaskHeader.vue.d.ts +27 -0
  50. package/components/dialogAdjustmentTask/common/TaskDependency.vue.d.ts +12 -0
  51. package/components/dialogAdjustmentTask/common/TaskStatusBadge.vue.d.ts +16 -0
  52. package/components/dialogAdjustmentTask/options/dialogAdjustmentTaskBulkAction.d.ts +3 -0
  53. package/components/dialogAdjustmentTask/options/dialogAdjustmentTaskSingleAction.d.ts +3 -0
  54. package/components/dialogAdjustmentTask/options/dialogAdjustmentTaskTableColumn.d.ts +2 -0
  55. package/components/dialogconfirm/DialogConfirm.vue.d.ts +136 -0
  56. package/components/dialogdetailpbi/AssignMember.vue.d.ts +23 -0
  57. package/components/dialogdetailpbi/DialogDetailPbi.vue.d.ts +120 -0
  58. package/components/dialogdetailpbi/TaskDetailPbi.vue.d.ts +29 -0
  59. package/components/dialogdetailpbi/TaskDetailUnassignedPbi.vue.d.ts +23 -0
  60. package/components/dialogdetailpbi/options/memberFilterFields.d.ts +2 -0
  61. package/components/dialogdetailpbi/options/taskQuickFilterFields.d.ts +3 -0
  62. package/components/dialogform/DialogForm.vue.d.ts +256 -0
  63. package/components/dialogimprovementtask/DialogImprovementTask.vue.d.ts +24 -0
  64. package/components/dialogreportbug/DialogReportBug.vue.d.ts +25 -0
  65. package/components/dialogreportbug/imageData.json.d.ts +28 -0
  66. package/components/dropdown/Dropdown.vue.d.ts +182 -0
  67. package/components/editor/CodeSnippetAdapter.vue.d.ts +68 -0
  68. package/components/editor/Editor.vue.d.ts +192 -0
  69. package/components/editor/EditorButton.vue.d.ts +15 -0
  70. package/components/editor/MentionList.vue.d.ts +35 -0
  71. package/components/editor/MentionSection.vue.d.ts +68 -0
  72. package/components/editor/codeSnippetExtension.d.ts +3 -0
  73. package/components/editor/mentionSectionExtension.d.ts +3 -0
  74. package/components/editor/suggestion.d.ts +2 -0
  75. package/components/fieldwrapper/FieldWrapper.vue.d.ts +15 -0
  76. package/components/fileupload/FileUpload.vue.d.ts +151 -0
  77. package/components/filtercontainer/FilterContainer.vue.d.ts +109 -0
  78. package/components/filtercontainer/helpers/applyFilter.helper.d.ts +3 -0
  79. package/components/filtercontainer/helpers/getOption.helper.d.ts +3 -0
  80. package/components/form/Form.vue.d.ts +207 -0
  81. package/components/helpers/convertToArrayClass.helper.d.ts +2 -0
  82. package/components/helpers/index.d.ts +2 -0
  83. package/components/icon/Icon.vue.d.ts +215 -0
  84. package/components/image/Image.vue.d.ts +370 -0
  85. package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +36 -0
  86. package/components/imagecompressor/ImageCompressor.vue.d.ts +192 -0
  87. package/components/imagecompressor/ImageInputInfo.vue.d.ts +30 -0
  88. package/components/index.d.ts +123 -0
  89. package/components/inputbadge/InputBadge.vue.d.ts +118 -0
  90. package/components/inputcurrency/InputCurrency.vue.d.ts +132 -0
  91. package/components/inputcurrency/helpers/currency.helper.d.ts +4 -0
  92. package/components/inputemail/InputEmail.vue.d.ts +26 -0
  93. package/components/inputgroup/InputGroup.vue.d.ts +131 -0
  94. package/components/inputinitialname/InputInitialName.vue.d.ts +118 -0
  95. package/components/inputnumber/InputNumber.vue.d.ts +222 -0
  96. package/components/inputpassword/InputPassword.vue.d.ts +33 -0
  97. package/components/inputphonenumber/InputPhoneNumber.vue.d.ts +96 -0
  98. package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +8 -0
  99. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +98 -0
  100. package/components/inputrepositoryname/InputRepositoryName.vue.d.ts +87 -0
  101. package/components/inputtext/InputText.vue.d.ts +226 -0
  102. package/components/inputurl/InputURL.vue.d.ts +99 -0
  103. package/components/invisiblefield/InvisibleField.vue.d.ts +36 -0
  104. package/components/litedropdown/LiteDropdown.vue.d.ts +97 -0
  105. package/components/loading/Loading.vue.d.ts +34 -0
  106. package/components/loading/store/loading.store.d.ts +8 -0
  107. package/components/menu/Menu.vue.d.ts +369 -0
  108. package/components/menu/helpers/filterMenu.helper.d.ts +10 -0
  109. package/components/menu/helpers/index.d.ts +1 -0
  110. package/components/menuitem/index.d.ts +93 -0
  111. package/components/multiselect/MultiSelect.vue.d.ts +169 -0
  112. package/components/notificationitem/NotificationItem.vue.d.ts +108 -0
  113. package/components/notificationitem/helpers/goToDetail.helper.d.ts +6 -0
  114. package/components/overlaypanel/OverlayPanel.vue.d.ts +292 -0
  115. package/components/pdfviewer/PDFViewer.vue.d.ts +28 -0
  116. package/components/progressbar/ProgressBar.vue.d.ts +73 -0
  117. package/components/quickfilter/QuickFilter.vue.d.ts +17 -0
  118. package/components/summaryaccordion/SummaryAccordion.vue.d.ts +123 -0
  119. package/components/tabmenu/TabMenu.vue.d.ts +275 -0
  120. package/components/taskdetail/TaskDetail.vue.d.ts +83 -0
  121. package/components/taskdetail/blocks/Tabs/DescriptionTab.vue.d.ts +2 -0
  122. package/components/taskdetail/blocks/Tabs/EventLogTab.vue.d.ts +2 -0
  123. package/components/taskdetail/blocks/Tabs/InfoTaskTab.vue.d.ts +2 -0
  124. package/components/taskdetail/blocks/Tabs/ReviewTab.vue.d.ts +2 -0
  125. package/components/taskdetail/blocks/common/AttachmentThumbnail.vue.d.ts +18 -0
  126. package/components/taskdetail/blocks/common/DialogAddAttachment.vue.d.ts +32 -0
  127. package/components/taskdetail/blocks/common/DialogAssignMember.vue.d.ts +30 -0
  128. package/components/taskdetail/blocks/common/DialogConfirmApproval.vue.d.ts +26 -0
  129. package/components/taskdetail/blocks/common/DialogConfirmDeleteTask.vue.d.ts +28 -0
  130. package/components/taskdetail/blocks/common/DialogConfirmEdit.vue.d.ts +24 -0
  131. package/components/taskdetail/blocks/common/DialogConfirmFinishTask.vue.d.ts +24 -0
  132. package/components/taskdetail/blocks/common/DialogPriorityValue.vue.d.ts +21 -0
  133. package/components/taskdetail/blocks/common/DialogSetDuration.vue.d.ts +18 -0
  134. package/components/taskdetail/blocks/common/InputAdditional.vue.d.ts +28 -0
  135. package/components/taskdetail/blocks/common/Legend.vue.d.ts +79 -0
  136. package/components/taskdetail/blocks/common/SonarQubeSummary.vue.d.ts +17 -0
  137. package/components/taskdetail/blocks/common/TaskMore.vue.d.ts +16 -0
  138. package/components/taskdetail/blocks/sections/API/API.vue.d.ts +2 -0
  139. package/components/taskdetail/blocks/sections/API/APIItem.vue.d.ts +28 -0
  140. package/components/taskdetail/blocks/sections/API/DialogAddEditApi.vue.d.ts +25 -0
  141. package/components/taskdetail/blocks/sections/API/DialogTestApi.vue.d.ts +22 -0
  142. package/components/taskdetail/blocks/sections/API/IsRequiredText.vue.d.ts +15 -0
  143. package/components/taskdetail/blocks/sections/API/TestApi/options/keyValueTableColumn.d.ts +2 -0
  144. package/components/taskdetail/blocks/sections/API/ValueFormDataInput.vue.d.ts +37 -0
  145. package/components/taskdetail/blocks/sections/Attachment/Attachment.vue.d.ts +2 -0
  146. package/components/taskdetail/blocks/sections/Attachment/AttachmentChangelog.vue.d.ts +18 -0
  147. package/components/taskdetail/blocks/sections/Attachment/AttachmentItem.vue.d.ts +65 -0
  148. package/components/taskdetail/blocks/sections/Checklist/Checklist.vue.d.ts +20 -0
  149. package/components/taskdetail/blocks/sections/Checklist/ChecklistChangelog.vue.d.ts +18 -0
  150. package/components/taskdetail/blocks/sections/Checklist/DialogAddChecklist.vue.d.ts +32 -0
  151. package/components/taskdetail/blocks/sections/Checklist/DialogConfirmChecklist.vue.d.ts +26 -0
  152. package/components/taskdetail/blocks/sections/Checklist/DialogDetailChecklistTemplate.vue.d.ts +18 -0
  153. package/components/taskdetail/blocks/sections/Checklist/DialogSaveChecklistTemplate.vue.d.ts +22 -0
  154. package/components/taskdetail/blocks/sections/Description/Description.vue.d.ts +2 -0
  155. package/components/taskdetail/blocks/sections/Review/DialogFinishReview.vue.d.ts +26 -0
  156. package/components/taskdetail/blocks/sections/Review/DialogReviewLeader.vue.d.ts +25 -0
  157. package/components/taskdetail/blocks/sections/Review/ReviewItem.vue.d.ts +16 -0
  158. package/components/taskdetail/blocks/sections/TaskDependency/DialogCustomDependency.vue.d.ts +20 -0
  159. package/components/taskdetail/blocks/sections/TaskDependency/TaskDependency.vue.d.ts +2 -0
  160. package/components/taskdetail/blocks/sections/TaskLink/DialogSetTaskLink.vue.d.ts +40 -0
  161. package/components/taskdetail/blocks/sections/TaskLink/TaskLink.vue.d.ts +2 -0
  162. package/components/taskdetail/blocks/sections/TaskLink/TaskLinkChangelog.vue.d.ts +22 -0
  163. package/components/taskdetail/blocks/sections/TaskList/LegendList.vue.d.ts +55 -0
  164. package/components/taskdetail/blocks/sections/TaskList/TaskList.vue.d.ts +15 -0
  165. package/components/taskdetail/blocks/sections/Ticket/Ticket.vue.d.ts +2 -0
  166. package/components/tasktable/DependencyCol.vue.d.ts +16 -0
  167. package/components/tasktable/DialogConfirmDeleteTaskPermanently.vue.d.ts +24 -0
  168. package/components/tasktable/DialogConfirmRestoreTask.vue.d.ts +24 -0
  169. package/components/tasktable/DialogSelectProject.vue.d.ts +20 -0
  170. package/components/tasktable/TaskTable.vue.d.ts +82 -0
  171. package/components/textarea/Textarea.vue.d.ts +121 -0
  172. package/components/timeline/Timeline.vue.d.ts +116 -0
  173. package/components/timeline/TimelineContentByType.vue.d.ts +16 -0
  174. package/components/toast/Toast.vue.d.ts +354 -0
  175. package/components/tooltipspan/TooltipSpan.vue.d.ts +21 -0
  176. package/components/ts-helpers.d.ts +62 -0
  177. package/components/usergroup/UserGroup.vue.d.ts +58 -0
  178. package/components/username/UserName.vue.d.ts +62 -0
  179. package/components/validatormessage/ValidatorMessage.vue.d.ts +13 -0
  180. package/components/workcalendar/WorkCalendar.vue.d.ts +55 -0
  181. package/directives/focus.d.ts +7 -0
  182. package/directives/index.d.ts +1 -0
  183. package/dto/member.dto.d.ts +65 -0
  184. package/dto/task.dto.d.ts +86 -0
  185. package/dto/taskApi.dto.d.ts +20 -0
  186. package/dto/taskAttachment.dto.d.ts +11 -0
  187. package/dto/taskChecklist.dto.d.ts +39 -0
  188. package/dto/taskDependency.dto.d.ts +9 -0
  189. package/event-bus/index.d.ts +47 -0
  190. package/event-bus/mitt.d.ts +21 -0
  191. package/index.d.ts +2 -0
  192. package/main.d.ts +2 -0
  193. package/package.json +16 -0
  194. package/plugins/formValidation.d.ts +10 -0
  195. package/services/calendar.service.d.ts +9 -0
  196. package/services/dataManager.service.d.ts +5 -0
  197. package/services/sonarQube.service.d.ts +10 -0
  198. package/style.css +13 -0
  199. package/types/member.type.d.ts +72 -0
  200. package/types/options.type.d.ts +14 -0
  201. package/types/project.type.d.ts +64 -0
  202. package/types/projectApproval.type.d.ts +3 -0
  203. package/types/projectModule.type.d.ts +6 -0
  204. package/types/projectProcess.type.d.ts +17 -0
  205. package/types/projectQc.type.d.ts +52 -0
  206. package/types/projectSubmodule.type.d.ts +14 -0
  207. package/types/queryParamsStringfy.type.d.ts +3 -0
  208. package/types/roleDetailAccess.type.d.ts +17 -0
  209. package/types/subModule.type.d.ts +4 -0
  210. package/types/task.type.d.ts +256 -0
  211. package/types/team.type.d.ts +4 -0
  212. package/types/ticket.type.d.ts +13 -0
  213. package/types/user.type.d.ts +19 -0
  214. package/types/wangsStatus.type.d.ts +8 -0
  215. package/utils/convertJsonImage.util.d.ts +3 -0
  216. package/utils/date.util.d.ts +17 -0
  217. package/utils/exportToExcel.util.d.ts +20 -0
  218. package/utils/filterOptions.util.d.ts +3 -0
  219. package/utils/genPlaceholder.util.d.ts +3 -0
  220. package/utils/getAttachmentIcon.util.d.ts +8 -0
  221. package/utils/getProjectPermission.util.d.ts +4 -0
  222. package/utils/getSalesRole.util.d.ts +30 -0
  223. package/utils/getUser.util.d.ts +3 -0
  224. package/utils/getUserType.util.d.ts +2 -0
  225. package/utils/index.d.ts +9 -0
  226. package/utils/isIntersect.d.ts +2 -0
  227. package/utils/object.util.d.ts +2 -0
  228. package/utils/queryParamsStringfy.util.d.ts +7 -0
  229. package/utils/role.util.d.ts +2 -0
  230. package/utils/statusSeverity.util.d.ts +3 -0
  231. package/utils/textFormatter.util.d.ts +4 -0
  232. package/utils/toast.util.d.ts +36 -0
  233. package/utils/translation.util.d.ts +15 -0
  234. package/wangsvue.es.js +152940 -0
  235. package/wangsvue.system.js +467 -0
@@ -0,0 +1,182 @@
1
+ import { Slot } from 'vue';
2
+ import { DropdownOption, OptionValue } from '../../types/options.type';
3
+ import { CustomValidation } from '../form/Form.vue.d';
4
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
5
+ import { BadgeProps } from '../badge/Badge.vue.d';
6
+
7
+
8
+ /**
9
+ * Dropdown component props
10
+ */
11
+ export interface DropdownProps {
12
+ /**
13
+ * Don't use modelValue with useValidator at the same time.
14
+ * It may lead unexpected behavior.
15
+ */
16
+ modelValue?: OptionValue;
17
+ /**
18
+ * If you deals with form validation on edit form action, you can set the initial value of the field.
19
+ */
20
+ initialValue?: OptionValue;
21
+ /**
22
+ * The input label. Tell the user what input is this.
23
+ */
24
+ label?: string;
25
+ /**
26
+ * List of options to display.
27
+ */
28
+ options?: DropdownOption[] | string[] | Record<string, any>;
29
+ /**
30
+ * Specify the property name of option to be used as label.
31
+ *
32
+ * @default undefined - the label will be sets to the option itself.
33
+ */
34
+ optionLabel?: string;
35
+ /**
36
+ * Specify the property name of option to be used as value.
37
+ *
38
+ * @default undefined - the value will be sets to the option itself.
39
+ */
40
+ optionValue?: string;
41
+ /**
42
+ * Define the value style, whether badge or plain text
43
+ *
44
+ * @default 'plain'
45
+ */
46
+ valueType?: 'badge' | 'plain';
47
+ /**
48
+ * Bind the badge property to the dropdown value
49
+ */
50
+ badgeValueProps?: Omit<BadgeProps, 'label'>;
51
+ /**
52
+ * Set the input border style
53
+ *
54
+ * @default 'default'
55
+ */
56
+ inputBorder?: 'none' | 'default';
57
+ /**
58
+ * A property to uniquely identify an option.
59
+ */
60
+ dataKey?: string | undefined;
61
+ /**
62
+ * Determines if the field uses a validator
63
+ */
64
+ useValidator?: boolean;
65
+ /**
66
+ * Determines if the field is mandatory
67
+ */
68
+ mandatory?: boolean;
69
+ /**
70
+ * Show the text (opsional)
71
+ *
72
+ * @default true if mandatory true
73
+ */
74
+ showOptionalText?: boolean;
75
+ /**
76
+ * Set custom validator message.
77
+ * It is rarely use, this component has handled the validator message.
78
+ */
79
+ validatorMessage?: string;
80
+ /**
81
+ * Wether to format the message
82
+ *
83
+ * @default true
84
+ */
85
+ formatValidatorMessage?: boolean;
86
+ /**
87
+ * Set custom invalid state.
88
+ */
89
+ invalid?: boolean;
90
+ /**
91
+ * This prop is required if you use this component in a form input.
92
+ * Specify the unique field name, match with your needs for API request.
93
+ *
94
+ * @default 'dropdown'
95
+ */
96
+ fieldName?: string;
97
+ /**
98
+ * Default text to display when no option is selected.
99
+ *
100
+ * @default `Select ${label}`
101
+ */
102
+ placeholder?: string;
103
+ /**
104
+ * Whether the dropdown is in loading state.
105
+ * @defaultValue false
106
+ */
107
+ loading?: boolean;
108
+ /**
109
+ * Show icon 'info' on the right side of label.
110
+ * Show information to user about the field on icon hover.
111
+ */
112
+ fieldInfo?: string;
113
+ /**
114
+ * Set disabled state for input dropdown.
115
+ */
116
+ disabled?: boolean;
117
+ /**
118
+ * Whether show the Dropdown option search or not.
119
+ *
120
+ * @default true,
121
+ */
122
+ filter?: boolean;
123
+ /**
124
+ * The filter input Placeholder
125
+ *
126
+ * @default 'Search'
127
+ */
128
+ filterPlaceholder?: string;
129
+ customValidation?: CustomValidation;
130
+ }
131
+
132
+ export interface DropdownSlots {
133
+ 'value': Slot<{ value: string }>;
134
+ 'option': Slot<{ option: DropdownOption }>;
135
+ 'addon-left': Slot;
136
+ 'addon-right': Slot;
137
+ }
138
+
139
+ /**
140
+ * Dropdown component emits
141
+ */
142
+ export type DropdownEmits = {
143
+ /**
144
+ * Emits when an option selected.
145
+ */
146
+ 'update:modelValue': [value: OptionValue | undefined];
147
+ /**
148
+ * Emits when overlay shown.
149
+ */
150
+ 'show': [];
151
+ };
152
+
153
+ /**
154
+ * **WangsVue - Dropdown**
155
+ *
156
+ * _Dropdown also known as Select, is used to choose an item from a collection of options._
157
+ *
158
+ * --- ---
159
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
160
+ *
161
+ * @group Component
162
+ */
163
+ declare class Dropdown extends ClassComponent<
164
+ DropdownProps,
165
+ DropdownSlots,
166
+ DropdownEmits
167
+ > {
168
+ /**
169
+ * Shows the overlay.
170
+ *
171
+ * @memberof MultiSelect
172
+ */
173
+ showOverlay(): void;
174
+ }
175
+
176
+ declare module '@vue/runtime-core' {
177
+ interface GlobalComponents {
178
+ Dropdown: GlobalComponentConstructor<Dropdown>;
179
+ }
180
+ }
181
+
182
+ export default Dropdown;
@@ -0,0 +1,68 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ editor: {
3
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["editor"]>;
4
+ required: true;
5
+ };
6
+ node: {
7
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["node"]>;
8
+ required: true;
9
+ };
10
+ decorations: {
11
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["decorations"]>;
12
+ required: true;
13
+ };
14
+ selected: {
15
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["selected"]>;
16
+ required: true;
17
+ };
18
+ extension: {
19
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["extension"]>;
20
+ required: true;
21
+ };
22
+ getPos: {
23
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["getPos"]>;
24
+ required: true;
25
+ };
26
+ updateAttributes: {
27
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["updateAttributes"]>;
28
+ required: true;
29
+ };
30
+ deleteNode: {
31
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
32
+ required: true;
33
+ };
34
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
35
+ editor: {
36
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["editor"]>;
37
+ required: true;
38
+ };
39
+ node: {
40
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["node"]>;
41
+ required: true;
42
+ };
43
+ decorations: {
44
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["decorations"]>;
45
+ required: true;
46
+ };
47
+ selected: {
48
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["selected"]>;
49
+ required: true;
50
+ };
51
+ extension: {
52
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["extension"]>;
53
+ required: true;
54
+ };
55
+ getPos: {
56
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["getPos"]>;
57
+ required: true;
58
+ };
59
+ updateAttributes: {
60
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["updateAttributes"]>;
61
+ required: true;
62
+ };
63
+ deleteNode: {
64
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
65
+ required: true;
66
+ };
67
+ }>>, {}, {}>;
68
+ export default _default;
@@ -0,0 +1,192 @@
1
+ import { EditorEvents } from '@tiptap/vue-3';
2
+ import { ClassComponent } from '../ts-helpers';
3
+
4
+
5
+ export interface EditorProps {
6
+ /**
7
+ * Model Value For Editor Content
8
+ */
9
+ modelValue?: JSONContent;
10
+ /**
11
+ * Model Value For Editor Content
12
+ */
13
+ initialValue?: JSONContent;
14
+ /**
15
+ * Specify the input placeholder.
16
+ */
17
+ placeholder?: string;
18
+ /**
19
+ * Determine Editor State Readonly / Editable.
20
+ * @default 'editable'
21
+ */
22
+ editorState?: EditorState;
23
+ /**
24
+ * Change Editor Border Content.
25
+ * @default false
26
+ */
27
+ borderLess?: boolean;
28
+ /**
29
+ * The input label. Tell the user what input is this.
30
+ */
31
+ label?: string;
32
+ /**
33
+ * Wether the input should be validated with vee-validator or not.
34
+ * If you use this component within form input, you need to set this props as true.
35
+ */
36
+ useValidator?: boolean;
37
+ /**
38
+ * This prop is required if you use this component in a form input.
39
+ * Specify the unique field name, match with your needs for API request.
40
+ *
41
+ * @default 'editorInput'
42
+ */
43
+ fieldName?: string;
44
+ /**
45
+ * Specify classes for label.
46
+ */
47
+ labelClass?: string;
48
+ /**
49
+ * Show information to user about the field.
50
+ */
51
+ fieldInfo?: string;
52
+ /**
53
+ * Classes for validator message in input field.
54
+ */
55
+ validatorMessageClass?: string;
56
+ /**
57
+ * Set custom validator message.
58
+ * Will be show if invalid="true"
59
+ */
60
+ validatorMessage?: string | { empty: string };
61
+ /**
62
+ * Wether this input field is required or not.
63
+ */
64
+ mandatory?: boolean;
65
+ /**
66
+ * Invalid input state.
67
+ */
68
+ invalid?: boolean;
69
+ /**
70
+ * Showing Optional value text on Label.
71
+ * @default true
72
+ */
73
+ showOptionalText?: boolean;
74
+ /**
75
+ * Determine for image upload from local machine if value is true, no need to use postImageLocal emitter
76
+ * @default false
77
+ */
78
+ isImageUploadBase64?: boolean;
79
+ /**
80
+ * Fetch function for mention this will get triger if putting @ in editor
81
+ */
82
+ fetchMentionSuggestionFunction?: () => Promise<
83
+ GetMentionSuggestionResponse | undefined
84
+ >;
85
+ /**
86
+ * Getting all mentioned list
87
+ */
88
+ mentionedList?: string[];
89
+ /**
90
+ * Add custom class tailwind for editor wrapper/container
91
+ * and preferred for using "!" bang! for your tailwind class just to make sure it apply
92
+ */
93
+ editorWrapperClass?: string;
94
+ /**
95
+ * Add custom class tailwind for editor toolbar wrapper/container
96
+ * and preferred for using "!" bang! for your tailwind class just to make sure it apply
97
+ */
98
+ toolbarWrapperClass?: string;
99
+ /**
100
+ * Add custom class tailwind for editor content wrapper/container
101
+ * and preferred for using "!" bang! for your tailwind class just to make sure it apply
102
+ */
103
+ contentWrapperClass?: string;
104
+ }
105
+
106
+ export type EditorEmits = {
107
+ /**
108
+ * Event emitted when the model value is updated
109
+ */
110
+ 'update:modelValue': [value: JSONContent];
111
+ /**
112
+ * Event emitted when try to upload image from local machine,
113
+ * and need to send file image to server first using value.image params and then
114
+ * get back image url that already get hosted.
115
+ * to set the image url back to editor to be show up simply using value.setImageCb from params
116
+ */
117
+ 'postImageLocal': [value: PostImage];
118
+ /**
119
+ * Event emitted when button in floating menu named :(unset image) is clicked,
120
+ * but this only get triger if selected image get set by postImageLocal function
121
+ */
122
+ 'deleteImageLocal': [value: ImageProperties];
123
+ /**
124
+ * Event emitted when the editor is blurred
125
+ */
126
+ 'blur': [value: EditorEvents['blur']];
127
+ /**
128
+ * Event emitted when the editor is focused
129
+ */
130
+ 'focus': [value: EditorEvents['focus']];
131
+ /**
132
+ * Emited Everytime mentioned user in editor change
133
+ */
134
+ 'update:mentionedList': [value: string[]];
135
+ };
136
+
137
+ export type PostImage = {
138
+ /**
139
+ * This Is Image File that should be send to server
140
+ */
141
+ image: File;
142
+ /**
143
+ * Set Image Cb Is Callback For setting back image url that get send back
144
+ * from server through response
145
+ */
146
+ setImageCb: (imageUrl: string) => void;
147
+ };
148
+
149
+ /**
150
+ * Editor Content Meta Data
151
+ */
152
+ export type JSONContent = {
153
+ type?: string;
154
+ attrs?: Record<string, any>;
155
+ content?: JSONContent[];
156
+ marks?: {
157
+ type: string;
158
+ attrs?: Record<string, any>;
159
+ [key: string]: any;
160
+ }[];
161
+ text?: string;
162
+ [key: string]: any;
163
+ };
164
+
165
+ export type ImageProperties = {
166
+ alt?: string;
167
+ src: string;
168
+ title: string;
169
+ };
170
+
171
+ export type GetMentionSuggestionResponse = {
172
+ status: number;
173
+ message: string;
174
+ data: MentionSuggestion[];
175
+ };
176
+
177
+ export type MentionSuggestion = {
178
+ _id: string;
179
+ fullName: string;
180
+ nickName: string;
181
+ profilePicture: string;
182
+ };
183
+
184
+ export type EditorState = 'editable' | 'readonly';
185
+
186
+ declare class Editor extends ClassComponent<
187
+ EditorProps,
188
+ unknown,
189
+ EditorEmits
190
+ > {}
191
+
192
+ export default Editor;
@@ -0,0 +1,15 @@
1
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
2
+ classButton?: string[];
3
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
4
+ classButton?: 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,35 @@
1
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
2
+ items: {
3
+ id: string;
4
+ label: string;
5
+ nickName: string;
6
+ profilePicture: string;
7
+ }[];
8
+ command: (arg: {
9
+ id: string;
10
+ label: string;
11
+ }) => void;
12
+ }>, {
13
+ onKeyDown: (event: KeyboardEvent) => boolean;
14
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
15
+ items: {
16
+ id: string;
17
+ label: string;
18
+ nickName: string;
19
+ profilePicture: string;
20
+ }[];
21
+ command: (arg: {
22
+ id: string;
23
+ label: string;
24
+ }) => void;
25
+ }>>>, {}, {}>;
26
+ export default _default;
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToOption<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: import('vue').PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
@@ -0,0 +1,68 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ editor: {
3
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["editor"]>;
4
+ required: true;
5
+ };
6
+ node: {
7
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["node"]>;
8
+ required: true;
9
+ };
10
+ decorations: {
11
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["decorations"]>;
12
+ required: true;
13
+ };
14
+ selected: {
15
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["selected"]>;
16
+ required: true;
17
+ };
18
+ extension: {
19
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["extension"]>;
20
+ required: true;
21
+ };
22
+ getPos: {
23
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["getPos"]>;
24
+ required: true;
25
+ };
26
+ updateAttributes: {
27
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["updateAttributes"]>;
28
+ required: true;
29
+ };
30
+ deleteNode: {
31
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
32
+ required: true;
33
+ };
34
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
35
+ editor: {
36
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["editor"]>;
37
+ required: true;
38
+ };
39
+ node: {
40
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["node"]>;
41
+ required: true;
42
+ };
43
+ decorations: {
44
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["decorations"]>;
45
+ required: true;
46
+ };
47
+ selected: {
48
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["selected"]>;
49
+ required: true;
50
+ };
51
+ extension: {
52
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["extension"]>;
53
+ required: true;
54
+ };
55
+ getPos: {
56
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["getPos"]>;
57
+ required: true;
58
+ };
59
+ updateAttributes: {
60
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["updateAttributes"]>;
61
+ required: true;
62
+ };
63
+ deleteNode: {
64
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
65
+ required: true;
66
+ };
67
+ }>>, {}, {}>;
68
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { Node } from '@tiptap/core';
2
+ declare const _default: Node<any, any>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { Node } from '@tiptap/core';
2
+ declare const _default: Node<any, any>;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const suggestion: () => any;
2
+ export default suggestion;
@@ -0,0 +1,15 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+
4
+ export interface FieldWrapperProps {
5
+ label?: string;
6
+ mandatory?: boolean;
7
+ showOptionalText?: boolean;
8
+ info?: string;
9
+ labelClass?: string;
10
+ tooltipPos?: 'top' | 'right' | 'bottom' | 'left';
11
+ }
12
+
13
+ declare const FieldWrapper: DefineComponent<FieldWrapperProps>;
14
+
15
+ export default FieldWrapper;