@fewangsit/wangsvue-fats 1.0.0-alpha.20 → 1.0.0-alpha.22

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 (179) hide show
  1. package/event-bus/mitt.d.ts +25 -7
  2. package/package.json +1 -1
  3. package/plugins/WangsVue.d.ts +184 -16
  4. package/plugins/formValidation.d.ts +11 -2
  5. package/plugins/i18n.d.ts +23 -5
  6. package/utils/addAttachment.util.d.ts +18 -2
  7. package/utils/date.util.d.ts +33 -4
  8. package/utils/filterOptions.util.d.ts +4 -2
  9. package/utils/genPlaceholder.util.d.ts +11 -6
  10. package/utils/mergePropsWithDefaults.util.d.ts +4 -1
  11. package/utils/object.util.d.ts +14 -3
  12. package/utils/role.util.d.ts +5 -32
  13. package/utils/textFormatter.util.d.ts +15 -3
  14. package/assets/json/currencies.json.d.ts +0 -1068
  15. package/assets/lottie/admin/loading-page.lottie +0 -0
  16. package/assets/lottie/admin/loading-table.lottie +0 -0
  17. package/assets/lottie/admin/no-data.lottie +0 -0
  18. package/assets/lottie/supplyasset/loading-page.lottie +0 -0
  19. package/assets/lottie/supplyasset/loading-table.lottie +0 -0
  20. package/assets/lottie/supplyasset/no-data.lottie +0 -0
  21. package/assets/lottie/workspace/loading-page.lottie +0 -0
  22. package/assets/lottie/workspace/loading-plane.lottie +0 -0
  23. package/assets/lottie/workspace/loading-table.lottie +0 -0
  24. package/assets/lottie/workspace/no-data.lottie +0 -0
  25. package/build-entry.d.ts +0 -14
  26. package/components/animation/Animation.vue.d.ts +0 -24
  27. package/components/approverinfo/ApproverInfo.vue.d.ts +0 -51
  28. package/components/assetinfo/AssetInfo.vue.d.ts +0 -32
  29. package/components/badge/Badge.vue.d.ts +0 -73
  30. package/components/badgegroup/BadgeGroup.vue.d.ts +0 -52
  31. package/components/basecomponent/index.d.ts +0 -28
  32. package/components/basetree/BaseTree.vue.d.ts +0 -591
  33. package/components/basetree/TreeNode.vue.d.ts +0 -35
  34. package/components/breadcrumb/Breadcrumb.vue.d.ts +0 -26
  35. package/components/button/Button.vue.d.ts +0 -188
  36. package/components/buttonImportExcel/ButtonImportExcel.vue.d.ts +0 -35
  37. package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +0 -104
  38. package/components/buttoncopy/ButtonCopy.vue.d.ts +0 -26
  39. package/components/buttondownload/ButtonDownload.vue.d.ts +0 -49
  40. package/components/buttonfilter/ButtonFilter.vue.d.ts +0 -12
  41. package/components/buttonradio/ButtonRadio.vue.d.ts +0 -257
  42. package/components/buttonscan/ButtonScan.vue.d.ts +0 -201
  43. package/components/buttonscan/helpers/getErrorCode.helper.d.ts +0 -3
  44. package/components/buttonscan/helpers/index.d.ts +0 -1
  45. package/components/buttonscan/workers/scanner.worker.d.ts +0 -1
  46. package/components/buttonsearch/ButtonSearch.vue.d.ts +0 -38
  47. package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +0 -200
  48. package/components/buttonsplit/ButtonSplit.d.ts +0 -350
  49. package/components/buttonsplit/ButtonSplit.vue.d.ts +0 -34
  50. package/components/buttonsync/ButtonSync.vue.d.ts +0 -10
  51. package/components/buttontoggle/ButtonToggle.vue.d.ts +0 -18
  52. package/components/buttonviewlog/ButtonViewLog.vue.d.ts +0 -17
  53. package/components/calendar/BaseCalendar.vue.d.ts +0 -86
  54. package/components/calendar/Calendar.vue.d.ts +0 -570
  55. package/components/card/Card.vue.d.ts +0 -139
  56. package/components/checkbox/Checkbox.vue.d.ts +0 -329
  57. package/components/codesnippet/CodeSnippet.vue.d.ts +0 -14
  58. package/components/customcolumn/ColumnList.vue.d.ts +0 -27
  59. package/components/customcolumn/CustomColumn.vue.d.ts +0 -37
  60. package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -12
  61. package/components/datatable/DataTable.vue.d.ts +0 -735
  62. package/components/datatable/MultiRow.vue.d.ts +0 -16
  63. package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
  64. package/components/datatable/helpers/filter.helper.d.ts +0 -28
  65. package/components/datatable/helpers/index.d.ts +0 -3
  66. package/components/datatable/helpers/readConfig.helper.d.ts +0 -2
  67. package/components/datatable/store/dataTable.store.d.ts +0 -22
  68. package/components/dialog/Dialog.vue.d.ts +0 -464
  69. package/components/dialogconfirm/DialogConfirm.vue.d.ts +0 -164
  70. package/components/dialogform/DialogForm.vue.d.ts +0 -349
  71. package/components/dialogselecttree/DialogSelectTree.vue.d.ts +0 -136
  72. package/components/dropdown/Dropdown.vue.d.ts +0 -264
  73. package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -92
  74. package/components/editor/Editor.vue.d.ts +0 -191
  75. package/components/editor/EditorButton.vue.d.ts +0 -15
  76. package/components/editor/MentionList.vue.d.ts +0 -35
  77. package/components/editor/MentionSection.vue.d.ts +0 -92
  78. package/components/editor/codeSnippetExtension.d.ts +0 -3
  79. package/components/editor/mentionSectionExtension.d.ts +0 -3
  80. package/components/editor/suggestion.d.ts +0 -2
  81. package/components/fieldwrapper/FieldWrapper.vue.d.ts +0 -69
  82. package/components/fileupload/FileUpload.vue.d.ts +0 -169
  83. package/components/filtercontainer/FilterContainer.vue.d.ts +0 -182
  84. package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -5
  85. package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
  86. package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -3
  87. package/components/form/Form.vue.d.ts +0 -316
  88. package/components/gallerypreview/GalleryPreview.vue.d.ts +0 -31
  89. package/components/hardwaresync/store/device.store.d.ts +0 -36
  90. package/components/helpers/convertToArrayClass.helper.d.ts +0 -2
  91. package/components/helpers/index.d.ts +0 -2
  92. package/components/helpers/label.d.ts +0 -15
  93. package/components/icon/Icon.vue.d.ts +0 -256
  94. package/components/image/Image.vue.d.ts +0 -403
  95. package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -36
  96. package/components/imagecompressor/ImageCompressor.vue.d.ts +0 -229
  97. package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -32
  98. package/components/index.d.ts +0 -69
  99. package/components/inlinemessage/InlineMessage.vue.d.ts +0 -167
  100. package/components/inputbadge/InputBadge.vue.d.ts +0 -122
  101. package/components/inputcurrency/InputCurrency.vue.d.ts +0 -170
  102. package/components/inputcurrency/helpers/currency.helper.d.ts +0 -4
  103. package/components/inputemail/InputEmail.vue.d.ts +0 -25
  104. package/components/inputgroup/InputGroup.vue.d.ts +0 -141
  105. package/components/inputnumber/InputNumber.vue.d.ts +0 -282
  106. package/components/inputpassword/InputPassword.vue.d.ts +0 -32
  107. package/components/inputphonenumber/InputPhoneNumber.vue.d.ts +0 -99
  108. package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
  109. package/components/inputrangenumber/InputRangeNumber.vue.d.ts +0 -120
  110. package/components/inputsearch/InputSearch.vue.d.ts +0 -32
  111. package/components/inputtext/InputText.vue.d.ts +0 -352
  112. package/components/inputurl/InputURL.vue.d.ts +0 -39
  113. package/components/invisiblefield/InvisibleField.vue.d.ts +0 -36
  114. package/components/languagedropdown/LanguageDropdown.vue.d.ts +0 -47
  115. package/components/languagedropdown/LanguageDropdownOption.vue.d.ts +0 -18
  116. package/components/languageswitcher/LanguageSwitcher.vue.d.ts +0 -15
  117. package/components/litedropdown/LiteDropdown.vue.d.ts +0 -96
  118. package/components/loading/Loading.vue.d.ts +0 -47
  119. package/components/loading/store/loading.store.d.ts +0 -8
  120. package/components/menu/Menu.vue.d.ts +0 -390
  121. package/components/menu/helpers/filterMenu.helper.d.ts +0 -12
  122. package/components/menu/helpers/index.d.ts +0 -1
  123. package/components/menuitem/MenuItem.vue.d.ts +0 -19
  124. package/components/menuitem/index.d.ts +0 -106
  125. package/components/multiselect/MultiSelect.vue.d.ts +0 -192
  126. package/components/overlaypanel/OverlayPanel.vue.d.ts +0 -301
  127. package/components/passthrough/index.d.ts +0 -16
  128. package/components/progressbar/ProgressBar.vue.d.ts +0 -72
  129. package/components/quickfilter/QuickFilter.vue.d.ts +0 -25
  130. package/components/tabmenu/TabMenu.vue.d.ts +0 -288
  131. package/components/tagtype/TagType.vue.d.ts +0 -21
  132. package/components/textarea/Textarea.vue.d.ts +0 -170
  133. package/components/timeline/Timeline.vue.d.ts +0 -121
  134. package/components/timeline/TimelineContentByType.vue.d.ts +0 -16
  135. package/components/toast/Toast.vue.d.ts +0 -367
  136. package/components/toggleswitch/ToggleSwitch.vue.d.ts +0 -281
  137. package/components/tooltipspan/TooltipSpan.vue.d.ts +0 -20
  138. package/components/tree/Tree.vue.d.ts +0 -148
  139. package/components/tree/helpers/filterNodeKeys.helper.d.ts +0 -16
  140. package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +0 -6
  141. package/components/tree/helpers/index.d.ts +0 -3
  142. package/components/treesearchinput/TreeSearchInput.vue.d.ts +0 -16
  143. package/components/ts-helpers.d.ts +0 -83
  144. package/components/usergroup/UserGroup.vue.d.ts +0 -57
  145. package/components/username/UserName.vue.d.ts +0 -113
  146. package/components/userwithicon/UserWithIcon.vue.d.ts +0 -21
  147. package/components/validatormessage/ValidatorMessage.vue.d.ts +0 -12
  148. package/config/defaultProps.d.ts +0 -3
  149. package/config/index.d.ts +0 -3
  150. package/config/locale.d.ts +0 -3
  151. package/loading-page-BrQattYE.js +0 -1
  152. package/loading-page-CgfbWppy.js +0 -1
  153. package/loading-page-CoC9UhfC.js +0 -4
  154. package/loading-page-CoXtqoc9.js +0 -4
  155. package/loading-page-DbLuqCHa.js +0 -1
  156. package/loading-page-f8D03l3G.js +0 -4
  157. package/loading-plane-CgfbWppy.js +0 -1
  158. package/loading-plane-CoXtqoc9.js +0 -4
  159. package/loading-table-Bdr9ZhtP.js +0 -1
  160. package/loading-table-ByUoWqUo.js +0 -4
  161. package/loading-table-BygEMzFM.js +0 -4
  162. package/loading-table-BzrSQlA0.js +0 -1
  163. package/loading-table-D9bw9OcI.js +0 -4
  164. package/loading-table-chOgXi94.js +0 -1
  165. package/main.d.ts +0 -2
  166. package/no-data-CTKux8RI.js +0 -4
  167. package/no-data-Cgze_Rvp.js +0 -1
  168. package/no-data-DLHO1L_u.js +0 -4
  169. package/no-data-Dep79CBh.js +0 -1
  170. package/no-data-g0dJCy2p.js +0 -4
  171. package/no-data-y1X5WtcQ.js +0 -1
  172. package/plugins/i18n-extension.d.ts +0 -4
  173. package/style.css +0 -1
  174. package/types/options.type.d.ts +0 -16
  175. package/utils/getSeverityByAssetStatus.util.d.ts +0 -3
  176. package/utils/index.d.ts +0 -22
  177. package/utils/listenSidebarChanges.util.d.ts +0 -11
  178. package/wangsvue-fats.es.js +0 -133302
  179. package/wangsvue-fats.system.js +0 -489
@@ -1,188 +0,0 @@
1
- import { ButtonHTMLAttributes, VNode } from 'vue';
2
- import { WangsIcons } from '../icon/Icon.vue.d';
3
- import { TooltipOptions } from 'primevue/tooltip';
4
- import {
5
- GlobalComponentConstructor,
6
- ClassComponent,
7
- HintedString,
8
- } from '../ts-helpers';
9
-
10
- /**
11
- * Defines valid properties in Button component.
12
- */
13
- export interface ButtonProps extends /* @vue-ignore */ ButtonHTMLAttributes {
14
- /**
15
- * Inline style of the button.
16
- */
17
- style?: any;
18
- /**
19
- * Style class of the button.
20
- */
21
- class?: any;
22
- /**
23
- * Text of the button.
24
- */
25
- label?: string | undefined;
26
- /**
27
- * Name of the icon.
28
- */
29
- icon?: WangsIcons | undefined;
30
- /**
31
- * Position of the icon.
32
- * @defaultValue left
33
- */
34
- iconPos?: 'left' | 'right' | 'top' | 'bottom' | undefined;
35
- /**
36
- * Style class of the icon.
37
- */
38
- iconClass?: string | undefined;
39
- /**
40
- * Tooltip/information to show on button hover.
41
- */
42
- tooltip?: string | TooltipOptions;
43
- /**
44
- * Set the position of tooltip.
45
- * @default bottom
46
- */
47
- tooltipPos?: 'top' | 'right' | 'bottom' | 'left';
48
- /**
49
- * Value of the badge.
50
- */
51
- badge?: string | undefined;
52
- /**
53
- * Style class of the badge.
54
- */
55
- badgeClass?: string | undefined;
56
- /**
57
- * Severity type of the badge.
58
- */
59
- badgeSeverity?:
60
- | HintedString<
61
- 'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'contrast'
62
- >
63
- | null
64
- | undefined;
65
- /**
66
- * Whether the button is in loading state.
67
- * @defaultValue false
68
- */
69
- loading?: boolean | undefined;
70
- /**
71
- * Icon to display in loading state.
72
- */
73
- loadingIcon?: string | undefined;
74
- /**
75
- * Add a link style to the button.
76
- * @defaultValue false
77
- */
78
- link?: boolean | undefined;
79
- /**
80
- * Defines the style of the button.
81
- */
82
- severity?:
83
- | HintedString<
84
- | 'secondary'
85
- | 'success'
86
- | 'info'
87
- | 'warning'
88
- | 'help'
89
- | 'danger'
90
- | 'contrast'
91
- >
92
- | undefined;
93
- /**
94
- * Add a shadow to indicate elevation.
95
- * @defaultValue false
96
- */
97
- raised?: boolean | undefined;
98
- /**
99
- * Add a circular border radius to the button.
100
- * @defaultValue false
101
- */
102
- rounded?: boolean | undefined;
103
- /**
104
- * Add a textual class to the button without a background initially.
105
- * @defaultValue false
106
- */
107
- text?: boolean | undefined;
108
- /**
109
- * Add a border class without a background initially.
110
- * @defaultValue false
111
- */
112
- outlined?: boolean | undefined;
113
- /**
114
- * Defines the size of the button.
115
- */
116
- size?: 'small' | 'large' | undefined;
117
- /**
118
- * Add a plain textual class to the button without a background initially.
119
- * @defaultValue false
120
- */
121
- plain?: boolean | undefined;
122
- }
123
-
124
- /**
125
- * Defines current options in Button component.
126
- */
127
- export interface ButtonContext {
128
- /**
129
- * Current disabled state of the element as a boolean.
130
- * @defaultValue false
131
- */
132
- disabled: boolean;
133
- }
134
-
135
- /**
136
- * Defines valid slots in Button component.
137
- */
138
- export interface ButtonSlots {
139
- /**
140
- * 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.
141
- */
142
- default(): VNode[];
143
- /**
144
- * Custom icon template.
145
- * @param {Object} scope - icon slot's params.
146
- */
147
- icon(scope: {
148
- /**
149
- * Style class of the icon.
150
- */
151
- class: string;
152
- }): VNode[];
153
- /**
154
- * Custom loading icon template.
155
- * @param {Object} scope - loading icon slot's params.
156
- */
157
- loadingicon(scope: {
158
- /**
159
- * Style class of the loading icon.
160
- */
161
- class: string;
162
- }): VNode[];
163
- }
164
-
165
- /**
166
- * **WangsVue - Button**
167
- *
168
- * _Button is an extension to standard button element with icons and theming._
169
- *
170
- * [Live Demo](https://fewangsit.github.io/wangsvue/table)
171
- * --- ---
172
- * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
173
- *
174
- * @group Component
175
- */
176
- declare class Button extends ClassComponent<
177
- ButtonProps,
178
- ButtonSlots,
179
- Record<string, unknown>
180
- > {}
181
-
182
- declare module '@vue/runtime-core' {
183
- interface GlobalComponents {
184
- Button: GlobalComponentConstructor<Button>;
185
- }
186
- }
187
-
188
- export default Button;
@@ -1,35 +0,0 @@
1
- import { TableColumn } from '../datatable/DataTable.vue.d';
2
- import { DialogFormProps } from '../dialogform/DialogForm.vue.d';
3
- import { ClassComponent } from '../ts-helpers';
4
-
5
- export interface ButtonImportExcelProps {
6
- tableName: string;
7
- dialog?: Omit<DialogFormProps, 'visible'>;
8
- fileUpload?: {
9
- /**
10
- * @default 'File Upload'
11
- */
12
- label: string;
13
- placeholder: string;
14
- };
15
-
16
- /**
17
- * In case field from excel is different from datatable columns
18
- * Also to determine field type for field that has datatype other than string
19
- *
20
- * @description - Array of string should be in order based on column order in data table
21
- */
22
- columnFields?: { field: string; fieldType?: TableColumn['fieldType'] }[];
23
- }
24
-
25
- export type ButtonImportExcelEmits = {
26
- importedJson: [value: unknown[]];
27
- };
28
-
29
- declare class ButtonImportExcel extends ClassComponent<
30
- ButtonImportExcelProps,
31
- ButtonImportExcelEmits,
32
- unknown
33
- > {}
34
-
35
- export default ButtonImportExcel;
@@ -1,104 +0,0 @@
1
- import { DefineComponent } from 'vue';
2
- import { MenuItem } from '../menuitem';
3
-
4
- export interface ButtonBulkActionLocaleConfig {
5
- /**
6
- * @example `{length} data selected`
7
- */
8
- currentSelectionMessage?: string;
9
-
10
- /**
11
- * @description Label for when all records have been selected.
12
- * @example 'Select all ({totalRecords} data)' - totalRecords - The total number of records available to select.
13
- */
14
- allRecordSelected?: string;
15
-
16
- /**
17
- * @description Label for the "Select All" option in a bulk action button.
18
- * @example `Select all ({totalRecords} items)` - totalRecords - The total number of records available to select.
19
- */
20
- selectAllRecords?: string;
21
- }
22
-
23
- export interface ButtonBulkActionProps {
24
- /**
25
- * Disable the button.
26
- */
27
- disabled?: boolean;
28
- /**
29
- * An array of data objects to be included in an action.
30
- * Use as 'v-model:selectedData' to automatically reset on Cancel or Apply.
31
- */
32
- selectedData: Record<string, any>[];
33
- /**
34
- * The total selectable data. This is optional when working with dynamic data table,
35
- * just define tableName, the component will handle the rest for you
36
- *
37
- */
38
- totalRecords?: number;
39
- options: MenuItem[];
40
- /**
41
- * Multiple bulk action mounted at the same time will cause unexpected behavior.
42
- *
43
- * You need to set the appropriate id the same with the table-name where the bulkaction used for.
44
- */
45
- tableName?: string;
46
- /**
47
- * Specify the select manue type. Default to overlay-panel
48
- *
49
- * @default overlay-panel
50
- * @default dropdown - for wangsvue-acts
51
- *
52
- * @options dropdown overlay-panel
53
- */
54
- selectMenuType?: 'dropdown' | 'overlay-panel';
55
- /**
56
- * Specify the name/label for selected data.
57
- *
58
- * @example 'Asset(s)' will be displayed as '3 Asset(s) Selected'
59
- * @default 'Data' for all packages
60
- */
61
- naming?: string;
62
- }
63
-
64
- export interface ButtonBulkActionSlots {
65
- /**
66
- * Use additional slot like input field.
67
- * The button Apply will be shown if the selected option use additional slot.
68
- *
69
- * @slotprops selectedOption the current selected option/action. you can do conditional based on this slotprops.
70
- */
71
- addition(selectedOption: MenuItem): () => any;
72
- }
73
-
74
- export type ButtonBulkActionEmits = {
75
- /**
76
- * Emits when Apply button is clicked.
77
- *
78
- * By default, 'command' on MenuItem will be executed.
79
- * With this event, You can do additional actions.
80
- */
81
- 'apply': [];
82
- /**
83
- * Emits when Cancel or Apply button is clicked.
84
- */
85
- 'update:selectedData': [datas: Record<string, unknown>[]];
86
- };
87
-
88
- /**
89
- * **WangsVue - ButtonBulkAction**
90
- *
91
- * _ButtonBulkAction is a component for handling bulk action for multiple data at once._
92
- *
93
- * --- ---
94
- * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
95
- *
96
- * @group buttons
97
- */
98
- declare const ButtonBulkAction: DefineComponent<
99
- ButtonBulkActionProps,
100
- ButtonBulkActionSlots,
101
- ButtonBulkActionEmits
102
- >;
103
-
104
- export default ButtonBulkAction;
@@ -1,26 +0,0 @@
1
- import { DefineComponent } from 'vue';
2
-
3
- export interface ButtonCopyProps {
4
- /**
5
- * Text to be copied.
6
- */
7
- text: string;
8
- }
9
-
10
- /**
11
- * **WangsVue - ButtonCopy**
12
- *
13
- * _ButtonCopy is a component for copying text to the clipboard._
14
- *
15
- * --- ---
16
- * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
17
- *
18
- * @group buttons
19
- */
20
- declare const ButtonCopy: DefineComponent<
21
- ButtonCopyProps,
22
- Record<string, unknown>,
23
- Record<string, unknown>
24
- >;
25
-
26
- export default ButtonCopy;
@@ -1,49 +0,0 @@
1
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers.d';
2
-
3
- export interface ButtonDownloadProps {
4
- fileName: string;
5
- /**
6
- * Text of the button.
7
- */
8
- label?: string;
9
- /**
10
- * Specify which table to be exported.
11
- * When it is not specified, the default name of data table will be used.
12
- *
13
- * @default 'datatable'
14
- */
15
- tableName?: string;
16
- /**
17
- * If you want to download multiple table in 1 excel
18
- */
19
- multiTableNames?: string[];
20
- /**
21
- * Texts below table in downloaded excel
22
- */
23
- additionalTextBelowTable?: (string | string[])[];
24
- }
25
-
26
- /**
27
- * **WangsVue - ButtonDownload**
28
- *
29
- * _Trigger DataTable Export Excel_
30
- *
31
- * [Live Demo](https://fewangsit.github.io/wangsvue/button)
32
- * --- ---
33
- * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
34
- *
35
- * @group Component
36
- */
37
- declare class ButtonDownload extends ClassComponent<
38
- ButtonDownloadProps,
39
- Record<string, unknown>,
40
- Record<string, unknown>
41
- > {}
42
-
43
- declare module '@vue/runtime-core' {
44
- interface GlobalComponents {
45
- ButtonDownload: GlobalComponentConstructor<ButtonDownload>;
46
- }
47
- }
48
-
49
- export default ButtonDownload;
@@ -1,12 +0,0 @@
1
- import { DefineComponent } from 'vue';
2
-
3
- export interface ButtonFilterProps {
4
- /**
5
- * Integrate with datatable with table name
6
- */
7
- tableName?: string;
8
- }
9
-
10
- declare const ButtonFilter: DefineComponent<ButtonFilterProps>;
11
-
12
- export default ButtonFilter;
@@ -1,257 +0,0 @@
1
- import { StyleValue } from 'vue';
2
- import { ComponentHooks } from '../basecomponent';
3
- import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
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
- /**
24
- * Defines valid properties.
25
- */
26
- props: ButtonRadioProps;
27
-
28
- /**
29
- * Defines current inline state.
30
- */
31
- state: ButtonRadioState;
32
-
33
- /**
34
- * Defines current options.
35
- */
36
- context: ButtonRadioContext;
37
-
38
- /**
39
- * Defines valid attributes.
40
- */
41
- attrs: any;
42
-
43
- /**
44
- * Defines parent options.
45
- */
46
- parent: any;
47
-
48
- /**
49
- * Defines passthrough(pt) options in global config.
50
- */
51
- global: object | undefined;
52
- }
53
-
54
- /**
55
- * Custom passthrough(pt) options.
56
- * @see {@link ButtonRadioProps.pt}
57
- */
58
- export interface ButtonRadioPassThroughOptions {
59
- /**
60
- * Used to pass attributes to the root's DOM element.
61
- */
62
- root?: ButtonRadioPassThroughOptionType;
63
-
64
- /**
65
- * Used to pass attributes to the input's DOM element.
66
- */
67
- input?: ButtonRadioPassThroughOptionType;
68
-
69
- /**
70
- * Used to pass attributes to the box's DOM element.
71
- */
72
- box?: ButtonRadioPassThroughOptionType;
73
-
74
- /**
75
- * Used to pass attributes to the icon's DOM element.
76
- */
77
- icon?: ButtonRadioPassThroughOptionType;
78
-
79
- /**
80
- * Used to manage all lifecycle hooks.
81
- * @see {@link BaseComponent.ComponentHooks}
82
- */
83
- hooks?: ComponentHooks;
84
- }
85
-
86
- /**
87
- * Custom passthrough attributes for each DOM elements
88
- */
89
- export interface ButtonRadioPassThroughAttributes {
90
- [key: string]: any;
91
- }
92
-
93
- /**
94
- * Defines current inline state in ButtonRadio component.
95
- */
96
- export interface ButtonRadioState {
97
- [key: string]: any;
98
- }
99
-
100
- /**
101
- * Defines valid properties in ButtonRadio component.
102
- */
103
- export interface ButtonRadioProps {
104
- /**
105
- * The label for the input element
106
- */
107
- label?: string;
108
-
109
- /**
110
- * Value of the input.
111
- */
112
- value?: any;
113
-
114
- /**
115
- * Value binding of the input.
116
- */
117
- modelValue?: any;
118
-
119
- /**
120
- * Name of the input element.
121
- */
122
- name?: string | undefined;
123
-
124
- /**
125
- * Allows to select a boolean value.
126
- * @default false
127
- */
128
- binary?: boolean;
129
-
130
- /**
131
- * When present, it specifies that the component should have invalid state style.
132
- * @defaultValue false
133
- */
134
- invalid?: boolean | undefined;
135
-
136
- /**
137
- * When present, it specifies that the component should be disabled.
138
- * @defaultValue false
139
- */
140
- disabled?: boolean | undefined;
141
-
142
- /**
143
- * Specifies the input variant of the component.
144
- * @defaultValue outlined
145
- */
146
- variant?: 'outlined' | 'filled' | undefined;
147
-
148
- /**
149
- * When present, it specifies that an input field is read-only.
150
- * @default false
151
- */
152
- readonly?: boolean | undefined;
153
-
154
- /**
155
- * Index of the element in tabbing order.
156
- */
157
- tabindex?: number | undefined;
158
-
159
- /**
160
- * Identifier of the underlying input element.
161
- */
162
- inputId?: string | undefined;
163
-
164
- /**
165
- * Inline style of the input field.
166
- */
167
- inputStyle?: StyleValue | undefined;
168
-
169
- /**
170
- * Style class of the input field.
171
- */
172
- inputClass?: string | object | undefined;
173
-
174
- /**
175
- * Tooltip info about the checkbox.
176
- */
177
- tooltip?: string;
178
-
179
- /**
180
- * Tooltip position.
181
- *
182
- * @default 'top'
183
- */
184
- tooltipPos?: 'top' | 'right' | 'left' | 'bottom';
185
- }
186
-
187
- /**
188
- * Defines current options in ButtonRadio component.
189
- */
190
- export interface ButtonRadioContext {
191
- /**
192
- * Current checked state of the item as a boolean.
193
- * @defaultValue false
194
- */
195
- checked: boolean;
196
-
197
- /**
198
- * Current disabled state of the item as a boolean.
199
- * @defaultValue false
200
- */
201
- disabled: boolean;
202
- }
203
-
204
- /**
205
- * Defines valid emits in ButtonRadio component.
206
- */
207
- export type ButtonRadioEmits = {
208
- /**
209
- * Emitted when the value changes.
210
- * @param {*} value - New value.
211
- */
212
- 'update:modelValue': [value: any];
213
-
214
- /**
215
- * Callback to invoke on radio button value change.
216
- * @param {Event} event - Browser event.
217
- */
218
- 'change': [event: Event];
219
-
220
- /**
221
- * Callback to invoke when the component receives focus.
222
- * @param {Event} event - Browser event.
223
- */
224
- 'focus': [event: Event];
225
-
226
- /**
227
- * Callback to invoke when the component loses focus.
228
- * @param {Event} event - Browser event.
229
- */
230
- 'blur': [event: Event];
231
- };
232
-
233
- /**
234
- * **WangsVue - ButtonRadio**
235
- *
236
- * _ButtonRadio is an extension to standard radio button element with theming._
237
- *
238
- * [Live Demo](https://fewangsit.github.io/wangsvue/buttonradio)
239
- * --- ---
240
- * ![WangsVue](https://www.wangs.id/wp-content/uploads/2023/12/cropped-Logo_Wangsid-removebg-preview-192x192.png)
241
- *
242
- * @group Component
243
- *
244
- */
245
- declare class ButtonRadio extends ClassComponent<
246
- ButtonRadioProps,
247
- unknown,
248
- ButtonRadioEmits
249
- > {}
250
-
251
- declare module 'vue' {
252
- export interface GlobalComponents {
253
- ButtonRadio: GlobalComponentConstructor<ButtonRadio>;
254
- }
255
- }
256
-
257
- export default ButtonRadio;