@skyworx/dynamic-ui 1.0.2 → 1.0.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/src/index.d.ts DELETED
@@ -1,614 +0,0 @@
1
- import type { DefineComponent, Plugin, App } from 'vue'
2
-
3
- export interface DynamicUIApiConfig {
4
- externalApi: any
5
- }
6
-
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
- }
146
-
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
171
- [key: string]: any
172
- }
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?: {
291
- apiModule?: string
292
- apiAction?: string
293
- apiUrl?: string
294
- apiMethod?: string
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?: {
525
- apiModule?: string
526
- apiAction?: string
527
- apiUrl?: string
528
- apiMethod?: string
529
- }
530
- endpointReference?: {
531
- apiModule?: string
532
- apiAction?: string
533
- apiUrl?: string
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
610
-
611
- const DynamicUI: {
612
- install: (app: any, options?: DynamicUIApiConfig) => void
613
- }
614
- export default DynamicUI