@gemafajarramadhan/dynamic-ui 1.3.85 → 1.3.87
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/dynamic-ui.css +5 -2
- package/dist/dynamic-ui.es.js +84019 -19829
- package/dist/dynamic-ui.umd.js +381 -53
- package/dist/index.d.ts +95 -0
- package/package.json +5 -1
- package/src/index.d.ts +95 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DefineComponent, Plugin, App } from 'vue'
|
|
2
|
+
import type { ChartData, ChartOptions } from 'chart.js'
|
|
2
3
|
|
|
3
4
|
export interface DynamicUIApiConfig {
|
|
4
5
|
externalApi: any
|
|
@@ -14,6 +15,50 @@ export const CardSummary: DefineComponent<{
|
|
|
14
15
|
delay?: number
|
|
15
16
|
}>
|
|
16
17
|
|
|
18
|
+
export const DashboardActivityCard: DefineComponent<{
|
|
19
|
+
title: string
|
|
20
|
+
description: string
|
|
21
|
+
years: number[]
|
|
22
|
+
modelValue: number
|
|
23
|
+
data: ChartData<'bar'>
|
|
24
|
+
options?: ChartOptions<'bar'>
|
|
25
|
+
loading?: boolean
|
|
26
|
+
theme?: 'light' | 'dark'
|
|
27
|
+
}>
|
|
28
|
+
|
|
29
|
+
export interface DashboardInsightItem {
|
|
30
|
+
id: string | number
|
|
31
|
+
count: number
|
|
32
|
+
title: string
|
|
33
|
+
description: string
|
|
34
|
+
tone: 'primary' | 'warning' | 'danger'
|
|
35
|
+
route?: string | Record<string, unknown>
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const DashboardInsightsCard: DefineComponent<{
|
|
39
|
+
title: string
|
|
40
|
+
description: string
|
|
41
|
+
items: DashboardInsightItem[]
|
|
42
|
+
loading?: boolean
|
|
43
|
+
skeletonCount?: number
|
|
44
|
+
}>
|
|
45
|
+
|
|
46
|
+
export interface DashboardFeatureItem {
|
|
47
|
+
id: string | number
|
|
48
|
+
category: string
|
|
49
|
+
releaseDate: string
|
|
50
|
+
title: string
|
|
51
|
+
description: string
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export const DashboardFeaturesCard: DefineComponent<{
|
|
55
|
+
title: string
|
|
56
|
+
description: string
|
|
57
|
+
items: DashboardFeatureItem[]
|
|
58
|
+
loading?: boolean
|
|
59
|
+
skeletonCount?: number
|
|
60
|
+
}>
|
|
61
|
+
|
|
17
62
|
export const DynamicFormField: DefineComponent<{
|
|
18
63
|
field: {
|
|
19
64
|
key: string;
|
|
@@ -446,6 +491,22 @@ export const DCodeSwitch: DefineComponent<{
|
|
|
446
491
|
[key: string]: any
|
|
447
492
|
}>
|
|
448
493
|
|
|
494
|
+
export const DCodeSegment: DefineComponent<{
|
|
495
|
+
modelValue?: string | number
|
|
496
|
+
label?: string
|
|
497
|
+
title?: string
|
|
498
|
+
required?: boolean
|
|
499
|
+
disabled?: boolean
|
|
500
|
+
readonly?: boolean
|
|
501
|
+
size?: 'small' | 'medium' | 'large'
|
|
502
|
+
color?: string
|
|
503
|
+
layout?: 'default' | 'icon-only' | 'icon-bottom' | 'icon-start' | 'icon-end'
|
|
504
|
+
options?: { label?: string; value: string | number; icon?: string; disabled?: boolean }[]
|
|
505
|
+
id?: string
|
|
506
|
+
skeleton?: boolean
|
|
507
|
+
[key: string]: any
|
|
508
|
+
}>
|
|
509
|
+
|
|
449
510
|
export const DCodeTextField: DefineComponent<{
|
|
450
511
|
modelValue?: string | number | null
|
|
451
512
|
label?: string
|
|
@@ -467,6 +528,27 @@ export const DCodeTextField: DefineComponent<{
|
|
|
467
528
|
[key: string]: any
|
|
468
529
|
}>
|
|
469
530
|
|
|
531
|
+
export const DCodeMapField: DefineComponent<{
|
|
532
|
+
modelValue?: any
|
|
533
|
+
valueFormat?: 'object-lat-lng' | 'object-latitude-longitude' | 'array-lat-lng' | 'array-lng-lat' | 'string'
|
|
534
|
+
label?: string
|
|
535
|
+
placeholder?: string
|
|
536
|
+
disabled?: boolean
|
|
537
|
+
readonly?: boolean
|
|
538
|
+
visible?: boolean
|
|
539
|
+
skeleton?: boolean
|
|
540
|
+
error?: string | null
|
|
541
|
+
height?: string
|
|
542
|
+
zoom?: number
|
|
543
|
+
defaultLat?: number
|
|
544
|
+
defaultLng?: number
|
|
545
|
+
enableSearch?: boolean
|
|
546
|
+
enableCurrentLocation?: boolean
|
|
547
|
+
enableManualInput?: boolean
|
|
548
|
+
[key: string]: any
|
|
549
|
+
}>
|
|
550
|
+
|
|
551
|
+
|
|
470
552
|
export const DCodeTextarea: DefineComponent<{
|
|
471
553
|
modelValue?: string | null
|
|
472
554
|
label?: string
|
|
@@ -478,6 +560,19 @@ export const DCodeTextarea: DefineComponent<{
|
|
|
478
560
|
[key: string]: any
|
|
479
561
|
}>
|
|
480
562
|
|
|
563
|
+
export const DCodeTextEditor: DefineComponent<{
|
|
564
|
+
modelValue?: string | null
|
|
565
|
+
label?: string
|
|
566
|
+
error?: string | null
|
|
567
|
+
disabled?: boolean
|
|
568
|
+
readonly?: boolean
|
|
569
|
+
visible?: boolean
|
|
570
|
+
skeleton?: boolean
|
|
571
|
+
placeholder?: string
|
|
572
|
+
height?: string
|
|
573
|
+
[key: string]: any
|
|
574
|
+
}>
|
|
575
|
+
|
|
481
576
|
export const DCodeTimelineWithIcons: DefineComponent<{
|
|
482
577
|
items?: any[]
|
|
483
578
|
apiUrl?: string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gemafajarramadhan/dynamic-ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.87",
|
|
4
4
|
"description": "Vue 3 Dynamic UI Component Library - Compatible with Vue, React, Angular, and any other framework via Web Components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
+
"@ckeditor/ckeditor5-vue": "^8.1.1",
|
|
83
84
|
"@fontsource/geist-mono": "^5.2.7",
|
|
84
85
|
"@fontsource/geist-sans": "^5.2.5",
|
|
85
86
|
"@jamescoyle/vue-icon": "^0.1.2",
|
|
@@ -90,10 +91,12 @@
|
|
|
90
91
|
"@vuepic/vue-datepicker": "^12.0.0",
|
|
91
92
|
"@vueuse/core": "^14.2.1",
|
|
92
93
|
"chart.js": "^4.5.1",
|
|
94
|
+
"ckeditor5": "^48.2.0",
|
|
93
95
|
"class-variance-authority": "^0.7.1",
|
|
94
96
|
"clsx": "^2.1.1",
|
|
95
97
|
"currency.js": "^2.0.4",
|
|
96
98
|
"json-logic-js": "^2.0.5",
|
|
99
|
+
"leaflet": "^1.9.4",
|
|
97
100
|
"lucide-vue-next": "^0.575.0",
|
|
98
101
|
"reka-ui": "^2.8.0",
|
|
99
102
|
"tailwind-merge": "^3.5.0",
|
|
@@ -107,6 +110,7 @@
|
|
|
107
110
|
},
|
|
108
111
|
"devDependencies": {
|
|
109
112
|
"@types/json-logic-js": "^2.0.8",
|
|
113
|
+
"@types/leaflet": "^1.9.21",
|
|
110
114
|
"@types/node": "^25.0.3",
|
|
111
115
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
112
116
|
"autoprefixer": "^10.4.19",
|
package/src/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DefineComponent, Plugin, App } from 'vue'
|
|
2
|
+
import type { ChartData, ChartOptions } from 'chart.js'
|
|
2
3
|
|
|
3
4
|
export interface DynamicUIApiConfig {
|
|
4
5
|
externalApi: any
|
|
@@ -14,6 +15,50 @@ export const CardSummary: DefineComponent<{
|
|
|
14
15
|
delay?: number
|
|
15
16
|
}>
|
|
16
17
|
|
|
18
|
+
export const DashboardActivityCard: DefineComponent<{
|
|
19
|
+
title: string
|
|
20
|
+
description: string
|
|
21
|
+
years: number[]
|
|
22
|
+
modelValue: number
|
|
23
|
+
data: ChartData<'bar'>
|
|
24
|
+
options?: ChartOptions<'bar'>
|
|
25
|
+
loading?: boolean
|
|
26
|
+
theme?: 'light' | 'dark'
|
|
27
|
+
}>
|
|
28
|
+
|
|
29
|
+
export interface DashboardInsightItem {
|
|
30
|
+
id: string | number
|
|
31
|
+
count: number
|
|
32
|
+
title: string
|
|
33
|
+
description: string
|
|
34
|
+
tone: 'primary' | 'warning' | 'danger'
|
|
35
|
+
route?: string | Record<string, unknown>
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const DashboardInsightsCard: DefineComponent<{
|
|
39
|
+
title: string
|
|
40
|
+
description: string
|
|
41
|
+
items: DashboardInsightItem[]
|
|
42
|
+
loading?: boolean
|
|
43
|
+
skeletonCount?: number
|
|
44
|
+
}>
|
|
45
|
+
|
|
46
|
+
export interface DashboardFeatureItem {
|
|
47
|
+
id: string | number
|
|
48
|
+
category: string
|
|
49
|
+
releaseDate: string
|
|
50
|
+
title: string
|
|
51
|
+
description: string
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export const DashboardFeaturesCard: DefineComponent<{
|
|
55
|
+
title: string
|
|
56
|
+
description: string
|
|
57
|
+
items: DashboardFeatureItem[]
|
|
58
|
+
loading?: boolean
|
|
59
|
+
skeletonCount?: number
|
|
60
|
+
}>
|
|
61
|
+
|
|
17
62
|
export const DynamicFormField: DefineComponent<{
|
|
18
63
|
field: {
|
|
19
64
|
key: string;
|
|
@@ -446,6 +491,22 @@ export const DCodeSwitch: DefineComponent<{
|
|
|
446
491
|
[key: string]: any
|
|
447
492
|
}>
|
|
448
493
|
|
|
494
|
+
export const DCodeSegment: DefineComponent<{
|
|
495
|
+
modelValue?: string | number
|
|
496
|
+
label?: string
|
|
497
|
+
title?: string
|
|
498
|
+
required?: boolean
|
|
499
|
+
disabled?: boolean
|
|
500
|
+
readonly?: boolean
|
|
501
|
+
size?: 'small' | 'medium' | 'large'
|
|
502
|
+
color?: string
|
|
503
|
+
layout?: 'default' | 'icon-only' | 'icon-bottom' | 'icon-start' | 'icon-end'
|
|
504
|
+
options?: { label?: string; value: string | number; icon?: string; disabled?: boolean }[]
|
|
505
|
+
id?: string
|
|
506
|
+
skeleton?: boolean
|
|
507
|
+
[key: string]: any
|
|
508
|
+
}>
|
|
509
|
+
|
|
449
510
|
export const DCodeTextField: DefineComponent<{
|
|
450
511
|
modelValue?: string | number | null
|
|
451
512
|
label?: string
|
|
@@ -467,6 +528,27 @@ export const DCodeTextField: DefineComponent<{
|
|
|
467
528
|
[key: string]: any
|
|
468
529
|
}>
|
|
469
530
|
|
|
531
|
+
export const DCodeMapField: DefineComponent<{
|
|
532
|
+
modelValue?: any
|
|
533
|
+
valueFormat?: 'object-lat-lng' | 'object-latitude-longitude' | 'array-lat-lng' | 'array-lng-lat' | 'string'
|
|
534
|
+
label?: string
|
|
535
|
+
placeholder?: string
|
|
536
|
+
disabled?: boolean
|
|
537
|
+
readonly?: boolean
|
|
538
|
+
visible?: boolean
|
|
539
|
+
skeleton?: boolean
|
|
540
|
+
error?: string | null
|
|
541
|
+
height?: string
|
|
542
|
+
zoom?: number
|
|
543
|
+
defaultLat?: number
|
|
544
|
+
defaultLng?: number
|
|
545
|
+
enableSearch?: boolean
|
|
546
|
+
enableCurrentLocation?: boolean
|
|
547
|
+
enableManualInput?: boolean
|
|
548
|
+
[key: string]: any
|
|
549
|
+
}>
|
|
550
|
+
|
|
551
|
+
|
|
470
552
|
export const DCodeTextarea: DefineComponent<{
|
|
471
553
|
modelValue?: string | null
|
|
472
554
|
label?: string
|
|
@@ -478,6 +560,19 @@ export const DCodeTextarea: DefineComponent<{
|
|
|
478
560
|
[key: string]: any
|
|
479
561
|
}>
|
|
480
562
|
|
|
563
|
+
export const DCodeTextEditor: DefineComponent<{
|
|
564
|
+
modelValue?: string | null
|
|
565
|
+
label?: string
|
|
566
|
+
error?: string | null
|
|
567
|
+
disabled?: boolean
|
|
568
|
+
readonly?: boolean
|
|
569
|
+
visible?: boolean
|
|
570
|
+
skeleton?: boolean
|
|
571
|
+
placeholder?: string
|
|
572
|
+
height?: string
|
|
573
|
+
[key: string]: any
|
|
574
|
+
}>
|
|
575
|
+
|
|
481
576
|
export const DCodeTimelineWithIcons: DefineComponent<{
|
|
482
577
|
items?: any[]
|
|
483
578
|
apiUrl?: string
|