@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,219 @@
1
+ import { ComponentHooks } from '../basecomponent';
2
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
3
+
4
+
5
+ export declare type ButtonRadioPassThroughOptionType =
6
+ | ButtonRadioPassThroughAttributes
7
+ | ((
8
+ options: ButtonRadioPassThroughMethodOptions,
9
+ ) => ButtonRadioPassThroughAttributes | string)
10
+ | string
11
+ | null
12
+ | undefined;
13
+
14
+ /**
15
+ * Custom passthrough(pt) option method.
16
+ */
17
+ export interface ButtonRadioPassThroughMethodOptions {
18
+ /**
19
+ * Defines instance.
20
+ */
21
+ instance: any;
22
+ /**
23
+ * Defines valid properties.
24
+ */
25
+ props: ButtonRadioProps;
26
+ /**
27
+ * Defines current inline state.
28
+ */
29
+ state: ButtonRadioState;
30
+ /**
31
+ * Defines current options.
32
+ */
33
+ context: ButtonRadioContext;
34
+ /**
35
+ * Defines valid attributes.
36
+ */
37
+ attrs: any;
38
+ /**
39
+ * Defines parent options.
40
+ */
41
+ parent: any;
42
+ /**
43
+ * Defines passthrough(pt) options in global config.
44
+ */
45
+ global: object | undefined;
46
+ }
47
+
48
+ /**
49
+ * Custom passthrough(pt) options.
50
+ * @see {@link ButtonRadioProps.pt}
51
+ */
52
+ export interface ButtonRadioPassThroughOptions {
53
+ /**
54
+ * Used to pass attributes to the root's DOM element.
55
+ */
56
+ root?: ButtonRadioPassThroughOptionType;
57
+ /**
58
+ * Used to pass attributes to the input's DOM element.
59
+ */
60
+ input?: ButtonRadioPassThroughOptionType;
61
+ /**
62
+ * Used to pass attributes to the box's DOM element.
63
+ */
64
+ box?: ButtonRadioPassThroughOptionType;
65
+ /**
66
+ * Used to pass attributes to the icon's DOM element.
67
+ */
68
+ icon?: ButtonRadioPassThroughOptionType;
69
+ /**
70
+ * Used to manage all lifecycle hooks.
71
+ * @see {@link BaseComponent.ComponentHooks}
72
+ */
73
+ hooks?: ComponentHooks;
74
+ }
75
+
76
+ /**
77
+ * Custom passthrough attributes for each DOM elements
78
+ */
79
+ export interface ButtonRadioPassThroughAttributes {
80
+ [key: string]: any;
81
+ }
82
+
83
+ /**
84
+ * Defines current inline state in ButtonRadio component.
85
+ */
86
+ export interface ButtonRadioState {
87
+ [key: string]: any;
88
+ }
89
+
90
+ /**
91
+ * Defines valid properties in ButtonRadio component.
92
+ */
93
+ export interface ButtonRadioProps {
94
+ /**
95
+ * The label for the input element
96
+ */
97
+ label?: string;
98
+ /**
99
+ * Value of the input.
100
+ */
101
+ value?: any;
102
+ /**
103
+ * Value binding of the input.
104
+ */
105
+ modelValue?: any;
106
+ /**
107
+ * Name of the input element.
108
+ */
109
+ name?: string | undefined;
110
+ /**
111
+ * Allows to select a boolean value.
112
+ * @default false
113
+ */
114
+ binary?: boolean;
115
+ /**
116
+ * When present, it specifies that the component should have invalid state style.
117
+ * @defaultValue false
118
+ */
119
+ invalid?: boolean | undefined;
120
+ /**
121
+ * When present, it specifies that the component should be disabled.
122
+ * @defaultValue false
123
+ */
124
+ disabled?: boolean | undefined;
125
+ /**
126
+ * Specifies the input variant of the component.
127
+ * @defaultValue outlined
128
+ */
129
+ variant?: 'outlined' | 'filled' | undefined;
130
+ /**
131
+ * When present, it specifies that an input field is read-only.
132
+ * @default false
133
+ */
134
+ readonly?: boolean | undefined;
135
+ /**
136
+ * Index of the element in tabbing order.
137
+ */
138
+ tabindex?: number | undefined;
139
+ /**
140
+ * Identifier of the underlying input element.
141
+ */
142
+ inputId?: string | undefined;
143
+ /**
144
+ * Inline style of the input field.
145
+ */
146
+ inputStyle?: object | undefined;
147
+ /**
148
+ * Style class of the input field.
149
+ */
150
+ inputClass?: string | object | undefined;
151
+ }
152
+
153
+ /**
154
+ * Defines current options in ButtonRadio component.
155
+ */
156
+ export interface ButtonRadioContext {
157
+ /**
158
+ * Current checked state of the item as a boolean.
159
+ * @defaultValue false
160
+ */
161
+ checked: boolean;
162
+ /**
163
+ * Current disabled state of the item as a boolean.
164
+ * @defaultValue false
165
+ */
166
+ disabled: boolean;
167
+ }
168
+
169
+ /**
170
+ * Defines valid emits in ButtonRadio component.
171
+ */
172
+ export type ButtonRadioEmits = {
173
+ /**
174
+ * Emitted when the value changes.
175
+ * @param {*} value - New value.
176
+ */
177
+ 'update:modelValue'(value: any): void;
178
+ /**
179
+ * Callback to invoke on radio button value change.
180
+ * @param {Event} event - Browser event.
181
+ */
182
+ change(event: Event): void;
183
+ /**
184
+ * Callback to invoke when the component receives focus.
185
+ * @param {Event} event - Browser event.
186
+ */
187
+ focus(event: Event): void;
188
+ /**
189
+ * Callback to invoke when the component loses focus.
190
+ * @param {Event} event - Browser event.
191
+ */
192
+ blur(event: Event): void;
193
+ };
194
+
195
+ /**
196
+ * **WangsVue - ButtonRadio**
197
+ *
198
+ * _ButtonRadio is an extension to standard radio button element with theming._
199
+ *
200
+ * [Live Demo](https://fewangsit.github.io/wangsvue/buttonradio)
201
+ * --- ---
202
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
203
+ *
204
+ * @group Component
205
+ *
206
+ */
207
+ declare class ButtonRadio extends ClassComponent<
208
+ ButtonRadioProps,
209
+ unknown,
210
+ ButtonRadioEmits
211
+ > {}
212
+
213
+ declare module 'vue' {
214
+ export interface GlobalComponents {
215
+ ButtonRadio: GlobalComponentConstructor<ButtonRadio>;
216
+ }
217
+ }
218
+
219
+ export default ButtonRadio;
@@ -0,0 +1,35 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+
4
+ export type ButtonSearchEmits = {
5
+ /**
6
+ * Emits when the Enter key is pressed.
7
+ */
8
+ search: [payload?: string];
9
+ /**
10
+ * Emits when the search box is hidden by clicking the left arrow button.
11
+ * The 'search' query parameter should be reset to undefined when this event is emitted.
12
+ */
13
+ collapsed: [];
14
+ };
15
+
16
+ export interface ButtonSearchProps {
17
+ tableName?: string;
18
+ }
19
+
20
+ /**
21
+ * **WangsVue - ButtonSearch**
22
+ *
23
+ * _Search button with searchbox for table._
24
+ *
25
+ * --- ---
26
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
27
+ *
28
+ * @group form
29
+ */
30
+ declare const ButtonSearch: DefineComponent<
31
+ ButtonSearchProps,
32
+ ButtonSearchEmits
33
+ >;
34
+
35
+ export default ButtonSearch;
@@ -0,0 +1,22 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+
4
+ export interface ButtonToggleProps {
5
+ modelValue?: boolean;
6
+ /**
7
+ * Whether this button toggle is a tristate toggle.
8
+ * @defaultValue false
9
+ */
10
+ triState?: boolean;
11
+ }
12
+
13
+ export type ButtonToggleEmits = {
14
+ 'update:modelValue': [state: boolean];
15
+ };
16
+
17
+ declare const ButtonToggle: DefineComponent<
18
+ ButtonToggleProps,
19
+ ButtonToggleEmits
20
+ >;
21
+
22
+ export default ButtonToggle;
@@ -0,0 +1,134 @@
1
+ import { CustomValidation } from '../form/Form.vue.d';
2
+ import { ClassComponent } from '../ts-helpers';
3
+
4
+
5
+ /**
6
+ * Calendar component props
7
+ */
8
+ export interface CalendarProps {
9
+ /**
10
+ * Calendar modelValue is date timestamp: 1706423635731
11
+ */
12
+ modelValue?: number | number[];
13
+ /**
14
+ * To display the initial date value, used in edit form, taht sometime need to display the already inputed date.
15
+ */
16
+ dateValue?: number | number[];
17
+ /**
18
+ * Display label on top of Date Input.
19
+ */
20
+ label?: string;
21
+ placeholder?: string;
22
+ disabled?: boolean;
23
+ /**
24
+ * Whether single date or date range model value.
25
+ *
26
+ * @default 'single'
27
+ */
28
+ mode?: 'range' | 'single';
29
+ /**
30
+ * Type of view to display.
31
+ * @defaultValue date
32
+ */
33
+ view?: 'date' | 'month' | 'year' | undefined;
34
+ /**
35
+ * Wheter show year picker or not
36
+ *
37
+ * @default true
38
+ */
39
+ showYear?: boolean;
40
+ /**
41
+ * Show button Apply and cancel on footer.
42
+ *
43
+ * If shown, the modelValue will be updated on button Apply clicked.
44
+ *
45
+ * @default false;
46
+ */
47
+ showButtons?: boolean;
48
+ /**
49
+ * Enable Validator using vee-validate. Combine with TSForm that handle form validation.
50
+ */
51
+ useValidator?: boolean;
52
+ /**
53
+ * When used as field in From Validation using TSForm,
54
+ * specify the unique field name, match with your needs for API request.
55
+ */
56
+ fieldName?: string;
57
+ /**
58
+ * Whether this field should be filled or not.
59
+ */
60
+ mandatory?: boolean;
61
+ /**
62
+ * Show the text (opsional)
63
+ *
64
+ * @default true if mandatory true
65
+ */
66
+ showOptionalText?: boolean;
67
+ /**
68
+ * Sets the invalid state.
69
+ */
70
+ invalid?: boolean;
71
+ /**
72
+ * Set the custom validator message.
73
+ * By default each field has preserved with its validator message, you don't need to worrying about the message.
74
+ */
75
+ validatorMessage?: string;
76
+ /**
77
+ * Set custom validation message for certain condition
78
+ */
79
+ customValidation?: CustomValidation;
80
+ /**
81
+ * Defines the calendar to use hour picker.
82
+ */
83
+ showTime?: boolean;
84
+ /**
85
+ * Formats the hour picker to 12 hour format.
86
+ * @default true
87
+ */
88
+ useTimeFormat?: boolean;
89
+ /**
90
+ * The minimum selectable date.
91
+ */
92
+ minDate?: Date | undefined;
93
+ /**
94
+ * The maximum selectable date.
95
+ */
96
+ maxDate?: Date | undefined;
97
+ /**
98
+ * The maximum selectable year.
99
+ *
100
+ * The full year: 2020
101
+ */
102
+ maxYear?: 'current' | number | undefined;
103
+ /**
104
+ * The maximum selectable months.
105
+ *
106
+ * Number 0-11
107
+ */
108
+ maxMonth?: 'current' | number | undefined;
109
+ }
110
+
111
+ /**
112
+ * Calendar component emits
113
+ */
114
+ export type CalendarEmits = {
115
+ 'update:modelValue': [date?: number | number[]];
116
+ };
117
+
118
+ /**
119
+ * **WangsVue - Calendar**
120
+ *
121
+ * _Handle input date with form validation._
122
+ *
123
+ * --- ---
124
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
125
+ *
126
+ * @group form
127
+ */
128
+ declare class Calendar extends ClassComponent<
129
+ CalendarProps,
130
+ unknown,
131
+ CalendarEmits
132
+ > {}
133
+
134
+ export default Calendar;
@@ -0,0 +1,128 @@
1
+ import { VNode } from 'vue';
2
+ import { ComponentHooks } from '../basecomponent';
3
+ import { PassThroughOptions } from '../passthrough';
4
+ import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
5
+
6
+
7
+ export declare type CardPassThroughOptionType =
8
+ | CardPassThroughAttributes
9
+ | null
10
+ | undefined;
11
+
12
+ /**
13
+ * Custom passthrough(pt) options.
14
+ * @see {@link CardProps.pt}
15
+ */
16
+ export interface CardPassThroughOptions {
17
+ /**
18
+ * Used to pass attributes to the root's DOM element.
19
+ */
20
+ root?: CardPassThroughOptionType;
21
+ /**
22
+ * Used to pass attributes to the header's DOM element.
23
+ */
24
+ header?: CardPassThroughOptionType;
25
+ /**
26
+ * Used to pass attributes to the body's DOM element.
27
+ */
28
+ body?: CardPassThroughOptionType;
29
+ /**
30
+ * Used to pass attributes to the caption's DOM element.
31
+ */
32
+ caption?: CardPassThroughOptionType;
33
+ /**
34
+ * Used to pass attributes to the title's DOM element.
35
+ */
36
+ title?: CardPassThroughOptionType;
37
+ /**
38
+ * Used to pass attributes to the subtitle's DOM element.
39
+ */
40
+ subtitle?: CardPassThroughOptionType;
41
+ /**
42
+ * Used to pass attributes to the content's DOM element.
43
+ */
44
+ content?: CardPassThroughOptionType;
45
+ /**
46
+ * Used to pass attributes to the footer's DOM element.
47
+ */
48
+ footer?: CardPassThroughOptionType;
49
+ /**
50
+ * Used to manage all lifecycle hooks.
51
+ * @see {@link BaseComponent.ComponentHooks}
52
+ */
53
+ hooks?: ComponentHooks;
54
+ }
55
+
56
+ /**
57
+ * Custom passthrough attributes for each DOM elements
58
+ */
59
+ export interface CardPassThroughAttributes {
60
+ [key: string]: any;
61
+ }
62
+
63
+ /**
64
+ * Defines valid properties in Card component.
65
+ */
66
+ export interface CardProps {
67
+ /**
68
+ * Used to pass attributes to DOM elements inside the component.
69
+ * @type {CardPassThroughOptions}
70
+ */
71
+ pt?: PassThrough<CardPassThroughOptions>;
72
+ /**
73
+ * Used to configure passthrough(pt) options of the component.
74
+ * @type {PassThroughOptions}
75
+ */
76
+ ptOptions?: PassThroughOptions;
77
+ /**
78
+ * When enabled, it removes component related styles in the core.
79
+ * @defaultValue false
80
+ */
81
+ unstyled?: boolean;
82
+ }
83
+
84
+ /**
85
+ * Defines valid slots in Card component.
86
+ */
87
+ export interface CardSlots {
88
+ /**
89
+ * Custom header template.
90
+ */
91
+ header(): VNode[];
92
+ /**
93
+ * Custom title template.
94
+ */
95
+ title(): VNode[];
96
+ /**
97
+ * Custom subtitle template.
98
+ */
99
+ subtitle(): VNode[];
100
+ /**
101
+ * Custom content template.
102
+ */
103
+ content(): VNode[];
104
+ /**
105
+ * Custom footer template.
106
+ */
107
+ footer(): VNode[];
108
+ }
109
+
110
+ /**
111
+ * **WangsVue - Card**
112
+ *
113
+ * _Card is a flexible container component._
114
+ *
115
+ * --- ---
116
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
117
+ *
118
+ * @group Component
119
+ */
120
+ declare class Card extends ClassComponent<CardProps, CardSlots, unknown> {}
121
+
122
+ declare module '@vue/runtime-core' {
123
+ interface GlobalComponents {
124
+ Card: GlobalComponentConstructor<Card>;
125
+ }
126
+ }
127
+
128
+ export default Card;
@@ -0,0 +1,165 @@
1
+ import { MultiSelectOption } from '../.././types/options.type';
2
+ import { ClassComponent, GlobalComponentConstructor } from '../.././components/ts-helpers';
3
+ import { TableColumn } from '../.././components/datatable/DataTable.vue.d';
4
+ import { FilterField } from '../.././components/filtercontainer/FilterContainer.vue.d';
5
+
6
+
7
+ export type ChangelogTemplateColumn = { index: number; column: TableColumn };
8
+ export type ChangelogTemplateFilter = { index: number; filter: FilterField };
9
+
10
+ export type ChangelogDefaultField =
11
+ | 'createdAt'
12
+ | 'action'
13
+ | 'object'
14
+ | 'objectName'
15
+ | 'field'
16
+ | 'oldValue'
17
+ | 'newValue'
18
+ | 'modifiedBy';
19
+
20
+ export type ChangelogType = {
21
+ _id: string;
22
+ action: string;
23
+ field: string;
24
+ oldValue?: string;
25
+ newValue?: string;
26
+ modifiedBy?: string;
27
+ object: string;
28
+ objectName: string;
29
+ createdAt: string;
30
+ oldValueNum?: number;
31
+ newValueNum?: number;
32
+ };
33
+
34
+ export type ChangelogFilter = {
35
+ objects?: string[];
36
+ field?: string[];
37
+ action?: string[];
38
+ modifiedBy?: number[];
39
+ createdAt?: number[];
40
+ };
41
+
42
+ export type ChangelogFilterQuery = {
43
+ [key: string]: string | undefined;
44
+ };
45
+
46
+ export type ChangelogOptionQuery = {
47
+ actionOptions?: boolean;
48
+ modifiedByOptions?: boolean;
49
+ objectOptions?: boolean;
50
+ fieldOptions?: boolean;
51
+ nameOptions?: boolean;
52
+ objectNameOptions?: boolean;
53
+ object?: string;
54
+ objects?: string;
55
+ };
56
+
57
+ export type ChangelogOptionFilter = {
58
+ actionOptions?: MultiSelectOption[];
59
+ modifiedByOptions?: MultiSelectOption[];
60
+ objectOptions?: MultiSelectOption[];
61
+ fieldOptions?: MultiSelectOption[];
62
+ nameOptions?: MultiSelectOption[];
63
+ objectNameOptions?: MultiSelectOption[];
64
+ };
65
+
66
+ /**
67
+ * Props for Changelog component
68
+ */
69
+ export interface ChangelogProps {
70
+ /**
71
+ * Props to determine whether this component should using button or not
72
+ * For ChangelogPage
73
+ * @ignore
74
+ */
75
+ useButton?: boolean;
76
+ /**
77
+ * To set custom name for specific column in changelog table
78
+ */
79
+ objectNameColumn?: string;
80
+ /**
81
+ * Title content of the dialog.
82
+ * @example 'Changelog: Roles > Transfer'
83
+ */
84
+ header?: string | undefined;
85
+ /**
86
+ * To give additional columns in changelog table
87
+ */
88
+ additionalTemplateColumns?: ChangelogTemplateColumn[];
89
+ /**
90
+ * To give additional filters in changelog filter
91
+ */
92
+ additionalTemplateFilters?: ChangelogTemplateFilter[];
93
+ /**
94
+ * Array to determine that these columns will be hidden
95
+ */
96
+ removedColumns?: ChangelogDefaultField[];
97
+ /**
98
+ * Array to determine that these filter fields will be hidden
99
+ */
100
+ removedFilters?: Omit<ChangelogDefaultField, 'oldValue' | 'newValue'>[];
101
+ /**
102
+ * Changelog object.
103
+ * Note: Even if this props is mandatory, if you fill props `objects` then props `object` will not be processed in component.
104
+ */
105
+ object: string;
106
+ /**
107
+ * Changelog objects.
108
+ * Note: This props will override props Object
109
+ */
110
+ objects?: string[];
111
+ /**
112
+ * Changelog object ID.
113
+ */
114
+ objectId?: string;
115
+ /**
116
+ * Changelog custom params, contains stringified filter query needed.
117
+ */
118
+ customParams?: ChangelogFilterQuery;
119
+ /**
120
+ * Use this props if changelog need button download
121
+ * @default false
122
+ */
123
+ useButtonDownload?: boolean;
124
+ /**
125
+ * File name is a must if there's button download
126
+ * @default 'Changelog' only
127
+ */
128
+ fileName?: string;
129
+ /**
130
+ * Now changelog support custom table name from outside
131
+ */
132
+ tableName?: string;
133
+ }
134
+
135
+ /**
136
+ * Emits for Changelog component
137
+ */
138
+ export type ChangelogEmits = {
139
+ hide: [];
140
+ };
141
+
142
+ /**
143
+ * **WangsVue - Changelog**
144
+ *
145
+ * _Changelog is a component for to show changelog dialog.
146
+ * You need to install vee-validate while using this component._
147
+ *
148
+ * --- ---
149
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
150
+ *
151
+ * @group components
152
+ */
153
+ declare class Changelog extends ClassComponent<
154
+ ChangelogProps,
155
+ unknown,
156
+ ChangelogEmits
157
+ > {}
158
+
159
+ declare module '@vue/runtime-core' {
160
+ interface GlobalComponents {
161
+ Changelog: GlobalComponentConstructor<Changelog>;
162
+ }
163
+ }
164
+
165
+ export default Changelog;
@@ -0,0 +1,16 @@
1
+ import { BaseChangelogPageProps } from './ChangelogPage.vue.d';
2
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<BaseChangelogPageProps & {
3
+ tableName: string;
4
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<BaseChangelogPageProps & {
5
+ tableName: string;
6
+ }>>>, {}, {}>;
7
+ export default _default;
8
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
+ type __VLS_TypePropsToOption<T> = {
10
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
11
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
+ } : {
13
+ type: import('vue').PropType<T[K]>;
14
+ required: true;
15
+ };
16
+ };