@ui-adapter/adapter 1.0.3 → 1.0.5
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/core/adapter.d.ts +4 -5
- package/dist/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/core/adapter.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
package/dist/core/adapter.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
2
|
|
|
3
3
|
type UILibrary = 'ant-design-vue' | 'element-plus' | string;
|
|
4
|
-
interface
|
|
4
|
+
interface ComponentMap {
|
|
5
5
|
[key: string]: Component | undefined | any;
|
|
6
6
|
}
|
|
7
7
|
interface ComponentPropMap {
|
|
@@ -14,7 +14,7 @@ interface ComponentEventMap {
|
|
|
14
14
|
[componentName: string]: Record<string, string>;
|
|
15
15
|
}
|
|
16
16
|
interface AdapterOptions {
|
|
17
|
-
components?: Partial<
|
|
17
|
+
components?: Partial<ComponentMap>;
|
|
18
18
|
propMap?: ComponentPropMap;
|
|
19
19
|
methodMap?: ComponentMethodMap;
|
|
20
20
|
eventMap?: ComponentEventMap;
|
|
@@ -23,10 +23,10 @@ interface AdapterOptions {
|
|
|
23
23
|
interface UIAdapter {
|
|
24
24
|
name: UILibrary;
|
|
25
25
|
options: AdapterOptions;
|
|
26
|
-
components:
|
|
26
|
+
components: ComponentMap;
|
|
27
27
|
getComponent: (name: string) => Component | undefined;
|
|
28
28
|
registerComponent: (name: string, component: Component) => void;
|
|
29
|
-
registerComponents: (components: Partial<
|
|
29
|
+
registerComponents: (components: Partial<ComponentMap>) => void;
|
|
30
30
|
getFinalProps: (component: string | Component, props: Record<string, any>) => Record<string, any>;
|
|
31
31
|
getFinalPropName: (component: string | Component, propName: string) => string;
|
|
32
32
|
getFinalEventName: (component: string | Component, eventName: string) => string;
|
|
@@ -38,4 +38,3 @@ declare function getAdapter(): UIAdapter;
|
|
|
38
38
|
declare function hasAdapter(): boolean;
|
|
39
39
|
export type { UILibrary, AdapterOptions, UIAdapter };
|
|
40
40
|
export { setAdapter, getUILibrary, getAdapter, hasAdapter };
|
|
41
|
-
//# sourceMappingURL=adapter.d.ts.map
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../src/core/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAGrC,KAAK,SAAS,GAAG,gBAAgB,GAAG,cAAc,GAAG,MAAM,CAAC;AAG5D,UAAU,gBAAgB;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,GAAG,CAAC;CAC5C;AAGD,UAAU,gBAAgB;IACxB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjD;AAGD,UAAU,kBAAkB;IAC1B,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjD;AAGD,UAAU,iBAAiB;IACzB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjD;AAGD,UAAU,cAAc;IAEtB,UAAU,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEvC,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAE3B,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAE/B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAE7B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAGD,UAAU,SAAS;IACjB,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,cAAc,CAAC;IACxB,UAAU,EAAE,gBAAgB,CAAC;IAO7B,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,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