orion-design 0.1.10 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Form/Form.d.ts +1 -0
- package/dist/components/Form/Form.js.map +1 -1
- package/dist/components/Form/LovInput/LovInput.d.ts +20 -0
- package/dist/components/Form/LovInput/LovInput.js +5 -0
- package/dist/components/Form/LovInput/LovInput.js.map +1 -0
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +5351 -0
- package/dist/components/Form/LovInput/hooks/useLov.d.ts +1 -0
- package/dist/components/Form/LovInput/hooks/useLov.js +9 -0
- package/dist/components/Form/LovInput/hooks/useLov.js.map +1 -0
- package/dist/components/Form/LovInput/index.d.ts +2 -0
- package/dist/components/Form/LovInput/index.js +7 -0
- package/dist/components/Form/LovInput/index.js.map +1 -0
- package/dist/components/Form/index.d.ts +3 -0
- package/dist/components/Form/index.js +363 -277
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Pagetable/Pagetable.d.ts +16 -1
- package/dist/components/Pagetable/index.d.ts +12 -1
- package/dist/components/Pagetable/index.js +156 -151
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Pagetable/utils/index.js +45 -148
- package/dist/components/Pagetable/utils/index.js.map +1 -1
- package/dist/components/Querytable/Querytable.d.ts +64 -0
- package/dist/components/Querytable/columns/QuerytableCellButton.d.ts +24 -0
- package/dist/components/Querytable/columns/QuerytableColumnButtongroup.d.ts +78 -0
- package/dist/components/Querytable/columns/QuerytableColumnDate.d.ts +101 -0
- package/dist/components/Querytable/columns/QuerytableColumnDiy.d.ts +78 -0
- package/dist/components/Querytable/columns/QuerytableColumnIndex.d.ts +5 -0
- package/dist/components/Querytable/columns/QuerytableColumnMultiselect.d.ts +109 -0
- package/dist/components/Querytable/columns/QuerytableColumnNumber.d.ts +114 -0
- package/dist/components/Querytable/columns/QuerytableColumnSingleselect.d.ts +109 -0
- package/dist/components/Querytable/columns/QuerytableColumnString.d.ts +75 -0
- package/dist/components/Querytable/columns/QuerytableColumngroup.d.ts +35 -0
- package/dist/components/Querytable/hooks/useColumns.d.ts +1 -0
- package/dist/components/Querytable/hooks/useColumns.js +96 -0
- package/dist/components/Querytable/hooks/useColumns.js.map +1 -0
- package/dist/components/Querytable/index.d.ts +66 -0
- package/dist/components/Querytable/index.js +510 -0
- package/dist/components/Querytable/index.js.map +1 -0
- package/dist/components/Querytable/interface.d.ts +10 -0
- package/dist/components/Querytable/interface.js +2 -0
- package/dist/components/Querytable/interface.js.map +1 -0
- package/dist/components/Querytable/utils/index.d.ts +15 -0
- package/dist/components/Querytable/utils/index.js +66 -0
- package/dist/components/Querytable/utils/index.js.map +1 -0
- package/dist/components/components.d.ts +2 -0
- package/dist/components/components.js +8 -6
- package/dist/components/components.js.map +1 -1
- package/dist/components/index.js +15 -13
- package/dist/components/index.js.map +1 -1
- package/dist/{components-CutWiB7Q.js → components-OIbu7HLW.js} +26 -24
- package/dist/{components-CutWiB7Q.js.map → components-OIbu7HLW.js.map} +1 -1
- package/dist/index-CC0EuWhe.js +108 -0
- package/dist/index-CC0EuWhe.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +14 -12
- package/dist/index.js.map +1 -1
- 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
@@ -0,0 +1,66 @@
|
|
1
|
+
import a from "decimal.js";
|
2
|
+
import { l as c } from "../../../index-CC0EuWhe.js";
|
3
|
+
import s from "dayjs";
|
4
|
+
import i from "../../../error/OrionError.js";
|
5
|
+
const $ = (t, r, o) => {
|
6
|
+
if (!t)
|
7
|
+
return t;
|
8
|
+
if (t instanceof Date && typeof r == "string") {
|
9
|
+
const n = t, e = r;
|
10
|
+
if (!n)
|
11
|
+
throw new i("value is null.");
|
12
|
+
if (!e)
|
13
|
+
throw new i("format is null.");
|
14
|
+
return s(n).format(e);
|
15
|
+
} else if (typeof t == "string" && typeof r == "string" && typeof o == "string") {
|
16
|
+
const n = t, e = r, f = o;
|
17
|
+
if (!n || !e || !f)
|
18
|
+
throw new i(`Invalid arguments: ${n}, ${e}, ${f}`);
|
19
|
+
if (s(n, e, !0).isValid())
|
20
|
+
return s(n, e).format(f);
|
21
|
+
throw new i(`日期[${n}]与格式[${e}]不匹配。`);
|
22
|
+
} else
|
23
|
+
throw new i(`入参数量[${arguments.length}]不正确。`);
|
24
|
+
};
|
25
|
+
function u(t, r) {
|
26
|
+
return new a(t).toFixed(r, 4);
|
27
|
+
}
|
28
|
+
function y(t, r, o, n) {
|
29
|
+
if (t == null)
|
30
|
+
return "";
|
31
|
+
if (typeof t == "number" || typeof t == "string") {
|
32
|
+
let e;
|
33
|
+
return o >= 0 ? e = u(n ? t * 100 : t, o) : e = String(n ? t * 100 : t), n ? (r && (e = c.comma(e)), e += "%") : r && (e = c.comma(e)), e;
|
34
|
+
} else
|
35
|
+
throw new i(`num [${t}]:[${typeof t}] is neither a number nor null.`);
|
36
|
+
}
|
37
|
+
const v = (t, r) => {
|
38
|
+
if (!r)
|
39
|
+
return null;
|
40
|
+
if (!t)
|
41
|
+
return r + "(?)";
|
42
|
+
for (let o = 0; o < t.length; o++) {
|
43
|
+
const { value: n, content: e } = t[o];
|
44
|
+
if (n == r)
|
45
|
+
return e;
|
46
|
+
}
|
47
|
+
return r + "(?)";
|
48
|
+
}, b = (t, r) => {
|
49
|
+
if (!r)
|
50
|
+
return null;
|
51
|
+
let o = "";
|
52
|
+
const n = r.split(",");
|
53
|
+
return n.forEach((e, f) => {
|
54
|
+
const l = t.findIndex((m) => {
|
55
|
+
if (m.value == e) return !0;
|
56
|
+
});
|
57
|
+
l == -1 ? o += `${e}(?)` : o += t[l].content, f != n.length - 1 && (o += ",");
|
58
|
+
}), o;
|
59
|
+
};
|
60
|
+
export {
|
61
|
+
$ as formatDate,
|
62
|
+
b as getMultiCodeContent,
|
63
|
+
v as getSingleCodeContent,
|
64
|
+
y as number2string
|
65
|
+
};
|
66
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Querytable/utils/index.ts"],"sourcesContent":["import Decimal from 'decimal.js'\r\nimport { comma } from 'number-magic'\r\nimport dayjs from 'dayjs'\r\n\r\nimport OrionError from '../../../error/OrionError'\r\n\r\ninterface formatI {\r\n format(value: Date, targetFormat: string): string\r\n format(value: string, sourceFormat: string, targetFormat: string): string\r\n}\r\n\r\nexport const formatDate: formatI['format'] = (p1: Date | string, p2: string, p3?: string) => {\r\n if (!p1) {\r\n return p1\r\n }\r\n\r\n if (p1 instanceof Date && typeof p2 === 'string') {\r\n const value = p1\r\n const format = p2\r\n\r\n if (!value) {\r\n throw new OrionError('value is null.')\r\n }\r\n\r\n if (!format) {\r\n throw new OrionError('format is null.')\r\n }\r\n\r\n return dayjs(value).format(format)\r\n } else if (typeof p1 === 'string' && typeof p2 === 'string' && typeof p3 === 'string') {\r\n const value = p1\r\n const sourceFormat = p2\r\n const targetFormat = p3\r\n\r\n if (!value || !sourceFormat || !targetFormat) {\r\n throw new OrionError(`Invalid arguments: ${value}, ${sourceFormat}, ${targetFormat}`)\r\n }\r\n\r\n if (dayjs(value, sourceFormat, true).isValid()) {\r\n return dayjs(value, sourceFormat).format(targetFormat)\r\n } else {\r\n throw new OrionError(`日期[${value}]与格式[${sourceFormat}]不匹配。`)\r\n }\r\n } else {\r\n throw new OrionError(`入参数量[${arguments.length}]不正确。`)\r\n }\r\n}\r\n\r\nfunction round(value: number, how: number) {\r\n const dec = new Decimal(value)\r\n return dec.toFixed(how, 4)\r\n}\r\n\r\nexport function number2string(num: number | null | undefined, thousandsSeparatorValue: boolean, precisionValue: number, percentageValue: boolean): string {\r\n if (num === null || num === undefined) {\r\n return ''\r\n } else if (typeof num === 'number' || typeof num === 'string') {\r\n let result\r\n\r\n // 基础:先实现精度化\r\n if (precisionValue >= 0) {\r\n result = round(percentageValue ? num * 100 : num, precisionValue)\r\n } else {\r\n result = String(percentageValue ? num * 100 : num)\r\n }\r\n\r\n // 百分比优先级高于千分位,先实现百分比,再实现千分位\r\n if (percentageValue) {\r\n if (thousandsSeparatorValue) {\r\n // 千分位\r\n result = comma(result)\r\n }\r\n\r\n result += '%'\r\n } else if (thousandsSeparatorValue) {\r\n // 千分位\r\n // 小数精度优先级最高\r\n result = comma(result)\r\n }\r\n\r\n return result\r\n } else {\r\n throw new OrionError(`num [${num}]:[${typeof num}] is neither a number nor null.`)\r\n }\r\n}\r\n\r\nexport const getSingleCodeContent = (\r\n options: Array<{\r\n value: string\r\n content: string\r\n }>,\r\n curValue: string\r\n) => {\r\n if (!curValue) {\r\n return null\r\n }\r\n\r\n if (!options) {\r\n return curValue + '(?)'\r\n }\r\n\r\n for (let i = 0; i < options.length; i++) {\r\n const { value, content } = options[i]\r\n if (value == curValue) {\r\n return content\r\n }\r\n }\r\n\r\n return curValue + '(?)'\r\n}\r\n\r\nexport const getMultiCodeContent = (\r\n options: Array<{\r\n value: string\r\n content: string\r\n }>,\r\n curValue: string\r\n) => {\r\n if (!curValue) {\r\n return null\r\n }\r\n\r\n let content = ''\r\n\r\n const data = curValue.split(',')\r\n data.forEach((selectValue, valueIndex) => {\r\n const index = options.findIndex((item) => {\r\n if (item.value == selectValue) return true\r\n })\r\n\r\n if (index == -1) {\r\n content += `${selectValue}(?)`\r\n } else {\r\n content += options[index].content\r\n }\r\n\r\n if (valueIndex != data.length - 1) {\r\n content += ','\r\n }\r\n })\r\n\r\n return content\r\n}\r\n"],"names":["formatDate","p1","p2","p3","value","format","OrionError","dayjs","sourceFormat","targetFormat","round","how","Decimal","number2string","num","thousandsSeparatorValue","precisionValue","percentageValue","result","comma","getSingleCodeContent","options","curValue","i","content","getMultiCodeContent","data","selectValue","valueIndex","index","item"],"mappings":";;;;AAWO,MAAMA,IAAgC,CAACC,GAAmBC,GAAYC,MAAgB;AAC3F,MAAI,CAACF;AACI,WAAAA;AAGT,MAAIA,aAAc,QAAQ,OAAOC,KAAO,UAAU;AAChD,UAAME,IAAQH,GACRI,IAASH;AAEf,QAAI,C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;AAGT,MAAI,CAACD;AACH,WAAOC,IAAW;AAGpB,WAASC,IAAI,GAAGA,IAAIF,EAAQ,QAAQE,KAAK;AACvC,UAAM,EAAE,OAAAnB,GAAO,SAAAoB,EAAQ,IAAIH,EAAQE,CAAC;AACpC,QAAInB,KAASkB;AACJ,aAAAE;AAAA,EAEX;AAEA,SAAOF,IAAW;AACpB,GAEaG,IAAsB,CACjCJ,GAIAC,MACG;AACH,MAAI,CAACA;AACI,WAAA;AAGT,MAAIE,IAAU;AAER,QAAAE,IAAOJ,EAAS,MAAM,GAAG;AAC1B,SAAAI,EAAA,QAAQ,CAACC,GAAaC,MAAe;AACxC,UAAMC,IAAQR,EAAQ,UAAU,CAACS,MAAS;AACpC,UAAAA,EAAK,SAASH,EAAoB,QAAA;AAAA,IAAA,CACvC;AAED,IAAIE,KAAS,KACXL,KAAW,GAAGG,CAAW,QAEdH,KAAAH,EAAQQ,CAAK,EAAE,SAGxBD,KAAcF,EAAK,SAAS,MACnBF,KAAA;AAAA,EACb,CACD,GAEMA;AACT;"}
|
@@ -5,6 +5,8 @@ export { Rowflex, Colflex, Flexitem } from './Flex';
|
|
5
5
|
export type { RowflexProps, ColflexProps, FlexitemProps } from './Flex';
|
6
6
|
export { default as Pagetable } from './Pagetable';
|
7
7
|
export type { PagetableProps } from './Pagetable';
|
8
|
+
export { default as Querytable } from './Querytable';
|
9
|
+
export type { QuerytableProps } from './Querytable';
|
8
10
|
export { default as Modal } from './Modal';
|
9
11
|
export { default as useOModal } from './Modal/useModal';
|
10
12
|
export { default as Form } from './Form';
|
@@ -2,18 +2,20 @@ import { default as a } from "./Button/index.js";
|
|
2
2
|
import { S as t } from "../index-BbsXWo7C.js";
|
3
3
|
import { Colflex as l, Flexitem as x, Rowflex as m } from "./Flex/index.js";
|
4
4
|
import { default as s } from "./Pagetable/index.js";
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import { default as
|
5
|
+
import { default as d } from "./Querytable/index.js";
|
6
|
+
import { i } from "../components-OIbu7HLW.js";
|
7
|
+
import { default as M } from "./Modal/useModal.js";
|
8
|
+
import { default as c } from "./Form/index.js";
|
8
9
|
export {
|
9
10
|
a as Button,
|
10
11
|
l as Colflex,
|
11
12
|
x as Flexitem,
|
12
|
-
|
13
|
-
|
13
|
+
c as Form,
|
14
|
+
i as Modal,
|
14
15
|
s as Pagetable,
|
16
|
+
d as Querytable,
|
15
17
|
m as Rowflex,
|
16
18
|
t as Space,
|
17
|
-
|
19
|
+
M as useOModal
|
18
20
|
};
|
19
21
|
//# sourceMappingURL=components.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"components.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"components.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/components/index.js
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
import { c as t } from "../components-
|
2
|
-
import { i as m } from "../components-
|
1
|
+
import { c as t } from "../components-OIbu7HLW.js";
|
2
|
+
import { i as m } from "../components-OIbu7HLW.js";
|
3
3
|
import { default as x } from "./Button/index.js";
|
4
|
-
import { S as
|
5
|
-
import { Colflex as
|
6
|
-
import { default as
|
7
|
-
import { default as
|
8
|
-
import { default as
|
4
|
+
import { S as u } from "../index-BbsXWo7C.js";
|
5
|
+
import { Colflex as d, Flexitem as i, Rowflex as b } from "./Flex/index.js";
|
6
|
+
import { default as F } from "./Pagetable/index.js";
|
7
|
+
import { default as O } from "./Querytable/index.js";
|
8
|
+
import { default as g } from "./Modal/useModal.js";
|
9
|
+
import { default as j } from "./Form/index.js";
|
9
10
|
const f = function(o) {
|
10
11
|
return Object.keys(t).forEach((r) => {
|
11
12
|
const e = t[r];
|
@@ -14,14 +15,15 @@ const f = function(o) {
|
|
14
15
|
};
|
15
16
|
export {
|
16
17
|
x as Button,
|
17
|
-
|
18
|
-
|
19
|
-
|
18
|
+
d as Colflex,
|
19
|
+
i as Flexitem,
|
20
|
+
j as Form,
|
20
21
|
m as Modal,
|
21
|
-
|
22
|
+
F as Pagetable,
|
23
|
+
O as Querytable,
|
22
24
|
b as Rowflex,
|
23
|
-
|
25
|
+
u as Space,
|
24
26
|
f as install,
|
25
|
-
|
27
|
+
g as useOModal
|
26
28
|
};
|
27
29
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/components/index.ts"],"sourcesContent":["import type { App } from 'vue'\r\n\r\nimport * as components from './components'\r\n\r\nexport * from './components'\r\n\r\nexport type * from './types'\r\n\r\nexport const install = function (app: App) {\r\n Object.keys(components).forEach((key) => {\r\n const component = components[key]\r\n if (component.install) {\r\n app.use(component)\r\n }\r\n })\r\n return app\r\n}\r\n"],"names":["install","app","components","key","component"],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/components/index.ts"],"sourcesContent":["import type { App } from 'vue'\r\n\r\nimport * as components from './components'\r\n\r\nexport * from './components'\r\n\r\nexport type * from './types'\r\n\r\nexport const install = function (app: App) {\r\n Object.keys(components).forEach((key) => {\r\n const component = components[key]\r\n if (component.install) {\r\n app.use(component)\r\n }\r\n })\r\n return app\r\n}\r\n"],"names":["install","app","components","key","component"],"mappings":";;;;;;;;;AAQa,MAAAA,IAAU,SAAUC,GAAU;AACzC,gBAAO,KAAKC,CAAU,EAAE,QAAQ,CAACC,MAAQ;AACjC,UAAAC,IAAYF,EAAWC,CAAG;AAChC,IAAIC,EAAU,WACZH,EAAI,IAAIG,CAAS;AAAA,EACnB,CACD,GACMH;AACT;"}
|
@@ -1,25 +1,26 @@
|
|
1
1
|
import p from "./components/Button/index.js";
|
2
2
|
import { S as h } from "./index-BbsXWo7C.js";
|
3
3
|
import { Colflex as w, Flexitem as g, Rowflex as C } from "./components/Flex/index.js";
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import {
|
4
|
+
import x from "./components/Pagetable/index.js";
|
5
|
+
import _ from "./components/Querytable/index.js";
|
6
|
+
import { defineComponent as M, ref as l, shallowRef as b, provide as P, createVNode as f, Fragment as O } from "vue";
|
7
|
+
import { ElDialog as $ } from "element-plus";
|
7
8
|
import "lodash-es";
|
8
|
-
import { addUnit as
|
9
|
-
import { withInstall as
|
10
|
-
import
|
11
|
-
import
|
12
|
-
const
|
9
|
+
import { addUnit as y } from "./components/_util/dom/style.js";
|
10
|
+
import { withInstall as S } from "./components/_util/vue/install.js";
|
11
|
+
import j from "./components/Modal/useModal.js";
|
12
|
+
import F from "./components/Form/index.js";
|
13
|
+
const E = /* @__PURE__ */ M({
|
13
14
|
name: "OModal",
|
14
|
-
setup(
|
15
|
-
slots:
|
16
|
-
attrs:
|
17
|
-
emit:
|
15
|
+
setup(V, {
|
16
|
+
slots: k,
|
17
|
+
attrs: z,
|
18
|
+
emit: B,
|
18
19
|
expose: m
|
19
20
|
}) {
|
20
|
-
const o = l(!1), n = l(), a =
|
21
|
+
const o = l(!1), n = l(), a = b(), t = l(), r = l(), s = l(), u = l(), i = l(!0);
|
21
22
|
m({
|
22
|
-
open: async (e) => (o.value = !0, n.value = e.title, a.value = e.content, e.contentProps ? t.value = e.contentProps : t.value = {}, e.width && (r.value = e.width), e.height && (s.value =
|
23
|
+
open: async (e) => (o.value = !0, n.value = e.title, a.value = e.content, e.contentProps ? t.value = e.contentProps : t.value = {}, e.width && (r.value = e.width), e.height && (s.value = y(e.height)), e.showClose != null && e.showClose == !1 && (i.value = !1), new Promise((v, I) => {
|
23
24
|
u.value = v;
|
24
25
|
}))
|
25
26
|
});
|
@@ -31,7 +32,7 @@ const F = /* @__PURE__ */ x({
|
|
31
32
|
close: c
|
32
33
|
}), () => {
|
33
34
|
const e = a.value;
|
34
|
-
return o.value ? f(
|
35
|
+
return o.value ? f($, {
|
35
36
|
title: n.value,
|
36
37
|
width: r.value,
|
37
38
|
modelValue: o.value,
|
@@ -46,23 +47,24 @@ const F = /* @__PURE__ */ x({
|
|
46
47
|
}
|
47
48
|
}, {
|
48
49
|
default: () => [f(e, t.value, null)]
|
49
|
-
}) : f(
|
50
|
+
}) : f(O, null, null);
|
50
51
|
};
|
51
52
|
}
|
52
|
-
}),
|
53
|
+
}), R = S(E), X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
53
54
|
__proto__: null,
|
54
55
|
Button: p,
|
55
56
|
Colflex: w,
|
56
57
|
Flexitem: g,
|
57
|
-
Form:
|
58
|
-
Modal:
|
59
|
-
Pagetable:
|
58
|
+
Form: F,
|
59
|
+
Modal: R,
|
60
|
+
Pagetable: x,
|
61
|
+
Querytable: _,
|
60
62
|
Rowflex: C,
|
61
63
|
Space: h,
|
62
|
-
useOModal:
|
64
|
+
useOModal: j
|
63
65
|
}, Symbol.toStringTag, { value: "Module" }));
|
64
66
|
export {
|
65
|
-
|
66
|
-
|
67
|
+
X as c,
|
68
|
+
R as i
|
67
69
|
};
|
68
|
-
//# sourceMappingURL=components-
|
70
|
+
//# sourceMappingURL=components-OIbu7HLW.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"components-
|
1
|
+
{"version":3,"file":"components-OIbu7HLW.js","sources":["../src/components/Modal/index.tsx"],"sourcesContent":["import { defineComponent, provide, ref, shallowRef } from 'vue'\r\nimport type { VNode } from 'vue'\r\nimport { ElDialog } from 'element-plus'\r\nimport { addUnit, withInstall } from '../_util'\r\n\r\ninterface ModalOptions {\r\n title: string\r\n content: VNode\r\n contentProps?: Record<string, any>\r\n width?: number | string\r\n height?: number | string\r\n showClose?: boolean\r\n}\r\n\r\nconst Modal = defineComponent({\r\n name: 'OModal',\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const show = ref(false)\r\n const title = ref<string>()\r\n const content = shallowRef()\r\n const contentProps = ref<Record<string, any>>()\r\n const width = ref<number | string>()\r\n const height = ref<number | string>()\r\n const __resolve = ref<(value: Record<string, any> | PromiseLike<Record<string, any>>) => void>()\r\n const showClose = ref(true)\r\n\r\n const _open: (options: ModalOptions) => Promise<Record<string, any>> = async (options) => {\r\n show.value = true\r\n title.value = options.title\r\n content.value = options.content\r\n if (options.contentProps) {\r\n contentProps.value = options.contentProps\r\n } else {\r\n contentProps.value = {}\r\n }\r\n if (options.width) {\r\n width.value = options.width\r\n }\r\n if (options.height) {\r\n height.value = addUnit(options.height)\r\n }\r\n if (options.showClose != undefined && options.showClose == false) {\r\n showClose.value = false\r\n }\r\n\r\n const promise = new Promise<Record<string, any>>((resolve, reject) => {\r\n __resolve.value = resolve\r\n })\r\n\r\n return promise\r\n }\r\n expose({\r\n open: _open\r\n })\r\n\r\n const _close: (options: Record<string, any>) => void = (options) => {\r\n const resolve = __resolve.value\r\n\r\n show.value = false\r\n title.value = undefined\r\n content.value = undefined\r\n contentProps.value = undefined\r\n width.value = undefined\r\n height.value = undefined\r\n __resolve.value = undefined\r\n showClose.value = true\r\n\r\n resolve && resolve(options)\r\n }\r\n provide('$$Modal', { close: _close })\r\n\r\n return () => {\r\n const Children = content.value\r\n return show.value ? (\r\n <ElDialog\r\n title={title.value}\r\n width={width.value}\r\n modelValue={show.value}\r\n beforeClose={_close}\r\n draggable={true}\r\n closeOnClickModal={false}\r\n closeOnPressEscape={false}\r\n showClose={showClose.value}\r\n alignCenter={true}\r\n style={{ height: height.value }}\r\n >\r\n <Children {...contentProps.value}></Children>\r\n </ElDialog>\r\n ) : (\r\n <></>\r\n )\r\n }\r\n }\r\n})\r\n\r\nexport default withInstall<typeof Modal, {}>(Modal)\r\n"],"names":["Modal","defineComponent","name","setup","props","slots","attrs","emit","expose","show","ref","title","content","shallowRef","contentProps","width","height","__resolve","showClose","open","options","value","addUnit","undefined","Promise","resolve","reject","_close","provide","close","Children","_createVNode","ElDialog","default","_Fragment","withInstall"],"mappings":";;;;;;;;;;;;AAcA,MAAMA,IAAQC,gBAAAA,EAAgB;AAAA,EAC5BC,MAAM;AAAA,EACNC,MAAMC,GAAO;AAAA,IAAEC,OAAAA;AAAAA,IAAOC,OAAAA;AAAAA,IAAOC,MAAAA;AAAAA,IAAMC,QAAAA;A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AAAAA,QAAK,aACb;AAAA,QAAI,OACV;AAAA,UAAEL,QAAQA,EAAOK;AAAAA,QAAM;AAAA,MAAC,GAAA;AAAA,QAAAY,SAAAA,MAAAF,CAAAA,EAAAD,GAEjBhB,EAAaO,OAAK,IAAA,CAAA;AAAA,MAAAU,CAAAA,IAAAA,EAAAG,GAInC,MAAA,IAAA;AAAA;EAEL;AACF,CAAC,GAEcC,IAAAA,EAA8BnC,CAAK;;;;;;;;;;;;;"}
|
@@ -0,0 +1,108 @@
|
|
1
|
+
import { c as f } from "./_commonjsHelpers-DaMA6jEr.js";
|
2
|
+
var F = {}, _ = {};
|
3
|
+
Object.defineProperty(_, "__esModule", { value: !0 });
|
4
|
+
_.comma = void 0;
|
5
|
+
function N(r, e) {
|
6
|
+
e === void 0 && (e = 3);
|
7
|
+
var t = String(r).split(".");
|
8
|
+
return t[0] = t[0].replace(new RegExp("(\\d)(?=(\\d{" + e + "})+$)", "ig"), "$1,"), t.join(".");
|
9
|
+
}
|
10
|
+
_.comma = N;
|
11
|
+
var d = {}, v = {};
|
12
|
+
Object.defineProperty(v, "__esModule", { value: !0 });
|
13
|
+
v.precise = void 0;
|
14
|
+
function $(r, e) {
|
15
|
+
return e === void 0 && (e = 12), parseFloat(r.toPrecision(e));
|
16
|
+
}
|
17
|
+
v.precise = $;
|
18
|
+
Object.defineProperty(d, "__esModule", { value: !0 });
|
19
|
+
d.toFixed = void 0;
|
20
|
+
var m = v;
|
21
|
+
function j(r, e) {
|
22
|
+
e === void 0 && (e = 2);
|
23
|
+
var t = parseFloat("" + r), n = Math.pow(10, e);
|
24
|
+
return t = m.precise(t * n + 0.5), t = parseInt("" + t, 10) / n, m.precise(t).toFixed(e);
|
25
|
+
}
|
26
|
+
d.toFixed = j;
|
27
|
+
var l = {};
|
28
|
+
Object.defineProperty(l, "__esModule", { value: !0 });
|
29
|
+
l.capital = void 0;
|
30
|
+
function O(r) {
|
31
|
+
var e = String(r);
|
32
|
+
if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(e))
|
33
|
+
return "";
|
34
|
+
var t = "千百拾亿千百拾万千百拾元角分", n = "";
|
35
|
+
e += "00";
|
36
|
+
var u = e.indexOf(".");
|
37
|
+
u >= 0 && (e = e.substring(0, u) + e.substr(u + 1, 2)), t = t.substr(t.length - e.length);
|
38
|
+
for (var a = 0; a < e.length; a++)
|
39
|
+
n += "零壹贰叁肆伍陆柒捌玖".charAt(Number(e.charAt(a))) + t.charAt(a);
|
40
|
+
return n.replace(/零(千|百|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
|
41
|
+
}
|
42
|
+
l.capital = O;
|
43
|
+
var s = {}, c = {}, o = {};
|
44
|
+
Object.defineProperty(o, "__esModule", { value: !0 });
|
45
|
+
o.MIN_SAFETY_NUMBER = o.MAX_SAFETY_NUMBER = void 0;
|
46
|
+
o.MAX_SAFETY_NUMBER = Math.pow(2, 53) - 1;
|
47
|
+
o.MIN_SAFETY_NUMBER = -1 * Math.pow(2, 53) + 1;
|
48
|
+
Object.defineProperty(c, "__esModule", { value: !0 });
|
49
|
+
c.isNumber = void 0;
|
50
|
+
var g = o;
|
51
|
+
function y(r, e) {
|
52
|
+
e === void 0 && (e = !1);
|
53
|
+
var t = typeof r == "number" && isFinite(r);
|
54
|
+
return t && e ? r <= g.MAX_SAFETY_NUMBER && r >= g.MIN_SAFETY_NUMBER : t;
|
55
|
+
}
|
56
|
+
c.isNumber = y;
|
57
|
+
Object.defineProperty(s, "__esModule", { value: !0 });
|
58
|
+
s.percentage = void 0;
|
59
|
+
var A = c, P = d;
|
60
|
+
function E(r, e) {
|
61
|
+
e === void 0 && (e = 2);
|
62
|
+
var t = Number(r);
|
63
|
+
return A.isNumber(t) ? P.toFixed(t * 100, e) + "%" : r;
|
64
|
+
}
|
65
|
+
s.percentage = E;
|
66
|
+
var p = {};
|
67
|
+
Object.defineProperty(p, "__esModule", { value: !0 });
|
68
|
+
p.idxList = void 0;
|
69
|
+
function h(r, e) {
|
70
|
+
return e === void 0 && (e = 0), Array.from(Array(r), function(t, n) {
|
71
|
+
return n + e;
|
72
|
+
});
|
73
|
+
}
|
74
|
+
p.idxList = h;
|
75
|
+
var M = {};
|
76
|
+
Object.defineProperty(M, "__esModule", { value: !0 });
|
77
|
+
M.randomInt = void 0;
|
78
|
+
function S(r, e) {
|
79
|
+
return e === void 0 && (e = r), r = Math.round(r + 0.4999999), e = Math.round(e - 0.5), r < 0 || r > e ? -1 : Math.round((e - r) * Math.random()) + r;
|
80
|
+
}
|
81
|
+
M.randomInt = S;
|
82
|
+
var b = {};
|
83
|
+
Object.defineProperty(b, "__esModule", { value: !0 });
|
84
|
+
b.sum = void 0;
|
85
|
+
function B() {
|
86
|
+
for (var r = [], e = 0; e < arguments.length; e++)
|
87
|
+
r[e] = arguments[e];
|
88
|
+
return r.reduce(function(t, n) {
|
89
|
+
return t += n;
|
90
|
+
}, 0);
|
91
|
+
}
|
92
|
+
b.sum = B;
|
93
|
+
(function(r) {
|
94
|
+
var e = f && f.__createBinding || (Object.create ? function(n, u, a, i) {
|
95
|
+
i === void 0 && (i = a), Object.defineProperty(n, i, { enumerable: !0, get: function() {
|
96
|
+
return u[a];
|
97
|
+
} });
|
98
|
+
} : function(n, u, a, i) {
|
99
|
+
i === void 0 && (i = a), n[i] = u[a];
|
100
|
+
}), t = f && f.__exportStar || function(n, u) {
|
101
|
+
for (var a in n) a !== "default" && !u.hasOwnProperty(a) && e(u, n, a);
|
102
|
+
};
|
103
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), t(_, r), t(d, r), t(l, r), t(s, r), t(p, r), t(M, r), t(v, r), t(c, r), t(b, r);
|
104
|
+
})(F);
|
105
|
+
export {
|
106
|
+
F as l
|
107
|
+
};
|
108
|
+
//# sourceMappingURL=index-CC0EuWhe.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index-CC0EuWhe.js","sources":["../node_modules/number-magic/lib/comma.js","../node_modules/number-magic/lib/precise.js","../node_modules/number-magic/lib/toFixed.js","../node_modules/number-magic/lib/capital.js","../node_modules/number-magic/lib/utils/constants.js","../node_modules/number-magic/lib/isNumber.js","../node_modules/number-magic/lib/percentage.js","../node_modules/number-magic/lib/idxList.js","../node_modules/number-magic/lib/randomInt.js","../node_modules/number-magic/lib/sum.js","../node_modules/number-magic/lib/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.comma = void 0;\nfunction comma(source, length) {\n if (length === void 0) { length = 3; }\n var arr = String(source).split('.');\n arr[0] = arr[0].replace(new RegExp('(\\\\d)(?=(\\\\d{' + length + '})+$)', 'ig'), '$1,');\n return arr.join('.');\n}\nexports.comma = comma;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.precise = void 0;\nfunction precise(source, precision) {\n if (precision === void 0) { precision = 12; }\n return parseFloat(source.toPrecision(precision));\n}\nexports.precise = precise;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toFixed = void 0;\nvar precise_1 = require(\"./precise\");\nfunction toFixed(source, digits) {\n if (digits === void 0) { digits = 2; }\n var num = parseFloat(\"\" + source);\n var times = Math.pow(10, digits);\n num = precise_1.precise(num * times + 0.5);\n num = parseInt(\"\" + num, 10) / times;\n return precise_1.precise(num).toFixed(digits);\n}\nexports.toFixed = toFixed;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.capital = void 0;\nfunction capital(source) {\n var numbStr = String(source);\n if (!/^(0|[1-9]\\d*)(\\.\\d+)?$/.test(numbStr))\n return '';\n var unit = '千百拾亿千百拾万千百拾元角分';\n var str = '';\n numbStr += '00';\n var p = numbStr.indexOf('.');\n if (p >= 0)\n numbStr = numbStr.substring(0, p) + numbStr.substr(p + 1, 2);\n unit = unit.substr(unit.length - numbStr.length);\n for (var i = 0; i < numbStr.length; i++) {\n str += '零壹贰叁肆伍陆柒捌玖'.charAt(Number(numbStr.charAt(i))) + unit.charAt(i);\n }\n return str\n .replace(/零(千|百|拾|角)/g, '零')\n .replace(/(零)+/g, '零')\n .replace(/零(万|亿|元)/g, '$1')\n .replace(/(亿)万|壹(拾)/g, '$1$2')\n .replace(/^元零?|零分/g, '')\n .replace(/元$/g, '元整');\n}\nexports.capital = capital;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MIN_SAFETY_NUMBER = exports.MAX_SAFETY_NUMBER = void 0;\nexports.MAX_SAFETY_NUMBER = Math.pow(2, 53) - 1;\nexports.MIN_SAFETY_NUMBER = -1 * Math.pow(2, 53) + 1;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isNumber = void 0;\nvar constants_1 = require(\"./utils/constants\");\nfunction isNumber(source, checkSafetyNumber) {\n if (checkSafetyNumber === void 0) { checkSafetyNumber = false; }\n var isNumb = typeof source === 'number' && isFinite(source);\n if (isNumb && checkSafetyNumber)\n return source <= constants_1.MAX_SAFETY_NUMBER && source >= constants_1.MIN_SAFETY_NUMBER;\n return isNumb;\n}\nexports.isNumber = isNumber;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.percentage = void 0;\nvar isNumber_1 = require(\"./isNumber\");\nvar toFixed_1 = require(\"./toFixed\");\nfunction percentage(source, digits) {\n if (digits === void 0) { digits = 2; }\n var numb = Number(source);\n if (!isNumber_1.isNumber(numb))\n return source;\n return toFixed_1.toFixed(numb * 100, digits) + '%';\n}\nexports.percentage = percentage;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.idxList = void 0;\nfunction idxList(len, delta) {\n if (delta === void 0) { delta = 0; }\n return Array.from(Array(len), function (_v, k) { return k + delta; });\n}\nexports.idxList = idxList;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.randomInt = void 0;\nfunction randomInt(min, max) {\n if (max === void 0) { max = min; }\n min = Math.round(min + 0.4999999);\n max = Math.round(max - 0.5);\n if (min < 0 || min > max)\n return -1;\n return Math.round((max - min) * Math.random()) + min;\n}\nexports.randomInt = randomInt;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sum = void 0;\nfunction sum() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return args.reduce(function (finalValue, current) {\n return (finalValue += current);\n }, 0);\n}\nexports.sum = sum;\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./comma\"), exports);\n__exportStar(require(\"./toFixed\"), exports);\n__exportStar(require(\"./capital\"), exports);\n__exportStar(require(\"./percentage\"), exports);\n__exportStar(require(\"./idxList\"), exports);\n__exportStar(require(\"./randomInt\"), exports);\n__exportStar(require(\"./precise\"), exports);\n__exportStar(require(\"./isNumber\"), exports);\n__exportStar(require(\"./sum\"), exports);\n"],"names":["comma_1","comma","source","length","arr","precise_1","precise","precision","toFixed_1","require$$0","toFixed","digits","num","times","capital_1","capital","numbStr","unit","str","p","i","constants","isNumber_1","constants_1","isNumber","checkSafetyNumber","isNumb","percentage_1","require$$1","percentage","numb","idxList_1","idxList","len","delta","_v","k","randomInt_1","randomInt","min","max","sum_1","sum","args","_i","finalValue","current","__createBinding","this","o","m","k2","__exportStar","exports","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7","require$$8"],"mappings":";;AACA,OAAO,eAAeA,GAAS,cAAc,EAAE,OAAO,GAAI,CAA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OD,EAAEd,CAAC;AAAA,IAAE,EAAI,CAAA;AAAA,EACtF,IAAK,SAASa,GAAGC,GAAGd,GAAGe,GAAI;AACxB,IAAIA,MAAO,WAAWA,IAAKf,IAC3Ba,EAAEE,CAAE,IAAID,EAAEd,CAAC;AAAA,EACd,IACGgB,IAAgBJ,KAAQA,EAAK,gBAAiB,SAASE,GAAGG,GAAS;AACnE,aAASlC,KAAK+B,EAAG,CAAI/B,MAAM,aAAa,CAACkC,EAAQ,eAAelC,CAAC,KAAG4B,EAAgBM,GAASH,GAAG/B,CAAC;AAAA,EACrG;AACA,SAAO,eAAckC,GAAU,cAAc,EAAE,OAAO,GAAI,CAAE,GAC5DD,EAAa3C,GAAoB4C,CAAO,GACxCD,EAAaxB,GAAsByB,CAAO,GAC1CD,EAAaE,GAAsBD,CAAO,GAC1CD,EAAaG,GAAyBF,CAAO,GAC7CD,EAAaI,GAAsBH,CAAO,GAC1CD,EAAaK,GAAwBJ,CAAO,GAC5CD,EAAaM,GAAsBL,CAAO,GAC1CD,EAAaO,GAAuBN,CAAO,GAC3CD,EAAaQ,GAAkBP,CAAO;;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10]}
|
package/dist/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--orion-flex-gutter: 8px;--orion-space-gutter: 8px}.orion-space{display:inline-flex;align-items:center;gap:var(--orion-space-gutter)}.orion-space.vertical{display:flex;flex-direction:column;align-items:center;gap:var(--orion-space-gutter)}.orion-flex{display:flex;outline:none}.orion-flex-row{flex-direction:row;width:100%;overflow:auto}.orion-flex-justify-start{justify-content:start}.orion-flex-column{width:100%;flex-direction:column;overflow:auto}.orion-flex>.orion-flexitem{overflow:auto;outline:none}.orion-flex>.orion-flexitem-auto{flex:0 0 auto}.orion-flex>.orion-flexitem-fixed{flex:none}.orion-flex>.orion-flexitem-fill{flex:1 1 0px}.orion-pagetbale{min-height:120px;height:100%;display:flex;flex-direction:column;gap:4px}.orion-pagetbale>.pagetable-wrapper{flex:1 1 0px;overflow:auto}.orion-pagetbale>.pagination-wrapper{flex:0 0 auto}.orion-pagetbale .cell-numbercolumn{text-align:right}
|
1
|
+
:root{--orion-flex-gutter: 8px;--orion-space-gutter: 8px}.orion-space{display:inline-flex;align-items:center;gap:var(--orion-space-gutter)}.orion-space.vertical{display:flex;flex-direction:column;align-items:center;gap:var(--orion-space-gutter)}.orion-flex{display:flex;outline:none}.orion-flex-row{flex-direction:row;width:100%;overflow:auto}.orion-flex-justify-start{justify-content:start}.orion-flex-column{width:100%;flex-direction:column;overflow:auto}.orion-flex>.orion-flexitem{overflow:auto;outline:none}.orion-flex>.orion-flexitem-auto{flex:0 0 auto}.orion-flex>.orion-flexitem-fixed{flex:none}.orion-flex>.orion-flexitem-fill{flex:1 1 0px}.orion-pagetbale{min-height:120px;height:100%;display:flex;flex-direction:column;gap:4px}.orion-pagetbale>.pagetable-wrapper{flex:1 1 0px;overflow:auto}.orion-pagetbale>.pagination-wrapper{flex:0 0 auto}.orion-pagetbale .cell-numbercolumn{text-align:right}.orion-querytable{min-height:120px;height:100%;overflow:auto}.orion-querytable .cell-numbercolumn{text-align:right}
|
package/dist/index.js
CHANGED
@@ -1,23 +1,25 @@
|
|
1
|
-
import { default as
|
1
|
+
import { default as r } from "./error/OrionError.js";
|
2
2
|
import { default as a } from "./Throne/index.js";
|
3
3
|
import { install as l } from "./components/index.js";
|
4
4
|
import { default as m } from "./version/version.js";
|
5
5
|
import { default as s } from "./components/Modal/useModal.js";
|
6
|
-
import { default as
|
6
|
+
import { default as d } from "./components/Button/index.js";
|
7
7
|
import { S as n } from "./index-BbsXWo7C.js";
|
8
|
-
import { Colflex as
|
8
|
+
import { Colflex as F, Flexitem as M, Rowflex as O } from "./components/Flex/index.js";
|
9
9
|
import { default as c } from "./components/Pagetable/index.js";
|
10
|
-
import {
|
11
|
-
import {
|
10
|
+
import { default as h } from "./components/Querytable/index.js";
|
11
|
+
import { i as w } from "./components-OIbu7HLW.js";
|
12
|
+
import { default as B } from "./components/Form/index.js";
|
12
13
|
export {
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
d as Button,
|
15
|
+
F as Colflex,
|
16
|
+
M as Flexitem,
|
17
|
+
B as Form,
|
18
|
+
w as Modal,
|
19
|
+
r as OrionError,
|
19
20
|
c as Pagetable,
|
20
|
-
|
21
|
+
h as Querytable,
|
22
|
+
O as Rowflex,
|
21
23
|
n as Space,
|
22
24
|
a as Throne,
|
23
25
|
l as install,
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: "0.1.
|
1
|
+
declare const _default: "0.1.12";
|
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.12';"],"names":["version"],"mappings":"AAAA,MAAAA,IAAe;"}
|