@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
Binary file
@@ -0,0 +1,12 @@
1
+ export { getImageURL } from 'wangsit-api-services';
2
+ export { default as eventBus } from './event-bus';
3
+ export { default as WangsVue } from 'primevue/config';
4
+ export { default as ToastService } from 'primevue/toastservice';
5
+ export * from './utils';
6
+ export { formatCurrency } from './components/inputcurrency/helpers/currency.helper';
7
+ export { default as useLoadingStore } from './components/loading/store/loading.store';
8
+ export { default as Tooltip } from 'primevue/tooltip';
9
+ export { Focus } from './directives';
10
+ export { useForm, useField } from './plugins/formValidation';
11
+ export type { FormContext } from './plugins/formValidation';
12
+ export * from './components';
@@ -0,0 +1,21 @@
1
+ import { ClassComponent } from '../ts-helpers.d';
2
+
3
+
4
+ export interface AnimationProps {
5
+ animation: 'no-data' | 'loading-plane' | 'loading-table';
6
+ }
7
+
8
+ /**
9
+ * **WangsVue - Animation**
10
+ *
11
+ * _Animation is a lottie animation wrapper._
12
+ *
13
+ * @group Component
14
+ */
15
+ declare class Animation extends ClassComponent<
16
+ AnimationProps,
17
+ unknown,
18
+ unknown
19
+ > {}
20
+
21
+ export default Animation;
@@ -0,0 +1,52 @@
1
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
2
+
3
+
4
+ export interface ApproverDetail {
5
+ _id?: string;
6
+ level: number;
7
+ type: 'and' | 'or';
8
+ status: 'disetujui' | 'ditolak' | 'menunggu approval';
9
+ approvers: {
10
+ _id: string;
11
+ fullName: string;
12
+ actionAt?: string;
13
+ action?: 'menyetujui' | 'menolak' | null;
14
+ }[];
15
+ }
16
+
17
+ export interface ApproverInfoProps {
18
+ approvals?: ApproverDetail[];
19
+ /**
20
+ * To determine whether this component show short information about approval or not
21
+ * @default true
22
+ */
23
+ showShortInfo?: boolean;
24
+ /**
25
+ * To set label text when showShortInfo is false
26
+ */
27
+ label?: string;
28
+ /**
29
+ * To set the button label that opens the approval dialog
30
+ * @default 'more'
31
+ */
32
+ btnLabel?: string;
33
+ /**
34
+ * To format date in list approver
35
+ * @default true
36
+ */
37
+ useFormatDate?: boolean;
38
+ }
39
+
40
+ declare class ApproverInfo extends ClassComponent<
41
+ ApproverInfoProps,
42
+ unknown,
43
+ unknown
44
+ > {}
45
+
46
+ declare module '@vue/runtime-core' {
47
+ interface GlobalComponents {
48
+ ApproverInfo: GlobalComponentConstructor<ApproverInfo>;
49
+ }
50
+ }
51
+
52
+ export default ApproverInfo;
@@ -0,0 +1,57 @@
1
+ import { ClassComponent } from '../.././components/ts-helpers';
2
+
3
+
4
+ /**
5
+ * Props for Badge component
6
+ */
7
+ export interface BadgeProps {
8
+ /**
9
+ * The text to be displayed.
10
+ */
11
+ label: string;
12
+ /**
13
+ * Whether the badge text is editable.
14
+ */
15
+ editable?: boolean;
16
+ /**
17
+ * Sets the severity level for styling purposes.
18
+ */
19
+ severity?: 'success' | 'danger' | 'warning' | 'dark' | 'primary';
20
+ /**
21
+ * Specifies the format for text truncation rules based on the usage context.
22
+ */
23
+ format?: 'username' | 'nowrap';
24
+ /**
25
+ * Whether to show the remove icon or not. Clicking the remove icon will emit 'remove' event.
26
+ */
27
+ removable?: boolean;
28
+ /**
29
+ * Whether to set badge become disabled.
30
+ */
31
+ disabled?: boolean;
32
+ }
33
+
34
+ /**
35
+ * Emits for Badge component
36
+ */
37
+ export type BadgeEmits = {
38
+ 'remove': [];
39
+ /**
40
+ * Emits when the text is edited.
41
+ * Only available when props.editable=true
42
+ */
43
+ 'update:label': [label: string | null];
44
+ };
45
+
46
+ /**
47
+ * **WangsVue - Badge**
48
+ *
49
+ * _Badge is a component for displaying a text with optional remove functionality._
50
+ *
51
+ * @group components
52
+ */
53
+ export default class Badge extends ClassComponent<
54
+ BadgeProps,
55
+ unknown,
56
+ BadgeEmits
57
+ > {}
@@ -0,0 +1,33 @@
1
+ import { BadgeProps } from '../badge/Badge.vue.d';
2
+ import { ClassComponent } from '../ts-helpers.d';
3
+
4
+
5
+ export interface BadgeGroupProps
6
+ extends Omit<BadgeProps, 'label' | 'disabled' | 'removable'> {
7
+ labels: string[];
8
+ /**
9
+ * The text shown on the more button
10
+ *
11
+ * @default 'more'
12
+ */
13
+ textMore?: string;
14
+ /**
15
+ * Maximum number of label to be shown.
16
+ */
17
+ limit?: number;
18
+ /**
19
+ * The dialog header shown on more button clicked
20
+ */
21
+ headerLabel?: string;
22
+ /**
23
+ * Specify if the badge should be emptyable
24
+ * @default false
25
+ */
26
+ emptyable?: boolean;
27
+ }
28
+
29
+ export default class Badge extends ClassComponent<
30
+ BadgeGroupProps,
31
+ unknown,
32
+ unknown
33
+ > {}
@@ -0,0 +1,27 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+
4
+ export type BreadcrumbMenu = {
5
+ name: string;
6
+ route?: string;
7
+ title?: string;
8
+ };
9
+
10
+ export interface BreadcrumbProps {
11
+ /**
12
+ * The list of breadcrumb menu to display.
13
+ */
14
+ menus: BreadcrumbMenu[];
15
+ }
16
+
17
+ /**
18
+ * **WangsVue - Breadcrumb**
19
+ *
20
+ * _Breadcrumb is a component for displaying a breadcrumb trail to help users navigate a website or application.
21
+ * It takes an array of menu items as a prop and displays each item as a link or label, with a separator between them._
22
+ *
23
+ * @group components
24
+ */
25
+ declare const Breadcrumb: DefineComponent<BreadcrumbProps>;
26
+
27
+ export default Breadcrumb;
@@ -0,0 +1,186 @@
1
+ import { ButtonHTMLAttributes, VNode } from 'vue';
2
+ import { WangsIcons } from '../icon/Icon.vue.d';
3
+ import { TooltipOptions } from 'primevue/tooltip';
4
+ import { GlobalComponentConstructor } from '../ts-helpers.d';
5
+ import { ClassComponent, HintedString } from '../ts-helpers';
6
+
7
+
8
+ /**
9
+ * Defines valid properties in Button component.
10
+ */
11
+ export interface ButtonProps extends /* @vue-ignore */ ButtonHTMLAttributes {
12
+ /**
13
+ * Inline style of the button.
14
+ */
15
+ style?: any;
16
+ /**
17
+ * Style class of the button.
18
+ */
19
+ class?: any;
20
+ /**
21
+ * Text of the button.
22
+ */
23
+ label?: string | undefined;
24
+ /**
25
+ * Name of the icon.
26
+ */
27
+ icon?: WangsIcons | undefined;
28
+ /**
29
+ * Position of the icon.
30
+ * @defaultValue left
31
+ */
32
+ iconPos?: 'left' | 'right' | 'top' | 'bottom' | undefined;
33
+ /**
34
+ * Style class of the icon.
35
+ */
36
+ iconClass?: string | undefined;
37
+ /**
38
+ * Tooltip/information to show on button hover.
39
+ */
40
+ tooltip?: string | TooltipOptions;
41
+ /**
42
+ * Set the position of tooltip.
43
+ * @default bottom
44
+ */
45
+ tooltipPos?: 'top' | 'right' | 'bottom' | 'left';
46
+ /**
47
+ * Value of the badge.
48
+ */
49
+ badge?: string | undefined;
50
+ /**
51
+ * Style class of the badge.
52
+ */
53
+ badgeClass?: string | undefined;
54
+ /**
55
+ * Severity type of the badge.
56
+ */
57
+ badgeSeverity?:
58
+ | HintedString<
59
+ 'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'contrast'
60
+ >
61
+ | null
62
+ | undefined;
63
+ /**
64
+ * Whether the button is in loading state.
65
+ * @defaultValue false
66
+ */
67
+ loading?: boolean | undefined;
68
+ /**
69
+ * Icon to display in loading state.
70
+ */
71
+ loadingIcon?: string | undefined;
72
+ /**
73
+ * Add a link style to the button.
74
+ * @defaultValue false
75
+ */
76
+ link?: boolean | undefined;
77
+ /**
78
+ * Defines the style of the button.
79
+ */
80
+ severity?:
81
+ | HintedString<
82
+ | 'secondary'
83
+ | 'success'
84
+ | 'info'
85
+ | 'warning'
86
+ | 'help'
87
+ | 'danger'
88
+ | 'contrast'
89
+ >
90
+ | undefined;
91
+ /**
92
+ * Add a shadow to indicate elevation.
93
+ * @defaultValue false
94
+ */
95
+ raised?: boolean | undefined;
96
+ /**
97
+ * Add a circular border radius to the button.
98
+ * @defaultValue false
99
+ */
100
+ rounded?: boolean | undefined;
101
+ /**
102
+ * Add a textual class to the button without a background initially.
103
+ * @defaultValue false
104
+ */
105
+ text?: boolean | undefined;
106
+ /**
107
+ * Add a border class without a background initially.
108
+ * @defaultValue false
109
+ */
110
+ outlined?: boolean | undefined;
111
+ /**
112
+ * Defines the size of the button.
113
+ */
114
+ size?: 'small' | 'large' | undefined;
115
+ /**
116
+ * Add a plain textual class to the button without a background initially.
117
+ * @defaultValue false
118
+ */
119
+ plain?: boolean | undefined;
120
+ }
121
+
122
+ /**
123
+ * Defines current options in Button component.
124
+ */
125
+ export interface ButtonContext {
126
+ /**
127
+ * Current disabled state of the element as a boolean.
128
+ * @defaultValue false
129
+ */
130
+ disabled: boolean;
131
+ }
132
+
133
+ /**
134
+ * Defines valid slots in Button component.
135
+ */
136
+ export interface ButtonSlots {
137
+ /**
138
+ * Custom content such as icons, images and text can be placed inside the button via the default slot. Note that when slot is used, label, icon and badge properties are not included.
139
+ */
140
+ default(): VNode[];
141
+ /**
142
+ * Custom icon template.
143
+ * @param {Object} scope - icon slot's params.
144
+ */
145
+ icon(scope: {
146
+ /**
147
+ * Style class of the icon.
148
+ */
149
+ class: string;
150
+ }): VNode[];
151
+ /**
152
+ * Custom loading icon template.
153
+ * @param {Object} scope - loading icon slot's params.
154
+ */
155
+ loadingicon(scope: {
156
+ /**
157
+ * Style class of the loading icon.
158
+ */
159
+ class: string;
160
+ }): VNode[];
161
+ }
162
+
163
+ /**
164
+ * **WangsVue - Button**
165
+ *
166
+ * _Button is an extension to standard button element with icons and theming._
167
+ *
168
+ * [Live Demo](https://fewangsit.github.io/wangsvue/table)
169
+ * --- ---
170
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
171
+ *
172
+ * @group Component
173
+ */
174
+ declare class Button extends ClassComponent<
175
+ ButtonProps,
176
+ ButtonSlots,
177
+ Record<string, unknown>
178
+ > {}
179
+
180
+ declare module '@vue/runtime-core' {
181
+ interface GlobalComponents {
182
+ Button: GlobalComponentConstructor<Button>;
183
+ }
184
+ }
185
+
186
+ export default Button;
@@ -0,0 +1,70 @@
1
+ import { DefineComponent } from 'vue';
2
+ import { MenuItem } from '../menuitem';
3
+
4
+
5
+ export interface ButtonBulkActionProps {
6
+ /**
7
+ * Disable the button.
8
+ */
9
+ disabled?: boolean;
10
+ /**
11
+ * An array of data objects to be included in an action.
12
+ * Use as 'v-model:selectedData' to automatically reset on Cancel or Apply.
13
+ */
14
+ selectedData: Record<string, any>[];
15
+ /**
16
+ * The total selectable data. This is optional when working with dynamic data table,
17
+ * just define tableName, the component will handle the rest for you
18
+ *
19
+ */
20
+ totalRecords?: number;
21
+ options: MenuItem[];
22
+ /**
23
+ * Multiple bulk action mounted at the same time will cause unexpected behavior.
24
+ *
25
+ * You need to set the appropriate id the same with the table-name where the bulkaction used for.
26
+ */
27
+ tableName?: string;
28
+ }
29
+
30
+ export interface ButtonBulkActionSlots {
31
+ /**
32
+ * Use additional slot like input field.
33
+ * The button Apply will be shown if the selected option use additional slot.
34
+ *
35
+ * @slotprops selectedOption the current selected option/action. you can do conditional based on this slotprops.
36
+ */
37
+ addition(selectedOption: MenuItem): () => any;
38
+ }
39
+
40
+ export type ButtonBulkActionEmits = {
41
+ /**
42
+ * Emits when Apply button is clicked.
43
+ *
44
+ * By default, 'command' on MenuItem will be executed.
45
+ * With this event, You can do additional actions.
46
+ */
47
+ 'apply': [];
48
+ /**
49
+ * Emits when Cancel or Apply button is clicked.
50
+ */
51
+ 'update:selectedData': [datas: Record<string, unknown>[]];
52
+ };
53
+
54
+ /**
55
+ * **WangsVue - ButtonBulkAction**
56
+ *
57
+ * _ButtonBulkAction is a component for handling bulk action for multiple data at once._
58
+ *
59
+ * --- ---
60
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
61
+ *
62
+ * @group buttons
63
+ */
64
+ declare const ButtonBulkAction: DefineComponent<
65
+ ButtonBulkActionProps,
66
+ ButtonBulkActionSlots,
67
+ ButtonBulkActionEmits
68
+ >;
69
+
70
+ export default ButtonBulkAction;
@@ -0,0 +1,46 @@
1
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
2
+
3
+
4
+ export interface ButtonDownloadProps {
5
+ fileName: string;
6
+ /**
7
+ * Specify which table to be exported.
8
+ * When it is not specified, the default name of data table will be used.
9
+ *
10
+ * @default 'datatable'
11
+ */
12
+ tableName?: string;
13
+ /**
14
+ * If you want to download multiple table in 1 excel
15
+ */
16
+ multiTableNames?: string[];
17
+ /**
18
+ * Texts below table in downloaded excel
19
+ */
20
+ additionalTextBelowTable?: (string | string[])[];
21
+ }
22
+
23
+ /**
24
+ * **WangsVue - ButtonDownload**
25
+ *
26
+ * _Trigger DataTable Export Excel_
27
+ *
28
+ * [Live Demo](https://fewangsit.github.io/wangsvue/button)
29
+ * --- ---
30
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
31
+ *
32
+ * @group Component
33
+ */
34
+ declare class ButtonDownload extends ClassComponent<
35
+ ButtonDownloadProps,
36
+ Record<string, unknown>,
37
+ Record<string, unknown>
38
+ > {}
39
+
40
+ declare module '@vue/runtime-core' {
41
+ interface GlobalComponents {
42
+ ButtonDownload: GlobalComponentConstructor<ButtonDownload>;
43
+ }
44
+ }
45
+
46
+ export default ButtonDownload;
@@ -0,0 +1,13 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+
4
+ export interface ButtonFilterProps {
5
+ /**
6
+ * Integrate with datatable with table name
7
+ */
8
+ tableName?: string;
9
+ }
10
+
11
+ declare const ButtonFilter: DefineComponent<ButtonFilterProps>;
12
+
13
+ export default ButtonFilter;