dolphin-components 3.1.15-beta.3 → 3.1.15-beta.4
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/dist/index.d.ts +602 -2
- package/package.json +3 -2
- package/dist/src/Directives/InputCurrency.d.ts +0 -9
- package/dist/src/Directives/InputError.d.ts +0 -5
- package/dist/src/Directives/InputSelect.d.ts +0 -4
- package/dist/src/Directives/ScrollbarAnimateDropdown.d.ts +0 -9
- package/dist/src/Directives/ScrollbarScroll.d.ts +0 -5
- package/dist/src/Directives/Tooltip/Tooltip.d.ts +0 -21
- package/dist/src/Directives/Tooltip/Tooltip.vue.d.ts +0 -10
- package/dist/src/Plugin/CurrencyFormatter.d.ts +0 -9
- package/dist/src/Plugin/FocusNext.d.ts +0 -6
- package/dist/src/Plugin/NumberToWords.d.ts +0 -6
- package/dist/src/Plugin/Toast.d.ts +0 -12
- package/dist/src/Services/CreateFormData.d.ts +0 -1
- package/dist/src/Services/Debounce.d.ts +0 -6
- package/dist/src/Services/ShortcutKey.d.ts +0 -4
- package/dist/src/Services/Websocket.d.ts +0 -13
- package/dist/src/components/ContentLayout.vue.d.ts +0 -27
- package/dist/src/components/DateRange.vue.d.ts +0 -18
- package/dist/src/components/DateSelector.vue.d.ts +0 -17
- package/dist/src/components/FilePreview.vue.d.ts +0 -19
- package/dist/src/components/FileUpload.vue.d.ts +0 -15
- package/dist/src/components/Icons.vue.d.ts +0 -10
- package/dist/src/components/Loader.vue.d.ts +0 -6
- package/dist/src/components/Modal.vue.d.ts +0 -24
- package/dist/src/components/Switch.vue.d.ts +0 -12
- package/dist/src/components/Tabulator.vue.d.ts +0 -43
- package/dist/src/components/Toggle.vue.d.ts +0 -14
- package/dist/src/components/Towser.vue.d.ts +0 -25
- package/dist/src/components/UploadImage.vue.d.ts +0 -11
- package/dist/src/components/Wizard.vue.d.ts +0 -14
- package/dist/src/index.d.ts +0 -34
- package/dist/src/types.d.ts +0 -180
- package/dist/src/vue.d.ts +0 -19
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,602 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
import { ColumnDefinition } from 'tabulator-tables';
|
|
4
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
5
|
+
import { ComponentProvideOptions } from 'vue';
|
|
6
|
+
import { DefineComponent } from 'vue';
|
|
7
|
+
import { DirectiveBinding } from 'vue';
|
|
8
|
+
import { PublicProps } from 'vue';
|
|
9
|
+
|
|
10
|
+
declare const __VLS_base: DefineComponent<ContentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
11
|
+
[x: string]: never;
|
|
12
|
+
}, string, PublicProps, Readonly<ContentProps> & Readonly<{
|
|
13
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
title: ContentTitle[];
|
|
16
|
+
bodyClass: string;
|
|
17
|
+
titleClass: string;
|
|
18
|
+
disableMinHeight: boolean;
|
|
19
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
|
|
21
|
+
declare const __VLS_base_2: DefineComponent<ModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
22
|
+
[x: string]: never;
|
|
23
|
+
}, string, PublicProps, Readonly<ModalProps> & Readonly<{
|
|
24
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
title: ModalTitle[];
|
|
27
|
+
actions: ModalAction[];
|
|
28
|
+
width: string;
|
|
29
|
+
show: boolean;
|
|
30
|
+
showClose: boolean;
|
|
31
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
|
|
33
|
+
declare const __VLS_base_3: DefineComponent<TowserProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
34
|
+
[x: string]: never;
|
|
35
|
+
}, string, PublicProps, Readonly<TowserProps> & Readonly<{
|
|
36
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
show: boolean;
|
|
39
|
+
double: boolean;
|
|
40
|
+
bodyWidth: number;
|
|
41
|
+
body2Width: number;
|
|
42
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
43
|
+
|
|
44
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
45
|
+
|
|
46
|
+
declare const __VLS_export_10: DefineComponent<WizardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
47
|
+
"step-change": (step: number) => any;
|
|
48
|
+
}, string, PublicProps, Readonly<WizardProps> & Readonly<{
|
|
49
|
+
"onStep-change"?: ((step: number) => any) | undefined;
|
|
50
|
+
}>, {
|
|
51
|
+
totalSteps: number;
|
|
52
|
+
currentStep: number;
|
|
53
|
+
className: string;
|
|
54
|
+
stepLabels: string[] | null;
|
|
55
|
+
onStepChange: ((step: number) => void) | null;
|
|
56
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
57
|
+
|
|
58
|
+
declare const __VLS_export_11: DefineComponent<LoaderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<LoaderProps> & Readonly<{}>, {
|
|
59
|
+
show: boolean;
|
|
60
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
61
|
+
|
|
62
|
+
declare const __VLS_export_12: DefineComponent<UploadImageProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
63
|
+
[x: string]: never;
|
|
64
|
+
}, string, PublicProps, Readonly<UploadImageProps> & Readonly<{
|
|
65
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
66
|
+
}>, {
|
|
67
|
+
show: boolean;
|
|
68
|
+
uploadSize: number;
|
|
69
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
70
|
+
|
|
71
|
+
declare const __VLS_export_13: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
72
|
+
close: () => any;
|
|
73
|
+
"update:show": (value: boolean) => any;
|
|
74
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
75
|
+
onClose?: (() => any) | undefined;
|
|
76
|
+
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
77
|
+
}>, {
|
|
78
|
+
show: boolean;
|
|
79
|
+
files: FileInput | FileInput[];
|
|
80
|
+
initialIndex: number;
|
|
81
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
82
|
+
|
|
83
|
+
declare const __VLS_export_14: DefineComponent<UploadFileProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
84
|
+
"update:modelValue": (value: File | File[] | null) => any;
|
|
85
|
+
}, string, PublicProps, Readonly<UploadFileProps> & Readonly<{
|
|
86
|
+
"onUpdate:modelValue"?: ((value: File | File[] | null) => any) | undefined;
|
|
87
|
+
}>, {
|
|
88
|
+
modelValue: File | File[] | null;
|
|
89
|
+
columns: number;
|
|
90
|
+
multiple: boolean;
|
|
91
|
+
accept: string;
|
|
92
|
+
maxFiles: number;
|
|
93
|
+
dragAndDrop: boolean;
|
|
94
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
95
|
+
|
|
96
|
+
declare const __VLS_export_2: __VLS_WithSlots_2<typeof __VLS_base_2, __VLS_Slots_2>;
|
|
97
|
+
|
|
98
|
+
declare const __VLS_export_3: DefineComponent<SwitchProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
99
|
+
"update:modelValue": (value: boolean) => any;
|
|
100
|
+
}, string, PublicProps, Readonly<SwitchProps> & Readonly<{
|
|
101
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
102
|
+
}>, {
|
|
103
|
+
modelValue: boolean;
|
|
104
|
+
background: string;
|
|
105
|
+
disable: boolean;
|
|
106
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
107
|
+
|
|
108
|
+
declare const __VLS_export_4: DefineComponent<TabulatorProps, {
|
|
109
|
+
reInitializeTabulator: () => void;
|
|
110
|
+
print: () => void;
|
|
111
|
+
exportTable: () => void;
|
|
112
|
+
getSelectedData: () => any[];
|
|
113
|
+
updateSelectedRow: (rows: any[]) => void;
|
|
114
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
115
|
+
[x: string]: never;
|
|
116
|
+
}, string, PublicProps, Readonly<TabulatorProps> & Readonly<{
|
|
117
|
+
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
118
|
+
}>, {
|
|
119
|
+
action: boolean;
|
|
120
|
+
data: TabulatorData[];
|
|
121
|
+
columns: TabulatorHeader[];
|
|
122
|
+
placeholder: string;
|
|
123
|
+
paginationSize: number;
|
|
124
|
+
paginationSizeSelector: number[];
|
|
125
|
+
actionButtons: TabulatorAction[];
|
|
126
|
+
heightOffset: number;
|
|
127
|
+
actionMode: "frontend" | "api";
|
|
128
|
+
showOptions: boolean;
|
|
129
|
+
paginationType: "local" | "remote";
|
|
130
|
+
apiEndpoint: string;
|
|
131
|
+
queryParams: Record<string, any>;
|
|
132
|
+
settingsButton: boolean;
|
|
133
|
+
printButton: boolean;
|
|
134
|
+
exportButton: boolean;
|
|
135
|
+
sheetName: string;
|
|
136
|
+
enableHeaderPrint: boolean;
|
|
137
|
+
enableFooterPrint: boolean;
|
|
138
|
+
enableHeaderBlock: boolean;
|
|
139
|
+
enableFooterBlock: boolean;
|
|
140
|
+
enableSelectable: boolean;
|
|
141
|
+
disableFooter: boolean;
|
|
142
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
143
|
+
|
|
144
|
+
declare const __VLS_export_5: DefineComponent<ToggleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
145
|
+
"update:modelValue": (value: boolean) => any;
|
|
146
|
+
}, string, PublicProps, Readonly<ToggleProps> & Readonly<{
|
|
147
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
148
|
+
}>, {
|
|
149
|
+
width: string;
|
|
150
|
+
modelValue: boolean;
|
|
151
|
+
disable: boolean;
|
|
152
|
+
onText: string;
|
|
153
|
+
offText: string;
|
|
154
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
155
|
+
|
|
156
|
+
declare const __VLS_export_6: __VLS_WithSlots_3<typeof __VLS_base_3, __VLS_Slots_3>;
|
|
157
|
+
|
|
158
|
+
declare const __VLS_export_7: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps> & Readonly<{}>, {
|
|
159
|
+
size: number | string;
|
|
160
|
+
color: string;
|
|
161
|
+
strokeWidth: number;
|
|
162
|
+
absoluteStrokeWidth: boolean;
|
|
163
|
+
classValue: string;
|
|
164
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
165
|
+
|
|
166
|
+
declare const __VLS_export_8: DefineComponent<DateSelectorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
167
|
+
"update:modelValue": (...args: any[]) => void;
|
|
168
|
+
"update:isBS": (...args: any[]) => void;
|
|
169
|
+
}, string, PublicProps, Readonly<DateSelectorProps> & Readonly<{
|
|
170
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
171
|
+
"onUpdate:isBS"?: ((...args: any[]) => any) | undefined;
|
|
172
|
+
}>, {
|
|
173
|
+
disabled: boolean;
|
|
174
|
+
modelValue: string;
|
|
175
|
+
inputWidth: number;
|
|
176
|
+
isBS: boolean;
|
|
177
|
+
showToggle: boolean;
|
|
178
|
+
defaultDate: boolean;
|
|
179
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
180
|
+
|
|
181
|
+
declare const __VLS_export_9: DefineComponent<DateRangeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
182
|
+
search: (...args: any[]) => void;
|
|
183
|
+
"update:modelValue": (...args: any[]) => void;
|
|
184
|
+
}, string, PublicProps, Readonly<DateRangeProps> & Readonly<{
|
|
185
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
186
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
187
|
+
}>, {
|
|
188
|
+
modelValue: {
|
|
189
|
+
startDate: string;
|
|
190
|
+
endDate: string;
|
|
191
|
+
dateType: string;
|
|
192
|
+
isBS: boolean;
|
|
193
|
+
};
|
|
194
|
+
searchOnLoad: boolean;
|
|
195
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
196
|
+
|
|
197
|
+
declare type __VLS_Props = {
|
|
198
|
+
show?: boolean;
|
|
199
|
+
files?: FileInput | FileInput[];
|
|
200
|
+
initialIndex?: number;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
declare type __VLS_Slots = {} & {
|
|
204
|
+
'action-before'?: (props: typeof __VLS_7) => any;
|
|
205
|
+
} & {
|
|
206
|
+
'action-after'?: (props: typeof __VLS_9) => any;
|
|
207
|
+
} & {
|
|
208
|
+
body?: (props: typeof __VLS_11) => any;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
declare type __VLS_Slots_2 = {} & {
|
|
212
|
+
default?: (props: typeof __VLS_21) => any;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
declare type __VLS_Slots_3 = {} & {
|
|
216
|
+
default?: (props: typeof __VLS_19) => any;
|
|
217
|
+
} & {
|
|
218
|
+
body2?: (props: typeof __VLS_21) => any;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
declare type __VLS_WithSlots<T, S> = T & {
|
|
222
|
+
new (): {
|
|
223
|
+
$slots: S;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
declare type __VLS_WithSlots_2<T, S> = T & {
|
|
228
|
+
new (): {
|
|
229
|
+
$slots: S;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
declare type __VLS_WithSlots_3<T, S> = T & {
|
|
234
|
+
new (): {
|
|
235
|
+
$slots: S;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
export declare interface ContentAction {
|
|
240
|
+
title: string;
|
|
241
|
+
emit: string;
|
|
242
|
+
class?: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export declare const ContentLayout: typeof __VLS_export;
|
|
246
|
+
|
|
247
|
+
export declare interface ContentProps {
|
|
248
|
+
title: ContentTitle[];
|
|
249
|
+
actions?: ContentAction[];
|
|
250
|
+
bodyClass?: string;
|
|
251
|
+
titleClass?: string;
|
|
252
|
+
disableMinHeight?: boolean;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export declare interface ContentTitle {
|
|
256
|
+
name: string;
|
|
257
|
+
link?: string;
|
|
258
|
+
count?: number;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export declare const CreateDebounce: <T>(callback: (arg?: T) => void, delay: number) => DebounceHandler<T>;
|
|
262
|
+
|
|
263
|
+
export declare const CreateShortCutKey: (keyStructure: string, callback: (e: KeyboardEvent) => void) => {
|
|
264
|
+
destroy(): void;
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
export declare const currencyFormatter: (value: number | string, withDisplayCurrency?: boolean, displayCurrency?: string, format?: FormatType, structure?: StructureType) => string;
|
|
268
|
+
|
|
269
|
+
export declare const CurrencyFormatterPlugin: {
|
|
270
|
+
install(app: App): void;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
declare interface CurrencyInputElement extends HTMLInputElement {
|
|
274
|
+
eventCleanUp?: () => void;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export declare const currencyUnformatter: (formattedValue: string, withDisplayCurrency?: boolean, displayCurrency?: string, format?: FormatType) => number;
|
|
278
|
+
|
|
279
|
+
declare interface CustomHTMLElement extends HTMLElement {
|
|
280
|
+
__tooltipHandlers?: {
|
|
281
|
+
showTooltip: () => void;
|
|
282
|
+
hideTooltip: () => void;
|
|
283
|
+
clearShowTimeout: () => void;
|
|
284
|
+
createTooltip: () => void;
|
|
285
|
+
updateBinding: (binding: DirectiveBinding<TooltipBindingValue>) => void;
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export declare const DateRange: typeof __VLS_export_9;
|
|
290
|
+
|
|
291
|
+
export declare interface DateRangeProps {
|
|
292
|
+
modelValue: {
|
|
293
|
+
startDate: string;
|
|
294
|
+
endDate: string;
|
|
295
|
+
dateType: string;
|
|
296
|
+
isBS: boolean;
|
|
297
|
+
};
|
|
298
|
+
searchOnLoad: boolean;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export declare const DateSelector: typeof __VLS_export_8;
|
|
302
|
+
|
|
303
|
+
export declare interface DateSelectorProps {
|
|
304
|
+
modelValue: string;
|
|
305
|
+
inputWidth?: number;
|
|
306
|
+
isBS?: boolean;
|
|
307
|
+
showToggle?: boolean;
|
|
308
|
+
disabled?: boolean;
|
|
309
|
+
classValue?: string;
|
|
310
|
+
defaultDate?: boolean;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
declare type DebounceHandler<T> = {
|
|
314
|
+
run: (arg?: T) => void;
|
|
315
|
+
cancel: () => void;
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
export declare type FileInput = PreviewImageDetail | File | string;
|
|
319
|
+
|
|
320
|
+
export declare const FilePreview: typeof __VLS_export_13;
|
|
321
|
+
|
|
322
|
+
export declare const FileUpload: typeof __VLS_export_14;
|
|
323
|
+
|
|
324
|
+
export declare const FocusNextPlugin: {
|
|
325
|
+
install(app: App): void;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
export declare type FormatType = "usa" | "euro";
|
|
329
|
+
|
|
330
|
+
declare interface HTMLElementWithState extends HTMLElement {
|
|
331
|
+
_observer?: MutationObserver;
|
|
332
|
+
_timeout?: number;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export declare interface IconProps {
|
|
336
|
+
name: string;
|
|
337
|
+
size?: number | string;
|
|
338
|
+
color?: string;
|
|
339
|
+
strokeWidth?: number;
|
|
340
|
+
absoluteStrokeWidth?: boolean;
|
|
341
|
+
classValue?: string;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
export declare const Icons: typeof __VLS_export_7;
|
|
345
|
+
|
|
346
|
+
export declare const InputCurrency: {
|
|
347
|
+
mounted(el: CurrencyInputElement, binding: DirectiveBinding): void;
|
|
348
|
+
updated(el: HTMLInputElement, binding: DirectiveBinding): void;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
export declare const InputError: {
|
|
352
|
+
mounted: (el: HTMLElement, binding: DirectiveBinding) => void;
|
|
353
|
+
updated: (el: HTMLElement, binding: DirectiveBinding) => void;
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
export declare const InputSelect: {
|
|
357
|
+
mounted(el: HTMLElement): void;
|
|
358
|
+
unmounted(el: HTMLElement): void;
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
export declare const Loader: typeof __VLS_export_11;
|
|
362
|
+
|
|
363
|
+
export declare interface LoaderProps {
|
|
364
|
+
show: boolean;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export declare const Modal: typeof __VLS_export_2;
|
|
368
|
+
|
|
369
|
+
export declare interface ModalAction {
|
|
370
|
+
emit: string;
|
|
371
|
+
title: string;
|
|
372
|
+
class?: string;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export declare interface ModalProps {
|
|
376
|
+
title: ModalTitle[];
|
|
377
|
+
actions?: ModalAction[];
|
|
378
|
+
show: boolean;
|
|
379
|
+
width?: string;
|
|
380
|
+
showClose?: boolean;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export declare interface ModalTitle {
|
|
384
|
+
name: string;
|
|
385
|
+
link?: string;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export declare const NumbertoWordPlugin: {
|
|
389
|
+
install(app: App): void;
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
export declare const numberToWords: (input: number | string, nepali?: boolean, currencyConverter?: boolean) => string;
|
|
393
|
+
|
|
394
|
+
export declare interface PreviewFileProps {
|
|
395
|
+
url: string;
|
|
396
|
+
name: string;
|
|
397
|
+
type: "image" | "pdf" | "other";
|
|
398
|
+
isBlob: boolean;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export declare type PreviewImageDetail = {
|
|
402
|
+
name: string;
|
|
403
|
+
url: string;
|
|
404
|
+
type?: "image" | "pdf" | "other";
|
|
405
|
+
isBlob?: boolean;
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
export declare const ScrollbarAnimateDropdown: {
|
|
409
|
+
mounted(el: HTMLElementWithState): void;
|
|
410
|
+
unmounted(el: HTMLElementWithState): void;
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
export declare const ScrollbarScroll: {
|
|
414
|
+
mounted(el: HTMLElement, _binding: DirectiveBinding): void;
|
|
415
|
+
unmounted(el: HTMLElement): void;
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
export declare type StructureType = "nepali" | "foreign";
|
|
419
|
+
|
|
420
|
+
export declare const Switch: typeof __VLS_export_3;
|
|
421
|
+
|
|
422
|
+
export declare interface SwitchProps {
|
|
423
|
+
modelValue: boolean;
|
|
424
|
+
background?: string;
|
|
425
|
+
disable?: boolean;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
export declare const Tabulator: typeof __VLS_export_4;
|
|
429
|
+
|
|
430
|
+
export declare interface TabulatorAction {
|
|
431
|
+
name: string;
|
|
432
|
+
emit: string;
|
|
433
|
+
class?: string;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
export declare interface TabulatorData {
|
|
437
|
+
id: string | number;
|
|
438
|
+
action?: {
|
|
439
|
+
name: string;
|
|
440
|
+
emit: string;
|
|
441
|
+
class?: string;
|
|
442
|
+
}[];
|
|
443
|
+
[key: string]: any;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
export declare interface TabulatorHeader extends ColumnDefinition {
|
|
447
|
+
isMandatory?: boolean;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
export declare interface TabulatorModalSettings {
|
|
451
|
+
title: Array<{
|
|
452
|
+
name: string;
|
|
453
|
+
}>;
|
|
454
|
+
action: Array<{
|
|
455
|
+
title: string;
|
|
456
|
+
emit: string;
|
|
457
|
+
class?: string;
|
|
458
|
+
}>;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
export declare interface TabulatorProps {
|
|
462
|
+
data?: TabulatorData[];
|
|
463
|
+
columns: TabulatorHeader[];
|
|
464
|
+
placeholder?: string;
|
|
465
|
+
paginationSize?: number;
|
|
466
|
+
paginationSizeSelector?: number[];
|
|
467
|
+
action?: boolean;
|
|
468
|
+
actionButtons?: TabulatorAction[];
|
|
469
|
+
heightOffset?: number;
|
|
470
|
+
actionMode?: "frontend" | "api";
|
|
471
|
+
showOptions?: boolean;
|
|
472
|
+
paginationType?: "local" | "remote";
|
|
473
|
+
apiEndpoint?: string;
|
|
474
|
+
apiInstance?: AxiosInstance;
|
|
475
|
+
queryParams?: Record<string, any>;
|
|
476
|
+
settingsButton?: boolean;
|
|
477
|
+
printButton?: boolean;
|
|
478
|
+
exportButton?: boolean;
|
|
479
|
+
sheetName?: string;
|
|
480
|
+
headerContent?: string;
|
|
481
|
+
footerContent?: string;
|
|
482
|
+
enableHeaderPrint?: boolean;
|
|
483
|
+
enableFooterPrint?: boolean;
|
|
484
|
+
enableHeaderBlock?: boolean;
|
|
485
|
+
enableFooterBlock?: boolean;
|
|
486
|
+
enableSelectable?: boolean;
|
|
487
|
+
disableFooter?: boolean;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export declare const toast: {
|
|
491
|
+
error(msg: string, delay?: number): void;
|
|
492
|
+
warn(msg: string, delay?: number): void;
|
|
493
|
+
success(msg: string, delay?: number): void;
|
|
494
|
+
info(msg: string, delay?: number): void;
|
|
495
|
+
};
|
|
496
|
+
|
|
497
|
+
export declare const ToastPlugin: {
|
|
498
|
+
install(app: App): void;
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
export declare const Toggle: typeof __VLS_export_5;
|
|
502
|
+
|
|
503
|
+
export declare interface ToggleProps {
|
|
504
|
+
modelValue: boolean;
|
|
505
|
+
onText?: string;
|
|
506
|
+
offText?: string;
|
|
507
|
+
width?: string;
|
|
508
|
+
disable?: boolean;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export declare const Tooltip: {
|
|
512
|
+
mounted(el: CustomHTMLElement, binding: DirectiveBinding<TooltipBindingValue>): void;
|
|
513
|
+
updated(el: CustomHTMLElement, binding: DirectiveBinding<TooltipBindingValue>): void;
|
|
514
|
+
unmounted(el: CustomHTMLElement): void;
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
declare interface TooltipBindingValue {
|
|
518
|
+
content: string;
|
|
519
|
+
raw?: boolean;
|
|
520
|
+
preferredPosition?: "top" | "bottom" | "left" | "right";
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
export declare const Towser: typeof __VLS_export_6;
|
|
524
|
+
|
|
525
|
+
export declare interface TowserAction {
|
|
526
|
+
emit: string;
|
|
527
|
+
title: string;
|
|
528
|
+
class?: string;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
export declare interface TowserProps {
|
|
532
|
+
show: boolean;
|
|
533
|
+
title: TowserTitle[];
|
|
534
|
+
actions?: TowserAction[];
|
|
535
|
+
double?: boolean;
|
|
536
|
+
bodyWidth?: number;
|
|
537
|
+
body2Width?: number;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
export declare interface TowserTitle {
|
|
541
|
+
name: string;
|
|
542
|
+
link?: string;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
export declare interface UploadFileProps {
|
|
546
|
+
modelValue: File | File[] | null;
|
|
547
|
+
accept?: string;
|
|
548
|
+
multiple?: boolean;
|
|
549
|
+
maxFiles?: number;
|
|
550
|
+
dragAndDrop?: boolean;
|
|
551
|
+
columns?: number;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
export declare const UploadImage: typeof __VLS_export_12;
|
|
555
|
+
|
|
556
|
+
export declare interface UploadImageProps {
|
|
557
|
+
show: boolean;
|
|
558
|
+
uploadSize: number;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
export declare class WebSocketWrapper {
|
|
562
|
+
private socket;
|
|
563
|
+
private url;
|
|
564
|
+
private isConnected;
|
|
565
|
+
private initPromise;
|
|
566
|
+
setURL(url: string): void;
|
|
567
|
+
init(onError?: (error: Event) => void): Promise<WebSocketWrapper>;
|
|
568
|
+
onMessage(callback: (message: string) => void): Promise<WebSocketWrapper>;
|
|
569
|
+
sendMessage(message: string): Promise<void>;
|
|
570
|
+
close(): void;
|
|
571
|
+
getConnectionStatus(): boolean;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
export declare const Wizard: typeof __VLS_export_10;
|
|
575
|
+
|
|
576
|
+
export declare interface WizardProps {
|
|
577
|
+
totalSteps?: number;
|
|
578
|
+
currentStep?: number;
|
|
579
|
+
className?: string;
|
|
580
|
+
stepLabels?: string[] | null;
|
|
581
|
+
onStepChange?: ((step: number) => void) | null;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
export { }
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
declare global {
|
|
588
|
+
interface Window {
|
|
589
|
+
XLSX: any;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
declare module "@vue/runtime-core" {
|
|
595
|
+
interface ComponentCustomProperties {
|
|
596
|
+
$focusNext: typeof focusNext;
|
|
597
|
+
$currencyFormatter: typeof currencyFormatter;
|
|
598
|
+
$currencyUnformatter: typeof currencyUnformatter;
|
|
599
|
+
$numToWords: typeof numToWords;
|
|
600
|
+
$toast: typeof toast;
|
|
601
|
+
}
|
|
602
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dolphin-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.1.15-beta.
|
|
4
|
+
"version": "3.1.15-beta.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@eslint/js": "^10.0.1",
|
|
67
|
+
"@microsoft/api-extractor": "^7.58.7",
|
|
67
68
|
"@tsconfig/node24": "^24.0.4",
|
|
68
69
|
"@types/node": "^25.6.2",
|
|
69
70
|
"@vitejs/plugin-vue": "^6.0.6",
|
|
@@ -80,8 +81,8 @@
|
|
|
80
81
|
"prettier": "3.8.3",
|
|
81
82
|
"typescript": "~6.0.3",
|
|
82
83
|
"typescript-eslint": "^8.59.2",
|
|
84
|
+
"unplugin-dts": "^1.0.0",
|
|
83
85
|
"vite": "^8.0.11",
|
|
84
|
-
"vite-plugin-dts": "^5.0.0",
|
|
85
86
|
"vite-plugin-vue-devtools": "^8.1.2",
|
|
86
87
|
"vue-tsc": "^3.2.8"
|
|
87
88
|
},
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DirectiveBinding } from 'vue';
|
|
2
|
-
interface CurrencyInputElement extends HTMLInputElement {
|
|
3
|
-
eventCleanUp?: () => void;
|
|
4
|
-
}
|
|
5
|
-
export declare const InputCurrency: {
|
|
6
|
-
mounted(el: CurrencyInputElement, binding: DirectiveBinding): void;
|
|
7
|
-
updated(el: HTMLInputElement, binding: DirectiveBinding): void;
|
|
8
|
-
};
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface HTMLElementWithState extends HTMLElement {
|
|
2
|
-
_observer?: MutationObserver;
|
|
3
|
-
_timeout?: number;
|
|
4
|
-
}
|
|
5
|
-
declare const ScrollbarAnimateDropdown: {
|
|
6
|
-
mounted(el: HTMLElementWithState): void;
|
|
7
|
-
unmounted(el: HTMLElementWithState): void;
|
|
8
|
-
};
|
|
9
|
-
export { ScrollbarAnimateDropdown };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { DirectiveBinding } from 'vue';
|
|
2
|
-
export interface TooltipBindingValue {
|
|
3
|
-
content: string;
|
|
4
|
-
raw?: boolean;
|
|
5
|
-
preferredPosition?: "top" | "bottom" | "left" | "right";
|
|
6
|
-
}
|
|
7
|
-
export interface CustomHTMLElement extends HTMLElement {
|
|
8
|
-
__tooltipHandlers?: {
|
|
9
|
-
showTooltip: () => void;
|
|
10
|
-
hideTooltip: () => void;
|
|
11
|
-
clearShowTimeout: () => void;
|
|
12
|
-
createTooltip: () => void;
|
|
13
|
-
updateBinding: (binding: DirectiveBinding<TooltipBindingValue>) => void;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
declare const Tooltip: {
|
|
17
|
-
mounted(el: CustomHTMLElement, binding: DirectiveBinding<TooltipBindingValue>): void;
|
|
18
|
-
updated(el: CustomHTMLElement, binding: DirectiveBinding<TooltipBindingValue>): void;
|
|
19
|
-
unmounted(el: CustomHTMLElement): void;
|
|
20
|
-
};
|
|
21
|
-
export { Tooltip };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
content: string;
|
|
3
|
-
raw?: boolean;
|
|
4
|
-
};
|
|
5
|
-
declare function hide(): void;
|
|
6
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
|
|
7
|
-
hide: typeof hide;
|
|
8
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
declare const _default: typeof __VLS_export;
|
|
10
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
export type FormatType = "usa" | "euro";
|
|
3
|
-
export type StructureType = "nepali" | "foreign";
|
|
4
|
-
export declare const currencyFormatter: (value: number | string, withDisplayCurrency?: boolean, displayCurrency?: string, format?: FormatType, structure?: StructureType) => string;
|
|
5
|
-
export declare const currencyUnformatter: (formattedValue: string, withDisplayCurrency?: boolean, displayCurrency?: string, format?: FormatType) => number;
|
|
6
|
-
declare const _default: {
|
|
7
|
-
install(app: App): void;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
declare const toast: {
|
|
3
|
-
error(msg: string, delay?: number): void;
|
|
4
|
-
warn(msg: string, delay?: number): void;
|
|
5
|
-
success(msg: string, delay?: number): void;
|
|
6
|
-
info(msg: string, delay?: number): void;
|
|
7
|
-
};
|
|
8
|
-
declare const _default: {
|
|
9
|
-
install(app: App): void;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
12
|
-
export { toast };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function createFormData(data: any): FormData;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare class WebSocketWrapper {
|
|
2
|
-
private socket;
|
|
3
|
-
private url;
|
|
4
|
-
private isConnected;
|
|
5
|
-
private initPromise;
|
|
6
|
-
setURL(url: string): void;
|
|
7
|
-
init(onError?: (error: Event) => void): Promise<WebSocketWrapper>;
|
|
8
|
-
onMessage(callback: (message: string) => void): Promise<WebSocketWrapper>;
|
|
9
|
-
sendMessage(message: string): Promise<void>;
|
|
10
|
-
close(): void;
|
|
11
|
-
getConnectionStatus(): boolean;
|
|
12
|
-
}
|
|
13
|
-
export default WebSocketWrapper;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ContentProps } from '../types';
|
|
2
|
-
declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
'action-before'?: (props: typeof __VLS_7) => any;
|
|
5
|
-
} & {
|
|
6
|
-
'action-after'?: (props: typeof __VLS_9) => any;
|
|
7
|
-
} & {
|
|
8
|
-
body?: (props: typeof __VLS_11) => any;
|
|
9
|
-
};
|
|
10
|
-
declare const __VLS_base: import('vue').DefineComponent<ContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
-
[x: string]: never;
|
|
12
|
-
}, string, import('vue').PublicProps, Readonly<ContentProps> & Readonly<{
|
|
13
|
-
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
14
|
-
}>, {
|
|
15
|
-
title: import('..').ContentTitle[];
|
|
16
|
-
bodyClass: string;
|
|
17
|
-
titleClass: string;
|
|
18
|
-
disableMinHeight: boolean;
|
|
19
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
-
declare const _default: typeof __VLS_export;
|
|
22
|
-
export default _default;
|
|
23
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
-
new (): {
|
|
25
|
-
$slots: S;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DateRangeProps } from '../types';
|
|
2
|
-
declare const __VLS_export: import('vue').DefineComponent<DateRangeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
-
search: (...args: any[]) => void;
|
|
4
|
-
"update:modelValue": (...args: any[]) => void;
|
|
5
|
-
}, string, import('vue').PublicProps, Readonly<DateRangeProps> & Readonly<{
|
|
6
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
|
7
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
8
|
-
}>, {
|
|
9
|
-
modelValue: {
|
|
10
|
-
startDate: string;
|
|
11
|
-
endDate: string;
|
|
12
|
-
dateType: string;
|
|
13
|
-
isBS: boolean;
|
|
14
|
-
};
|
|
15
|
-
searchOnLoad: boolean;
|
|
16
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
-
declare const _default: typeof __VLS_export;
|
|
18
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DateSelectorProps } from '../types';
|
|
2
|
-
declare const __VLS_export: import('vue').DefineComponent<DateSelectorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
-
"update:modelValue": (...args: any[]) => void;
|
|
4
|
-
"update:isBS": (...args: any[]) => void;
|
|
5
|
-
}, string, import('vue').PublicProps, Readonly<DateSelectorProps> & Readonly<{
|
|
6
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
7
|
-
"onUpdate:isBS"?: ((...args: any[]) => any) | undefined;
|
|
8
|
-
}>, {
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
modelValue: string;
|
|
11
|
-
inputWidth: number;
|
|
12
|
-
isBS: boolean;
|
|
13
|
-
showToggle: boolean;
|
|
14
|
-
defaultDate: boolean;
|
|
15
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
declare const _default: typeof __VLS_export;
|
|
17
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FileInput } from '../types';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
show?: boolean;
|
|
4
|
-
files?: FileInput | FileInput[];
|
|
5
|
-
initialIndex?: number;
|
|
6
|
-
};
|
|
7
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
-
close: () => any;
|
|
9
|
-
"update:show": (value: boolean) => any;
|
|
10
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
-
onClose?: (() => any) | undefined;
|
|
12
|
-
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
13
|
-
}>, {
|
|
14
|
-
show: boolean;
|
|
15
|
-
files: FileInput | FileInput[];
|
|
16
|
-
initialIndex: number;
|
|
17
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
-
declare const _default: typeof __VLS_export;
|
|
19
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { UploadFileProps } from '../types';
|
|
2
|
-
declare const __VLS_export: import('vue').DefineComponent<UploadFileProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
-
"update:modelValue": (value: File | File[] | null) => any;
|
|
4
|
-
}, string, import('vue').PublicProps, Readonly<UploadFileProps> & Readonly<{
|
|
5
|
-
"onUpdate:modelValue"?: ((value: File | File[] | null) => any) | undefined;
|
|
6
|
-
}>, {
|
|
7
|
-
modelValue: File | File[] | null;
|
|
8
|
-
columns: number;
|
|
9
|
-
multiple: boolean;
|
|
10
|
-
accept: string;
|
|
11
|
-
maxFiles: number;
|
|
12
|
-
dragAndDrop: boolean;
|
|
13
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
-
declare const _default: typeof __VLS_export;
|
|
15
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IconProps } from '../types';
|
|
2
|
-
declare const __VLS_export: import('vue').DefineComponent<IconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IconProps> & Readonly<{}>, {
|
|
3
|
-
size: number | string;
|
|
4
|
-
color: string;
|
|
5
|
-
strokeWidth: number;
|
|
6
|
-
absoluteStrokeWidth: boolean;
|
|
7
|
-
classValue: string;
|
|
8
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
declare const _default: typeof __VLS_export;
|
|
10
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LoaderProps } from '../types';
|
|
2
|
-
declare const __VLS_export: import('vue').DefineComponent<LoaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LoaderProps> & Readonly<{}>, {
|
|
3
|
-
show: boolean;
|
|
4
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
-
declare const _default: typeof __VLS_export;
|
|
6
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ModalAction, ModalProps } from '../types';
|
|
2
|
-
declare var __VLS_21: {};
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof __VLS_21) => any;
|
|
5
|
-
};
|
|
6
|
-
declare const __VLS_base: import('vue').DefineComponent<ModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7
|
-
[x: string]: never;
|
|
8
|
-
}, string, import('vue').PublicProps, Readonly<ModalProps> & Readonly<{
|
|
9
|
-
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
10
|
-
}>, {
|
|
11
|
-
title: import('..').ModalTitle[];
|
|
12
|
-
actions: ModalAction[];
|
|
13
|
-
width: string;
|
|
14
|
-
show: boolean;
|
|
15
|
-
showClose: boolean;
|
|
16
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
-
declare const _default: typeof __VLS_export;
|
|
19
|
-
export default _default;
|
|
20
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
-
new (): {
|
|
22
|
-
$slots: S;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SwitchProps } from '../types';
|
|
2
|
-
declare const __VLS_export: import('vue').DefineComponent<SwitchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
-
"update:modelValue": (value: boolean) => any;
|
|
4
|
-
}, string, import('vue').PublicProps, Readonly<SwitchProps> & Readonly<{
|
|
5
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
6
|
-
}>, {
|
|
7
|
-
modelValue: boolean;
|
|
8
|
-
background: string;
|
|
9
|
-
disable: boolean;
|
|
10
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
-
declare const _default: typeof __VLS_export;
|
|
12
|
-
export default _default;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { TabulatorHeader, TabulatorProps } from '../types';
|
|
2
|
-
declare global {
|
|
3
|
-
interface Window {
|
|
4
|
-
XLSX: any;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
declare const __VLS_export: import('vue').DefineComponent<TabulatorProps, {
|
|
8
|
-
reInitializeTabulator: () => void;
|
|
9
|
-
print: () => void;
|
|
10
|
-
exportTable: () => void;
|
|
11
|
-
getSelectedData: () => any[];
|
|
12
|
-
updateSelectedRow: (rows: any[]) => void;
|
|
13
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
14
|
-
[x: string]: never;
|
|
15
|
-
}, string, import('vue').PublicProps, Readonly<TabulatorProps> & Readonly<{
|
|
16
|
-
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
17
|
-
}>, {
|
|
18
|
-
action: boolean;
|
|
19
|
-
data: import('..').TabulatorData[];
|
|
20
|
-
columns: TabulatorHeader[];
|
|
21
|
-
placeholder: string;
|
|
22
|
-
paginationSize: number;
|
|
23
|
-
paginationSizeSelector: number[];
|
|
24
|
-
actionButtons: import('..').TabulatorAction[];
|
|
25
|
-
heightOffset: number;
|
|
26
|
-
actionMode: "frontend" | "api";
|
|
27
|
-
showOptions: boolean;
|
|
28
|
-
paginationType: "local" | "remote";
|
|
29
|
-
apiEndpoint: string;
|
|
30
|
-
queryParams: Record<string, any>;
|
|
31
|
-
settingsButton: boolean;
|
|
32
|
-
printButton: boolean;
|
|
33
|
-
exportButton: boolean;
|
|
34
|
-
sheetName: string;
|
|
35
|
-
enableHeaderPrint: boolean;
|
|
36
|
-
enableFooterPrint: boolean;
|
|
37
|
-
enableHeaderBlock: boolean;
|
|
38
|
-
enableFooterBlock: boolean;
|
|
39
|
-
enableSelectable: boolean;
|
|
40
|
-
disableFooter: boolean;
|
|
41
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
42
|
-
declare const _default: typeof __VLS_export;
|
|
43
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ToggleProps } from '../types';
|
|
2
|
-
declare const __VLS_export: import('vue').DefineComponent<ToggleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
-
"update:modelValue": (value: boolean) => any;
|
|
4
|
-
}, string, import('vue').PublicProps, Readonly<ToggleProps> & Readonly<{
|
|
5
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
6
|
-
}>, {
|
|
7
|
-
width: string;
|
|
8
|
-
modelValue: boolean;
|
|
9
|
-
disable: boolean;
|
|
10
|
-
onText: string;
|
|
11
|
-
offText: string;
|
|
12
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
declare const _default: typeof __VLS_export;
|
|
14
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { TowserProps } from '../types';
|
|
2
|
-
declare var __VLS_19: {}, __VLS_21: {};
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof __VLS_19) => any;
|
|
5
|
-
} & {
|
|
6
|
-
body2?: (props: typeof __VLS_21) => any;
|
|
7
|
-
};
|
|
8
|
-
declare const __VLS_base: import('vue').DefineComponent<TowserProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
|
-
[x: string]: never;
|
|
10
|
-
}, string, import('vue').PublicProps, Readonly<TowserProps> & Readonly<{
|
|
11
|
-
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
12
|
-
}>, {
|
|
13
|
-
show: boolean;
|
|
14
|
-
double: boolean;
|
|
15
|
-
bodyWidth: number;
|
|
16
|
-
body2Width: number;
|
|
17
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
-
declare const _default: typeof __VLS_export;
|
|
20
|
-
export default _default;
|
|
21
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
-
new (): {
|
|
23
|
-
$slots: S;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { UploadImageProps } from '../types';
|
|
2
|
-
declare const __VLS_export: import('vue').DefineComponent<UploadImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
-
[x: string]: never;
|
|
4
|
-
}, string, import('vue').PublicProps, Readonly<UploadImageProps> & Readonly<{
|
|
5
|
-
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
6
|
-
}>, {
|
|
7
|
-
show: boolean;
|
|
8
|
-
uploadSize: number;
|
|
9
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
declare const _default: typeof __VLS_export;
|
|
11
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { WizardProps } from '../types';
|
|
2
|
-
declare const __VLS_export: import('vue').DefineComponent<WizardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
-
"step-change": (step: number) => any;
|
|
4
|
-
}, string, import('vue').PublicProps, Readonly<WizardProps> & Readonly<{
|
|
5
|
-
"onStep-change"?: ((step: number) => any) | undefined;
|
|
6
|
-
}>, {
|
|
7
|
-
totalSteps: number;
|
|
8
|
-
currentStep: number;
|
|
9
|
-
className: string;
|
|
10
|
-
stepLabels: string[] | null;
|
|
11
|
-
onStepChange: ((step: number) => void) | null;
|
|
12
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
declare const _default: typeof __VLS_export;
|
|
14
|
-
export default _default;
|
package/dist/src/index.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { default as ContentLayout } from './components/ContentLayout.vue';
|
|
2
|
-
import { default as Modal } from './components/Modal.vue';
|
|
3
|
-
import { default as Switch } from './components/Switch.vue';
|
|
4
|
-
import { default as Tabulator } from './components/Tabulator.vue';
|
|
5
|
-
import { default as Toggle } from './components/Toggle.vue';
|
|
6
|
-
import { default as Towser } from './components/Towser.vue';
|
|
7
|
-
import { default as Icons } from './components/Icons.vue';
|
|
8
|
-
import { default as DateSelector } from './components/DateSelector.vue';
|
|
9
|
-
import { default as DateRange } from './components/DateRange.vue';
|
|
10
|
-
import { default as Wizard } from './components/Wizard.vue';
|
|
11
|
-
import { default as Loader } from './components/Loader.vue';
|
|
12
|
-
import { default as UploadImage } from './components/UploadImage.vue';
|
|
13
|
-
import { default as FilePreview } from './components/FilePreview.vue';
|
|
14
|
-
import { default as FileUpload } from './components/FileUpload.vue';
|
|
15
|
-
import { InputError } from './Directives/InputError';
|
|
16
|
-
import { ScrollbarScroll } from './Directives/ScrollbarScroll';
|
|
17
|
-
import { InputSelect } from './Directives/InputSelect';
|
|
18
|
-
import { InputCurrency } from './Directives/InputCurrency';
|
|
19
|
-
import { ScrollbarAnimateDropdown } from './Directives/ScrollbarAnimateDropdown';
|
|
20
|
-
import { Tooltip } from './Directives/Tooltip/Tooltip';
|
|
21
|
-
import { default as WebSocketWrapper } from './Services/Websocket';
|
|
22
|
-
import { default as CreateShortCutKey } from './Services/ShortcutKey';
|
|
23
|
-
import { default as CreateDebounce } from './Services/Debounce';
|
|
24
|
-
import { default as FocusNextPlugin } from './Plugin/FocusNext';
|
|
25
|
-
import { currencyFormatter, currencyUnformatter, FormatType, StructureType, default as CurrencyFormatterPlugin } from './Plugin/CurrencyFormatter';
|
|
26
|
-
import { default as ToastPlugin, toast } from './Plugin/Toast';
|
|
27
|
-
import { numberToWords, default as NumbertoWordPlugin } from './Plugin/NumberToWords';
|
|
28
|
-
export { ContentLayout, Modal, Switch, Tabulator, Toggle, Towser, Icons, DateSelector, DateRange, Wizard, Loader, UploadImage, FilePreview, FileUpload, };
|
|
29
|
-
export type { ContentTitle, ContentAction, ContentProps, ModalProps, ModalTitle, ModalAction, SwitchProps, TabulatorProps, TabulatorModalSettings, TabulatorHeader, TabulatorData, TabulatorAction, TowserTitle, TowserAction, TowserProps, ToggleProps, IconProps, DateSelectorProps, DateRangeProps, WizardProps, LoaderProps, UploadImageProps, PreviewFileProps, FileInput, PreviewImageDetail, UploadFileProps, } from './types';
|
|
30
|
-
export { InputError, ScrollbarScroll, InputSelect, InputCurrency, ScrollbarAnimateDropdown, Tooltip };
|
|
31
|
-
export { WebSocketWrapper, CreateShortCutKey, CreateDebounce };
|
|
32
|
-
export { type FormatType, type StructureType };
|
|
33
|
-
export { FocusNextPlugin, CurrencyFormatterPlugin, NumbertoWordPlugin, ToastPlugin };
|
|
34
|
-
export { currencyFormatter, currencyUnformatter, numberToWords, toast };
|
package/dist/src/types.d.ts
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { AxiosInstance } from 'axios';
|
|
2
|
-
import { ColumnDefinition } from 'tabulator-tables';
|
|
3
|
-
export interface ContentProps {
|
|
4
|
-
title: ContentTitle[];
|
|
5
|
-
actions?: ContentAction[];
|
|
6
|
-
bodyClass?: string;
|
|
7
|
-
titleClass?: string;
|
|
8
|
-
disableMinHeight?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface ContentTitle {
|
|
11
|
-
name: string;
|
|
12
|
-
link?: string;
|
|
13
|
-
count?: number;
|
|
14
|
-
}
|
|
15
|
-
export interface ContentAction {
|
|
16
|
-
title: string;
|
|
17
|
-
emit: string;
|
|
18
|
-
class?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface ModalProps {
|
|
21
|
-
title: ModalTitle[];
|
|
22
|
-
actions?: ModalAction[];
|
|
23
|
-
show: boolean;
|
|
24
|
-
width?: string;
|
|
25
|
-
showClose?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface ModalTitle {
|
|
28
|
-
name: string;
|
|
29
|
-
link?: string;
|
|
30
|
-
}
|
|
31
|
-
export interface ModalAction {
|
|
32
|
-
emit: string;
|
|
33
|
-
title: string;
|
|
34
|
-
class?: string;
|
|
35
|
-
}
|
|
36
|
-
export interface SwitchProps {
|
|
37
|
-
modelValue: boolean;
|
|
38
|
-
background?: string;
|
|
39
|
-
disable?: boolean;
|
|
40
|
-
}
|
|
41
|
-
export interface TabulatorProps {
|
|
42
|
-
data?: TabulatorData[];
|
|
43
|
-
columns: TabulatorHeader[];
|
|
44
|
-
placeholder?: string;
|
|
45
|
-
paginationSize?: number;
|
|
46
|
-
paginationSizeSelector?: number[];
|
|
47
|
-
action?: boolean;
|
|
48
|
-
actionButtons?: TabulatorAction[];
|
|
49
|
-
heightOffset?: number;
|
|
50
|
-
actionMode?: "frontend" | "api";
|
|
51
|
-
showOptions?: boolean;
|
|
52
|
-
paginationType?: "local" | "remote";
|
|
53
|
-
apiEndpoint?: string;
|
|
54
|
-
apiInstance?: AxiosInstance;
|
|
55
|
-
queryParams?: Record<string, any>;
|
|
56
|
-
settingsButton?: boolean;
|
|
57
|
-
printButton?: boolean;
|
|
58
|
-
exportButton?: boolean;
|
|
59
|
-
sheetName?: string;
|
|
60
|
-
headerContent?: string;
|
|
61
|
-
footerContent?: string;
|
|
62
|
-
enableHeaderPrint?: boolean;
|
|
63
|
-
enableFooterPrint?: boolean;
|
|
64
|
-
enableHeaderBlock?: boolean;
|
|
65
|
-
enableFooterBlock?: boolean;
|
|
66
|
-
enableSelectable?: boolean;
|
|
67
|
-
disableFooter?: boolean;
|
|
68
|
-
}
|
|
69
|
-
export interface TabulatorModalSettings {
|
|
70
|
-
title: Array<{
|
|
71
|
-
name: string;
|
|
72
|
-
}>;
|
|
73
|
-
action: Array<{
|
|
74
|
-
title: string;
|
|
75
|
-
emit: string;
|
|
76
|
-
class?: string;
|
|
77
|
-
}>;
|
|
78
|
-
}
|
|
79
|
-
export interface TabulatorHeader extends ColumnDefinition {
|
|
80
|
-
isMandatory?: boolean;
|
|
81
|
-
}
|
|
82
|
-
export interface TabulatorData {
|
|
83
|
-
id: string | number;
|
|
84
|
-
action?: {
|
|
85
|
-
name: string;
|
|
86
|
-
emit: string;
|
|
87
|
-
class?: string;
|
|
88
|
-
}[];
|
|
89
|
-
[key: string]: any;
|
|
90
|
-
}
|
|
91
|
-
export interface TabulatorAction {
|
|
92
|
-
name: string;
|
|
93
|
-
emit: string;
|
|
94
|
-
class?: string;
|
|
95
|
-
}
|
|
96
|
-
export interface ToggleProps {
|
|
97
|
-
modelValue: boolean;
|
|
98
|
-
onText?: string;
|
|
99
|
-
offText?: string;
|
|
100
|
-
width?: string;
|
|
101
|
-
disable?: boolean;
|
|
102
|
-
}
|
|
103
|
-
export interface TowserProps {
|
|
104
|
-
show: boolean;
|
|
105
|
-
title: TowserTitle[];
|
|
106
|
-
actions?: TowserAction[];
|
|
107
|
-
double?: boolean;
|
|
108
|
-
bodyWidth?: number;
|
|
109
|
-
body2Width?: number;
|
|
110
|
-
}
|
|
111
|
-
export interface TowserTitle {
|
|
112
|
-
name: string;
|
|
113
|
-
link?: string;
|
|
114
|
-
}
|
|
115
|
-
export interface TowserAction {
|
|
116
|
-
emit: string;
|
|
117
|
-
title: string;
|
|
118
|
-
class?: string;
|
|
119
|
-
}
|
|
120
|
-
export interface IconProps {
|
|
121
|
-
name: string;
|
|
122
|
-
size?: number | string;
|
|
123
|
-
color?: string;
|
|
124
|
-
strokeWidth?: number;
|
|
125
|
-
absoluteStrokeWidth?: boolean;
|
|
126
|
-
classValue?: string;
|
|
127
|
-
}
|
|
128
|
-
export interface DateSelectorProps {
|
|
129
|
-
modelValue: string;
|
|
130
|
-
inputWidth?: number;
|
|
131
|
-
isBS?: boolean;
|
|
132
|
-
showToggle?: boolean;
|
|
133
|
-
disabled?: boolean;
|
|
134
|
-
classValue?: string;
|
|
135
|
-
defaultDate?: boolean;
|
|
136
|
-
}
|
|
137
|
-
export interface DateRangeProps {
|
|
138
|
-
modelValue: {
|
|
139
|
-
startDate: string;
|
|
140
|
-
endDate: string;
|
|
141
|
-
dateType: string;
|
|
142
|
-
isBS: boolean;
|
|
143
|
-
};
|
|
144
|
-
searchOnLoad: boolean;
|
|
145
|
-
}
|
|
146
|
-
export interface WizardProps {
|
|
147
|
-
totalSteps?: number;
|
|
148
|
-
currentStep?: number;
|
|
149
|
-
className?: string;
|
|
150
|
-
stepLabels?: string[] | null;
|
|
151
|
-
onStepChange?: ((step: number) => void) | null;
|
|
152
|
-
}
|
|
153
|
-
export interface LoaderProps {
|
|
154
|
-
show: boolean;
|
|
155
|
-
}
|
|
156
|
-
export interface UploadImageProps {
|
|
157
|
-
show: boolean;
|
|
158
|
-
uploadSize: number;
|
|
159
|
-
}
|
|
160
|
-
export type PreviewImageDetail = {
|
|
161
|
-
name: string;
|
|
162
|
-
url: string;
|
|
163
|
-
type?: "image" | "pdf" | "other";
|
|
164
|
-
isBlob?: boolean;
|
|
165
|
-
};
|
|
166
|
-
export type FileInput = PreviewImageDetail | File | string;
|
|
167
|
-
export interface PreviewFileProps {
|
|
168
|
-
url: string;
|
|
169
|
-
name: string;
|
|
170
|
-
type: "image" | "pdf" | "other";
|
|
171
|
-
isBlob: boolean;
|
|
172
|
-
}
|
|
173
|
-
export interface UploadFileProps {
|
|
174
|
-
modelValue: File | File[] | null;
|
|
175
|
-
accept?: string;
|
|
176
|
-
multiple?: boolean;
|
|
177
|
-
maxFiles?: number;
|
|
178
|
-
dragAndDrop?: boolean;
|
|
179
|
-
columns?: number;
|
|
180
|
-
}
|
package/dist/src/vue.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { focusNext } from './Plugin/FocusNext';
|
|
2
|
-
import { currencyFormatter, currencyUnformatter } from './Plugin/CurrencyFormatter';
|
|
3
|
-
import { numToWords } from './Plugin/NumberToWords';
|
|
4
|
-
import { toast } from './Plugin/Toast';
|
|
5
|
-
/// <reference types="vite/client" />
|
|
6
|
-
declare module "*.vue" {
|
|
7
|
-
import type { DefineComponent } from "vue";
|
|
8
|
-
const component: DefineComponent<Record<string, never>, Record<string, never>, any>;
|
|
9
|
-
export default component;
|
|
10
|
-
}
|
|
11
|
-
declare module "@vue/runtime-core" {
|
|
12
|
-
interface ComponentCustomProperties {
|
|
13
|
-
$focusNext: typeof focusNext;
|
|
14
|
-
$currencyFormatter: typeof currencyFormatter;
|
|
15
|
-
$currencyUnformatter: typeof currencyUnformatter;
|
|
16
|
-
$numToWords: typeof numToWords;
|
|
17
|
-
$toast: typeof toast;
|
|
18
|
-
}
|
|
19
|
-
}
|