@fbkworks/adapter-vant 0.2.0 → 0.3.0
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/index.d.ts +1 -2
- package/dist/index.mjs +1 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
- package/dist/primitives/Empty.d.ts +0 -13
- package/dist/primitives/Empty.mjs +0 -26
- package/dist/primitives/Empty.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,11 +11,10 @@ import { Pagination } from './primitives/Pagination.js';
|
|
|
11
11
|
import { Dialog } from './primitives/Dialog.js';
|
|
12
12
|
import { Drawer } from './primitives/Drawer.js';
|
|
13
13
|
import { Tag } from './primitives/Tag.js';
|
|
14
|
-
import { Empty } from './primitives/Empty.js';
|
|
15
14
|
import { Spin } from './primitives/Spin.js';
|
|
16
15
|
import { vantTheme } from './theme.js';
|
|
17
16
|
import { RootProvider } from './root-provider.js';
|
|
18
17
|
export declare const vantCapabilities: Capabilities;
|
|
19
18
|
export declare const vantAdapter: UiAdapter;
|
|
20
19
|
export { vantTheme, RootProvider };
|
|
21
|
-
export { Button, Input, Select, Checkbox, DatePicker, Radio, Form, FormItem, DataGrid, Pagination, Dialog, Drawer, Tag,
|
|
20
|
+
export { Button, Input, Select, Checkbox, DatePicker, Radio, Form, FormItem, DataGrid, Pagination, Dialog, Drawer, Tag, Spin };
|
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,6 @@ import { Pagination } from "./primitives/Pagination.mjs";
|
|
|
11
11
|
import { Dialog } from "./primitives/Dialog.mjs";
|
|
12
12
|
import { Drawer } from "./primitives/Drawer.mjs";
|
|
13
13
|
import { Tag } from "./primitives/Tag.mjs";
|
|
14
|
-
import { Empty } from "./primitives/Empty.mjs";
|
|
15
14
|
import { Spin } from "./primitives/Spin.mjs";
|
|
16
15
|
import { vantTheme } from "./theme.mjs";
|
|
17
16
|
import { RootProvider } from "./root-provider.mjs";
|
|
@@ -50,7 +49,7 @@ const vantAdapter = {
|
|
|
50
49
|
platform: "mobile"
|
|
51
50
|
},
|
|
52
51
|
capabilities: vantCapabilities,
|
|
53
|
-
primitives: { Button, Input, Select, Checkbox, DatePicker, Radio, Form, FormItem, DataGrid, Pagination, Dialog, Drawer, Tag,
|
|
52
|
+
primitives: { Button, Input, Select, Checkbox, DatePicker, Radio, Form, FormItem, DataGrid, Pagination, Dialog, Drawer, Tag, Spin },
|
|
54
53
|
feedback,
|
|
55
54
|
RootProvider,
|
|
56
55
|
theme: vantTheme
|
|
@@ -62,7 +61,6 @@ export {
|
|
|
62
61
|
DatePicker,
|
|
63
62
|
Dialog,
|
|
64
63
|
Drawer,
|
|
65
|
-
Empty,
|
|
66
64
|
Form,
|
|
67
65
|
FormItem,
|
|
68
66
|
Input,
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import type { Capabilities, UiAdapter } from '@fbkworks/adapter-core'\nimport { Button } from './primitives/Button'\nimport { Input } from './primitives/Input'\nimport { Select } from './primitives/Select'\nimport { Checkbox } from './primitives/Checkbox'\nimport { DatePicker } from './primitives/DatePicker'\nimport { Radio } from './primitives/Radio'\nimport { feedback } from './feedback'\nimport { Form, FormItem } from './primitives/Form'\nimport { DataGrid } from './primitives/DataGrid'\nimport { Pagination } from './primitives/Pagination'\nimport { Dialog } from './primitives/Dialog'\nimport { Drawer } from './primitives/Drawer'\nimport { Tag } from './primitives/Tag'\nimport {
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import type { Capabilities, UiAdapter } from '@fbkworks/adapter-core'\nimport { Button } from './primitives/Button'\nimport { Input } from './primitives/Input'\nimport { Select } from './primitives/Select'\nimport { Checkbox } from './primitives/Checkbox'\nimport { DatePicker } from './primitives/DatePicker'\nimport { Radio } from './primitives/Radio'\nimport { feedback } from './feedback'\nimport { Form, FormItem } from './primitives/Form'\nimport { DataGrid } from './primitives/DataGrid'\nimport { Pagination } from './primitives/Pagination'\nimport { Dialog } from './primitives/Dialog'\nimport { Drawer } from './primitives/Drawer'\nimport { Tag } from './primitives/Tag'\nimport { Spin } from './primitives/Spin'\nimport { vantTheme } from './theme'\nimport { RootProvider } from './root-provider'\n\nexport const vantCapabilities: Capabilities = {\n dataGrid: {\n presentation: 'cards',\n selection: true,\n /* 卡片列表没有表头,全文也没有一处 emit('update:sort');\n 补齐移动端排序入口(下拉 / 筛选栏 / 顶栏菜单)需要产品方案,故声明为 none。 */\n sort: 'none',\n expandable: false,\n tree: false,\n virtualScroll: false,\n stickyHeader: false,\n },\n form: {\n layout: 'vertical',\n labelWidth: false,\n validateOn: ['change', 'blur', 'submit'],\n asyncValidator: true,\n },\n // van-popup 的 position 就是抽屉:Drawer 原语已实现,能力声明必须跟上\n overlay: { kind: 'popup', supportsDrawer: true, supportsTeleport: true },\n pagination: { mode: 'infinite', pageSizes: false, jumper: false },\n // 只有契约里真实存在的两个 API;notification / loading 没有对应实现,不声明\n feedback: { message: true, notification: false, confirm: true, loading: false },\n theme: { darkMode: true, cssVariables: true, provider: true },\n features: { 'table.fixedColumns': false, 'table.summary': false, 'form.inline': false },\n}\n\nexport const vantAdapter: UiAdapter = {\n meta: {\n apiVersion: 3,\n name: 'vant',\n version: '0.1.0',\n uiLibrary: { name: 'vant', version: '^4.9.0' },\n platform: 'mobile',\n },\n capabilities: vantCapabilities,\n primitives: { Button, Input, Select, Checkbox, DatePicker, Radio, Form, FormItem, DataGrid, Pagination, Dialog, Drawer, Tag, Spin },\n feedback,\n RootProvider,\n theme: vantTheme,\n}\n\nexport { vantTheme, RootProvider }\nexport { Button, Input, Select, Checkbox, DatePicker, Radio, Form, FormItem, DataGrid, Pagination, Dialog, Drawer, Tag, Spin }\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAkBO,MAAM,mBAAiC;AAAA,EAC5C,UAAU;AAAA,IACR,cAAc;AAAA,IACd,WAAW;AAAA;AAAA;AAAA,IAGX,MAAM;AAAA,IACN,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,eAAe;AAAA,IACf,cAAc;AAAA,EAAA;AAAA,EAEhB,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,YAAY,CAAC,UAAU,QAAQ,QAAQ;AAAA,IACvC,gBAAgB;AAAA,EAAA;AAAA;AAAA,EAGlB,SAAS,EAAE,MAAM,SAAS,gBAAgB,MAAM,kBAAkB,KAAA;AAAA,EAClE,YAAY,EAAE,MAAM,YAAY,WAAW,OAAO,QAAQ,MAAA;AAAA;AAAA,EAE1D,UAAU,EAAE,SAAS,MAAM,cAAc,OAAO,SAAS,MAAM,SAAS,MAAA;AAAA,EACxE,OAAO,EAAE,UAAU,MAAM,cAAc,MAAM,UAAU,KAAA;AAAA,EACvD,UAAU,EAAE,sBAAsB,OAAO,iBAAiB,OAAO,eAAe,MAAA;AAClF;AAEO,MAAM,cAAyB;AAAA,EACpC,MAAM;AAAA,IACJ,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW,EAAE,MAAM,QAAQ,SAAS,SAAA;AAAA,IACpC,UAAU;AAAA,EAAA;AAAA,EAEZ,cAAc;AAAA,EACd,YAAY,EAAE,QAAQ,OAAO,QAAQ,UAAU,YAAY,OAAO,MAAM,UAAU,UAAU,YAAY,QAAQ,QAAQ,KAAK,KAAA;AAAA,EAC7H;AAAA,EACA;AAAA,EACA,OAAO;AACT;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fbkworks/adapter-vant",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css"
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"./package.json": "./package.json"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@fbkworks/adapter-core": "^0.
|
|
25
|
-
"@fbkworks/shared": "^0.
|
|
26
|
-
"@fbkworks/tokens": "^0.
|
|
24
|
+
"@fbkworks/adapter-core": "^0.3.0",
|
|
25
|
+
"@fbkworks/shared": "^0.3.0",
|
|
26
|
+
"@fbkworks/tokens": "^0.3.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"vant": "^4.9.0",
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
"adapter"
|
|
42
42
|
],
|
|
43
43
|
"license": "MIT",
|
|
44
|
-
"author": "
|
|
45
|
-
"homepage": "https://github.com/
|
|
44
|
+
"author": "socalledPF",
|
|
45
|
+
"homepage": "https://github.com/socalledPF/fbkworks#readme",
|
|
46
46
|
"repository": {
|
|
47
47
|
"type": "git",
|
|
48
|
-
"url": "git+https://github.com/
|
|
48
|
+
"url": "git+https://github.com/socalledPF/fbkworks.git",
|
|
49
49
|
"directory": "packages/adapters/vant"
|
|
50
50
|
},
|
|
51
51
|
"bugs": {
|
|
52
|
-
"url": "https://github.com/
|
|
52
|
+
"url": "https://github.com/socalledPF/fbkworks/issues"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=20.11.0"
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const Empty: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
description: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
-
description: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
}>> & Readonly<{}>, {
|
|
12
|
-
description: string;
|
|
13
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createVNode, mergeProps } from "vue";
|
|
2
|
-
import { Empty as Empty$1 } from "vant";
|
|
3
|
-
const Empty = /* @__PURE__ */ defineComponent({
|
|
4
|
-
name: "FbkVantEmpty",
|
|
5
|
-
inheritAttrs: false,
|
|
6
|
-
props: {
|
|
7
|
-
description: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: "暂无数据"
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
setup(props, {
|
|
13
|
-
attrs,
|
|
14
|
-
slots
|
|
15
|
-
}) {
|
|
16
|
-
return () => createVNode(Empty$1, mergeProps(attrs, {
|
|
17
|
-
"description": props.description
|
|
18
|
-
}), {
|
|
19
|
-
default: () => [slots.default?.()]
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
export {
|
|
24
|
-
Empty
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=Empty.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Empty.mjs","sources":["../../src/primitives/Empty.tsx"],"sourcesContent":["import { defineComponent } from 'vue'\nimport { Empty as VanEmpty } from 'vant'\n\nexport const Empty = defineComponent({\n name: 'FbkVantEmpty',\n inheritAttrs: false,\n props: { description: { type: String, default: '暂无数据' } },\n setup(props, { attrs, slots }) {\n return () => (\n <VanEmpty {...attrs} description={props.description}>\n {slots.default?.()}\n </VanEmpty>\n )\n },\n})\n"],"names":["Empty","defineComponent","name","inheritAttrs","props","description","type","String","default","setup","attrs","slots","_createVNode","VanEmpty","_mergeProps"],"mappings":";;AAGO,MAAMA,QAAQC,gCAAgB;AAAA,EACnCC,MAAM;AAAA,EACNC,cAAc;AAAA,EACdC,OAAO;AAAA,IAAEC,aAAa;AAAA,MAAEC,MAAMC;AAAAA,MAAQC,SAAS;AAAA,IAAO;AAAA;EACtDC,MAAML,OAAO;AAAA,IAAEM;AAAAA,IAAOC;AAAAA,EAAM,GAAG;AAC7B,WAAO,MAAAC,YAAAC,SAAAC,WACSJ,OAAK;AAAA,MAAA,eAAeN,MAAMC;AAAAA,IAAW,CAAA,GAAA;AAAA,MAAAG,SAAAA,MAAA,CAChDG,MAAMH,UAAO,CAAI;AAAA,KAAA;AAAA,EAGxB;AACF,CAAC;"}
|