@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,92 @@
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
+ view: {
35
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["view"]>;
36
+ required: true;
37
+ };
38
+ innerDecorations: {
39
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["innerDecorations"]>;
40
+ required: true;
41
+ };
42
+ HTMLAttributes: {
43
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["HTMLAttributes"]>;
44
+ required: true;
45
+ };
46
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
47
+ editor: {
48
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["editor"]>;
49
+ required: true;
50
+ };
51
+ node: {
52
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["node"]>;
53
+ required: true;
54
+ };
55
+ decorations: {
56
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["decorations"]>;
57
+ required: true;
58
+ };
59
+ selected: {
60
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["selected"]>;
61
+ required: true;
62
+ };
63
+ extension: {
64
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["extension"]>;
65
+ required: true;
66
+ };
67
+ getPos: {
68
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["getPos"]>;
69
+ required: true;
70
+ };
71
+ updateAttributes: {
72
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["updateAttributes"]>;
73
+ required: true;
74
+ };
75
+ deleteNode: {
76
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
77
+ required: true;
78
+ };
79
+ view: {
80
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["view"]>;
81
+ required: true;
82
+ };
83
+ innerDecorations: {
84
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["innerDecorations"]>;
85
+ required: true;
86
+ };
87
+ HTMLAttributes: {
88
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["HTMLAttributes"]>;
89
+ required: true;
90
+ };
91
+ }>>, {}, {}>;
92
+ export default _default;
@@ -0,0 +1,191 @@
1
+ import { EditorEvents } from '@tiptap/vue-3';
2
+ import { ClassComponent } from '../ts-helpers';
3
+
4
+ export interface EditorProps {
5
+ /**
6
+ * Model Value For Editor Content
7
+ */
8
+ modelValue?: JSONContent;
9
+ /**
10
+ * Model Value For Editor Content
11
+ */
12
+ initialValue?: JSONContent;
13
+ /**
14
+ * Specify the input placeholder.
15
+ */
16
+ placeholder?: string;
17
+ /**
18
+ * Determine Editor State Readonly / Editable.
19
+ * @default 'editable'
20
+ */
21
+ editorState?: EditorState;
22
+ /**
23
+ * Change Editor Border Content.
24
+ * @default false
25
+ */
26
+ borderLess?: boolean;
27
+ /**
28
+ * The input label. Tell the user what input is this.
29
+ */
30
+ label?: string;
31
+ /**
32
+ * Wether the input should be validated with vee-validator or not.
33
+ * If you use this component within form input, you need to set this props as true.
34
+ */
35
+ useValidator?: boolean;
36
+ /**
37
+ * This prop is required if you use this component in a form input.
38
+ * Specify the unique field name, match with your needs for API request.
39
+ *
40
+ * @default 'editorInput'
41
+ */
42
+ fieldName?: string;
43
+ /**
44
+ * Specify classes for label.
45
+ */
46
+ labelClass?: string;
47
+ /**
48
+ * Show information to user about the field.
49
+ */
50
+ fieldInfo?: string;
51
+ /**
52
+ * Classes for validator message in input field.
53
+ */
54
+ validatorMessageClass?: string;
55
+ /**
56
+ * Set custom validator message.
57
+ * Will be show if invalid="true"
58
+ */
59
+ validatorMessage?: string | { empty: string };
60
+ /**
61
+ * Wether this input field is required or not.
62
+ */
63
+ mandatory?: boolean;
64
+ /**
65
+ * Invalid input state.
66
+ */
67
+ invalid?: boolean;
68
+ /**
69
+ * Showing Optional value text on Label.
70
+ * @default true
71
+ */
72
+ showOptionalText?: boolean;
73
+ /**
74
+ * Determine for image upload from local machine if value is true, no need to use postImageLocal emitter
75
+ * @default false
76
+ */
77
+ isImageUploadBase64?: boolean;
78
+ /**
79
+ * Fetch function for mention this will get triger if putting @ in editor
80
+ */
81
+ fetchMentionSuggestionFunction?: () => Promise<
82
+ GetMentionSuggestionResponse | undefined
83
+ >;
84
+ /**
85
+ * Getting all mentioned list
86
+ */
87
+ mentionedList?: string[];
88
+ /**
89
+ * Add custom class tailwind for editor wrapper/container
90
+ * and preferred for using "!" bang! for your tailwind class just to make sure it apply
91
+ */
92
+ editorWrapperClass?: string;
93
+ /**
94
+ * Add custom class tailwind for editor toolbar wrapper/container
95
+ * and preferred for using "!" bang! for your tailwind class just to make sure it apply
96
+ */
97
+ toolbarWrapperClass?: string;
98
+ /**
99
+ * Add custom class tailwind for editor content wrapper/container
100
+ * and preferred for using "!" bang! for your tailwind class just to make sure it apply
101
+ */
102
+ contentWrapperClass?: string;
103
+ }
104
+
105
+ export type EditorEmits = {
106
+ /**
107
+ * Event emitted when the model value is updated
108
+ */
109
+ 'update:modelValue': [value: JSONContent];
110
+ /**
111
+ * Event emitted when try to upload image from local machine,
112
+ * and need to send file image to server first using value.image params and then
113
+ * get back image url that already get hosted.
114
+ * to set the image url back to editor to be show up simply using value.setImageCb from params
115
+ */
116
+ 'postImageLocal': [value: PostImage];
117
+ /**
118
+ * Event emitted when button in floating menu named :(unset image) is clicked,
119
+ * but this only get triger if selected image get set by postImageLocal function
120
+ */
121
+ 'deleteImageLocal': [value: ImageProperties];
122
+ /**
123
+ * Event emitted when the editor is blurred
124
+ */
125
+ 'blur': [value: EditorEvents['blur']];
126
+ /**
127
+ * Event emitted when the editor is focused
128
+ */
129
+ 'focus': [value: EditorEvents['focus']];
130
+ /**
131
+ * Emited Everytime mentioned user in editor change
132
+ */
133
+ 'update:mentionedList': [value: string[]];
134
+ };
135
+
136
+ export type PostImage = {
137
+ /**
138
+ * This Is Image File that should be send to server
139
+ */
140
+ image: File;
141
+ /**
142
+ * Set Image Cb Is Callback For setting back image url that get send back
143
+ * from server through response
144
+ */
145
+ setImageCb: (imageUrl: string) => void;
146
+ };
147
+
148
+ /**
149
+ * Editor Content Meta Data
150
+ */
151
+ export type JSONContent = {
152
+ type?: string;
153
+ attrs?: Record<string, any>;
154
+ content?: JSONContent[];
155
+ marks?: {
156
+ type: string;
157
+ attrs?: Record<string, any>;
158
+ [key: string]: any;
159
+ }[];
160
+ text?: string;
161
+ [key: string]: any;
162
+ };
163
+
164
+ export type ImageProperties = {
165
+ alt?: string;
166
+ src: string;
167
+ title: string;
168
+ };
169
+
170
+ export type GetMentionSuggestionResponse = {
171
+ status: number;
172
+ message: string;
173
+ data: MentionSuggestion[];
174
+ };
175
+
176
+ export type MentionSuggestion = {
177
+ _id: string;
178
+ fullName: string;
179
+ nickName: string;
180
+ profilePicture: string;
181
+ };
182
+
183
+ export type EditorState = 'editable' | 'readonly';
184
+
185
+ declare class Editor extends ClassComponent<
186
+ EditorProps,
187
+ unknown,
188
+ EditorEmits
189
+ > {}
190
+
191
+ 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,92 @@
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
+ view: {
35
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["view"]>;
36
+ required: true;
37
+ };
38
+ innerDecorations: {
39
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["innerDecorations"]>;
40
+ required: true;
41
+ };
42
+ HTMLAttributes: {
43
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["HTMLAttributes"]>;
44
+ required: true;
45
+ };
46
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
47
+ editor: {
48
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["editor"]>;
49
+ required: true;
50
+ };
51
+ node: {
52
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["node"]>;
53
+ required: true;
54
+ };
55
+ decorations: {
56
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["decorations"]>;
57
+ required: true;
58
+ };
59
+ selected: {
60
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["selected"]>;
61
+ required: true;
62
+ };
63
+ extension: {
64
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["extension"]>;
65
+ required: true;
66
+ };
67
+ getPos: {
68
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["getPos"]>;
69
+ required: true;
70
+ };
71
+ updateAttributes: {
72
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["updateAttributes"]>;
73
+ required: true;
74
+ };
75
+ deleteNode: {
76
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
77
+ required: true;
78
+ };
79
+ view: {
80
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["view"]>;
81
+ required: true;
82
+ };
83
+ innerDecorations: {
84
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["innerDecorations"]>;
85
+ required: true;
86
+ };
87
+ HTMLAttributes: {
88
+ type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["HTMLAttributes"]>;
89
+ required: true;
90
+ };
91
+ }>>, {}, {}>;
92
+ 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,69 @@
1
+ import { DefineComponent } from 'vue';
2
+
3
+ export interface FieldWrapperLocaleConfig {
4
+ /**
5
+ * The indicator for mandatory field.
6
+ * @default '*''
7
+ */
8
+ labelRequired?: string;
9
+
10
+ /**
11
+ * The indicator for optional field.
12
+ * @default '(optional)''
13
+ */
14
+ labelOptional?: string;
15
+ }
16
+
17
+ /**
18
+ * Props for the FieldWrapper component.
19
+ */
20
+ export interface FieldWrapperProps {
21
+ /**
22
+ * The label text to display for the field.
23
+ * @default undefined
24
+ */
25
+ label?: string;
26
+
27
+ /**
28
+ * Indicates whether the field is mandatory (required).
29
+ * If `true`, this may trigger the display of a required indicator.
30
+ * @default false
31
+ */
32
+ mandatory?: boolean;
33
+
34
+ /**
35
+ * When `true`, displays an "(optional)" text next to the label if the field is not mandatory.
36
+ */
37
+ showOptionalText?: boolean;
38
+
39
+ /**
40
+ * When `true`, displays an asterisk (`*`) next to the label if the field is mandatory.
41
+ * @default false
42
+ */
43
+ showAsterisk?: boolean;
44
+
45
+ /**
46
+ * Additional information or description for the field.
47
+ * Can be used to display tooltips or inline helper text.
48
+ * @default undefined
49
+ */
50
+ info?: string;
51
+
52
+ /**
53
+ * Custom CSS class to apply to the label element.
54
+ * Useful for styling the label specifically.
55
+ * @default undefined
56
+ */
57
+ labelClass?: string;
58
+
59
+ /**
60
+ * Position of the tooltip, if one is displayed.
61
+ * Accepted values are `'top'`, `'right'`, `'bottom'`, and `'left'`.
62
+ * @default undefined
63
+ */
64
+ tooltipPos?: 'top' | 'right' | 'bottom' | 'left';
65
+ }
66
+
67
+ declare const FieldWrapper: DefineComponent<FieldWrapperProps>;
68
+
69
+ export default FieldWrapper;
@@ -0,0 +1,153 @@
1
+ import {
2
+ FileUploadErrorEvent,
3
+ FileUploadUploadEvent,
4
+ } from 'primevue/fileupload';
5
+ import { CustomValidation } from '../form/Form.vue.d';
6
+ import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
7
+
8
+ export type InputErrorCodes = 'FILE_SIZE_TOO_LARGE';
9
+
10
+ /**
11
+ * Defines valid properties in FileUpload component.
12
+ */
13
+ export type FileUploadProps = {
14
+ /**
15
+ * Pattern to restrict the allowed file types such as 'image/*'.
16
+ */
17
+ accept?: string | undefined;
18
+ /**
19
+ * Disables the upload functionality.
20
+ * @defaultValue false
21
+ */
22
+ disabled?: boolean | undefined;
23
+ /**
24
+ * Maximum file size allowed in bytes.
25
+ */
26
+ maxFileSize?: number | undefined;
27
+ /**
28
+ * Props to determine whether file upload support multiple files or not
29
+ *
30
+ * @default false
31
+ */
32
+ multiple?: boolean;
33
+ /**
34
+ * Message of the invalid fize size.
35
+ * - Use {0} to get the file's name
36
+ * - Use {1} to get the max file size
37
+ * - Use {2} to get the accepted file types from props.accept
38
+ * - Use {2.1} to get the accepted file types from props.fileExtensions
39
+ * @defaultValue {0}: Invalid file size, file size should be smaller than {1}.
40
+ */
41
+ invalidFileSizeMessage?: string | undefined;
42
+ /**
43
+ * Message of the invalid fize type.
44
+ * - Use {0} to get the file's name
45
+ * - Use {1} to get the max file size
46
+ * - Use {2} to get the accepted file types
47
+ * - Use {2.1} to get the accepted file types from props.fileExtensions
48
+ * @defaultValue '{0}: Invalid file type, allowed file types: {2}'
49
+ */
50
+ invalidFileTypeMessage?: string | undefined;
51
+ /**
52
+ * Label of the file upload.
53
+ * @defaultValue 'Upload File'
54
+ */
55
+ label?: string | undefined;
56
+ /**
57
+ * Whether to use an upload button.
58
+ * @defaultValue true
59
+ */
60
+ withUpload?: boolean | undefined;
61
+ /**
62
+ * Label of the upload button.
63
+ * @defaultValue 'Upload'.
64
+ */
65
+ uploadLabel?: string | undefined;
66
+ /**
67
+ * Placeholder of the file upload.
68
+ * @defaultValue 'Select File'
69
+ */
70
+ placeholder?: string | undefined;
71
+ /**
72
+ * File extensions to display the accepted extensions.
73
+ */
74
+ fileExtensions?: string | undefined;
75
+ /**
76
+ * The note about the requirements of file for being uploaded.
77
+ *
78
+ * Placed at the bottom right of input.
79
+ */
80
+ fileRequirements?: string | undefined;
81
+ /**
82
+ * The function to be called after the upload button is clicked. (Must be used when withUpload is true)
83
+ */
84
+ uploadFunction?: (files: File[]) => Promise<void>;
85
+ /**
86
+ * Whether the input should be validated with vee-validator or not.
87
+ * If you use this component within form input, you need to set this props as true.
88
+ */
89
+ useValidator?: 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 'fileUpload'
95
+ */
96
+ fieldName?: string;
97
+ /**
98
+ * Whether this input field is required or not.
99
+ */
100
+ mandatory?: boolean;
101
+ /**
102
+ * Whether show toast error message on invalid file input
103
+ *
104
+ * @default true;
105
+ */
106
+ useErrorToast?: boolean;
107
+ /**
108
+ * Set custom validator message.
109
+ * Will be show if invalid="true"
110
+ */
111
+ validatorMessage?: string | CustomValidation;
112
+ /**
113
+ * Classes for validator message in input field.
114
+ */
115
+ validatorMessageClass?: string;
116
+ };
117
+
118
+ export type FileUploadEmits = {
119
+ /**
120
+ * Callback to invoke when file upload is complete.
121
+ */
122
+ upload: [event: FileUploadUploadEvent];
123
+ /**
124
+ * Callback to invoke if file upload fails.
125
+ */
126
+ error: [event: FileUploadErrorEvent | InputErrorCodes];
127
+ };
128
+
129
+ /**
130
+ * **WangsVue - FileUpload**
131
+ *
132
+ * _FileUpload is an advanced uploader with dragdrop support, multi file uploads, auto uploading, progress tracking and validations._
133
+ *
134
+ * [Live Demo](https://fewangsit.github.io/wangsvue/button)
135
+ * --- ---
136
+ * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
137
+ *
138
+ * @group Component
139
+ *
140
+ */
141
+ declare class FileUpload extends ClassComponent<
142
+ FileUploadProps,
143
+ null,
144
+ FileUploadEmits
145
+ > {}
146
+
147
+ declare module '@vue/runtime-core' {
148
+ interface GlobalComponents {
149
+ FileUpload: GlobalComponentConstructor<FileUpload>;
150
+ }
151
+ }
152
+
153
+ export default FileUpload;