@gemafajarramadhan/dynamic-ui 1.3.8 → 1.3.10
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 +10448 -10474
- package/dist/dynamic-ui.umd.js +31 -31
- package/dist/index.d.ts +9 -13
- package/package.json +1 -1
- package/src/index.d.ts +9 -13
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import type { DefineComponent, Plugin, App } from 'vue'
|
|
1
|
+
import type { DefineComponent, Plugin, App } from 'vue'
|
|
3
2
|
|
|
4
3
|
export interface DynamicUIApiConfig {
|
|
5
|
-
|
|
6
|
-
getAuthToken?: () => string | null | undefined
|
|
7
|
-
getHeaders?: () => Record<string, string>
|
|
8
|
-
onUnauthorized?: () => void
|
|
9
|
-
apiClient?: (url: string, method?: string, data?: any) => Promise<any>
|
|
4
|
+
externalApi: any
|
|
10
5
|
}
|
|
11
6
|
|
|
12
|
-
export function setApiConfig(config: DynamicUIApiConfig): void
|
|
13
|
-
|
|
14
7
|
export const DynamicFormField: DefineComponent<{
|
|
15
8
|
field: {
|
|
16
9
|
key: string;
|
|
@@ -104,6 +97,9 @@ declare module '@gemafajarramadhan/dynamic-ui' {
|
|
|
104
97
|
type?: 'BUTTON' | 'SUBMIT' | 'RESET' | 'button' | 'submit' | 'reset'
|
|
105
98
|
visible?: boolean
|
|
106
99
|
skeleton?: boolean
|
|
100
|
+
to?: string
|
|
101
|
+
icon?: string
|
|
102
|
+
iconClass?: string
|
|
107
103
|
[key: string]: any
|
|
108
104
|
}>
|
|
109
105
|
|
|
@@ -590,9 +586,9 @@ declare module '@gemafajarramadhan/dynamic-ui' {
|
|
|
590
586
|
export function unregisterLogic(name: string): void
|
|
591
587
|
|
|
592
588
|
export function cn(...inputs: any[]): string
|
|
589
|
+
export function useDynamicForm(props: any, emit: any): any
|
|
593
590
|
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
}
|
|
597
|
-
export default DynamicUI
|
|
591
|
+
const DynamicUI: {
|
|
592
|
+
install: (app: any, options?: DynamicUIApiConfig) => void
|
|
598
593
|
}
|
|
594
|
+
export default DynamicUI
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import type { DefineComponent, Plugin, App } from 'vue'
|
|
1
|
+
import type { DefineComponent, Plugin, App } from 'vue'
|
|
3
2
|
|
|
4
3
|
export interface DynamicUIApiConfig {
|
|
5
|
-
|
|
6
|
-
getAuthToken?: () => string | null | undefined
|
|
7
|
-
getHeaders?: () => Record<string, string>
|
|
8
|
-
onUnauthorized?: () => void
|
|
9
|
-
apiClient?: (url: string, method?: string, data?: any) => Promise<any>
|
|
4
|
+
externalApi: any
|
|
10
5
|
}
|
|
11
6
|
|
|
12
|
-
export function setApiConfig(config: DynamicUIApiConfig): void
|
|
13
|
-
|
|
14
7
|
export const DynamicFormField: DefineComponent<{
|
|
15
8
|
field: {
|
|
16
9
|
key: string;
|
|
@@ -104,6 +97,9 @@ declare module '@gemafajarramadhan/dynamic-ui' {
|
|
|
104
97
|
type?: 'BUTTON' | 'SUBMIT' | 'RESET' | 'button' | 'submit' | 'reset'
|
|
105
98
|
visible?: boolean
|
|
106
99
|
skeleton?: boolean
|
|
100
|
+
to?: string
|
|
101
|
+
icon?: string
|
|
102
|
+
iconClass?: string
|
|
107
103
|
[key: string]: any
|
|
108
104
|
}>
|
|
109
105
|
|
|
@@ -590,9 +586,9 @@ declare module '@gemafajarramadhan/dynamic-ui' {
|
|
|
590
586
|
export function unregisterLogic(name: string): void
|
|
591
587
|
|
|
592
588
|
export function cn(...inputs: any[]): string
|
|
589
|
+
export function useDynamicForm(props: any, emit: any): any
|
|
593
590
|
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
}
|
|
597
|
-
export default DynamicUI
|
|
591
|
+
const DynamicUI: {
|
|
592
|
+
install: (app: any, options?: DynamicUIApiConfig) => void
|
|
598
593
|
}
|
|
594
|
+
export default DynamicUI
|