@fewangsit/wangsvue-gsts 1.0.0-alpha.1

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 (173) hide show
  1. package/assets/json/currencies.json.d.ts +1068 -0
  2. package/assets/json/languages.json.d.ts +180 -0
  3. package/assets/lottie/admin/loading-page.lottie +0 -0
  4. package/assets/lottie/admin/loading-table.lottie +0 -0
  5. package/assets/lottie/admin/no-data.lottie +0 -0
  6. package/assets/lottie/supplyasset/loading-page.lottie +0 -0
  7. package/assets/lottie/supplyasset/loading-table.lottie +0 -0
  8. package/assets/lottie/supplyasset/no-data.lottie +0 -0
  9. package/assets/lottie/workspace/loading-page.lottie +0 -0
  10. package/assets/lottie/workspace/loading-plane.lottie +0 -0
  11. package/assets/lottie/workspace/loading-table.lottie +0 -0
  12. package/assets/lottie/workspace/no-data.lottie +0 -0
  13. package/build-entry.d.ts +14 -0
  14. package/components/animation/Animation.vue.d.ts +24 -0
  15. package/components/approverinfo/ApproverInfo.vue.d.ts +51 -0
  16. package/components/badge/Badge.vue.d.ts +66 -0
  17. package/components/badgegroup/BadgeGroup.vue.d.ts +40 -0
  18. package/components/badgegrouptree/BadgeGroupTree.vue.d.ts +34 -0
  19. package/components/basecomponent/index.d.ts +28 -0
  20. package/components/basetree/BaseTree.vue.d.ts +567 -0
  21. package/components/basetree/TreeNode.vue.d.ts +35 -0
  22. package/components/breadcrumb/Breadcrumb.vue.d.ts +26 -0
  23. package/components/button/Button.vue.d.ts +185 -0
  24. package/components/buttonImportExcel/ButtonImportExcel.vue.d.ts +26 -0
  25. package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +97 -0
  26. package/components/buttondownload/ButtonDownload.vue.d.ts +49 -0
  27. package/components/buttonfilter/ButtonFilter.vue.d.ts +12 -0
  28. package/components/buttonradio/ButtonRadio.vue.d.ts +257 -0
  29. package/components/buttonsearch/ButtonSearch.vue.d.ts +38 -0
  30. package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +193 -0
  31. package/components/buttonsplit/ButtonSplit.d.ts +350 -0
  32. package/components/buttonsplit/ButtonSplit.vue.d.ts +34 -0
  33. package/components/buttontoggle/ButtonToggle.vue.d.ts +18 -0
  34. package/components/calendar/BaseCalendar.vue.d.ts +83 -0
  35. package/components/calendar/Calendar.vue.d.ts +561 -0
  36. package/components/card/Card.vue.d.ts +139 -0
  37. package/components/changelog/Changelog.vue.d.ts +158 -0
  38. package/components/changelogpage/ChangelogFilter.vue.d.ts +16 -0
  39. package/components/changelogpage/ChangelogPage.vue.d.ts +124 -0
  40. package/components/checkbox/Checkbox.vue.d.ts +329 -0
  41. package/components/codesnippet/CodeSnippet.vue.d.ts +14 -0
  42. package/components/customcolumn/CustomColumn.vue.d.ts +35 -0
  43. package/components/datatable/DataTable.vue.d.ts +704 -0
  44. package/components/datatable/MultiRow.vue.d.ts +16 -0
  45. package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +1 -0
  46. package/components/datatable/helpers/filter.helper.d.ts +28 -0
  47. package/components/datatable/helpers/index.d.ts +3 -0
  48. package/components/datatable/helpers/readConfig.helper.d.ts +2 -0
  49. package/components/datatable/store/dataTable.store.d.ts +22 -0
  50. package/components/dialog/Dialog.vue.d.ts +464 -0
  51. package/components/dialogconfirm/DialogConfirm.vue.d.ts +153 -0
  52. package/components/dialogform/DialogForm.vue.d.ts +349 -0
  53. package/components/dialogselecttree/DialogSelectTree.vue.d.ts +111 -0
  54. package/components/dropdown/Dropdown.vue.d.ts +257 -0
  55. package/components/editor/CodeSnippetAdapter.vue.d.ts +92 -0
  56. package/components/editor/Editor.vue.d.ts +191 -0
  57. package/components/editor/EditorButton.vue.d.ts +15 -0
  58. package/components/editor/MentionList.vue.d.ts +35 -0
  59. package/components/editor/MentionSection.vue.d.ts +92 -0
  60. package/components/editor/codeSnippetExtension.d.ts +3 -0
  61. package/components/editor/mentionSectionExtension.d.ts +3 -0
  62. package/components/editor/suggestion.d.ts +2 -0
  63. package/components/fieldwrapper/FieldWrapper.vue.d.ts +69 -0
  64. package/components/fileupload/FileUpload.vue.d.ts +153 -0
  65. package/components/filtercontainer/FilterContainer.vue.d.ts +141 -0
  66. package/components/filtercontainer/helpers/applyFilter.helper.d.ts +3 -0
  67. package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +7 -0
  68. package/components/filtercontainer/helpers/getOption.helper.d.ts +3 -0
  69. package/components/form/Form.vue.d.ts +306 -0
  70. package/components/gallerypreview/GalleryPreview.vue.d.ts +31 -0
  71. package/components/helpers/convertToArrayClass.helper.d.ts +2 -0
  72. package/components/helpers/index.d.ts +2 -0
  73. package/components/helpers/label.d.ts +15 -0
  74. package/components/icon/Icon.vue.d.ts +245 -0
  75. package/components/image/Image.vue.d.ts +403 -0
  76. package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +36 -0
  77. package/components/imagecompressor/ImageCompressor.vue.d.ts +191 -0
  78. package/components/imagecompressor/ImageInputInfo.vue.d.ts +30 -0
  79. package/components/index.d.ts +66 -0
  80. package/components/inlinemessage/InlineMessage.vue.d.ts +167 -0
  81. package/components/inputbadge/InputBadge.vue.d.ts +122 -0
  82. package/components/inputcurrency/InputCurrency.vue.d.ts +170 -0
  83. package/components/inputcurrency/helpers/currency.helper.d.ts +4 -0
  84. package/components/inputemail/InputEmail.vue.d.ts +25 -0
  85. package/components/inputgroup/InputGroup.vue.d.ts +141 -0
  86. package/components/inputnumber/InputNumber.vue.d.ts +282 -0
  87. package/components/inputpassword/InputPassword.vue.d.ts +32 -0
  88. package/components/inputphonenumber/InputPhoneNumber.vue.d.ts +99 -0
  89. package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +8 -0
  90. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +120 -0
  91. package/components/inputtext/InputText.vue.d.ts +352 -0
  92. package/components/inputurl/InputURL.vue.d.ts +39 -0
  93. package/components/invisiblefield/InvisibleField.vue.d.ts +36 -0
  94. package/components/languagedropdown/LanguageDropdown.vue.d.ts +58 -0
  95. package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +18 -0
  96. package/components/litedropdown/LiteDropdown.vue.d.ts +96 -0
  97. package/components/loading/Loading.vue.d.ts +47 -0
  98. package/components/loading/store/loading.store.d.ts +8 -0
  99. package/components/menu/Menu.vue.d.ts +390 -0
  100. package/components/menu/helpers/filterMenu.helper.d.ts +12 -0
  101. package/components/menu/helpers/index.d.ts +1 -0
  102. package/components/menuitem/MenuItem.vue.d.ts +19 -0
  103. package/components/menuitem/index.d.ts +104 -0
  104. package/components/multiselect/MultiSelect.vue.d.ts +192 -0
  105. package/components/overlaypanel/OverlayPanel.vue.d.ts +301 -0
  106. package/components/passthrough/index.d.ts +16 -0
  107. package/components/progressbar/ProgressBar.vue.d.ts +72 -0
  108. package/components/quickfilter/QuickFilter.vue.d.ts +25 -0
  109. package/components/tabmenu/TabMenu.vue.d.ts +288 -0
  110. package/components/tagtype/TagType.vue.d.ts +22 -0
  111. package/components/textarea/Textarea.vue.d.ts +170 -0
  112. package/components/timeline/Timeline.vue.d.ts +115 -0
  113. package/components/timeline/TimelineContentByType.vue.d.ts +16 -0
  114. package/components/toast/Toast.vue.d.ts +367 -0
  115. package/components/toggleswitch/ToggleSwitch.vue.d.ts +281 -0
  116. package/components/tooltipspan/TooltipSpan.vue.d.ts +20 -0
  117. package/components/tree/Tree.vue.d.ts +146 -0
  118. package/components/tree/helpers/filterNodeKeys.helper.d.ts +16 -0
  119. package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +6 -0
  120. package/components/tree/helpers/index.d.ts +3 -0
  121. package/components/treesearchinput/TreeSearchInput.vue.d.ts +16 -0
  122. package/components/ts-helpers.d.ts +63 -0
  123. package/components/usergroup/UserGroup.vue.d.ts +57 -0
  124. package/components/username/UserName.vue.d.ts +61 -0
  125. package/components/validatormessage/ValidatorMessage.vue.d.ts +12 -0
  126. package/config/defaultProps.d.ts +3 -0
  127. package/config/index.d.ts +3 -0
  128. package/config/locale.d.ts +3 -0
  129. package/directives/focus.d.ts +7 -0
  130. package/directives/index.d.ts +1 -0
  131. package/event-bus/index.d.ts +55 -0
  132. package/event-bus/mitt.d.ts +26 -0
  133. package/loading-page-BrQattYE.js +1 -0
  134. package/loading-page-CgfbWppy.js +1 -0
  135. package/loading-page-CoC9UhfC.js +4 -0
  136. package/loading-page-CoXtqoc9.js +4 -0
  137. package/loading-page-DbLuqCHa.js +1 -0
  138. package/loading-page-f8D03l3G.js +4 -0
  139. package/loading-plane-CgfbWppy.js +1 -0
  140. package/loading-plane-CoXtqoc9.js +4 -0
  141. package/loading-table-Bb2MtjdD.js +4 -0
  142. package/loading-table-Br25QIny.js +1 -0
  143. package/loading-table-ByUoWqUo.js +4 -0
  144. package/loading-table-BygEMzFM.js +4 -0
  145. package/loading-table-BzrSQlA0.js +1 -0
  146. package/loading-table-chOgXi94.js +1 -0
  147. package/main.d.ts +2 -0
  148. package/no-data-CTKux8RI.js +4 -0
  149. package/no-data-Cgze_Rvp.js +1 -0
  150. package/no-data-DLHO1L_u.js +4 -0
  151. package/no-data-Dep79CBh.js +1 -0
  152. package/no-data-g0dJCy2p.js +4 -0
  153. package/no-data-y1X5WtcQ.js +1 -0
  154. package/package.json +16 -0
  155. package/plugins/WangsVue.d.ts +121 -0
  156. package/plugins/formValidation.d.ts +10 -0
  157. package/plugins/translation.d.ts +37 -0
  158. package/style.css +1 -0
  159. package/types/options.type.d.ts +16 -0
  160. package/utils/date.util.d.ts +37 -0
  161. package/utils/exportToExcel.util.d.ts +20 -0
  162. package/utils/filterOptions.util.d.ts +3 -0
  163. package/utils/genPlaceholder.util.d.ts +8 -0
  164. package/utils/getAttachmentIcon.util.d.ts +8 -0
  165. package/utils/getStatusSeverity.util.d.ts +3 -0
  166. package/utils/index.d.ts +18 -0
  167. package/utils/mergePropsWithDefaults.util.d.ts +20 -0
  168. package/utils/object.util.d.ts +9 -0
  169. package/utils/role.util.d.ts +2 -0
  170. package/utils/textFormatter.util.d.ts +17 -0
  171. package/utils/toast.util.d.ts +114 -0
  172. package/wangsvue-gsts.es.js +133347 -0
  173. package/wangsvue-gsts.system.js +454 -0
@@ -0,0 +1,180 @@
1
+ declare const _default: [
2
+ {
3
+ "lang": "Arabic",
4
+ "flag": "https://flagcdn.com/sa.svg",
5
+ "locale": "ar_SA",
6
+ "country": "Saudi Arabia",
7
+ "countryCode": "SA"
8
+ },
9
+ {
10
+ "lang": "Chinese",
11
+ "flag": "https://flagcdn.com/cn.svg",
12
+ "locale": "zh_CN",
13
+ "country": "China",
14
+ "countryCode": "CN"
15
+ },
16
+ {
17
+ "lang": "English",
18
+ "flag": "https://flagcdn.com/us.svg",
19
+ "locale": "en_US",
20
+ "country": "United States",
21
+ "countryCode": "US"
22
+ },
23
+ {
24
+ "lang": "English",
25
+ "flag": "https://flagcdn.com/sg.svg",
26
+ "locale": "en_SG",
27
+ "country": "Singapore",
28
+ "countryCode": "SG"
29
+ },
30
+ {
31
+ "lang": "English",
32
+ "flag": "https://flagcdn.com/gb.svg",
33
+ "locale": "en_UK",
34
+ "country": "United Kingdom",
35
+ "countryCode": "UK"
36
+ },
37
+ {
38
+ "lang": "English",
39
+ "flag": "https://flagcdn.com/in.svg",
40
+ "locale": "en_IN",
41
+ "country": "India",
42
+ "countryCode": "IN"
43
+ },
44
+ {
45
+ "lang": "English",
46
+ "flag": "https://flagcdn.com/ca.svg",
47
+ "locale": "en_CA",
48
+ "country": "Canada",
49
+ "countryCode": "CA"
50
+ },
51
+ {
52
+ "lang": "English",
53
+ "flag": "https://flagcdn.com/au.svg",
54
+ "locale": "en_AU",
55
+ "country": "Australia",
56
+ "countryCode": "AU"
57
+ },
58
+ {
59
+ "lang": "Filipino",
60
+ "flag": "https://flagcdn.com/ph.svg",
61
+ "locale": "fil_PH",
62
+ "country": "Philippines",
63
+ "countryCode": "PH"
64
+ },
65
+ {
66
+ "lang": "French",
67
+ "flag": "https://flagcdn.com/fr.svg",
68
+ "locale": "fr_FR",
69
+ "country": "France",
70
+ "countryCode": "FR"
71
+ },
72
+ {
73
+ "lang": "German",
74
+ "flag": "https://flagcdn.com/de.svg",
75
+ "locale": "de_DE",
76
+ "country": "Germany",
77
+ "countryCode": "DE"
78
+ },
79
+ {
80
+ "lang": "Indonesian",
81
+ "flag": "https://flagcdn.com/id.svg",
82
+ "locale": "id_ID",
83
+ "country": "Indonesia",
84
+ "countryCode": "ID"
85
+ },
86
+ {
87
+ "lang": "Italian",
88
+ "flag": "https://flagcdn.com/it.svg",
89
+ "locale": "it_IT",
90
+ "country": "Italy",
91
+ "countryCode": "IT"
92
+ },
93
+ {
94
+ "lang": "Japanese",
95
+ "flag": "https://flagcdn.com/jp.svg",
96
+ "locale": "ja_JP",
97
+ "country": "Japan",
98
+ "countryCode": "JP"
99
+ },
100
+ {
101
+ "lang": "Khmer",
102
+ "flag": "https://flagcdn.com/kh.svg",
103
+ "locale": "km_KH",
104
+ "country": "Cambodia",
105
+ "countryCode": "KH"
106
+ },
107
+ {
108
+ "lang": "Korean",
109
+ "flag": "https://flagcdn.com/kr.svg",
110
+ "locale": "ko_KR",
111
+ "country": "South Korea",
112
+ "countryCode": "KR"
113
+ },
114
+ {
115
+ "lang": "Lao",
116
+ "flag": "https://flagcdn.com/la.svg",
117
+ "locale": "lo_LA",
118
+ "country": "Laos",
119
+ "countryCode": "LA"
120
+ },
121
+ {
122
+ "lang": "Malay",
123
+ "flag": "https://flagcdn.com/my.svg",
124
+ "locale": "ms_MY",
125
+ "country": "Malaysia",
126
+ "countryCode": "MY"
127
+ },
128
+ {
129
+ "lang": "Burmese",
130
+ "flag": "https://flagcdn.com/mm.svg",
131
+ "locale": "my_MM",
132
+ "country": "Myanmar",
133
+ "countryCode": "MM"
134
+ },
135
+ {
136
+ "lang": "Portuguese",
137
+ "flag": "https://flagcdn.com/br.svg",
138
+ "locale": "pt_BR",
139
+ "country": "Brazil",
140
+ "countryCode": "BR"
141
+ },
142
+ {
143
+ "lang": "Russian",
144
+ "flag": "https://flagcdn.com/ru.svg",
145
+ "locale": "ru_RU",
146
+ "country": "Russia",
147
+ "countryCode": "RU"
148
+ },
149
+ {
150
+ "lang": "Spanish",
151
+ "flag": "https://flagcdn.com/mx.svg",
152
+ "locale": "es_MX",
153
+ "country": "Mexico",
154
+ "countryCode": "MX"
155
+ },
156
+ {
157
+ "lang": "Spanish",
158
+ "flag": "https://flagcdn.com/es.svg",
159
+ "locale": "es_ES",
160
+ "country": "Spain",
161
+ "countryCode": "ES"
162
+ },
163
+ {
164
+ "lang": "Thai",
165
+ "flag": "https://flagcdn.com/th.svg",
166
+ "locale": "th_TH",
167
+ "country": "Thailand",
168
+ "countryCode": "TH"
169
+ },
170
+ {
171
+ "lang": "Vietnamese",
172
+ "flag": "https://flagcdn.com/vn.svg",
173
+ "locale": "vi_VN",
174
+ "country": "Vietnam",
175
+ "countryCode": "VN"
176
+ }
177
+ ]
178
+ ;
179
+
180
+ export default _default;
@@ -0,0 +1,14 @@
1
+ export { default as mitt } from './event-bus/mitt';
2
+ export { default as eventBus, extendEventBus } from './event-bus';
3
+ export { default as ToastService } from 'primevue/toastservice';
4
+ export * from './utils';
5
+ export { formatCurrency } from './components/inputcurrency/helpers/currency.helper';
6
+ export { default as useLoadingStore } from './components/loading/store/loading.store';
7
+ export { default as Tooltip } from 'primevue/tooltip';
8
+ export { Focus } from './directives';
9
+ export { useForm, useField } from './plugins/formValidation';
10
+ export type { FormContext } from './plugins/formValidation';
11
+ export * from './plugins/translation';
12
+ export { default as i18n } from './plugins/translation';
13
+ export * from './components';
14
+ export { default as WangsVue } from './config';
@@ -0,0 +1,24 @@
1
+ import { ClassComponent } from 'lib/components/ts-helpers.d';
2
+
3
+ export interface AnimationDefaultConfig {
4
+ libPath: 'supplyasset' | 'workspace' | 'admin';
5
+ }
6
+
7
+ export interface AnimationProps {
8
+ animation: 'no-data' | 'loading-plane' | 'loading-page' | 'loading-table';
9
+ }
10
+
11
+ /**
12
+ * **WangsVue - Animation**
13
+ *
14
+ * _Animation is a lottie animation wrapper._
15
+ *
16
+ * @group Component
17
+ */
18
+ declare class Animation extends ClassComponent<
19
+ AnimationProps,
20
+ unknown,
21
+ unknown
22
+ > {}
23
+
24
+ export default Animation;
@@ -0,0 +1,51 @@
1
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
2
+
3
+ export interface ApproverDetail {
4
+ _id?: string;
5
+ level: number;
6
+ type: 'and' | 'or';
7
+ status: 'disetujui' | 'ditolak' | 'menunggu approval';
8
+ approvers: {
9
+ _id: string;
10
+ fullName: string;
11
+ actionAt?: string;
12
+ action?: 'menyetujui' | 'menolak' | null;
13
+ }[];
14
+ }
15
+
16
+ export interface ApproverInfoProps {
17
+ approvals?: ApproverDetail[];
18
+ /**
19
+ * To determine whether this component show short information about approval or not
20
+ * @default true
21
+ */
22
+ showShortInfo?: boolean;
23
+ /**
24
+ * To set label text when showShortInfo is false
25
+ */
26
+ label?: string;
27
+ /**
28
+ * To set the button label that opens the approval dialog
29
+ * @default 'more'
30
+ */
31
+ btnLabel?: string;
32
+ /**
33
+ * To format date in list approver
34
+ * @default true
35
+ */
36
+ useFormatDate?: boolean;
37
+ }
38
+
39
+ declare class ApproverInfo extends ClassComponent<
40
+ ApproverInfoProps,
41
+ unknown,
42
+ unknown
43
+ > {}
44
+
45
+ declare module '@vue/runtime-core' {
46
+ interface GlobalComponents {
47
+ ApproverInfo: GlobalComponentConstructor<ApproverInfo>;
48
+ }
49
+ }
50
+
51
+ export default ApproverInfo;
@@ -0,0 +1,66 @@
1
+ import { ClassComponent } from '../ts-helpers';
2
+
3
+ export interface BadgeComponentConfigs {
4
+ /**
5
+ * The component configurasion to set the severity based on given label. If provided, props.severity might be omitted.
6
+ *
7
+ * @param label The badge label
8
+ * @returns The matched severity of given label
9
+ */
10
+ getSeverity?: (label?: string) => BadgeProps['severity'];
11
+ }
12
+
13
+ /**
14
+ * Props for Badge component
15
+ */
16
+ export interface BadgeProps extends BadgeComponentConfigs {
17
+ /**
18
+ * The text to be displayed.
19
+ */
20
+ label: string;
21
+ /**
22
+ * Whether the badge text is editable.
23
+ */
24
+ editable?: boolean;
25
+ /**
26
+ * Sets the severity level for styling purposes. This prop might be omitted if getSeverity is provided.
27
+ */
28
+ severity?: 'success' | 'info' | 'danger' | 'warning' | 'dark' | 'primary';
29
+ /**
30
+ * Specifies the format for text truncation rules based on the usage context.
31
+ */
32
+ format?: 'username' | 'nowrap';
33
+ /**
34
+ * Whether to show the remove icon or not. Clicking the remove icon will emit 'remove' event.
35
+ */
36
+ removable?: boolean;
37
+ /**
38
+ * Whether to set badge become disabled.
39
+ */
40
+ disabled?: boolean;
41
+ }
42
+
43
+ /**
44
+ * Emits for Badge component
45
+ */
46
+ export type BadgeEmits = {
47
+ 'remove': [];
48
+ /**
49
+ * Emits when the text is edited.
50
+ * Only available when props.editable=true
51
+ */
52
+ 'update:label': [label: string | null];
53
+ };
54
+
55
+ /**
56
+ * **WangsVue - Badge**
57
+ *
58
+ * _Badge is a component for displaying a text with optional remove functionality._
59
+ *
60
+ * @group components
61
+ */
62
+ export default class Badge extends ClassComponent<
63
+ BadgeProps,
64
+ unknown,
65
+ BadgeEmits
66
+ > {}
@@ -0,0 +1,40 @@
1
+ import { Slot } from 'vue';
2
+ import { BadgeProps } from 'lib/components/badge/Badge.vue.d';
3
+ import { ClassComponent } from '../ts-helpers.d';
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 interface BadgeGroupSlots {
30
+ /**
31
+ * Slot for custom more dialog content
32
+ */
33
+ dialogcontent: Slot<{ labels: string[] }>;
34
+ }
35
+
36
+ export default class Badge extends ClassComponent<
37
+ BadgeGroupProps,
38
+ BadgeGroupSlots,
39
+ unknown
40
+ > {}
@@ -0,0 +1,34 @@
1
+ import { BadgeGroupProps } from '../.././components/badgegroup/BadgeGroup.vue.d';
2
+ import { ClassComponent, GlobalComponentConstructor } from '../.././components/ts-helpers';
3
+
4
+
5
+ export interface BadgeGroupTreeItem {
6
+ _id: string;
7
+ name: string;
8
+ key: number;
9
+ }
10
+
11
+ export interface BadgeGroupTreeProps extends Omit<BadgeGroupProps, 'labels'> {
12
+ type: 'group' | 'category';
13
+
14
+ /**
15
+ * List of groups/category to display
16
+ *
17
+ * Undefined value will show '-'
18
+ */
19
+ nodes?: BadgeGroupTreeItem[];
20
+ }
21
+
22
+ declare class BadgeGroupTree extends ClassComponent<
23
+ BadgeGroupTreeProps,
24
+ unknown,
25
+ unknown
26
+ > {}
27
+
28
+ declare module '@vue/runtime-core' {
29
+ interface GlobalComponents {
30
+ BadgeGroupTree: GlobalComponentConstructor<BadgeGroupTree>;
31
+ }
32
+ }
33
+
34
+ export default BadgeGroupTree;
@@ -0,0 +1,28 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ export interface ComponentHooks {
3
+ onBeforeCreate?(): void;
4
+ onCreated?(): void;
5
+ onBeforeMount?(): void;
6
+ onMounted?(): void;
7
+ onBeforeUpdate?(): void;
8
+ onUpdated?(): void;
9
+ onBeforeUnmount?(): void;
10
+ onUnmounted?(): void;
11
+ }
12
+
13
+ export interface BaseComponentPassThroughOptions {
14
+ hooks?: ComponentHooks;
15
+ }
16
+
17
+ /**
18
+ * @todo Update all d.ts with it.
19
+ */
20
+ export interface BaseComponentPassThroughMethodOptions<
21
+ I = any,
22
+ P = any,
23
+ S = any,
24
+ > {
25
+ instance?: I | undefined | null;
26
+ props?: P | undefined | null;
27
+ state?: S | undefined | null;
28
+ }