@fewangsit/wangsvue-fats 1.0.0-alpha.33 → 1.0.0-alpha.35
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.
- package/components/animation/Animation.vue.d.ts +6 -6
- package/components/approverinfo/ApproverInfo.vue.d.ts +36 -36
- package/components/assetinfo/AssetInfo.vue.d.ts +22 -18
- package/components/badge/Badge.vue.d.ts +46 -46
- package/components/badgegroup/BadgeGroup.vue.d.ts +38 -38
- package/components/basecomponent/index.d.ts +15 -15
- package/components/basetree/BaseTree.vue.d.ts +458 -458
- package/components/basetree/TreeNode.vue.d.ts +25 -25
- package/components/breadcrumb/Breadcrumb.vue.d.ts +7 -7
- package/components/button/Button.vue.d.ts +142 -147
- package/components/buttonImportExcel/ButtonImportExcel.vue.d.ts +35 -0
- package/components/buttonbulkaction/ButtonBulkAction.vue.d.ts +73 -73
- package/components/buttoncopy/ButtonCopy.vue.d.ts +7 -7
- package/components/buttondownload/ButtonDownload.vue.d.ts +26 -26
- package/components/buttonfilter/ButtonFilter.vue.d.ts +4 -4
- package/components/buttonradio/ButtonRadio.vue.d.ts +189 -189
- package/components/buttonscan/ButtonScan.vue.d.ts +154 -154
- package/components/buttonsearch/ButtonSearch.vue.d.ts +13 -13
- package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +164 -164
- package/components/buttonsplit/ButtonSplit.vue.d.ts +350 -0
- package/components/buttonsync/ButtonSync.vue.d.ts +10 -10
- package/components/buttontoggle/ButtonToggle.vue.d.ts +4 -4
- package/components/buttonviewlog/ButtonViewLog.vue.d.ts +7 -6
- package/components/calendar/Calendar.vue.d.ts +469 -469
- package/components/card/Card.vue.d.ts +82 -82
- package/components/checkbox/Checkbox.vue.d.ts +245 -245
- package/components/customcolumn/CustomColumn.vue.d.ts +21 -21
- package/components/datatable/DataTable.vue.d.ts +595 -595
- package/components/dialog/Dialog.vue.d.ts +367 -367
- package/components/dialogconfirm/DialogConfirm.vue.d.ts +117 -117
- package/components/dialogform/DialogForm.vue.d.ts +288 -288
- package/components/dialogselecttree/DialogSelectTree.vue.d.ts +98 -98
- package/components/dropdown/Dropdown.vue.d.ts +226 -226
- package/components/editor/Editor.vue.d.ts +156 -156
- package/components/fieldwrapper/FieldWrapper.vue.d.ts +48 -48
- package/components/fileupload/FileUpload.vue.d.ts +132 -132
- package/components/filtercontainer/FilterContainer.vue.d.ts +116 -113
- package/components/form/Form.vue.d.ts +258 -258
- package/components/icon/Icon.vue.d.ts +235 -235
- package/components/image/Image.vue.d.ts +306 -306
- package/components/imagecompressor/ImageCompressor.vue.d.ts +186 -186
- package/components/index.d.ts +57 -57
- package/components/inputbadge/InputBadge.vue.d.ts +90 -90
- package/components/inputcurrency/InputCurrency.vue.d.ts +126 -126
- package/components/inputcurrency/helpers/currency.helper.d.ts +3 -3
- package/components/inputnumber/InputNumber.vue.d.ts +245 -245
- package/components/inputpassword/InputPassword.vue.d.ts +19 -19
- package/components/inputphonenumber/InputPhoneNumber.vue.d.ts +68 -68
- package/components/inputrangenumber/InputRangeNumber.vue.d.ts +88 -88
- package/components/inputsearch/InputSearch.vue.d.ts +15 -11
- package/components/inputtext/InputText.vue.d.ts +281 -281
- package/components/inputurl/InputURL.vue.d.ts +9 -6
- package/components/invisiblefield/InvisibleField.vue.d.ts +18 -18
- package/components/languagedropdown/LanguageDropdown.vue.d.ts +32 -0
- package/components/litedropdown/LiteDropdown.vue.d.ts +64 -64
- package/components/loading/Loading.vue.d.ts +5 -5
- package/components/loading/store/loading.store.d.ts +3 -3
- package/components/menu/Menu.vue.d.ts +282 -282
- package/components/menuitem/index.d.ts +84 -84
- package/components/multiselect/MultiSelect.vue.d.ts +161 -161
- package/components/overlaypanel/OverlayPanel.vue.d.ts +207 -207
- package/components/passthrough/index.d.ts +8 -8
- package/components/tabmenu/TabMenu.vue.d.ts +185 -185
- package/components/textarea/Textarea.vue.d.ts +131 -131
- package/components/timeline/Timeline.vue.d.ts +60 -60
- package/components/toast/Toast.vue.d.ts +265 -265
- package/components/toggleswitch/ToggleSwitch.vue.d.ts +211 -211
- package/components/tree/Tree.vue.d.ts +116 -116
- package/components/tree/helpers/filterNodeKeys.helper.d.ts +4 -4
- package/components/tree/helpers/flattenTreeNodeChildren.helper.d.ts +1 -1
- package/components/treesearchinput/TreeSearchInput.vue.d.ts +16 -0
- package/components/ts-helpers.d.ts +41 -43
- package/components/username/UserName.vue.d.ts +71 -71
- package/components/userwithicon/UserWithIcon.vue.d.ts +9 -8
- package/directives/focus.d.ts +1 -1
- package/event-bus/index.d.ts +51 -51
- package/event-bus/mitt.d.ts +21 -24
- package/package.json +8 -4
- package/plugins/WangsVue.d.ts +226 -226
- package/plugins/formValidation.d.ts +11 -11
- package/plugins/i18n-extension.d.ts +1 -1
- package/plugins/i18n.d.ts +80 -80
- package/utils/date.util.d.ts +53 -53
- package/utils/index.d.ts +2 -28
- package/utils/listenSidebarChanges.util.d.ts +9 -9
- package/utils/object.util.d.ts +8 -8
- package/utils/role.util.d.ts +43 -44
- package/utils/toast.util.d.ts +78 -78
- package/components/buttonscan/helpers/getErrorCode.helper.d.ts +0 -3
- package/components/buttonscan/helpers/index.d.ts +0 -1
- package/components/buttonscan/workers/scanner.worker.d.ts +0 -1
- package/components/calendar/BaseCalendar.vue.d.ts +0 -127
- package/components/customcolumn/ColumnList.vue.d.ts +0 -47
- package/components/customcolumn/helpers/setVisibilityColumn.helper.d.ts +0 -16
- package/components/datatable/MultiRow.vue.d.ts +0 -36
- package/components/datatable/helpers/adjustMenuPosition.helper.d.ts +0 -1
- package/components/datatable/helpers/filter.helper.d.ts +0 -38
- package/components/datatable/helpers/index.d.ts +0 -6
- package/components/datatable/helpers/readConfig.helper.d.ts +0 -5
- package/components/datatable/store/dataTable.store.d.ts +0 -25
- package/components/editor/CodeSnippetAdapter.vue.d.ts +0 -152
- package/components/editor/EditorButton.vue.d.ts +0 -35
- package/components/editor/MentionList.vue.d.ts +0 -49
- package/components/editor/MentionSection.vue.d.ts +0 -152
- package/components/editor/codeSnippetExtension.d.ts +0 -3
- package/components/editor/mentionSectionExtension.d.ts +0 -3
- package/components/editor/suggestion.d.ts +0 -2
- package/components/filtercontainer/helpers/applyFilter.helper.d.ts +0 -14
- package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +0 -7
- package/components/filtercontainer/helpers/getOption.helper.d.ts +0 -12
- package/components/imagecompressor/BackgroundImageCropper.vue.d.ts +0 -59
- package/components/imagecompressor/ImageInputInfo.vue.d.ts +0 -55
- package/components/inputphonenumber/helpers/getUserLocation.helper.d.ts +0 -8
- package/components/menu/helpers/filterMenu.helper.d.ts +0 -15
- package/components/menu/helpers/index.d.ts +0 -1
- package/components/menuitem/MenuItem.vue +0 -70
- package/components/menuitem/MenuItem.vue.d.ts +0 -39
- package/components/timeline/TimelineContentByType.vue.d.ts +0 -64
- package/components/tree/helpers/index.d.ts +0 -3
- package/loading-page-BrQattYE.js +0 -1
- package/loading-page-CgfbWppy.js +0 -1
- package/loading-page-CoC9UhfC.js +0 -4
- package/loading-page-CoXtqoc9.js +0 -4
- package/loading-page-DbLuqCHa.js +0 -1
- package/loading-page-f8D03l3G.js +0 -4
- package/loading-plane-CgfbWppy.js +0 -1
- package/loading-plane-CoXtqoc9.js +0 -4
- package/loading-table-Bdr9ZhtP.js +0 -1
- package/loading-table-ByUoWqUo.js +0 -4
- package/loading-table-BygEMzFM.js +0 -4
- package/loading-table-BzrSQlA0.js +0 -1
- package/loading-table-D9bw9OcI.js +0 -4
- package/loading-table-chOgXi94.js +0 -1
- package/no-data-CTKux8RI.js +0 -4
- package/no-data-Cgze_Rvp.js +0 -1
- package/no-data-DLHO1L_u.js +0 -4
- package/no-data-Dep79CBh.js +0 -1
- package/no-data-g0dJCy2p.js +0 -4
- package/no-data-y1X5WtcQ.js +0 -1
- package/style.css +0 -1
- package/utils/addAttachment.util.d.ts +0 -59
- package/utils/exportToExcel.util.d.ts +0 -20
- package/utils/filterOptions.util.d.ts +0 -5
- package/utils/genPlaceholder.util.d.ts +0 -13
- package/utils/getAttachmentIcon.util.d.ts +0 -8
- package/utils/mergePropsWithDefaults.util.d.ts +0 -23
- package/utils/textFormatter.util.d.ts +0 -29
- package/wangsvue-fats.es.js +0 -123730
- package/wangsvue-fats.system.js +0 -478
package/utils/toast.util.d.ts
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
1
|
import { WangsIcons } from '../components/icon/Icon.vue.d';
|
|
2
2
|
export type ToastSeverity = 'success' | 'error' | 'info';
|
|
3
3
|
export interface ToastParams {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
4
|
+
/**
|
|
5
|
+
* The main message to display in the toast. Will be formatted based on template message.
|
|
6
|
+
*/
|
|
7
|
+
message: string;
|
|
8
|
+
/**
|
|
9
|
+
* Indicates whether the message is customized and does not follow the default message template.
|
|
10
|
+
* If true, custom formatting will be applied.
|
|
11
|
+
*/
|
|
12
|
+
customMessage?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The severity level of the toast message.
|
|
15
|
+
* Can be 'success', 'error', or 'info'.
|
|
16
|
+
*/
|
|
17
|
+
severity?: ToastSeverity;
|
|
18
|
+
/**
|
|
19
|
+
* The icon to display in the toast.
|
|
20
|
+
*/
|
|
21
|
+
icon?: WangsIcons;
|
|
22
|
+
/**
|
|
23
|
+
* The custom CSS class to apply to the icon.
|
|
24
|
+
*/
|
|
25
|
+
iconClass?: any;
|
|
26
|
+
/**
|
|
27
|
+
* The error object from a catch statement, used to provide additional details for error toasts.
|
|
28
|
+
* Accepts any type of error object.
|
|
29
|
+
*/
|
|
30
|
+
error?: unknown;
|
|
31
|
+
/**
|
|
32
|
+
* The duration for which the toast will be displayed, in milliseconds.
|
|
33
|
+
* Set to 0 to show the message infinitely.
|
|
34
|
+
*
|
|
35
|
+
* @default 3000 - 3 seconds
|
|
36
|
+
*/
|
|
37
|
+
life?: number;
|
|
38
|
+
/**
|
|
39
|
+
* The name of the message group to which this toast belongs.
|
|
40
|
+
*/
|
|
41
|
+
group?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Unique identifier of the toast message.
|
|
44
|
+
*/
|
|
45
|
+
messageId?: string;
|
|
46
46
|
}
|
|
47
47
|
export interface ToastMethod {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
add(params: ToastParams): void;
|
|
49
|
+
/**
|
|
50
|
+
* Clears the messages that belongs to the group.
|
|
51
|
+
* @param {string} group - Name of the message group.
|
|
52
|
+
*/
|
|
53
|
+
removeGroup(group: string): void;
|
|
54
|
+
removeAllGroups(): void;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* Configuration options for the `useToast` hook.
|
|
58
58
|
*/
|
|
59
59
|
export interface UseToastConfig {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
60
|
+
/**
|
|
61
|
+
* Default message templates for each severity level.
|
|
62
|
+
* Keys represent the severity, and values are the template strings.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* {
|
|
66
|
+
* severity: {
|
|
67
|
+
* success: 'Success, {message}',
|
|
68
|
+
* error: 'Error, {message} {additionalMessage}',
|
|
69
|
+
* info: 'Info, {message} {additionalMessage}',
|
|
70
|
+
* },
|
|
71
|
+
* additionalMessage: ' Silahkan cek kembali koneksi Anda.'
|
|
72
|
+
* }
|
|
73
|
+
*/
|
|
74
|
+
template?: {
|
|
75
|
+
severity?: Record<string, string>;
|
|
76
|
+
additionalMessage?: string;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Icons for each severity level.
|
|
80
|
+
* Keys represent the severity, and values are the corresponding icon identifiers.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* {
|
|
84
|
+
* success: 'emotion-happy-fill',
|
|
85
|
+
* error: 'emotion-unhappy-fill',
|
|
86
|
+
* }
|
|
87
|
+
*/
|
|
88
|
+
icons?: Record<string, WangsIcons>;
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
91
|
* Hook to create and manage toast notifications.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as getErrorCode } from './getErrorCode.helper';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { CalendarProps } from './Calendar.vue.d';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
incrementicon?(_: {}): any;
|
|
4
|
-
incrementicon?(_: {}): any;
|
|
5
|
-
decrementicon?(_: {}): any;
|
|
6
|
-
decrementicon?(_: {}): any;
|
|
7
|
-
};
|
|
8
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
9
|
-
__VLS_WithDefaults<
|
|
10
|
-
__VLS_TypePropsToOption<CalendarProps>,
|
|
11
|
-
{
|
|
12
|
-
selectionMode: string;
|
|
13
|
-
view: string;
|
|
14
|
-
mode: string;
|
|
15
|
-
showYear: boolean;
|
|
16
|
-
showOptionalText: any;
|
|
17
|
-
valueFormat: string;
|
|
18
|
-
hideOnRangeSelection: boolean;
|
|
19
|
-
hourFormat: string;
|
|
20
|
-
dateFormat: string;
|
|
21
|
-
stepHour: number;
|
|
22
|
-
stepMinute: number;
|
|
23
|
-
timeSeparator: string;
|
|
24
|
-
exactSelection: boolean;
|
|
25
|
-
}
|
|
26
|
-
>,
|
|
27
|
-
{},
|
|
28
|
-
unknown,
|
|
29
|
-
{},
|
|
30
|
-
{},
|
|
31
|
-
import('vue').ComponentOptionsMixin,
|
|
32
|
-
import('vue').ComponentOptionsMixin,
|
|
33
|
-
{
|
|
34
|
-
'update:modelValue': (date: Date | Date[]) => void;
|
|
35
|
-
'update:epochTimeMillis': (millis?: number | number[]) => void;
|
|
36
|
-
'monthChange': (
|
|
37
|
-
event: import('./Calendar.vue.d').CalendarMonthChangeEvent,
|
|
38
|
-
) => void;
|
|
39
|
-
'yearChange': (
|
|
40
|
-
event: import('./Calendar.vue.d').CalendarYearChangeEvent,
|
|
41
|
-
) => void;
|
|
42
|
-
'dateSelect': (date: Date | Date[]) => void;
|
|
43
|
-
},
|
|
44
|
-
string,
|
|
45
|
-
import('vue').PublicProps,
|
|
46
|
-
Readonly<
|
|
47
|
-
import('vue').ExtractPropTypes<
|
|
48
|
-
__VLS_WithDefaults<
|
|
49
|
-
__VLS_TypePropsToOption<CalendarProps>,
|
|
50
|
-
{
|
|
51
|
-
selectionMode: string;
|
|
52
|
-
view: string;
|
|
53
|
-
mode: string;
|
|
54
|
-
showYear: boolean;
|
|
55
|
-
showOptionalText: any;
|
|
56
|
-
valueFormat: string;
|
|
57
|
-
hideOnRangeSelection: boolean;
|
|
58
|
-
hourFormat: string;
|
|
59
|
-
dateFormat: string;
|
|
60
|
-
stepHour: number;
|
|
61
|
-
stepMinute: number;
|
|
62
|
-
timeSeparator: string;
|
|
63
|
-
exactSelection: boolean;
|
|
64
|
-
}
|
|
65
|
-
>
|
|
66
|
-
>
|
|
67
|
-
> & {
|
|
68
|
-
'onUpdate:modelValue'?: (date: Date | Date[]) => any;
|
|
69
|
-
'onUpdate:epochTimeMillis'?: (millis?: number | number[]) => any;
|
|
70
|
-
'onMonthChange'?: (
|
|
71
|
-
event: import('./Calendar.vue.d').CalendarMonthChangeEvent,
|
|
72
|
-
) => any;
|
|
73
|
-
'onYearChange'?: (
|
|
74
|
-
event: import('./Calendar.vue.d').CalendarYearChangeEvent,
|
|
75
|
-
) => any;
|
|
76
|
-
'onDateSelect'?: (date: Date | Date[]) => any;
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
dateFormat: string | undefined;
|
|
80
|
-
showOptionalText: boolean;
|
|
81
|
-
mode: 'range' | 'single';
|
|
82
|
-
view: 'date' | 'month' | 'year' | undefined;
|
|
83
|
-
selectionMode: 'range' | 'single';
|
|
84
|
-
valueFormat: 'date' | 'millis';
|
|
85
|
-
hideOnRangeSelection: boolean | undefined;
|
|
86
|
-
showYear: boolean;
|
|
87
|
-
hourFormat: '12' | '24' | undefined;
|
|
88
|
-
timeSeparator: string | undefined;
|
|
89
|
-
stepHour: number | undefined;
|
|
90
|
-
stepMinute: number | undefined;
|
|
91
|
-
exactSelection: boolean;
|
|
92
|
-
},
|
|
93
|
-
{}
|
|
94
|
-
>;
|
|
95
|
-
declare const _default: __VLS_WithTemplateSlots<
|
|
96
|
-
typeof __VLS_component,
|
|
97
|
-
ReturnType<typeof __VLS_template>
|
|
98
|
-
>;
|
|
99
|
-
export default _default;
|
|
100
|
-
type __VLS_WithDefaults<P, D> = {
|
|
101
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
102
|
-
? __VLS_Prettify<
|
|
103
|
-
P[K] & {
|
|
104
|
-
default: D[K];
|
|
105
|
-
}
|
|
106
|
-
>
|
|
107
|
-
: P[K];
|
|
108
|
-
};
|
|
109
|
-
type __VLS_Prettify<T> = {
|
|
110
|
-
[K in keyof T]: T[K];
|
|
111
|
-
} & {};
|
|
112
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
113
|
-
new (): {
|
|
114
|
-
$slots: S;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
118
|
-
type __VLS_TypePropsToOption<T> = {
|
|
119
|
-
[K in keyof T]-?: {} extends Pick<T, K>
|
|
120
|
-
? {
|
|
121
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
122
|
-
}
|
|
123
|
-
: {
|
|
124
|
-
type: import('vue').PropType<T[K]>;
|
|
125
|
-
required: true;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { CustomColumnProps, DragableColumn } from './CustomColumn.vue.d';
|
|
2
|
-
import { TableColumn } from '../datatable/DataTable.vue.d';
|
|
3
|
-
declare let __VLS_typeProps: CustomColumnProps & {
|
|
4
|
-
savedColumns: DragableColumn[];
|
|
5
|
-
};
|
|
6
|
-
type __VLS_PublicProps = {
|
|
7
|
-
modelValue?: TableColumn[];
|
|
8
|
-
} & typeof __VLS_typeProps;
|
|
9
|
-
declare const _default: import('vue').DefineComponent<
|
|
10
|
-
__VLS_TypePropsToOption<__VLS_PublicProps>,
|
|
11
|
-
{
|
|
12
|
-
setColumnVisibilityConfig: () => Promise<void>;
|
|
13
|
-
resetToDefault: () => void;
|
|
14
|
-
updateVisibleColumnsModel: () => void;
|
|
15
|
-
},
|
|
16
|
-
unknown,
|
|
17
|
-
{},
|
|
18
|
-
{},
|
|
19
|
-
import('vue').ComponentOptionsMixin,
|
|
20
|
-
import('vue').ComponentOptionsMixin,
|
|
21
|
-
{
|
|
22
|
-
'update:modelValue': (modelValue: TableColumn[]) => void;
|
|
23
|
-
},
|
|
24
|
-
string,
|
|
25
|
-
import('vue').PublicProps,
|
|
26
|
-
Readonly<
|
|
27
|
-
import('vue').ExtractPropTypes<
|
|
28
|
-
__VLS_TypePropsToOption<__VLS_PublicProps>
|
|
29
|
-
>
|
|
30
|
-
> & {
|
|
31
|
-
'onUpdate:modelValue'?: (modelValue: TableColumn[]) => any;
|
|
32
|
-
},
|
|
33
|
-
{},
|
|
34
|
-
{}
|
|
35
|
-
>;
|
|
36
|
-
export default _default;
|
|
37
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
-
type __VLS_TypePropsToOption<T> = {
|
|
39
|
-
[K in keyof T]-?: {} extends Pick<T, K>
|
|
40
|
-
? {
|
|
41
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
42
|
-
}
|
|
43
|
-
: {
|
|
44
|
-
type: import('vue').PropType<T[K]>;
|
|
45
|
-
required: true;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TableColumn } from '../../datatable/DataTable.vue.d';
|
|
2
|
-
import { DragableColumn } from '../CustomColumn.vue.d';
|
|
3
|
-
/**
|
|
4
|
-
* Updates the `visible` property of each table column based on the `maxColumn` limit
|
|
5
|
-
* and how many columns are currently visible. Only columns with `checkedByDefault !== false`
|
|
6
|
-
* will be considered for visibility.
|
|
7
|
-
*
|
|
8
|
-
* @param column - Array of table column definitions.
|
|
9
|
-
* @param maxColumn - Maximum number of columns that should be visible at once.
|
|
10
|
-
* @param currentVisibleColumnsLength - The current number of columns that are visible.
|
|
11
|
-
*/
|
|
12
|
-
export declare const setVisibilityByMaxColumn: (
|
|
13
|
-
column: TableColumn[],
|
|
14
|
-
maxColumn: number,
|
|
15
|
-
currentVisibleColumnsLength: number,
|
|
16
|
-
) => DragableColumn[];
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { MultiRowAttribute } from './DataTable.vue.d';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<
|
|
3
|
-
__VLS_TypePropsToOption<{
|
|
4
|
-
attributes: MultiRowAttribute[];
|
|
5
|
-
}>,
|
|
6
|
-
{},
|
|
7
|
-
unknown,
|
|
8
|
-
{},
|
|
9
|
-
{},
|
|
10
|
-
import('vue').ComponentOptionsMixin,
|
|
11
|
-
import('vue').ComponentOptionsMixin,
|
|
12
|
-
{},
|
|
13
|
-
string,
|
|
14
|
-
import('vue').PublicProps,
|
|
15
|
-
Readonly<
|
|
16
|
-
import('vue').ExtractPropTypes<
|
|
17
|
-
__VLS_TypePropsToOption<{
|
|
18
|
-
attributes: MultiRowAttribute[];
|
|
19
|
-
}>
|
|
20
|
-
>
|
|
21
|
-
>,
|
|
22
|
-
{},
|
|
23
|
-
{}
|
|
24
|
-
>;
|
|
25
|
-
export default _default;
|
|
26
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
-
type __VLS_TypePropsToOption<T> = {
|
|
28
|
-
[K in keyof T]-?: {} extends Pick<T, K>
|
|
29
|
-
? {
|
|
30
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
-
}
|
|
32
|
-
: {
|
|
33
|
-
type: import('vue').PropType<T[K]>;
|
|
34
|
-
required: true;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function (event: Event): void;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export declare const FilterMatchMode: {
|
|
2
|
-
CONTAINS: string;
|
|
3
|
-
EQUALS: string;
|
|
4
|
-
IN: string;
|
|
5
|
-
LESS_THAN: string;
|
|
6
|
-
LESS_THAN_OR_EQUAL_TO: string;
|
|
7
|
-
GREATER_THAN: string;
|
|
8
|
-
GREATER_THAN_OR_EQUAL_TO: string;
|
|
9
|
-
DATE_BETWEEN: string;
|
|
10
|
-
DATE_BEFORE: string;
|
|
11
|
-
DATE_AFTER: string;
|
|
12
|
-
};
|
|
13
|
-
type FilterFunction = (
|
|
14
|
-
value: any,
|
|
15
|
-
filter: any,
|
|
16
|
-
filterLocale?: string,
|
|
17
|
-
) => boolean;
|
|
18
|
-
declare class FilterService {
|
|
19
|
-
private readonly filters;
|
|
20
|
-
constructor();
|
|
21
|
-
filter(
|
|
22
|
-
value: any[],
|
|
23
|
-
fields: string[],
|
|
24
|
-
filterValue: any,
|
|
25
|
-
filterMatchMode: string,
|
|
26
|
-
filterLocale?: string,
|
|
27
|
-
): any[];
|
|
28
|
-
register(rule: string, fn: FilterFunction): void;
|
|
29
|
-
private contains;
|
|
30
|
-
private dateBetween;
|
|
31
|
-
private in;
|
|
32
|
-
private lt;
|
|
33
|
-
private lte;
|
|
34
|
-
private gt;
|
|
35
|
-
private gte;
|
|
36
|
-
}
|
|
37
|
-
declare const _default: FilterService;
|
|
38
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface DataTableStore {
|
|
2
|
-
/**
|
|
3
|
-
* Get the config object from the store.
|
|
4
|
-
*/
|
|
5
|
-
config: DataTableConfig;
|
|
6
|
-
/**
|
|
7
|
-
* Update config for specific Table.
|
|
8
|
-
*
|
|
9
|
-
* @param id The table ID
|
|
10
|
-
* @param columnsConfig The columns configuration
|
|
11
|
-
*/
|
|
12
|
-
setConfig: (
|
|
13
|
-
id: string,
|
|
14
|
-
columnsConfig: DataTableColumnConfig[],
|
|
15
|
-
) => Promise<void>;
|
|
16
|
-
}
|
|
17
|
-
export type DataTableConfig = Record<string, DataTableColumnConfig[]>;
|
|
18
|
-
export interface DataTableColumnConfig {
|
|
19
|
-
field: string;
|
|
20
|
-
width: number | string;
|
|
21
|
-
fixed: boolean;
|
|
22
|
-
visible: boolean;
|
|
23
|
-
}
|
|
24
|
-
declare const useDataTableStore: () => Promise<DataTableStore>;
|
|
25
|
-
export default useDataTableStore;
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<
|
|
2
|
-
{
|
|
3
|
-
editor: {
|
|
4
|
-
type: import('vue').PropType<
|
|
5
|
-
import('@tiptap/vue-3').NodeViewProps['editor']
|
|
6
|
-
>;
|
|
7
|
-
required: true;
|
|
8
|
-
};
|
|
9
|
-
node: {
|
|
10
|
-
type: import('vue').PropType<
|
|
11
|
-
import('@tiptap/vue-3').NodeViewProps['node']
|
|
12
|
-
>;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
decorations: {
|
|
16
|
-
type: import('vue').PropType<
|
|
17
|
-
import('@tiptap/vue-3').NodeViewProps['decorations']
|
|
18
|
-
>;
|
|
19
|
-
required: true;
|
|
20
|
-
};
|
|
21
|
-
selected: {
|
|
22
|
-
type: import('vue').PropType<
|
|
23
|
-
import('@tiptap/vue-3').NodeViewProps['selected']
|
|
24
|
-
>;
|
|
25
|
-
required: true;
|
|
26
|
-
};
|
|
27
|
-
extension: {
|
|
28
|
-
type: import('vue').PropType<
|
|
29
|
-
import('@tiptap/vue-3').NodeViewProps['extension']
|
|
30
|
-
>;
|
|
31
|
-
required: true;
|
|
32
|
-
};
|
|
33
|
-
getPos: {
|
|
34
|
-
type: import('vue').PropType<
|
|
35
|
-
import('@tiptap/vue-3').NodeViewProps['getPos']
|
|
36
|
-
>;
|
|
37
|
-
required: true;
|
|
38
|
-
};
|
|
39
|
-
updateAttributes: {
|
|
40
|
-
type: import('vue').PropType<
|
|
41
|
-
import('@tiptap/vue-3').NodeViewProps['updateAttributes']
|
|
42
|
-
>;
|
|
43
|
-
required: true;
|
|
44
|
-
};
|
|
45
|
-
deleteNode: {
|
|
46
|
-
type: import('vue').PropType<
|
|
47
|
-
import('@tiptap/vue-3').NodeViewProps['deleteNode']
|
|
48
|
-
>;
|
|
49
|
-
required: true;
|
|
50
|
-
};
|
|
51
|
-
view: {
|
|
52
|
-
type: import('vue').PropType<
|
|
53
|
-
import('@tiptap/vue-3').NodeViewProps['view']
|
|
54
|
-
>;
|
|
55
|
-
required: true;
|
|
56
|
-
};
|
|
57
|
-
innerDecorations: {
|
|
58
|
-
type: import('vue').PropType<
|
|
59
|
-
import('@tiptap/vue-3').NodeViewProps['innerDecorations']
|
|
60
|
-
>;
|
|
61
|
-
required: true;
|
|
62
|
-
};
|
|
63
|
-
HTMLAttributes: {
|
|
64
|
-
type: import('vue').PropType<
|
|
65
|
-
import('@tiptap/vue-3').NodeViewProps['HTMLAttributes']
|
|
66
|
-
>;
|
|
67
|
-
required: true;
|
|
68
|
-
};
|
|
69
|
-
},
|
|
70
|
-
{},
|
|
71
|
-
unknown,
|
|
72
|
-
{},
|
|
73
|
-
{},
|
|
74
|
-
import('vue').ComponentOptionsMixin,
|
|
75
|
-
import('vue').ComponentOptionsMixin,
|
|
76
|
-
{},
|
|
77
|
-
string,
|
|
78
|
-
import('vue').PublicProps,
|
|
79
|
-
Readonly<
|
|
80
|
-
import('vue').ExtractPropTypes<{
|
|
81
|
-
editor: {
|
|
82
|
-
type: import('vue').PropType<
|
|
83
|
-
import('@tiptap/vue-3').NodeViewProps['editor']
|
|
84
|
-
>;
|
|
85
|
-
required: true;
|
|
86
|
-
};
|
|
87
|
-
node: {
|
|
88
|
-
type: import('vue').PropType<
|
|
89
|
-
import('@tiptap/vue-3').NodeViewProps['node']
|
|
90
|
-
>;
|
|
91
|
-
required: true;
|
|
92
|
-
};
|
|
93
|
-
decorations: {
|
|
94
|
-
type: import('vue').PropType<
|
|
95
|
-
import('@tiptap/vue-3').NodeViewProps['decorations']
|
|
96
|
-
>;
|
|
97
|
-
required: true;
|
|
98
|
-
};
|
|
99
|
-
selected: {
|
|
100
|
-
type: import('vue').PropType<
|
|
101
|
-
import('@tiptap/vue-3').NodeViewProps['selected']
|
|
102
|
-
>;
|
|
103
|
-
required: true;
|
|
104
|
-
};
|
|
105
|
-
extension: {
|
|
106
|
-
type: import('vue').PropType<
|
|
107
|
-
import('@tiptap/vue-3').NodeViewProps['extension']
|
|
108
|
-
>;
|
|
109
|
-
required: true;
|
|
110
|
-
};
|
|
111
|
-
getPos: {
|
|
112
|
-
type: import('vue').PropType<
|
|
113
|
-
import('@tiptap/vue-3').NodeViewProps['getPos']
|
|
114
|
-
>;
|
|
115
|
-
required: true;
|
|
116
|
-
};
|
|
117
|
-
updateAttributes: {
|
|
118
|
-
type: import('vue').PropType<
|
|
119
|
-
import('@tiptap/vue-3').NodeViewProps['updateAttributes']
|
|
120
|
-
>;
|
|
121
|
-
required: true;
|
|
122
|
-
};
|
|
123
|
-
deleteNode: {
|
|
124
|
-
type: import('vue').PropType<
|
|
125
|
-
import('@tiptap/vue-3').NodeViewProps['deleteNode']
|
|
126
|
-
>;
|
|
127
|
-
required: true;
|
|
128
|
-
};
|
|
129
|
-
view: {
|
|
130
|
-
type: import('vue').PropType<
|
|
131
|
-
import('@tiptap/vue-3').NodeViewProps['view']
|
|
132
|
-
>;
|
|
133
|
-
required: true;
|
|
134
|
-
};
|
|
135
|
-
innerDecorations: {
|
|
136
|
-
type: import('vue').PropType<
|
|
137
|
-
import('@tiptap/vue-3').NodeViewProps['innerDecorations']
|
|
138
|
-
>;
|
|
139
|
-
required: true;
|
|
140
|
-
};
|
|
141
|
-
HTMLAttributes: {
|
|
142
|
-
type: import('vue').PropType<
|
|
143
|
-
import('@tiptap/vue-3').NodeViewProps['HTMLAttributes']
|
|
144
|
-
>;
|
|
145
|
-
required: true;
|
|
146
|
-
};
|
|
147
|
-
}>
|
|
148
|
-
>,
|
|
149
|
-
{},
|
|
150
|
-
{}
|
|
151
|
-
>;
|
|
152
|
-
export default _default;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<
|
|
2
|
-
__VLS_TypePropsToOption<{
|
|
3
|
-
classButton?: string[];
|
|
4
|
-
}>,
|
|
5
|
-
{},
|
|
6
|
-
unknown,
|
|
7
|
-
{},
|
|
8
|
-
{},
|
|
9
|
-
import('vue').ComponentOptionsMixin,
|
|
10
|
-
import('vue').ComponentOptionsMixin,
|
|
11
|
-
{},
|
|
12
|
-
string,
|
|
13
|
-
import('vue').PublicProps,
|
|
14
|
-
Readonly<
|
|
15
|
-
import('vue').ExtractPropTypes<
|
|
16
|
-
__VLS_TypePropsToOption<{
|
|
17
|
-
classButton?: string[];
|
|
18
|
-
}>
|
|
19
|
-
>
|
|
20
|
-
>,
|
|
21
|
-
{},
|
|
22
|
-
{}
|
|
23
|
-
>;
|
|
24
|
-
export default _default;
|
|
25
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
-
type __VLS_TypePropsToOption<T> = {
|
|
27
|
-
[K in keyof T]-?: {} extends Pick<T, K>
|
|
28
|
-
? {
|
|
29
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
-
}
|
|
31
|
-
: {
|
|
32
|
-
type: import('vue').PropType<T[K]>;
|
|
33
|
-
required: true;
|
|
34
|
-
};
|
|
35
|
-
};
|