@gemafajarramadhan/dynamic-ui 1.4.27 → 1.4.29
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 +2 -2
- package/dist/dynamic-ui.es.js +38038 -40570
- package/dist/dynamic-ui.umd.js +1403 -308
- package/dist/index.d.ts +34 -0
- package/package.json +1 -1
- package/src/index.d.ts +34 -0
package/dist/index.d.ts
CHANGED
|
@@ -458,6 +458,21 @@ export const DCodeProgressBar: DefineComponent<{
|
|
|
458
458
|
apiProgress?: number
|
|
459
459
|
}>
|
|
460
460
|
|
|
461
|
+
export const DCodePercentage: DefineComponent<{
|
|
462
|
+
value?: number
|
|
463
|
+
max?: number
|
|
464
|
+
label?: string
|
|
465
|
+
caption?: string
|
|
466
|
+
showValue?: boolean
|
|
467
|
+
variant?: 'bar' | 'circle' | 'donut' | 'semi-circle' | 'radial' | 'steps' | 'bullet'
|
|
468
|
+
size?: 'sm' | 'md' | 'lg'
|
|
469
|
+
target?: number
|
|
470
|
+
stepCount?: number
|
|
471
|
+
color?: 'primary' | 'success' | 'warning' | 'danger'
|
|
472
|
+
visible?: boolean
|
|
473
|
+
[key: string]: any
|
|
474
|
+
}>
|
|
475
|
+
|
|
461
476
|
export const DCodeRadio: DefineComponent<{
|
|
462
477
|
modelValue?: any
|
|
463
478
|
value?: any
|
|
@@ -823,6 +838,25 @@ export const TooltipProvider: DefineComponent<{
|
|
|
823
838
|
[key: string]: any
|
|
824
839
|
}>
|
|
825
840
|
|
|
841
|
+
export interface MetricBarItem {
|
|
842
|
+
id?: string | number
|
|
843
|
+
label: string
|
|
844
|
+
value: string | number | boolean
|
|
845
|
+
type?: 'text' | 'currency' | 'percent' | 'badge'
|
|
846
|
+
color?: string
|
|
847
|
+
badgeType?: 'success' | 'danger' | 'warning' | 'info' | 'neutral'
|
|
848
|
+
badgeText?: string
|
|
849
|
+
badgeColor?: string
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
export const DCodeBarCustom: DefineComponent<{
|
|
853
|
+
items?: MetricBarItem[]
|
|
854
|
+
border?: boolean
|
|
855
|
+
shadow?: boolean
|
|
856
|
+
padding?: string
|
|
857
|
+
containerClass?: string
|
|
858
|
+
}>
|
|
859
|
+
|
|
826
860
|
export function registerLogic(name: string, module: any): void
|
|
827
861
|
export function getLogicModule(name: string): any
|
|
828
862
|
export function unregisterLogic(name: string): void
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -458,6 +458,21 @@ export const DCodeProgressBar: DefineComponent<{
|
|
|
458
458
|
apiProgress?: number
|
|
459
459
|
}>
|
|
460
460
|
|
|
461
|
+
export const DCodePercentage: DefineComponent<{
|
|
462
|
+
value?: number
|
|
463
|
+
max?: number
|
|
464
|
+
label?: string
|
|
465
|
+
caption?: string
|
|
466
|
+
showValue?: boolean
|
|
467
|
+
variant?: 'bar' | 'circle' | 'donut' | 'semi-circle' | 'radial' | 'steps' | 'bullet'
|
|
468
|
+
size?: 'sm' | 'md' | 'lg'
|
|
469
|
+
target?: number
|
|
470
|
+
stepCount?: number
|
|
471
|
+
color?: 'primary' | 'success' | 'warning' | 'danger'
|
|
472
|
+
visible?: boolean
|
|
473
|
+
[key: string]: any
|
|
474
|
+
}>
|
|
475
|
+
|
|
461
476
|
export const DCodeRadio: DefineComponent<{
|
|
462
477
|
modelValue?: any
|
|
463
478
|
value?: any
|
|
@@ -823,6 +838,25 @@ export const TooltipProvider: DefineComponent<{
|
|
|
823
838
|
[key: string]: any
|
|
824
839
|
}>
|
|
825
840
|
|
|
841
|
+
export interface MetricBarItem {
|
|
842
|
+
id?: string | number
|
|
843
|
+
label: string
|
|
844
|
+
value: string | number | boolean
|
|
845
|
+
type?: 'text' | 'currency' | 'percent' | 'badge'
|
|
846
|
+
color?: string
|
|
847
|
+
badgeType?: 'success' | 'danger' | 'warning' | 'info' | 'neutral'
|
|
848
|
+
badgeText?: string
|
|
849
|
+
badgeColor?: string
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
export const DCodeBarCustom: DefineComponent<{
|
|
853
|
+
items?: MetricBarItem[]
|
|
854
|
+
border?: boolean
|
|
855
|
+
shadow?: boolean
|
|
856
|
+
padding?: string
|
|
857
|
+
containerClass?: string
|
|
858
|
+
}>
|
|
859
|
+
|
|
826
860
|
export function registerLogic(name: string, module: any): void
|
|
827
861
|
export function getLogicModule(name: string): any
|
|
828
862
|
export function unregisterLogic(name: string): void
|