@gemafajarramadhan/dynamic-ui 1.3.16 → 1.3.18

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 CHANGED
@@ -1,602 +1,612 @@
1
1
  import type { DefineComponent, Plugin, App } from 'vue'
2
2
 
3
- export interface DynamicUIApiConfig {
4
- externalApi: any
5
- }
6
-
7
- export const DynamicFormField: DefineComponent<{
8
- field: {
9
- key: string;
10
- component: string;
11
- model: string;
12
- seq?: number;
13
- column?: string;
14
- isHidden?: boolean;
15
- logic?: Record<string, any>;
16
- props?: Record<string, any>;
17
- propsFieldGlobal?: Record<string, any>;
18
- };
19
- modelValue?: any;
20
- formData?: Record<string, any>;
21
- required?: boolean;
22
- options?: any[];
23
- error?: string | null;
24
- dynamicLabels?: {
25
- labelEN?: string;
26
- labelID?: string;
27
- placeholderEN?: string;
28
- placeholderID?: string;
29
- } | null;
30
- dynamicLength?: {
31
- minLength?: number | string | null;
32
- maxLength?: number | string | null;
33
- } | null;
34
- baseUrl?: string;
35
- viewOnly?: boolean;
36
- }>
37
-
38
- export const DCodeAutoComplete: DefineComponent<{
39
- modelValue?: any
40
- options?: any[]
41
- label?: string
42
- placeholder?: string
43
- disabled?: boolean
44
- visible?: boolean
45
- skeleton?: boolean
46
- error?: string | null
47
- [key: string]: any
48
- }>
49
-
50
- export const Breadcrumb: DefineComponent<{
51
- items?: any[]
52
- showHomeIcon?: boolean
53
- iconSize?: string
54
- disabled?: boolean
55
- separatorSize?: number
56
- separatorType?: 'chevron' | 'slash'
57
- strokeWidth?: number
58
- visible?: boolean
59
- [key: string]: any
60
- }>
61
-
62
- export const DCodeBadge: DefineComponent<{
63
- text?: string
64
- variant?: 'default' | 'secondary' | 'destructive' | 'outline' | 'success' | 'warning' | 'info' | 'ghost' | 'tonal' | 'pink' | 'purple' | 'dark' | 'light'
65
- size?: 'xs' | 'sm' | 'md' | 'lg'
66
- icon?: string
67
- dot?: boolean
68
- pill?: boolean
69
- color?: string
70
- skeleton?: boolean
71
- visible?: boolean
72
- [key: string]: any
73
- }>
74
-
75
- export const DCodeBeforeAfter: DefineComponent<{
76
- dataBefore: any
77
- dataAfter: any
78
- [key: string]: any
79
- }>
3
+ export interface DynamicUIApiConfig {
4
+ externalApi: any
5
+ }
80
6
 
81
- export const DCodeListLabels: DefineComponent<{
82
- dataBefore?: any
83
- dataAfter?: any
84
- [key: string]: any
85
- }>
86
-
87
- export const DCodeButton: DefineComponent<{
88
- text?: string
89
- variant?: 'default' | 'secondary' | 'destructive' | 'outline' | 'ghost' | 'link' | 'tonal' | 'elevated'
90
- size?: 'default' | 'sm' | 'lg' | 'icon'
91
- tooltip?: string
92
- bgColor?: string
93
- textColor?: string
94
- hoverBgColor?: string
95
- borderColor?: string
96
- disabled?: boolean
97
- type?: 'BUTTON' | 'SUBMIT' | 'RESET' | 'button' | 'submit' | 'reset'
98
- visible?: boolean
99
- skeleton?: boolean
100
- to?: string
101
- icon?: string
102
- iconClass?: string
103
- [key: string]: any
104
- }>
7
+ export const CardSummary: DefineComponent<{
8
+ title: string
9
+ value: number
10
+ trend?: number
11
+ icon: string | any
12
+ type?: 'primary' | 'success' | 'warning' | 'info'
13
+ format?: 'currency' | 'number'
14
+ delay?: number
15
+ }>
16
+
17
+ export const DynamicFormField: DefineComponent<{
18
+ field: {
19
+ key: string;
20
+ component: string;
21
+ model: string;
22
+ seq?: number;
23
+ column?: string;
24
+ isHidden?: boolean;
25
+ logic?: Record<string, any>;
26
+ props?: Record<string, any>;
27
+ propsFieldGlobal?: Record<string, any>;
28
+ };
29
+ modelValue?: any;
30
+ formData?: Record<string, any>;
31
+ required?: boolean;
32
+ options?: any[];
33
+ error?: string | null;
34
+ dynamicLabels?: {
35
+ labelEN?: string;
36
+ labelID?: string;
37
+ placeholderEN?: string;
38
+ placeholderID?: string;
39
+ } | null;
40
+ dynamicLength?: {
41
+ minLength?: number | string | null;
42
+ maxLength?: number | string | null;
43
+ } | null;
44
+ baseUrl?: string;
45
+ viewOnly?: boolean;
46
+ }>
47
+
48
+ export const DCodeAutoComplete: DefineComponent<{
49
+ modelValue?: any
50
+ options?: any[]
51
+ label?: string
52
+ placeholder?: string
53
+ disabled?: boolean
54
+ visible?: boolean
55
+ skeleton?: boolean
56
+ error?: string | null
57
+ [key: string]: any
58
+ }>
59
+
60
+ export const Breadcrumb: DefineComponent<{
61
+ items?: any[]
62
+ showHomeIcon?: boolean
63
+ iconSize?: string
64
+ disabled?: boolean
65
+ separatorSize?: number
66
+ separatorType?: 'chevron' | 'slash'
67
+ strokeWidth?: number
68
+ visible?: boolean
69
+ [key: string]: any
70
+ }>
71
+
72
+ export const DCodeBadge: DefineComponent<{
73
+ text?: string
74
+ variant?: 'default' | 'secondary' | 'destructive' | 'outline' | 'success' | 'warning' | 'info' | 'ghost' | 'tonal' | 'pink' | 'purple' | 'dark' | 'light'
75
+ size?: 'xs' | 'sm' | 'md' | 'lg'
76
+ icon?: string
77
+ dot?: boolean
78
+ pill?: boolean
79
+ color?: string
80
+ skeleton?: boolean
81
+ visible?: boolean
82
+ [key: string]: any
83
+ }>
84
+
85
+ export const DCodeBeforeAfter: DefineComponent<{
86
+ dataBefore: any
87
+ dataAfter: any
88
+ [key: string]: any
89
+ }>
90
+
91
+ export const DCodeListLabels: DefineComponent<{
92
+ dataBefore?: any
93
+ dataAfter?: any
94
+ [key: string]: any
95
+ }>
96
+
97
+ export const DCodeButton: DefineComponent<{
98
+ text?: string
99
+ variant?: 'default' | 'secondary' | 'destructive' | 'outline' | 'ghost' | 'link' | 'tonal' | 'elevated'
100
+ size?: 'default' | 'sm' | 'lg' | 'icon'
101
+ tooltip?: string
102
+ bgColor?: string
103
+ textColor?: string
104
+ hoverBgColor?: string
105
+ borderColor?: string
106
+ disabled?: boolean
107
+ type?: 'BUTTON' | 'SUBMIT' | 'RESET' | 'button' | 'submit' | 'reset'
108
+ visible?: boolean
109
+ skeleton?: boolean
110
+ to?: string
111
+ icon?: string
112
+ iconClass?: string
113
+ [key: string]: any
114
+ }>
115
+
116
+ export const DCodeCard: DefineComponent<{
117
+ [key: string]: any
118
+ }>
119
+
120
+ export const DCodeChart: DefineComponent<{
121
+ type: string
122
+ width?: number
123
+ height?: number
124
+ required?: boolean
125
+ loading?: boolean
126
+ error?: string | null
127
+ showInfo?: boolean
128
+ responsive?: boolean
129
+ maintainAspectRatio?: boolean
130
+ theme?: string
131
+ colors?: string[]
132
+ data?: any
133
+ modelValue?: any
134
+ options?: any
135
+ label?: string
136
+ [key: string]: any
137
+ }>
138
+
139
+ export interface CheckboxItem {
140
+ id: string | number
141
+ title: string
142
+ value?: boolean
143
+ disabled?: boolean
144
+ indeterminate?: boolean
145
+ }
105
146
 
106
- export const DCodeCard: DefineComponent<{
107
- [key: string]: any
108
- }>
109
-
110
- export const DCodeChart: DefineComponent<{
111
- type: string
112
- width?: number
113
- height?: number
114
- required?: boolean
115
- loading?: boolean
116
- error?: string | null
117
- showInfo?: boolean
118
- responsive?: boolean
119
- maintainAspectRatio?: boolean
120
- theme?: string
121
- colors?: string[]
122
- data?: any
123
- modelValue?: any
124
- options?: any
125
- label?: string
147
+ export const DCodeCheckbox: DefineComponent<{
148
+ modelValue?: boolean | string[] | any
149
+ label?: string
150
+ title?: string
151
+ required?: boolean
152
+ disabled?: boolean
153
+ visible?: boolean
154
+ skeleton?: boolean
155
+ [key: string]: any
156
+ }>
157
+
158
+ export const DCodeCardCheckboxList: DefineComponent<{
159
+ label?: string
160
+ items?: CheckboxItem[]
161
+ modelValue?: CheckboxItem[] | (string | number)[]
162
+ columns?: 1 | 2 | 3 | 4
163
+ skeleton?: boolean
164
+ disabled?: boolean
165
+ visible?: boolean
166
+ apiModule?: string
167
+ apiAction?: string
168
+ endpoint?: {
169
+ apiUrl: string
170
+ apiMethod?: string
126
171
  [key: string]: any
127
- }>
128
-
129
- export interface CheckboxItem {
130
- id: string | number
131
- title: string
132
- value?: boolean
133
- disabled?: boolean
134
- indeterminate?: boolean
135
172
  }
136
-
137
- export const DCodeCheckbox: DefineComponent<{
138
- modelValue?: boolean | string[] | any
139
- label?: string
140
- title?: string
141
- required?: boolean
142
- disabled?: boolean
143
- visible?: boolean
144
- skeleton?: boolean
145
- [key: string]: any
146
- }>
147
-
148
- export const DCodeCardCheckboxList: DefineComponent<{
149
- label?: string
150
- items?: CheckboxItem[]
151
- modelValue?: CheckboxItem[] | (string | number)[]
152
- columns?: 1 | 2 | 3 | 4
153
- skeleton?: boolean
154
- disabled?: boolean
155
- visible?: boolean
156
- apiModule?: string
157
- apiAction?: string
158
- endpoint?: {
159
- apiUrl: string
160
- apiMethod?: string
161
- [key: string]: any
162
- }
163
- itemTitle?: string
164
- itemValue?: string
165
- apiParams?: Record<string, any>
166
- returnArray?: boolean
167
- [key: string]: any
168
- }>
169
-
170
- export const DCodeCurrencyField: DefineComponent<{
171
- modelValue?: number | null
172
- label?: string
173
- placeholder?: string
174
- disabled?: boolean
175
- visible?: boolean
176
- skeleton?: boolean
177
- error?: string | null
178
- currency?: string
179
- [key: string]: any
180
- }>
181
-
182
- export const DCodeDatePicker: DefineComponent<{
183
- modelValue?: string | Date | null
184
- label?: string
185
- placeholder?: string
186
- disabled?: boolean
187
- visible?: boolean
188
- skeleton?: boolean
189
- error?: string | null
190
- format?: string
191
- [key: string]: any
192
- }>
193
-
194
- export const DCodeDialog: DefineComponent<{
195
- modelValue?: boolean
196
- title?: string
197
- [key: string]: any
198
- }>
199
-
200
- export const DCodeDialogCloseBtn: DefineComponent<{
201
- [key: string]: any
202
- }>
203
-
204
- export const DCodeDropzone: DefineComponent<{
205
- modelValue?: File | File[] | null
206
- label?: string
207
- accept?: string
208
- multiple?: boolean
209
- disabled?: boolean
210
- visible?: boolean
211
- [key: string]: any
212
- }>
213
-
214
- export const DCodeFileField: DefineComponent<{
215
- modelValue?: File | null
216
- label?: string
217
- accept?: string
218
- disabled?: boolean
219
- visible?: boolean
220
- skeleton?: boolean
221
- error?: string | null
222
- [key: string]: any
223
- }>
224
-
225
- export const DCodeFileResult: DefineComponent<{
226
- value?: string | null
227
- label?: string
228
- visible?: boolean
229
- [key: string]: any
230
- }>
231
-
232
- export const DCodeIconDropdown: DefineComponent<{
233
- items?: any[]
234
- disabled?: boolean
235
- visible?: boolean
236
- [key: string]: any
237
- }>
238
-
239
- export const DCodeImageCropperDialog: DefineComponent<{
240
- modelValue?: boolean
241
- imageSrc?: string
242
- [key: string]: any
243
- }>
244
-
245
- export const DCodeImageField: DefineComponent<{
246
- modelValue?: string | File | null
247
- label?: string
248
- disabled?: boolean
249
- visible?: boolean
250
- skeleton?: boolean
251
- error?: string | null
252
- [key: string]: any
253
- }>
254
-
255
- export const DCodeImageResult: DefineComponent<{
256
- value?: string | null
257
- label?: string
258
- visible?: boolean
259
- [key: string]: any
260
- }>
261
-
262
- export const DCodeInfiniteAutoComplete: DefineComponent<{
263
- modelValue?: string | number | object | any[] | null | undefined
173
+ itemTitle?: string
174
+ itemValue?: string
175
+ apiParams?: Record<string, any>
176
+ returnArray?: boolean
177
+ [key: string]: any
178
+ }>
179
+
180
+ export const DCodeCurrencyField: DefineComponent<{
181
+ modelValue?: number | null
182
+ label?: string
183
+ placeholder?: string
184
+ disabled?: boolean
185
+ visible?: boolean
186
+ skeleton?: boolean
187
+ error?: string | null
188
+ currency?: string
189
+ [key: string]: any
190
+ }>
191
+
192
+ export const DCodeDatePicker: DefineComponent<{
193
+ modelValue?: string | Date | null
194
+ label?: string
195
+ placeholder?: string
196
+ disabled?: boolean
197
+ visible?: boolean
198
+ skeleton?: boolean
199
+ error?: string | null
200
+ format?: string
201
+ [key: string]: any
202
+ }>
203
+
204
+ export const DCodeDialog: DefineComponent<{
205
+ modelValue?: boolean
206
+ title?: string
207
+ [key: string]: any
208
+ }>
209
+
210
+ export const DCodeDialogCloseBtn: DefineComponent<{
211
+ [key: string]: any
212
+ }>
213
+
214
+ export const DCodeDropzone: DefineComponent<{
215
+ modelValue?: File | File[] | null
216
+ label?: string
217
+ accept?: string
218
+ multiple?: boolean
219
+ disabled?: boolean
220
+ visible?: boolean
221
+ [key: string]: any
222
+ }>
223
+
224
+ export const DCodeFileField: DefineComponent<{
225
+ modelValue?: File | null
226
+ label?: string
227
+ accept?: string
228
+ disabled?: boolean
229
+ visible?: boolean
230
+ skeleton?: boolean
231
+ error?: string | null
232
+ [key: string]: any
233
+ }>
234
+
235
+ export const DCodeFileResult: DefineComponent<{
236
+ value?: string | null
237
+ label?: string
238
+ visible?: boolean
239
+ [key: string]: any
240
+ }>
241
+
242
+ export const DCodeIconDropdown: DefineComponent<{
243
+ items?: any[]
244
+ disabled?: boolean
245
+ visible?: boolean
246
+ [key: string]: any
247
+ }>
248
+
249
+ export const DCodeImageCropperDialog: DefineComponent<{
250
+ modelValue?: boolean
251
+ imageSrc?: string
252
+ [key: string]: any
253
+ }>
254
+
255
+ export const DCodeImageField: DefineComponent<{
256
+ modelValue?: string | File | null
257
+ label?: string
258
+ disabled?: boolean
259
+ visible?: boolean
260
+ skeleton?: boolean
261
+ error?: string | null
262
+ [key: string]: any
263
+ }>
264
+
265
+ export const DCodeImageResult: DefineComponent<{
266
+ value?: string | null
267
+ label?: string
268
+ visible?: boolean
269
+ [key: string]: any
270
+ }>
271
+
272
+ export const DCodeInfiniteAutoComplete: DefineComponent<{
273
+ modelValue?: string | number | object | any[] | null | undefined
274
+ apiModule?: string
275
+ apiAction?: string
276
+ apiOptions?: any | (() => any | undefined)
277
+ autoFetchOnOpen?: boolean
278
+ refreshOnOpen?: boolean
279
+ autoFetchOnMount?: boolean
280
+ visible?: boolean
281
+ clearable?: boolean
282
+ disabled?: boolean
283
+ skeleton?: boolean
284
+ error?: string | null
285
+ errorMessage?: string | null
286
+ itemTitle?: string | ((item: any) => string)
287
+ itemValue?: string | ((item: any) => any)
288
+ itemSubtitle?: string | ((item: any) => string)
289
+ returnObject?: boolean
290
+ endpoint?: {
264
291
  apiModule?: string
265
292
  apiAction?: string
266
- apiOptions?: any | (() => any | undefined)
267
- autoFetchOnOpen?: boolean
268
- refreshOnOpen?: boolean
269
- autoFetchOnMount?: boolean
270
- visible?: boolean
271
- clearable?: boolean
272
- disabled?: boolean
273
- skeleton?: boolean
274
- error?: string | null
275
- errorMessage?: string | null
276
- itemTitle?: string | ((item: any) => string)
277
- itemValue?: string | ((item: any) => any)
278
- itemSubtitle?: string | ((item: any) => string)
279
- returnObject?: boolean
280
- endpoint?: {
281
- apiModule?: string
282
- apiAction?: string
283
- apiUrl?: string
284
- apiMethod?: string
285
- }
286
- apiParams?: Record<string, any>
287
- fetchItems?: () => Promise<any[]>
288
- icon?: any
289
- label?: string
290
- placeholder?: string
291
- required?: boolean
292
- inputType?: string
293
- helperText?: string
294
- noResultsText?: string
295
- loadingText?: string
296
- endOfResultsText?: string
297
- pageSize?: number
298
- threshold?: number
299
- debounceMs?: number
300
- [key: string]: any
301
- }>
302
-
303
- export const DCodeLabel: DefineComponent<{
304
- for?: string
305
- required?: boolean
306
- [key: string]: any
307
- }>
308
-
309
- export const DCodeMultiSelect: DefineComponent<{
310
- modelValue?: any[]
311
- options?: any[]
312
- label?: string
313
- placeholder?: string
314
- disabled?: boolean
315
- visible?: boolean
316
- skeleton?: boolean
317
- error?: string | null
318
- [key: string]: any
319
- }>
320
-
321
- export const DCodeOtpInput: DefineComponent<{
322
- modelValue?: string
323
- length?: number
324
- disabled?: boolean
325
- visible?: boolean
326
- [key: string]: any
327
- }>
328
-
329
- export const DCodePermissionMenu: DefineComponent<{
330
- menuList?: any[]
331
- enableParentControl?: boolean
332
- showIcons?: boolean
333
- modelValue?: Array<{ menuId: number; actionsIds: number[] }>
334
- treeData?: any[]
335
- [key: string]: any
336
- }>
337
-
338
- export const DCodeProgress: DefineComponent<{
339
- modelValue?: number
340
- max?: number
341
- label?: string
342
- showValue?: boolean
343
- color?: string
344
- size?: 'sm' | 'md' | 'lg'
345
- striped?: boolean
346
- animated?: boolean
347
- [key: string]: any
348
- }>
349
-
350
- export const DCodeProgressBar: DefineComponent<{
351
- isApiLoading?: boolean
352
- apiProgress?: number
353
- }>
354
-
355
- export const DCodeRadio: DefineComponent<{
356
- modelValue?: any
357
- value?: any
358
- label?: string
359
- description?: string
360
- disabled?: boolean
361
- required?: boolean
362
- error?: string | null
363
- size?: 'sm' | 'md' | 'lg'
364
- color?: string
365
- name?: string
366
- id?: string
367
- [key: string]: any
368
- }>
369
-
370
- export const DCodeRadioCustom: DefineComponent<{
371
- modelValue?: string | number | boolean
372
- options?: any[]
373
- label?: string
374
- disabled?: boolean
375
- visible?: boolean
376
- [key: string]: any
377
- }>
378
-
379
- export const DCodeSlider: DefineComponent<{
380
- modelValue?: number
381
- label?: string
382
- min?: number
383
- max?: number
384
- step?: number
385
- disabled?: boolean
386
- visible?: boolean
387
- [key: string]: any
388
- }>
389
-
390
- export const DCodeStaticLabel: DefineComponent<{
391
- label?: string
392
- value?: any
393
- icon?: string
394
- color?: "primary" | "success" | "warning" | "danger" | "info" | "secondary" | "dark"
395
- [key: string]: any
396
- }>
397
-
398
- export const DCodeStaticImage: DefineComponent<{
399
- items: any[]
400
- alt?: string
401
- label?: string
402
- aspectRatio?: string
403
- width?: string
404
- height?: string
405
- fit?: "cover" | "contain" | "fill" | "none"
406
- rounded?: boolean
407
- allowPreview?: boolean
408
- columns?: number
409
- gap?: string
410
- [key: string]: any
411
- }>
412
-
413
- export const DCodeSwitch: DefineComponent<{
414
- modelValue?: boolean
415
- label?: string
416
- disabled?: boolean
417
- visible?: boolean
418
- skeleton?: boolean
419
- [key: string]: any
420
- }>
421
-
422
- export const DCodeTextField: DefineComponent<{
423
- modelValue?: string | number | null
424
- label?: string
425
- placeholder?: string
426
- clearable?: boolean
427
- hideClearWhenEmpty?: boolean
428
- textCase?: 'none' | 'uppercase' | 'lowercase' | 'titlecase' | 'sentencecase'
429
- applyTextCaseToValue?: boolean
430
- valueType?: 'free' | 'number' | 'letter' | 'letternumber' | 'email' | 'password'
431
- allowSpaces?: boolean
432
- allowChars?: string | string[]
433
- pattern?: RegExp
434
- visible?: boolean
435
- skeleton?: boolean
436
- showCharCount?: boolean
437
- returnNumber?: boolean
438
- error?: string | null
439
- disabled?: boolean
440
- [key: string]: any
441
- }>
442
-
443
- export const DCodeTextarea: DefineComponent<{
444
- modelValue?: string | null
445
- label?: string
446
- placeholder?: string
447
- disabled?: boolean
448
- visible?: boolean
449
- skeleton?: boolean
450
- error?: string | null
451
- [key: string]: any
452
- }>
453
-
454
- export const DCodeTimelineWithIcons: DefineComponent<{
455
- items?: any[]
456
293
  apiUrl?: string
457
- apiModule?: string
458
- apiAction?: string
459
294
  apiMethod?: string
460
- apiParams?: Record<string, any>
461
- title?: string
462
- endpoint?: {
463
- apiUrl?: string;
464
- apiMethod?: string;
465
- keyParam?: string[];
466
- }
467
- [key: string]: any
468
- }>
469
-
470
- export const DCodeUploadFile: DefineComponent<{
471
- modelValue?: File | null
472
- label?: string
473
- accept?: string
474
- disabled?: boolean
475
- visible?: boolean
476
- [key: string]: any
477
- }>
478
-
479
- export const DCodeWorkflowDiagram: DefineComponent<{
480
- auditId?: string | number
481
- fetcher?: (params: { auditId: string | number }) => Promise<Blob>
295
+ }
296
+ apiParams?: Record<string, any>
297
+ fetchItems?: () => Promise<any[]>
298
+ icon?: any
299
+ label?: string
300
+ placeholder?: string
301
+ required?: boolean
302
+ inputType?: string
303
+ helperText?: string
304
+ noResultsText?: string
305
+ loadingText?: string
306
+ endOfResultsText?: string
307
+ pageSize?: number
308
+ threshold?: number
309
+ debounceMs?: number
310
+ [key: string]: any
311
+ }>
312
+
313
+ export const DCodeLabel: DefineComponent<{
314
+ for?: string
315
+ required?: boolean
316
+ [key: string]: any
317
+ }>
318
+
319
+ export const DCodeMultiSelect: DefineComponent<{
320
+ modelValue?: any[]
321
+ options?: any[]
322
+ label?: string
323
+ placeholder?: string
324
+ disabled?: boolean
325
+ visible?: boolean
326
+ skeleton?: boolean
327
+ error?: string | null
328
+ [key: string]: any
329
+ }>
330
+
331
+ export const DCodeOtpInput: DefineComponent<{
332
+ modelValue?: string
333
+ length?: number
334
+ disabled?: boolean
335
+ visible?: boolean
336
+ [key: string]: any
337
+ }>
338
+
339
+ export const DCodePermissionMenu: DefineComponent<{
340
+ menuList?: any[]
341
+ enableParentControl?: boolean
342
+ showIcons?: boolean
343
+ modelValue?: Array<{ menuId: number; actionsIds: number[] }>
344
+ treeData?: any[]
345
+ [key: string]: any
346
+ }>
347
+
348
+ export const DCodeProgress: DefineComponent<{
349
+ modelValue?: number
350
+ max?: number
351
+ label?: string
352
+ showValue?: boolean
353
+ color?: string
354
+ size?: 'sm' | 'md' | 'lg'
355
+ striped?: boolean
356
+ animated?: boolean
357
+ [key: string]: any
358
+ }>
359
+
360
+ export const DCodeProgressBar: DefineComponent<{
361
+ isApiLoading?: boolean
362
+ apiProgress?: number
363
+ }>
364
+
365
+ export const DCodeRadio: DefineComponent<{
366
+ modelValue?: any
367
+ value?: any
368
+ label?: string
369
+ description?: string
370
+ disabled?: boolean
371
+ required?: boolean
372
+ error?: string | null
373
+ size?: 'sm' | 'md' | 'lg'
374
+ color?: string
375
+ name?: string
376
+ id?: string
377
+ [key: string]: any
378
+ }>
379
+
380
+ export const DCodeRadioCustom: DefineComponent<{
381
+ modelValue?: string | number | boolean
382
+ options?: any[]
383
+ label?: string
384
+ disabled?: boolean
385
+ visible?: boolean
386
+ [key: string]: any
387
+ }>
388
+
389
+ export const DCodeSlider: DefineComponent<{
390
+ modelValue?: number
391
+ label?: string
392
+ min?: number
393
+ max?: number
394
+ step?: number
395
+ disabled?: boolean
396
+ visible?: boolean
397
+ [key: string]: any
398
+ }>
399
+
400
+ export const DCodeStaticLabel: DefineComponent<{
401
+ label?: string
402
+ value?: any
403
+ icon?: string
404
+ color?: "primary" | "success" | "warning" | "danger" | "info" | "secondary" | "dark"
405
+ [key: string]: any
406
+ }>
407
+
408
+ export const DCodeStaticImage: DefineComponent<{
409
+ items: any[]
410
+ alt?: string
411
+ label?: string
412
+ aspectRatio?: string
413
+ width?: string
414
+ height?: string
415
+ fit?: "cover" | "contain" | "fill" | "none"
416
+ rounded?: boolean
417
+ allowPreview?: boolean
418
+ columns?: number
419
+ gap?: string
420
+ [key: string]: any
421
+ }>
422
+
423
+ export const DCodeSwitch: DefineComponent<{
424
+ modelValue?: boolean
425
+ label?: string
426
+ disabled?: boolean
427
+ visible?: boolean
428
+ skeleton?: boolean
429
+ [key: string]: any
430
+ }>
431
+
432
+ export const DCodeTextField: DefineComponent<{
433
+ modelValue?: string | number | null
434
+ label?: string
435
+ placeholder?: string
436
+ clearable?: boolean
437
+ hideClearWhenEmpty?: boolean
438
+ textCase?: 'none' | 'uppercase' | 'lowercase' | 'titlecase' | 'sentencecase'
439
+ applyTextCaseToValue?: boolean
440
+ valueType?: 'free' | 'number' | 'letter' | 'letternumber' | 'email' | 'password'
441
+ allowSpaces?: boolean
442
+ allowChars?: string | string[]
443
+ pattern?: RegExp
444
+ visible?: boolean
445
+ skeleton?: boolean
446
+ showCharCount?: boolean
447
+ returnNumber?: boolean
448
+ error?: string | null
449
+ disabled?: boolean
450
+ [key: string]: any
451
+ }>
452
+
453
+ export const DCodeTextarea: DefineComponent<{
454
+ modelValue?: string | null
455
+ label?: string
456
+ placeholder?: string
457
+ disabled?: boolean
458
+ visible?: boolean
459
+ skeleton?: boolean
460
+ error?: string | null
461
+ [key: string]: any
462
+ }>
463
+
464
+ export const DCodeTimelineWithIcons: DefineComponent<{
465
+ items?: any[]
466
+ apiUrl?: string
467
+ apiModule?: string
468
+ apiAction?: string
469
+ apiMethod?: string
470
+ apiParams?: Record<string, any>
471
+ title?: string
472
+ endpoint?: {
473
+ apiUrl?: string;
474
+ apiMethod?: string;
475
+ keyParam?: string[];
476
+ }
477
+ [key: string]: any
478
+ }>
479
+
480
+ export const DCodeUploadFile: DefineComponent<{
481
+ modelValue?: File | null
482
+ label?: string
483
+ accept?: string
484
+ disabled?: boolean
485
+ visible?: boolean
486
+ [key: string]: any
487
+ }>
488
+
489
+ export const DCodeWorkflowDiagram: DefineComponent<{
490
+ auditId?: string | number
491
+ fetcher?: (params: { auditId: string | number }) => Promise<Blob>
492
+ apiModule?: string
493
+ apiAction?: string
494
+ apiUrl?: string
495
+ apiMethod?: string
496
+ apiParams?: Record<string, any>
497
+ title?: string
498
+ height?: string
499
+ [key: string]: any
500
+ }>
501
+
502
+ export const DCodeWizard: DefineComponent<{
503
+ steps?: any[]
504
+ modelValue?: number
505
+ visible?: boolean
506
+ [key: string]: any
507
+ }>
508
+
509
+ export const DCodeTreePermissions: DefineComponent<{
510
+ modelValue?: Array<{ menuId: number; actionsIds: number[] }>
511
+ label?: string
512
+ required?: boolean
513
+ disabled?: boolean
514
+ error?: string
515
+ treeData?: any[]
516
+ [key: string]: any
517
+ }>
518
+
519
+ export const DCodeDynamicUploadList: DefineComponent<{
520
+ modelValue?: any[]
521
+ label?: string
522
+ labelID?: string
523
+ labelEN?: string
524
+ endpoint?: {
482
525
  apiModule?: string
483
526
  apiAction?: string
484
527
  apiUrl?: string
485
528
  apiMethod?: string
486
- apiParams?: Record<string, any>
487
- title?: string
488
- height?: string
489
- [key: string]: any
490
- }>
491
-
492
- export const DCodeWizard: DefineComponent<{
493
- steps?: any[]
494
- modelValue?: number
495
- visible?: boolean
496
- [key: string]: any
497
- }>
498
-
499
- export const DCodeTreePermissions: DefineComponent<{
500
- modelValue?: Array<{ menuId: number; actionsIds: number[] }>
501
- label?: string
502
- required?: boolean
503
- disabled?: boolean
504
- error?: string
505
- treeData?: any[]
506
- [key: string]: any
507
- }>
508
-
509
- export const DCodeDynamicUploadList: DefineComponent<{
510
- modelValue?: any[]
511
- label?: string
512
- labelID?: string
513
- labelEN?: string
514
- endpoint?: {
515
- apiModule?: string
516
- apiAction?: string
517
- apiUrl?: string
518
- apiMethod?: string
519
- }
520
- endpointReference?: {
521
- apiModule?: string
522
- apiAction?: string
523
- apiUrl?: string
524
- apiMethod?: string
525
- }
526
- itemTitle?: string
527
- itemValue?: string
528
- baseUrl?: string
529
- disabled?: boolean
530
- visible?: boolean
531
- skeleton?: boolean
532
- error?: string | null
533
- [key: string]: any
534
- }>
535
-
536
- export const MicroDynamicForm: any
537
- export const MicroDynamicDatatable: any
538
-
539
- export const AutoLayoutForm: DefineComponent<{
540
- layoutCode: string
541
- isEditMode?: boolean
542
- model?: Record<string, any>
543
- [key: string]: any
544
- }>
545
- export const AutoLayoutDatatable: DefineComponent<{
546
- layoutCode: string
547
- userPermissions?: any
548
- permissionBase?: string
549
- checkPermission?: (permission: string) => boolean
550
- [key: string]: any
551
- }>
552
- export const DataTable: DefineComponent<{
553
- columns?: any[]
554
- data?: any[]
555
- perPage?: number
556
- loading?: boolean
557
- hasActions?: boolean
558
- nested?: boolean
529
+ }
530
+ endpointReference?: {
559
531
  apiModule?: string
560
532
  apiAction?: string
561
- apiMethod?: string
562
533
  apiUrl?: string
563
- permissionBase?: string
564
- apiParams?: Record<string, any>
565
- configKey?: string
566
- tableConfig?: any
567
- dynamicColumns?: boolean
568
- searchApiEndpoint?: string
569
- enableQuickSearch?: boolean
570
- showPagination?: boolean
571
- ignorePermissions?: boolean
572
- userPermissions?: any
573
- permissionChecker?: (path: string, action: string) => boolean
574
- permissions?: string[]
575
- checkPermission?: (permission: string) => boolean
576
- menuPermissions?: any[]
577
- dummyMode?: boolean
578
- [key: string]: any
579
- }>
580
- export const DataTableComponent: DefineComponent<{
581
- [key: string]: any
582
- }>
583
-
584
- export const DynamicForm: DefineComponent<{
585
- schema: any
586
- dummyMode?: boolean
587
- model?: Record<string, any>
588
- isEditMode?: boolean
589
- loading?: boolean
590
- baseUrl?: string
591
- [key: string]: any
592
- }>
593
-
594
- export function registerLogic(name: string, module: any): void
595
- export function getLogicModule(name: string): any
596
- export function unregisterLogic(name: string): void
597
-
598
- export function cn(...inputs: any[]): string
599
- export function useDynamicForm(props: any, emit: any): any
534
+ apiMethod?: string
535
+ }
536
+ itemTitle?: string
537
+ itemValue?: string
538
+ baseUrl?: string
539
+ disabled?: boolean
540
+ visible?: boolean
541
+ skeleton?: boolean
542
+ error?: string | null
543
+ [key: string]: any
544
+ }>
545
+
546
+ export const MicroDynamicForm: any
547
+ export const MicroDynamicDatatable: any
548
+
549
+ export const AutoLayoutForm: DefineComponent<{
550
+ layoutCode: string
551
+ isEditMode?: boolean
552
+ model?: Record<string, any>
553
+ [key: string]: any
554
+ }>
555
+ export const AutoLayoutDatatable: DefineComponent<{
556
+ layoutCode: string
557
+ userPermissions?: any
558
+ permissionBase?: string
559
+ checkPermission?: (permission: string) => boolean
560
+ [key: string]: any
561
+ }>
562
+ export const DataTable: DefineComponent<{
563
+ columns?: any[]
564
+ data?: any[]
565
+ perPage?: number
566
+ loading?: boolean
567
+ hasActions?: boolean
568
+ nested?: boolean
569
+ apiModule?: string
570
+ apiAction?: string
571
+ apiMethod?: string
572
+ apiUrl?: string
573
+ permissionBase?: string
574
+ apiParams?: Record<string, any>
575
+ configKey?: string
576
+ tableConfig?: any
577
+ dynamicColumns?: boolean
578
+ searchApiEndpoint?: string
579
+ enableQuickSearch?: boolean
580
+ showPagination?: boolean
581
+ ignorePermissions?: boolean
582
+ userPermissions?: any
583
+ permissionChecker?: (path: string, action: string) => boolean
584
+ permissions?: string[]
585
+ checkPermission?: (permission: string) => boolean
586
+ menuPermissions?: any[]
587
+ dummyMode?: boolean
588
+ [key: string]: any
589
+ }>
590
+ export const DataTableComponent: DefineComponent<{
591
+ [key: string]: any
592
+ }>
593
+
594
+ export const DynamicForm: DefineComponent<{
595
+ schema: any
596
+ dummyMode?: boolean
597
+ model?: Record<string, any>
598
+ isEditMode?: boolean
599
+ loading?: boolean
600
+ baseUrl?: string
601
+ [key: string]: any
602
+ }>
603
+
604
+ export function registerLogic(name: string, module: any): void
605
+ export function getLogicModule(name: string): any
606
+ export function unregisterLogic(name: string): void
607
+
608
+ export function cn(...inputs: any[]): string
609
+ export function useDynamicForm(props: any, emit: any): any
600
610
 
601
611
  const DynamicUI: {
602
612
  install: (app: any, options?: DynamicUIApiConfig) => void