orion-design 0.1.52 → 0.1.54
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Flex/Col.d.ts +5 -16
- package/dist/components/Flex/Item.d.ts +1 -15
- package/dist/components/Flex/Row.d.ts +5 -16
- package/dist/components/Flex/index.js +44 -51
- package/dist/components/Flex/index.js.map +1 -1
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +4 -4
- package/dist/components/Form/Form.vue.d.ts +2 -2
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +8 -8
- package/dist/components/Form/TableSelect/TableSelect.vue.d.ts +8 -8
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/LovTable/LovPagetable.vue.d.ts +144 -504
- package/dist/components/LovTable/LovQuerytable.vue.d.ts +84 -356
- package/dist/components/LovTable/index.d.ts +114 -430
- package/dist/components/Pagetable/Pagetable.d.ts +43 -153
- package/dist/components/Pagetable/columns/PagetableCellButton.d.ts +5 -16
- package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +23 -96
- package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +28 -120
- package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +20 -83
- package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +23 -95
- package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +33 -127
- package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +29 -100
- package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +33 -127
- package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +22 -94
- package/dist/components/Pagetable/columns/PagetableColumngroup.d.ts +8 -29
- package/dist/components/Pagetable/hooks/useColumns.js +2 -2
- package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
- package/dist/components/Pagetable/hooks/usePagetable.d.ts +20 -16
- package/dist/components/Pagetable/hooks/usePagetable.js +33 -26
- package/dist/components/Pagetable/hooks/usePagetable.js.map +1 -1
- package/dist/components/Pagetable/index.d.ts +72 -216
- package/dist/components/Pagetable/index.js +526 -497
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Querytable/Querytable.d.ts +18 -78
- package/dist/components/Querytable/columns/QuerytableCellButton.d.ts +5 -16
- package/dist/components/Querytable/columns/QuerytableColumnButtongroup.d.ts +20 -83
- package/dist/components/Querytable/columns/QuerytableColumnDate.d.ts +26 -108
- package/dist/components/Querytable/columns/QuerytableColumnDiy.d.ts +17 -70
- package/dist/components/Querytable/columns/QuerytableColumnLink.d.ts +19 -81
- package/dist/components/Querytable/columns/QuerytableColumnMultiselect.d.ts +29 -113
- package/dist/components/Querytable/columns/QuerytableColumnNumber.d.ts +26 -87
- package/dist/components/Querytable/columns/QuerytableColumnSingleselect.d.ts +30 -114
- package/dist/components/Querytable/columns/QuerytableColumnString.d.ts +20 -82
- package/dist/components/Querytable/columns/QuerytableColumngroup.d.ts +8 -29
- package/dist/components/Querytable/hooks/useColumns.js +2 -2
- package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
- package/dist/components/Querytable/index.d.ts +49 -157
- package/dist/components/Querytable/index.js +384 -367
- package/dist/components/Querytable/index.js.map +1 -1
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +22 -48
- package/dist/components/RichTextEditor/index.d.ts +15 -34
- package/dist/components/RichTextEditor/index.js +31 -26
- package/dist/components/RichTextEditor/index.js.map +1 -1
- package/dist/components/Space/index.d.ts +11 -62
- package/dist/components/TableSelectPagetable/TableSelectPagetable.vue.d.ts +144 -504
- package/dist/components/TableSelectPagetable/index.d.ts +72 -252
- package/dist/components/Throne/ThroneContextProvider.d.ts +5 -16
- package/dist/components/_antd_util/camelize.d.ts +2 -0
- package/dist/components/_antd_util/camelize.js +8 -0
- package/dist/components/_antd_util/camelize.js.map +1 -0
- package/dist/components/_antd_util/classNames.js +24 -0
- package/dist/components/_antd_util/classNames.js.map +1 -0
- package/dist/components/_antd_util/index.d.ts +1 -0
- package/dist/components/_antd_util/index.js +14 -0
- package/dist/components/_antd_util/index.js.map +1 -0
- package/dist/components/_antd_util/isValid.js.map +1 -0
- package/dist/components/components.js +2 -2
- package/dist/components/index.js +3 -3
- package/dist/components-BZKLgLQx.js +54 -0
- package/dist/components-BZKLgLQx.js.map +1 -0
- package/dist/index-CvcZkdiG.js +46 -0
- package/dist/index-CvcZkdiG.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/Pagetable/interface.d.ts +0 -11
- package/dist/components/Pagetable/interface.js +0 -2
- package/dist/components/Pagetable/interface.js.map +0 -1
- package/dist/components/Querytable/interface.d.ts +0 -10
- package/dist/components/Querytable/interface.js +0 -2
- package/dist/components/Querytable/interface.js.map +0 -1
- package/dist/components/_util/classNames.js +0 -24
- package/dist/components/_util/classNames.js.map +0 -1
- package/dist/components/_util/isValid.js.map +0 -1
- package/dist/components/_util/props-util/index.d.ts +0 -6
- package/dist/components/_util/props-util/index.js +0 -26
- package/dist/components/_util/props-util/index.js.map +0 -1
- package/dist/components/_util/props-util/initDefaultProps.d.ts +0 -6
- package/dist/components/_util/props-util/initDefaultProps.js +0 -14
- package/dist/components/_util/props-util/initDefaultProps.js.map +0 -1
- package/dist/components/_util/type.d.ts +0 -66
- package/dist/components/_util/type.js +0 -53
- package/dist/components/_util/type.js.map +0 -1
- package/dist/components/_util/util.d.ts +0 -18
- package/dist/components/_util/util.js +0 -55
- package/dist/components/_util/util.js.map +0 -1
- package/dist/components/_util/vue-types/index.d.ts +0 -12
- package/dist/components/_util/vue-types/index.js +0 -331
- package/dist/components/_util/vue-types/index.js.map +0 -1
- package/dist/components-BvgQJQRM.js +0 -55
- package/dist/components-BvgQJQRM.js.map +0 -1
- package/dist/index-BbsXWo7C.js +0 -44
- package/dist/index-BbsXWo7C.js.map +0 -1
- /package/dist/components/{_util → _antd_util}/classNames.d.ts +0 -0
- /package/dist/components/{_util → _antd_util}/isValid.d.ts +0 -0
- /package/dist/components/{_util → _antd_util}/isValid.js +0 -0
package/dist/index.js
CHANGED
@@ -9,8 +9,8 @@ import { default as C } from "./components/Form/LovInput/hooks/useLov.js";
|
|
9
9
|
import { default as O } from "./components/Form/TableSelect/hooks/useTableSelect.js";
|
10
10
|
import { default as c } from "./components/Pagetable/hooks/usePagetable.js";
|
11
11
|
import { default as y } from "./components/Button/index.js";
|
12
|
-
import { T as S } from "./components-
|
13
|
-
import { S as L } from "./index-
|
12
|
+
import { T as S } from "./components-BZKLgLQx.js";
|
13
|
+
import { S as L } from "./index-CvcZkdiG.js";
|
14
14
|
import { Colflex as F, Flexitem as K, Rowflex as Q } from "./components/Flex/index.js";
|
15
15
|
import { default as E } from "./components/Card/index.js";
|
16
16
|
import { default as R } from "./components/Tabs/index.js";
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: "0.1.
|
1
|
+
declare const _default: "0.1.54";
|
2
2
|
export default _default;
|
package/dist/version/version.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../src/version/version.ts"],"sourcesContent":["export default '0.1.
|
1
|
+
{"version":3,"file":"version.js","sources":["../../src/version/version.ts"],"sourcesContent":["export default '0.1.54';"],"names":["version"],"mappings":"AAAA,MAAAA,IAAe;"}
|
package/package.json
CHANGED
@@ -1,11 +0,0 @@
|
|
1
|
-
export type DefaultRecordType = any;
|
2
|
-
export type FixedType = 'left' | 'right' | boolean;
|
3
|
-
export interface PageTableI<RecordType = DefaultRecordType> {
|
4
|
-
data: RecordType[];
|
5
|
-
pagination: {
|
6
|
-
currentPage?: number;
|
7
|
-
pageSize?: number;
|
8
|
-
pageSizes?: number[];
|
9
|
-
total?: number;
|
10
|
-
};
|
11
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"interface.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
export type DefaultRecordType = any;
|
2
|
-
export type FixedType = 'left' | 'right' | boolean;
|
3
|
-
export interface PageTableI<RecordType = DefaultRecordType> {
|
4
|
-
data: RecordType[];
|
5
|
-
pagination: {
|
6
|
-
currentPage?: number;
|
7
|
-
pageSize?: number;
|
8
|
-
total?: number;
|
9
|
-
};
|
10
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"interface.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { isString as f, isArray as r, isObject as l } from "./util.js";
|
2
|
-
function c(...t) {
|
3
|
-
const s = [];
|
4
|
-
for (let n = 0; n < t.length; n++) {
|
5
|
-
const e = t[n];
|
6
|
-
if (e) {
|
7
|
-
if (f(e))
|
8
|
-
s.push(e);
|
9
|
-
else if (r(e))
|
10
|
-
for (let i = 0; i < e.length; i++) {
|
11
|
-
const o = c(e[i]);
|
12
|
-
o && s.push(o);
|
13
|
-
}
|
14
|
-
else if (l(e))
|
15
|
-
for (const i in e)
|
16
|
-
e[i] && s.push(i);
|
17
|
-
}
|
18
|
-
}
|
19
|
-
return s.join(" ");
|
20
|
-
}
|
21
|
-
export {
|
22
|
-
c as default
|
23
|
-
};
|
24
|
-
//# sourceMappingURL=classNames.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"classNames.js","sources":["../../../src/components/_util/classNames.ts"],"sourcesContent":["import { isArray, isString, isObject } from './util'\r\nfunction classNames(...args: any[]) {\r\n const classes = []\r\n for (let i = 0; i < args.length; i++) {\r\n const value = args[i]\r\n if (!value) continue\r\n if (isString(value)) {\r\n // @ts-ignore\r\n classes.push(value)\r\n } else if (isArray(value)) {\r\n for (let i = 0; i < value.length; i++) {\r\n const inner = classNames(value[i])\r\n if (inner) {\r\n // @ts-ignore\r\n classes.push(inner)\r\n }\r\n }\r\n } else if (isObject(value)) {\r\n for (const name in value) {\r\n if (value[name]) {\r\n // @ts-ignore\r\n classes.push(name)\r\n }\r\n }\r\n }\r\n }\r\n return classes.join(' ')\r\n}\r\n\r\nexport default classNames\r\n"],"names":["classNames","args","classes","i","value","isString","isArray","inner","isObject","name"],"mappings":";AACA,SAASA,KAAcC,GAAa;AAClC,QAAMC,IAAU,CAAA;AAChB,WAASC,IAAI,GAAGA,IAAIF,EAAK,QAAQE,KAAK;AAC9B,UAAAC,IAAQH,EAAKE,CAAC;AACpB,QAAKC;AACD,UAAAC,EAASD,CAAK;AAEhB,QAAAF,EAAQ,KAAKE,CAAK;AAAA,eACTE,EAAQF,CAAK;AACtB,iBAASD,IAAI,GAAGA,IAAIC,EAAM,QAAQD,KAAK;AACrC,gBAAMI,IAAQP,EAAWI,EAAMD,CAAC,CAAC;AACjC,UAAII,KAEFL,EAAQ,KAAKK,CAAK;AAAA,QAEtB;AAAA,eACSC,EAASJ,CAAK;AACvB,mBAAWK,KAAQL;AACb,UAAAA,EAAMK,CAAI,KAEZP,EAAQ,KAAKO,CAAI;AAAA;AAAA,EAIzB;AACO,SAAAP,EAAQ,KAAK,GAAG;AACzB;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"isValid.js","sources":["../../../src/components/_util/isValid.ts"],"sourcesContent":["const isValid = (value: any): boolean => {\r\n return value !== undefined && value !== null && value !== ''\r\n}\r\nexport default isValid\r\n"],"names":["isValid","value"],"mappings":"AAAM,MAAAA,IAAU,CAACC,MACeA,KAAU,QAAQA,MAAU;"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { default as initDefaultProps } from './initDefaultProps';
|
2
|
-
export declare const skipFlattenKey: unique symbol;
|
3
|
-
export declare const flattenChildren: (children?: never[], filterEmpty?: boolean) => never[];
|
4
|
-
export declare function filterEmpty(children?: never[]): never[];
|
5
|
-
export declare function isEmptyElement(c: any): any;
|
6
|
-
export { initDefaultProps };
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { Fragment as p, isVNode as u, Comment as a, Text as y } from "vue";
|
2
|
-
import m from "../isValid.js";
|
3
|
-
import { default as C } from "./initDefaultProps.js";
|
4
|
-
const i = Symbol("skipFlatten"), o = (r = [], s = !0) => {
|
5
|
-
const t = Array.isArray(r) ? r : [r], n = [];
|
6
|
-
return t.forEach((e) => {
|
7
|
-
Array.isArray(e) ? n.push(...o(e, s)) : e && e.type === p ? e.key === i ? n.push(e) : n.push(...o(e.children, s)) : e && u(e) ? s && !f(e) ? n.push(e) : s || n.push(e) : m(e) && n.push(e);
|
8
|
-
}), n;
|
9
|
-
};
|
10
|
-
function A(r = []) {
|
11
|
-
const s = [];
|
12
|
-
return r.forEach((t) => {
|
13
|
-
Array.isArray(t) ? s.push(...t) : (t == null ? void 0 : t.type) === p ? s.push(...A(t.children)) : s.push(t);
|
14
|
-
}), s.filter((t) => !f(t));
|
15
|
-
}
|
16
|
-
function f(r) {
|
17
|
-
return r && (r.type === a || r.type === p && r.children.length === 0 || r.type === y && r.children.trim() === "");
|
18
|
-
}
|
19
|
-
export {
|
20
|
-
A as filterEmpty,
|
21
|
-
o as flattenChildren,
|
22
|
-
C as initDefaultProps,
|
23
|
-
f as isEmptyElement,
|
24
|
-
i as skipFlattenKey
|
25
|
-
};
|
26
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/_util/props-util/index.ts"],"sourcesContent":["import { isVNode, Fragment, Comment, Text } from 'vue'\r\nimport isValid from '../isValid'\r\nimport initDefaultProps from './initDefaultProps'\r\n\r\nexport const skipFlattenKey = Symbol('skipFlatten')\r\n\r\nexport const flattenChildren = (children = [], filterEmpty = true) => {\r\n const temp = Array.isArray(children) ? children : [children]\r\n const res = []\r\n temp.forEach((child) => {\r\n if (Array.isArray(child)) {\r\n res.push(...flattenChildren(child, filterEmpty))\r\n // @ts-ignore\r\n } else if (child && child.type === Fragment) {\r\n // @ts-ignore\r\n if (child.key === skipFlattenKey) {\r\n res.push(child)\r\n } else {\r\n // @ts-ignore\r\n res.push(...flattenChildren(child.children, filterEmpty))\r\n }\r\n } else if (child && isVNode(child)) {\r\n if (filterEmpty && !isEmptyElement(child)) {\r\n res.push(child)\r\n } else if (!filterEmpty) {\r\n res.push(child)\r\n }\r\n } else if (isValid(child)) {\r\n res.push(child)\r\n }\r\n })\r\n return res\r\n}\r\n\r\nexport function filterEmpty(children = []) {\r\n const res = []\r\n children.forEach((child) => {\r\n if (Array.isArray(child)) {\r\n // @ts-ignore\r\n res.push(...child)\r\n // @ts-ignore\r\n } else if (child?.type === Fragment) {\r\n // @ts-ignore\r\n res.push(...filterEmpty(child.children))\r\n } else {\r\n res.push(child)\r\n }\r\n })\r\n return res.filter((c) => !isEmptyElement(c))\r\n}\r\n\r\nexport function isEmptyElement(c: any) {\r\n return c && (c.type === Comment || (c.type === Fragment && c.children.length === 0) || (c.type === Text && c.children.trim() === ''))\r\n}\r\n\r\nexport { initDefaultProps }\r\n"],"names":["skipFlattenKey","flattenChildren","children","filterEmpty","temp","res","child","Fragment","isVNode","isEmptyElement","isValid","c","Comment","Text"],"mappings":";;;AAIa,MAAAA,IAAiB,OAAO,aAAa,GAErCC,IAAkB,CAACC,IAAW,IAAIC,IAAc,OAAS;AACpE,QAAMC,IAAO,MAAM,QAAQF,CAAQ,IAAIA,IAAW,CAACA,CAAQ,GACrDG,IAAM,CAAA;AACP,SAAAD,EAAA,QAAQ,CAACE,MAAU;AAClB,IAAA,MAAM,QAAQA,CAAK,IACrBD,EAAI,KAAK,GAAGJ,EAAgBK,GAAOH,CAAW,CAAC,IAEtCG,KAASA,EAAM,SAASC,IAE7BD,EAAM,QAAQN,IAChBK,EAAI,KAAKC,CAAK,IAGdD,EAAI,KAAK,GAAGJ,EAAgBK,EAAM,UAAUH,CAAW,CAAC,IAEjDG,KAASE,EAAQF,CAAK,IAC3BH,KAAe,CAACM,EAAeH,CAAK,IACtCD,EAAI,KAAKC,CAAK,IACJH,KACVE,EAAI,KAAKC,CAAK,IAEPI,EAAQJ,CAAK,KACtBD,EAAI,KAAKC,CAAK;AAAA,EAChB,CACD,GACMD;AACT;AAEgB,SAAAF,EAAYD,IAAW,IAAI;AACzC,QAAMG,IAAM,CAAA;AACH,SAAAH,EAAA,QAAQ,CAACI,MAAU;AACtB,IAAA,MAAM,QAAQA,CAAK,IAEjBD,EAAA,KAAK,GAAGC,CAAK,KAERA,KAAA,gBAAAA,EAAO,UAASC,IAEzBF,EAAI,KAAK,GAAGF,EAAYG,EAAM,QAAQ,CAAC,IAEvCD,EAAI,KAAKC,CAAK;AAAA,EAChB,CACD,GACMD,EAAI,OAAO,CAACM,MAAM,CAACF,EAAeE,CAAC,CAAC;AAC7C;AAEO,SAASF,EAAeE,GAAQ;AACrC,SAAOA,MAAMA,EAAE,SAASC,KAAYD,EAAE,SAASJ,KAAYI,EAAE,SAAS,WAAW,KAAOA,EAAE,SAASE,KAAQF,EAAE,SAAS,WAAW;AACnI;"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { PropType } from 'vue';
|
2
|
-
import { VueTypeValidableDef, VueTypeDef } from 'vue-types';
|
3
|
-
declare const initDefaultProps: <T>(types: T, defaultProps: { [K in keyof T]?: T[K] extends VueTypeValidableDef<infer U> ? U : T[K] extends VueTypeDef<infer U> ? U : T[K] extends {
|
4
|
-
type: PropType<infer U>;
|
5
|
-
} ? U : any; }) => T;
|
6
|
-
export default initDefaultProps;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
const p = (f, o) => {
|
2
|
-
const r = { ...f };
|
3
|
-
return Object.keys(o).forEach((t) => {
|
4
|
-
const e = r[t];
|
5
|
-
if (e)
|
6
|
-
e.type || e.default ? e.default = o[t] : e.def ? e.def(o[t]) : r[t] = { type: e, default: o[t] };
|
7
|
-
else
|
8
|
-
throw new Error(`not have ${t} prop`);
|
9
|
-
}), r;
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
p as default
|
13
|
-
};
|
14
|
-
//# sourceMappingURL=initDefaultProps.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"initDefaultProps.js","sources":["../../../../src/components/_util/props-util/initDefaultProps.ts"],"sourcesContent":["import type { PropType } from 'vue'\r\nimport type { VueTypeValidableDef, VueTypeDef } from 'vue-types'\r\n\r\nconst initDefaultProps = <T>(\r\n types: T,\r\n defaultProps: {\r\n [K in keyof T]?: T[K] extends VueTypeValidableDef<infer U> ? U : T[K] extends VueTypeDef<infer U> ? U : T[K] extends { type: PropType<infer U> } ? U : any\r\n }\r\n): T => {\r\n const propTypes: T = { ...types }\r\n Object.keys(defaultProps).forEach((k) => {\r\n const prop = propTypes[k] as VueTypeValidableDef\r\n if (prop) {\r\n if (prop.type || prop.default) {\r\n prop.default = defaultProps[k]\r\n } else if (prop.def) {\r\n prop.def(defaultProps[k])\r\n } else {\r\n propTypes[k] = { type: prop, default: defaultProps[k] }\r\n }\r\n } else {\r\n throw new Error(`not have ${k} prop`)\r\n }\r\n })\r\n return propTypes\r\n}\r\n\r\nexport default initDefaultProps\r\n"],"names":["initDefaultProps","types","defaultProps","propTypes","k","prop"],"mappings":"AAGM,MAAAA,IAAmB,CACvBC,GACAC,MAGM;AACA,QAAAC,IAAe,EAAE,GAAGF;AAC1B,gBAAO,KAAKC,CAAY,EAAE,QAAQ,CAACE,MAAM;AACjC,UAAAC,IAAOF,EAAUC,CAAC;AACxB,QAAIC;AACE,MAAAA,EAAK,QAAQA,EAAK,UACfA,EAAA,UAAUH,EAAaE,CAAC,IACpBC,EAAK,MACTA,EAAA,IAAIH,EAAaE,CAAC,CAAC,IAEdD,EAAAC,CAAC,IAAI,EAAE,MAAMC,GAAM,SAASH,EAAaE,CAAC;;AAGtD,YAAM,IAAI,MAAM,YAAYA,CAAC,OAAO;AAAA,EACtC,CACD,GACMD;AACT;"}
|
@@ -1,66 +0,0 @@
|
|
1
|
-
import { PropType, Plugin, Ref, VNode, SlotsType } from 'vue';
|
2
|
-
export declare const tuple: <T extends string[]>(...args: T) => T;
|
3
|
-
export declare const tupleNum: <T extends number[]>(...args: T) => T;
|
4
|
-
/**
|
5
|
-
* https://stackoverflow.com/a/59187769
|
6
|
-
* Extract the type of an element of an array/tuple without performing indexing
|
7
|
-
*/
|
8
|
-
export type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never;
|
9
|
-
/**
|
10
|
-
* https://github.com/Microsoft/TypeScript/issues/29729
|
11
|
-
*/
|
12
|
-
export type LiteralUnion<T extends string> = T | (string & {});
|
13
|
-
export type Data = Record<string, unknown>;
|
14
|
-
export type Key = string | number;
|
15
|
-
type DefaultFactory<T> = (props: Data) => T | null | undefined;
|
16
|
-
export interface PropOptions<T = any, D = T> {
|
17
|
-
type?: PropType<T> | true | null;
|
18
|
-
required?: boolean;
|
19
|
-
default?: D | DefaultFactory<D> | null | undefined | object;
|
20
|
-
validator?(value: unknown): boolean;
|
21
|
-
}
|
22
|
-
declare type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
|
23
|
-
export type VueNode = VNodeChildAtom | VNodeChildAtom[] | VNode;
|
24
|
-
export declare const withInstall: <T>(comp: T) => T & Plugin;
|
25
|
-
export type MaybeRef<T> = T | Ref<T>;
|
26
|
-
export declare function eventType<T>(): {
|
27
|
-
type: PropType<T | T[]>;
|
28
|
-
};
|
29
|
-
export declare function objectType<T = {}>(defaultVal?: T): {
|
30
|
-
type: PropType<T>;
|
31
|
-
default: T;
|
32
|
-
};
|
33
|
-
export declare function booleanType(defaultVal?: boolean): {
|
34
|
-
type: BooleanConstructor;
|
35
|
-
default: boolean;
|
36
|
-
};
|
37
|
-
export declare function functionType<T = () => {}>(defaultVal?: T): {
|
38
|
-
type: PropType<T>;
|
39
|
-
default: T;
|
40
|
-
};
|
41
|
-
export declare function anyType<T = any>(defaultVal?: T, required?: boolean): {
|
42
|
-
default: T;
|
43
|
-
type: PropType<T>;
|
44
|
-
};
|
45
|
-
export declare function vNodeType<T = VueNode>(): {
|
46
|
-
type: PropType<T>;
|
47
|
-
};
|
48
|
-
export declare function arrayType<T extends any[]>(defaultVal?: T): {
|
49
|
-
type: PropType<T>;
|
50
|
-
default: T;
|
51
|
-
};
|
52
|
-
export declare function stringType<T extends string = string>(defaultVal?: T): {
|
53
|
-
type: PropType<T>;
|
54
|
-
default: T;
|
55
|
-
};
|
56
|
-
export declare function numberType<T extends number = number>(defaultVal?: T): {
|
57
|
-
type: PropType<T>;
|
58
|
-
default: T;
|
59
|
-
};
|
60
|
-
export declare function someType<T>(types?: any[], defaultVal?: T): {
|
61
|
-
type: PropType<T>;
|
62
|
-
default: T;
|
63
|
-
};
|
64
|
-
export type CustomSlotsType<T> = SlotsType<T>;
|
65
|
-
export type AnyObject = Record<PropertyKey, any>;
|
66
|
-
export {};
|
@@ -1,53 +0,0 @@
|
|
1
|
-
const r = (...t) => t, o = (...t) => t, y = (t) => {
|
2
|
-
const n = t;
|
3
|
-
return n.install = function(e) {
|
4
|
-
e.component(n.displayName || n.name, t);
|
5
|
-
}, t;
|
6
|
-
};
|
7
|
-
function a() {
|
8
|
-
return { type: [Function, Array] };
|
9
|
-
}
|
10
|
-
function c(t) {
|
11
|
-
return { type: Object, default: t };
|
12
|
-
}
|
13
|
-
function i(t) {
|
14
|
-
return { type: Boolean, default: t };
|
15
|
-
}
|
16
|
-
function p(t) {
|
17
|
-
return { type: Function, default: t };
|
18
|
-
}
|
19
|
-
function u(t, n) {
|
20
|
-
const e = { validator: () => !0, default: t };
|
21
|
-
return e;
|
22
|
-
}
|
23
|
-
function f() {
|
24
|
-
return { validator: () => !0 };
|
25
|
-
}
|
26
|
-
function l(t) {
|
27
|
-
return { type: Array, default: t };
|
28
|
-
}
|
29
|
-
function d(t) {
|
30
|
-
return { type: String, default: t };
|
31
|
-
}
|
32
|
-
function T(t) {
|
33
|
-
return { type: Number, default: t };
|
34
|
-
}
|
35
|
-
function s(t, n) {
|
36
|
-
return t ? { type: t, default: n } : u(n);
|
37
|
-
}
|
38
|
-
export {
|
39
|
-
u as anyType,
|
40
|
-
l as arrayType,
|
41
|
-
i as booleanType,
|
42
|
-
a as eventType,
|
43
|
-
p as functionType,
|
44
|
-
T as numberType,
|
45
|
-
c as objectType,
|
46
|
-
s as someType,
|
47
|
-
d as stringType,
|
48
|
-
r as tuple,
|
49
|
-
o as tupleNum,
|
50
|
-
f as vNodeType,
|
51
|
-
y as withInstall
|
52
|
-
};
|
53
|
-
//# sourceMappingURL=type.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"type.js","sources":["../../../src/components/_util/type.ts"],"sourcesContent":["// @ts-ignore\r\nimport type { App, PropType, Plugin, Ref, VNode, SlotsType } from 'vue'\r\n\r\n// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead\r\nexport const tuple = <T extends string[]>(...args: T) => args\r\n\r\nexport const tupleNum = <T extends number[]>(...args: T) => args\r\n\r\n/**\r\n * https://stackoverflow.com/a/59187769\r\n * Extract the type of an element of an array/tuple without performing indexing\r\n */\r\nexport type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never\r\n\r\n/**\r\n * https://github.com/Microsoft/TypeScript/issues/29729\r\n */\r\nexport type LiteralUnion<T extends string> = T | (string & {})\r\n\r\nexport type Data = Record<string, unknown>\r\n\r\nexport type Key = string | number\r\n\r\ntype DefaultFactory<T> = (props: Data) => T | null | undefined\r\n\r\nexport interface PropOptions<T = any, D = T> {\r\n type?: PropType<T> | true | null\r\n required?: boolean\r\n default?: D | DefaultFactory<D> | null | undefined | object\r\n validator?(value: unknown): boolean\r\n}\r\n\r\ndeclare type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void\r\n\r\n// eslint-disable-next-line no-undef\r\nexport type VueNode = VNodeChildAtom | VNodeChildAtom[] | VNode\r\n\r\nexport const withInstall = <T>(comp: T) => {\r\n const c = comp as any\r\n c.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(c.displayName || c.name, comp)\r\n }\r\n\r\n return comp as T & Plugin\r\n}\r\n\r\nexport type MaybeRef<T> = T | Ref<T>\r\n\r\nexport function eventType<T>() {\r\n return { type: [Function, Array] as PropType<T | T[]> }\r\n}\r\n\r\nexport function objectType<T = {}>(defaultVal?: T) {\r\n return { type: Object as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function booleanType(defaultVal?: boolean) {\r\n return { type: Boolean, default: defaultVal as boolean }\r\n}\r\n\r\nexport function functionType<T = () => {}>(defaultVal?: T) {\r\n return { type: Function as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function anyType<T = any>(defaultVal?: T, required?: boolean) {\r\n const type = { validator: () => true, default: defaultVal as T } as unknown\r\n return required\r\n ? (type as {\r\n type: PropType<T>\r\n default: T\r\n required: true\r\n })\r\n : (type as {\r\n default: T\r\n type: PropType<T>\r\n })\r\n}\r\nexport function vNodeType<T = VueNode>() {\r\n return { validator: () => true } as unknown as { type: PropType<T> }\r\n}\r\n\r\nexport function arrayType<T extends any[]>(defaultVal?: T) {\r\n return { type: Array as unknown as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function stringType<T extends string = string>(defaultVal?: T) {\r\n return { type: String as unknown as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function numberType<T extends number = number>(defaultVal?: T) {\r\n return { type: Number as unknown as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function someType<T>(types?: any[], defaultVal?: T) {\r\n return types ? { type: types as PropType<T>, default: defaultVal as T } : anyType<T>(defaultVal)\r\n}\r\n\r\n// @ts-ignore\r\nexport type CustomSlotsType<T> = SlotsType<T>\r\n\r\nexport type AnyObject = Record<PropertyKey, any>\r\n"],"names":["tuple","args","tupleNum","withInstall","comp","c","app","eventType","objectType","defaultVal","booleanType","functionType","anyType","required","type","vNodeType","arrayType","stringType","numberType","someType","types"],"mappings":"AAIa,MAAAA,IAAQ,IAAwBC,MAAYA,GAE5CC,IAAW,IAAwBD,MAAYA,GA+B/CE,IAAc,CAAIC,MAAY;AACzC,QAAMC,IAAID;AACR,SAAAC,EAAA,UAAU,SAAUC,GAAU;AAE9B,IAAAA,EAAI,UAAUD,EAAE,eAAeA,EAAE,MAAMD,CAAI;AAAA,EAAA,GAGtCA;AACT;AAIO,SAASG,IAAe;AAC7B,SAAO,EAAE,MAAM,CAAC,UAAU,KAAK,EAAuB;AACxD;AAEO,SAASC,EAAmBC,GAAgB;AACjD,SAAO,EAAE,MAAM,QAAuB,SAASA,EAAgB;AACjE;AAEO,SAASC,EAAYD,GAAsB;AAChD,SAAO,EAAE,MAAM,SAAS,SAASA,EAAsB;AACzD;AAEO,SAASE,EAA2BF,GAAgB;AACzD,SAAO,EAAE,MAAM,UAAyB,SAASA,EAAgB;AACnE;AAEgB,SAAAG,EAAiBH,GAAgBI,GAAoB;AACnE,QAAMC,IAAO,EAAE,WAAW,MAAM,IAAM,SAASL;AAC/C,SACKK;AASP;AACO,SAASC,IAAyB;AAChC,SAAA,EAAE,WAAW,MAAM;AAC5B;AAEO,SAASC,EAA2BP,GAAgB;AACzD,SAAO,EAAE,MAAM,OAAiC,SAASA,EAAgB;AAC3E;AAEO,SAASQ,EAAsCR,GAAgB;AACpE,SAAO,EAAE,MAAM,QAAkC,SAASA,EAAgB;AAC5E;AAEO,SAASS,EAAsCT,GAAgB;AACpE,SAAO,EAAE,MAAM,QAAkC,SAASA,EAAgB;AAC5E;AAEgB,SAAAU,EAAYC,GAAeX,GAAgB;AAClD,SAAAW,IAAQ,EAAE,MAAMA,GAAsB,SAASX,EAAgB,IAAIG,EAAWH,CAAU;AACjG;"}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { VueNode } from './type';
|
2
|
-
export declare const isFunction: (val: any) => boolean;
|
3
|
-
export declare const controlDefaultValue: any;
|
4
|
-
export declare const isArray: (arg: any) => arg is any[];
|
5
|
-
export declare const isString: (val: any) => val is string;
|
6
|
-
export declare const isSymbol: (val: any) => val is symbol;
|
7
|
-
export declare const isObject: (val: any) => boolean;
|
8
|
-
declare const isOn: (key: any) => boolean;
|
9
|
-
declare const cacheStringFunction: (fn: any) => (str: any) => any;
|
10
|
-
declare const camelize: (str: any) => any;
|
11
|
-
declare const hyphenate: (str: any) => any;
|
12
|
-
declare const capitalize: (str: any) => any;
|
13
|
-
declare function resolvePropValue(options: any, props: any, key: any, value: any): any;
|
14
|
-
export declare function getDataAndAriaProps(props: any): {};
|
15
|
-
export declare function toPx(val: any): any;
|
16
|
-
export declare function renderHelper<T = Record<string, any>>(v: VueNode | ((arg0: T) => VueNode), props?: T, defaultV?: any): any;
|
17
|
-
export declare function wrapPromiseFn(openFn: (resolve: VoidFunction) => VoidFunction): any;
|
18
|
-
export { isOn, cacheStringFunction, camelize, hyphenate, capitalize, resolvePropValue };
|
@@ -1,55 +0,0 @@
|
|
1
|
-
const u = (t) => typeof t == "function", y = Symbol("controlDefaultValue"), b = Array.isArray, d = (t) => typeof t == "string", m = (t) => typeof t == "symbol", O = (t) => t !== null && typeof t == "object", f = /^on[^a-z]/, P = (t) => f.test(t), i = (t) => {
|
2
|
-
const n = /* @__PURE__ */ Object.create(null);
|
3
|
-
return (e) => n[e] || (n[e] = t(e));
|
4
|
-
}, l = /-(\w)/g, w = i((t) => t.replace(l, (n, e) => e ? e.toUpperCase() : "")), p = /\B([A-Z])/g, A = i((t) => t.replace(p, "-$1").toLowerCase()), g = i((t) => t.charAt(0).toUpperCase() + t.slice(1)), h = Object.prototype.hasOwnProperty, a = (t, n) => h.call(t, n);
|
5
|
-
function j(t, n, e, o) {
|
6
|
-
const r = t[e];
|
7
|
-
if (r != null) {
|
8
|
-
const c = a(r, "default");
|
9
|
-
if (c && o === void 0) {
|
10
|
-
const s = r.default;
|
11
|
-
o = r.type !== Function && u(s) ? s() : s;
|
12
|
-
}
|
13
|
-
r.type === Boolean && (!a(n, e) && !c ? o = !1 : o === "" && (o = !0));
|
14
|
-
}
|
15
|
-
return o;
|
16
|
-
}
|
17
|
-
function z(t) {
|
18
|
-
return Object.keys(t).reduce((n, e) => ((e.startsWith("data-") || e.startsWith("aria-")) && (n[e] = t[e]), n), {});
|
19
|
-
}
|
20
|
-
function D(t) {
|
21
|
-
return typeof t == "number" ? `${t}px` : t;
|
22
|
-
}
|
23
|
-
function S(t, n = {}, e) {
|
24
|
-
return typeof t == "function" ? t(n) : t ?? e;
|
25
|
-
}
|
26
|
-
function V(t) {
|
27
|
-
let n;
|
28
|
-
const e = new Promise((r) => {
|
29
|
-
n = t(() => {
|
30
|
-
r(!0);
|
31
|
-
});
|
32
|
-
}), o = () => {
|
33
|
-
n == null || n();
|
34
|
-
};
|
35
|
-
return o.then = (r, c) => e.then(r, c), o.promise = e, o;
|
36
|
-
}
|
37
|
-
export {
|
38
|
-
i as cacheStringFunction,
|
39
|
-
w as camelize,
|
40
|
-
g as capitalize,
|
41
|
-
y as controlDefaultValue,
|
42
|
-
z as getDataAndAriaProps,
|
43
|
-
A as hyphenate,
|
44
|
-
b as isArray,
|
45
|
-
u as isFunction,
|
46
|
-
O as isObject,
|
47
|
-
P as isOn,
|
48
|
-
d as isString,
|
49
|
-
m as isSymbol,
|
50
|
-
S as renderHelper,
|
51
|
-
j as resolvePropValue,
|
52
|
-
D as toPx,
|
53
|
-
V as wrapPromiseFn
|
54
|
-
};
|
55
|
-
//# sourceMappingURL=util.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"util.js","sources":["../../../src/components/_util/util.ts"],"sourcesContent":["import type { VueNode } from './type'\r\nexport const isFunction = (val) => typeof val === 'function'\r\nexport const controlDefaultValue = Symbol('controlDefaultValue') as any\r\nexport const isArray = Array.isArray\r\nexport const isString = (val) => typeof val === 'string'\r\nexport const isSymbol = (val) => typeof val === 'symbol'\r\nexport const isObject = (val) => val !== null && typeof val === 'object'\r\nconst onRE = /^on[^a-z]/\r\nconst isOn = (key) => onRE.test(key)\r\n\r\nconst cacheStringFunction = (fn) => {\r\n const cache = Object.create(null)\r\n return (str) => {\r\n const hit = cache[str]\r\n return hit || (cache[str] = fn(str))\r\n }\r\n}\r\nconst camelizeRE = /-(\\w)/g\r\nconst camelize = cacheStringFunction((str) => {\r\n return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''))\r\n})\r\n\r\nconst hyphenateRE = /\\B([A-Z])/g\r\nconst hyphenate = cacheStringFunction((str) => {\r\n return str.replace(hyphenateRE, '-$1').toLowerCase()\r\n})\r\n\r\nconst capitalize = cacheStringFunction((str) => {\r\n return str.charAt(0).toUpperCase() + str.slice(1)\r\n})\r\n\r\nconst hasOwnProperty = Object.prototype.hasOwnProperty\r\nconst hasOwn = (val, key) => hasOwnProperty.call(val, key)\r\n\r\n// change from vue sourcecode\r\nfunction resolvePropValue(options, props, key, value) {\r\n const opt = options[key]\r\n if (opt != null) {\r\n const hasDefault = hasOwn(opt, 'default')\r\n // default values\r\n if (hasDefault && value === undefined) {\r\n const defaultValue = opt.default\r\n value = opt.type !== Function && isFunction(defaultValue) ? defaultValue() : defaultValue\r\n }\r\n // boolean casting\r\n if (opt.type === Boolean) {\r\n if (!hasOwn(props, key) && !hasDefault) {\r\n value = false\r\n } else if (value === '') {\r\n value = true\r\n }\r\n }\r\n }\r\n return value\r\n}\r\n\r\nexport function getDataAndAriaProps(props) {\r\n return Object.keys(props).reduce((memo, key) => {\r\n if (key.startsWith('data-') || key.startsWith('aria-')) {\r\n memo[key] = props[key]\r\n }\r\n return memo\r\n }, {})\r\n}\r\n\r\nexport function toPx(val) {\r\n if (typeof val === 'number') return `${val}px`\r\n return val\r\n}\r\n\r\nexport function renderHelper<T = Record<string, any>>(v: VueNode | ((arg0: T) => VueNode), props: T = {} as T, defaultV?: any) {\r\n if (typeof v === 'function') {\r\n return v(props)\r\n }\r\n return v ?? defaultV\r\n}\r\nexport function wrapPromiseFn(openFn: (resolve: VoidFunction) => VoidFunction) {\r\n let closeFn: VoidFunction\r\n\r\n const closePromise = new Promise<boolean>((resolve) => {\r\n closeFn = openFn(() => {\r\n resolve(true)\r\n })\r\n })\r\n\r\n const result: any = () => {\r\n closeFn?.()\r\n }\r\n\r\n result.then = (filled: VoidFunction, rejected: VoidFunction) => closePromise.then(filled, rejected)\r\n result.promise = closePromise\r\n\r\n return result\r\n}\r\n\r\nexport { isOn, cacheStringFunction, camelize, hyphenate, capitalize, resolvePropValue }\r\n"],"names":["isFunction","val","controlDefaultValue","isArray","isString","isSymbol","isObject","onRE","isOn","key","cacheStringFunction","fn","cache","str","camelizeRE","camelize","_","c","hyphenateRE","hyphenate","capitalize","hasOwnProperty","hasOwn","resolvePropValue","options","props","value","opt","hasDefault","defaultValue","getDataAndAriaProps","memo","toPx","renderHelper","v","defaultV","wrapPromiseFn","openFn","closeFn","closePromise","resolve","result","filled","rejected"],"mappings":"AACO,MAAMA,IAAa,CAACC,MAAQ,OAAOA,KAAQ,YACrCC,IAAsB,OAAO,qBAAqB,GAClDC,IAAU,MAAM,SAChBC,IAAW,CAACH,MAAQ,OAAOA,KAAQ,UACnCI,IAAW,CAACJ,MAAQ,OAAOA,KAAQ,UACnCK,IAAW,CAACL,MAAQA,MAAQ,QAAQ,OAAOA,KAAQ,UAC1DM,IAAO,aACPC,IAAO,CAACC,MAAQF,EAAK,KAAKE,CAAG,GAE7BC,IAAsB,CAACC,MAAO;AAC5B,QAAAC,IAAe,uBAAA,OAAO,IAAI;AAChC,SAAO,CAACC,MACMD,EAAMC,CAAG,MACND,EAAMC,CAAG,IAAIF,EAAGE,CAAG;AAEtC,GACMC,IAAa,UACbC,IAAWL,EAAoB,CAACG,MAC7BA,EAAI,QAAQC,GAAY,CAACE,GAAGC,MAAOA,IAAIA,EAAE,YAAY,IAAI,EAAG,CACpE,GAEKC,IAAc,cACdC,IAAYT,EAAoB,CAACG,MAC9BA,EAAI,QAAQK,GAAa,KAAK,EAAE,YAAY,CACpD,GAEKE,IAAaV,EAAoB,CAACG,MAC/BA,EAAI,OAAO,CAAC,EAAE,gBAAgBA,EAAI,MAAM,CAAC,CACjD,GAEKQ,IAAiB,OAAO,UAAU,gBAClCC,IAAS,CAACrB,GAAKQ,MAAQY,EAAe,KAAKpB,GAAKQ,CAAG;AAGzD,SAASc,EAAiBC,GAASC,GAAOhB,GAAKiB,GAAO;AAC9C,QAAAC,IAAMH,EAAQf,CAAG;AACvB,MAAIkB,KAAO,MAAM;AACT,UAAAC,IAAaN,EAAOK,GAAK,SAAS;AAEpC,QAAAC,KAAcF,MAAU,QAAW;AACrC,YAAMG,IAAeF,EAAI;AACzB,MAAAD,IAAQC,EAAI,SAAS,YAAY3B,EAAW6B,CAAY,IAAIA,EAAiB,IAAAA;AAAA,IAC/E;AAEI,IAAAF,EAAI,SAAS,YACX,CAACL,EAAOG,GAAOhB,CAAG,KAAK,CAACmB,IAClBF,IAAA,KACCA,MAAU,OACXA,IAAA;AAAA,EAGd;AACO,SAAAA;AACT;AAEO,SAASI,EAAoBL,GAAO;AACzC,SAAO,OAAO,KAAKA,CAAK,EAAE,OAAO,CAACM,GAAMtB,QAClCA,EAAI,WAAW,OAAO,KAAKA,EAAI,WAAW,OAAO,OAC9CsB,EAAAtB,CAAG,IAAIgB,EAAMhB,CAAG,IAEhBsB,IACN,CAAE,CAAA;AACP;AAEO,SAASC,EAAK/B,GAAK;AACxB,SAAI,OAAOA,KAAQ,WAAiB,GAAGA,CAAG,OACnCA;AACT;AAEO,SAASgC,EAAsCC,GAAqCT,IAAW,CAAA,GAASU,GAAgB;AACzH,SAAA,OAAOD,KAAM,aACRA,EAAET,CAAK,IAETS,KAAKC;AACd;AACO,SAASC,EAAcC,GAAiD;AACzE,MAAAC;AAEJ,QAAMC,IAAe,IAAI,QAAiB,CAACC,MAAY;AACrD,IAAAF,IAAUD,EAAO,MAAM;AACrB,MAAAG,EAAQ,EAAI;AAAA,IAAA,CACb;AAAA,EAAA,CACF,GAEKC,IAAc,MAAM;AACd,IAAAH,KAAA,QAAAA;AAAA,EAAA;AAGZ,SAAAG,EAAO,OAAO,CAACC,GAAsBC,MAA2BJ,EAAa,KAAKG,GAAQC,CAAQ,GAClGF,EAAO,UAAUF,GAEVE;AACT;"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { CSSProperties } from 'vue';
|
2
|
-
import { VueTypeValidableDef, VueTypesInterface } from 'vue-types';
|
3
|
-
import { VueNode } from '../type';
|
4
|
-
export declare function withUndefined<T extends {
|
5
|
-
default?: any;
|
6
|
-
}>(type: T): T;
|
7
|
-
declare const _default: VueTypesInterface & {
|
8
|
-
readonly looseBool: VueTypeValidableDef<boolean>;
|
9
|
-
readonly style: VueTypeValidableDef<CSSProperties>;
|
10
|
-
readonly VueNode: VueTypeValidableDef<VueNode>;
|
11
|
-
};
|
12
|
-
export default _default;
|