orion-design 0.1.14 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +2 -2
- package/dist/components/Form/LovInput/LovInput.d.ts +2 -0
- package/dist/components/Form/LovInput/LovInput.js.map +1 -1
- package/dist/components/Form/index.js +320 -318
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/LovTable/LovPagetable.vue.d.ts +16 -0
- package/dist/components/LovTable/LovQuerytable.vue.d.ts +16 -0
- package/dist/components/LovTable/index.d.ts +35 -3
- package/dist/components/LovTable/index.js +40 -42
- package/dist/components/LovTable/index.js.map +1 -1
- package/dist/components/Tabs/constants.d.ts +19 -0
- package/dist/components/Tabs/constants.js +5 -0
- package/dist/components/Tabs/constants.js.map +1 -0
- package/dist/components/Tabs/index.d.ts +74 -0
- package/dist/components/Tabs/index.js +367 -0
- package/dist/components/Tabs/index.js.map +1 -0
- package/dist/components/Tabs/tab-bar.d.ts +59 -0
- package/dist/components/Tabs/tab-bar.js +15 -0
- package/dist/components/Tabs/tab-bar.js.map +1 -0
- package/dist/components/Tabs/tab-bar.vue.d.ts +131 -0
- package/dist/components/Tabs/tab-nav.d.ts +237 -0
- package/dist/components/Tabs/tab-pane.d.ts +16 -0
- package/dist/components/Tabs/tab-pane.js +35 -0
- package/dist/components/Tabs/tab-pane.js.map +1 -0
- package/dist/components/Tabs/tab-pane.vue.d.ts +43 -0
- package/dist/components/Tabs/tabs.d.ts +101 -0
- package/dist/components/_constants/aria.d.ts +17 -0
- package/dist/components/_constants/aria.js +25 -0
- package/dist/components/_constants/aria.js.map +1 -0
- package/dist/components/_constants/event.d.ts +3 -0
- package/dist/components/_constants/event.js +7 -0
- package/dist/components/_constants/event.js.map +1 -0
- package/dist/components/_constants/index.d.ts +2 -0
- package/dist/components/_constants/index.js +9 -0
- package/dist/components/_constants/index.js.map +1 -0
- package/dist/components/_hooks/index.d.ts +2 -0
- package/dist/components/_hooks/index.js +10 -0
- package/dist/components/_hooks/index.js.map +1 -0
- package/dist/components/_hooks/use-namespace/index.d.ts +23 -0
- package/dist/components/_hooks/use-namespace/index.js +46 -0
- package/dist/components/_hooks/use-namespace/index.js.map +1 -0
- package/dist/components/_hooks/use-ordered-children/index.d.ts +8 -0
- package/dist/components/_hooks/use-ordered-children/index.js +27 -0
- package/dist/components/_hooks/use-ordered-children/index.js.map +1 -0
- package/dist/components/_util/browser.js +2 -2
- package/dist/components/_util/dom/element.js +1 -1
- package/dist/components/_util/dom/position.js +1 -1
- package/dist/components/_util/dom/scroll.js +1 -1
- package/dist/components/_util/dom/style.js +1 -1
- package/dist/components/_util/index.js +1 -1
- package/dist/components/_util/raf.js +1 -1
- package/dist/components/_util/vue/global-node.js +1 -1
- package/dist/components/_util/vue/icon.js +24 -146
- package/dist/components/_util/vue/icon.js.map +1 -1
- package/dist/components/components.d.ts +2 -2
- package/dist/components/components.js +16 -22
- package/dist/components/components.js.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +29 -27
- package/dist/components/index.js.map +1 -1
- package/dist/components-0PErqPHo.js +72 -0
- package/dist/{components-1bMIJYPN.js.map → components-0PErqPHo.js.map} +1 -1
- package/dist/index-BwWeqwHB.js +164 -0
- package/dist/index-BwWeqwHB.js.map +1 -0
- package/dist/index-DG_8kbAs.js +45 -0
- package/dist/{index-C8JNJPWW.js.map → index-DG_8kbAs.js.map} +1 -1
- package/dist/index-DLvlyWAh.js +127 -0
- package/dist/index-DLvlyWAh.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +21 -19
- 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/global.d.ts +6 -1
- package/package.json +3 -1
- package/dist/components/LovTable/LovPagetable.d.ts +0 -2
- package/dist/components/LovTable/LovQuerytable.d.ts +0 -2
- package/dist/components-1bMIJYPN.js +0 -78
- package/dist/index-C8JNJPWW.js +0 -8
@@ -0,0 +1,27 @@
|
|
1
|
+
import { shallowRef as s, isVNode as m } from "vue";
|
2
|
+
import "lodash-es";
|
3
|
+
import "element-plus";
|
4
|
+
import { flattedChildren as c } from "../../_util/vue/vnode.js";
|
5
|
+
const u = (t, i, d) => c(t.subTree).filter(
|
6
|
+
(e) => {
|
7
|
+
var r;
|
8
|
+
return m(e) && ((r = e.type) == null ? void 0 : r.name) === i && !!e.component;
|
9
|
+
}
|
10
|
+
).map((e) => e.component.uid).map((e) => d[e]).filter((e) => !!e), f = (t, i) => {
|
11
|
+
const d = {}, o = s([]);
|
12
|
+
return {
|
13
|
+
children: o,
|
14
|
+
addChild: (r) => {
|
15
|
+
d[r.uid] = r, o.value = u(t, i, d);
|
16
|
+
},
|
17
|
+
removeChild: (r) => {
|
18
|
+
delete d[r], o.value = o.value.filter(
|
19
|
+
(l) => l.uid !== r
|
20
|
+
);
|
21
|
+
}
|
22
|
+
};
|
23
|
+
};
|
24
|
+
export {
|
25
|
+
f as useOrderedChildren
|
26
|
+
};
|
27
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/_hooks/use-ordered-children/index.ts"],"sourcesContent":["import { shallowRef } from 'vue'\r\nimport { flattedChildren, isVNode } from '../../_util'\r\n\r\nimport type { ComponentInternalInstance, VNode } from 'vue'\r\n\r\nconst getOrderedChildren = <T>(\r\n vm: ComponentInternalInstance,\r\n childComponentName: string,\r\n children: Record<number, T>\r\n): T[] => {\r\n const nodes = flattedChildren(vm.subTree).filter(\r\n (n): n is VNode =>\r\n isVNode(n) &&\r\n (n.type as any)?.name === childComponentName &&\r\n !!n.component\r\n )\r\n const uids = nodes.map((n) => n.component!.uid)\r\n return uids.map((uid) => children[uid]).filter((p) => !!p)\r\n}\r\n\r\nexport const useOrderedChildren = <T extends { uid: number }>(\r\n vm: ComponentInternalInstance,\r\n childComponentName: string\r\n) => {\r\n const children: Record<number, T> = {}\r\n const orderedChildren = shallowRef<T[]>([])\r\n\r\n // TODO: split into two functions: addChild and sortChildren\r\n const addChild = (child: T) => {\r\n children[child.uid] = child\r\n orderedChildren.value = getOrderedChildren(vm, childComponentName, children)\r\n }\r\n const removeChild = (uid: number) => {\r\n delete children[uid]\r\n orderedChildren.value = orderedChildren.value.filter(\r\n (children) => children.uid !== uid\r\n )\r\n }\r\n\r\n return {\r\n children: orderedChildren,\r\n addChild,\r\n removeChild,\r\n }\r\n}\r\n"],"names":["getOrderedChildren","vm","childComponentName","children","flattedChildren","n","isVNode","_a","uid","p","useOrderedChildren","orderedChildren","shallowRef","child"],"mappings":";;;;AAKA,MAAMA,IAAqB,CACzBC,GACAC,GACAC,MAEcC,EAAgBH,EAAG,OAAO,EAAE;AAAA,EACxC,CAACI,MACC;;AAAA,WAAAC,EAAQD,CAAC,OACRE,IAAAF,EAAE,SAAF,gBAAAE,EAAgB,UAASL,KAC1B,CAAC,CAACG,EAAE;AAAA;AAAA,EAEW,IAAI,CAACA,MAAMA,EAAE,UAAW,GAAG,EAClC,IAAI,CAACG,MAAQL,EAASK,CAAG,CAAC,EAAE,OAAO,CAACC,MAAM,CAAC,CAACA,CAAC,GAG9CC,IAAqB,CAChCT,GACAC,MACG;AACH,QAAMC,IAA8B,CAAA,GAC9BQ,IAAkBC,EAAgB,CAAA,CAAE;AAcnC,SAAA;AAAA,IACL,UAAUD;AAAA,IACV,UAbe,CAACE,MAAa;AACpB,MAAAV,EAAAU,EAAM,GAAG,IAAIA,GACtBF,EAAgB,QAAQX,EAAmBC,GAAIC,GAAoBC,CAAQ;AAAA,IAAA;AAAA,IAY3E,aAVkB,CAACK,MAAgB;AACnC,aAAOL,EAASK,CAAG,GACHG,EAAA,QAAQA,EAAgB,MAAM;AAAA,QAC5C,CAACR,MAAaA,EAAS,QAAQK;AAAA,MAAA;AAAA,IACjC;AAAA,EAMA;AAEJ;"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { i } from "../../index-
|
2
|
-
import { a as s } from "../../index-
|
1
|
+
import { i } from "../../index-DG_8kbAs.js";
|
2
|
+
import { a as s } from "../../index-DG_8kbAs.js";
|
3
3
|
const r = () => i && /firefox/i.test(window.navigator.userAgent);
|
4
4
|
export {
|
5
5
|
i as isClient,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { e as t } from "../../../functions-DzLqXvGt.js";
|
2
2
|
import "lodash-es";
|
3
3
|
import "vue";
|
4
|
-
import { i as e } from "../../../index-
|
4
|
+
import { i as e } from "../../../index-DG_8kbAs.js";
|
5
5
|
const u = (r) => {
|
6
6
|
if (!e || r === "") return null;
|
7
7
|
if (t(r))
|
@@ -2,7 +2,7 @@ import { easeInOutCubic as w } from "../easings.js";
|
|
2
2
|
import { isWindow as u } from "../types.js";
|
3
3
|
import { rAF as h, cAF as a } from "../raf.js";
|
4
4
|
import { getStyle as T } from "./style.js";
|
5
|
-
import { i as p } from "../../../index-
|
5
|
+
import { i as p } from "../../../index-DG_8kbAs.js";
|
6
6
|
const v = (o, t) => {
|
7
7
|
if (!p) return !1;
|
8
8
|
const l = {
|
@@ -2,7 +2,7 @@ import { isNumber as u, isStringNumber as d } from "../types.js";
|
|
2
2
|
import { c as f, d as c, e as m } from "../../../functions-DzLqXvGt.js";
|
3
3
|
import { entriesOf as p, keysOf as b } from "../objects.js";
|
4
4
|
import { debugWarn as g } from "../error.js";
|
5
|
-
import { i as l } from "../../../index-
|
5
|
+
import { i as l } from "../../../index-DG_8kbAs.js";
|
6
6
|
const y = "utils/dom/style", e = (r = "") => r.split(" ").filter((t) => !!t.trim()), w = (r, t) => {
|
7
7
|
if (!r || !t) return !1;
|
8
8
|
if (t.includes(" ")) throw new Error("className should not contain space.");
|
@@ -26,7 +26,7 @@ import { mutable as Co } from "./typescript.js";
|
|
26
26
|
import { throttleByRaf as So } from "./throttleByRaf.js";
|
27
27
|
import { easeInOutCubic as Po } from "./easings.js";
|
28
28
|
import { castArray as Oo } from "lodash-es";
|
29
|
-
import { i as Io, a as wo } from "../../index-
|
29
|
+
import { i as Io, a as wo } from "../../index-DG_8kbAs.js";
|
30
30
|
import { isVNode as Ao } from "vue";
|
31
31
|
export {
|
32
32
|
K as CloseComponents,
|
@@ -1,154 +1,32 @@
|
|
1
|
-
import {
|
2
|
-
import { definePropType as
|
3
|
-
|
4
|
-
var v = /* @__PURE__ */ l({
|
5
|
-
name: "CircleCheck",
|
6
|
-
__name: "circle-check",
|
7
|
-
setup(t) {
|
8
|
-
return (r, c) => (a(), _("svg", {
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
10
|
-
viewBox: "0 0 1024 1024"
|
11
|
-
}, [
|
12
|
-
e("path", {
|
13
|
-
fill: "currentColor",
|
14
|
-
d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
|
15
|
-
}),
|
16
|
-
e("path", {
|
17
|
-
fill: "currentColor",
|
18
|
-
d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"
|
19
|
-
})
|
20
|
-
]));
|
21
|
-
}
|
22
|
-
}), d = v, f = /* @__PURE__ */ l({
|
23
|
-
name: "CircleCloseFilled",
|
24
|
-
__name: "circle-close-filled",
|
25
|
-
setup(t) {
|
26
|
-
return (r, c) => (a(), _("svg", {
|
27
|
-
xmlns: "http://www.w3.org/2000/svg",
|
28
|
-
viewBox: "0 0 1024 1024"
|
29
|
-
}, [
|
30
|
-
e("path", {
|
31
|
-
fill: "currentColor",
|
32
|
-
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
|
33
|
-
})
|
34
|
-
]));
|
35
|
-
}
|
36
|
-
}), s = f, m = /* @__PURE__ */ l({
|
37
|
-
name: "CircleClose",
|
38
|
-
__name: "circle-close",
|
39
|
-
setup(t) {
|
40
|
-
return (r, c) => (a(), _("svg", {
|
41
|
-
xmlns: "http://www.w3.org/2000/svg",
|
42
|
-
viewBox: "0 0 1024 1024"
|
43
|
-
}, [
|
44
|
-
e("path", {
|
45
|
-
fill: "currentColor",
|
46
|
-
d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"
|
47
|
-
}),
|
48
|
-
e("path", {
|
49
|
-
fill: "currentColor",
|
50
|
-
d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
|
51
|
-
})
|
52
|
-
]));
|
53
|
-
}
|
54
|
-
}), g = m, w = /* @__PURE__ */ l({
|
55
|
-
name: "Close",
|
56
|
-
__name: "close",
|
57
|
-
setup(t) {
|
58
|
-
return (r, c) => (a(), _("svg", {
|
59
|
-
xmlns: "http://www.w3.org/2000/svg",
|
60
|
-
viewBox: "0 0 1024 1024"
|
61
|
-
}, [
|
62
|
-
e("path", {
|
63
|
-
fill: "currentColor",
|
64
|
-
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
65
|
-
})
|
66
|
-
]));
|
67
|
-
}
|
68
|
-
}), o = w, h = /* @__PURE__ */ l({
|
69
|
-
name: "InfoFilled",
|
70
|
-
__name: "info-filled",
|
71
|
-
setup(t) {
|
72
|
-
return (r, c) => (a(), _("svg", {
|
73
|
-
xmlns: "http://www.w3.org/2000/svg",
|
74
|
-
viewBox: "0 0 1024 1024"
|
75
|
-
}, [
|
76
|
-
e("path", {
|
77
|
-
fill: "currentColor",
|
78
|
-
d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
|
79
|
-
})
|
80
|
-
]));
|
81
|
-
}
|
82
|
-
}), n = h, C = /* @__PURE__ */ l({
|
83
|
-
name: "Loading",
|
84
|
-
__name: "loading",
|
85
|
-
setup(t) {
|
86
|
-
return (r, c) => (a(), _("svg", {
|
87
|
-
xmlns: "http://www.w3.org/2000/svg",
|
88
|
-
viewBox: "0 0 1024 1024"
|
89
|
-
}, [
|
90
|
-
e("path", {
|
91
|
-
fill: "currentColor",
|
92
|
-
d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"
|
93
|
-
})
|
94
|
-
]));
|
95
|
-
}
|
96
|
-
}), x = C, L = /* @__PURE__ */ l({
|
97
|
-
name: "SuccessFilled",
|
98
|
-
__name: "success-filled",
|
99
|
-
setup(t) {
|
100
|
-
return (r, c) => (a(), _("svg", {
|
101
|
-
xmlns: "http://www.w3.org/2000/svg",
|
102
|
-
viewBox: "0 0 1024 1024"
|
103
|
-
}, [
|
104
|
-
e("path", {
|
105
|
-
fill: "currentColor",
|
106
|
-
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
|
107
|
-
})
|
108
|
-
]));
|
109
|
-
}
|
110
|
-
}), i = L, M = /* @__PURE__ */ l({
|
111
|
-
name: "WarningFilled",
|
112
|
-
__name: "warning-filled",
|
113
|
-
setup(t) {
|
114
|
-
return (r, c) => (a(), _("svg", {
|
115
|
-
xmlns: "http://www.w3.org/2000/svg",
|
116
|
-
viewBox: "0 0 1024 1024"
|
117
|
-
}, [
|
118
|
-
e("path", {
|
119
|
-
fill: "currentColor",
|
120
|
-
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
|
121
|
-
})
|
122
|
-
]));
|
123
|
-
}
|
124
|
-
}), p = M;
|
125
|
-
const z = u([
|
1
|
+
import { c as e, s as l, i as s, w as o, a as c, l as n, b as i, d as a } from "../../../index-BwWeqwHB.js";
|
2
|
+
import { definePropType as t } from "./props/runtime.js";
|
3
|
+
const f = t([
|
126
4
|
String,
|
127
5
|
Object,
|
128
6
|
Function
|
129
|
-
]),
|
130
|
-
Close:
|
131
|
-
},
|
132
|
-
Close:
|
133
|
-
SuccessFilled:
|
134
|
-
InfoFilled:
|
135
|
-
WarningFilled:
|
136
|
-
CircleCloseFilled:
|
137
|
-
},
|
7
|
+
]), p = {
|
8
|
+
Close: e
|
9
|
+
}, _ = {
|
10
|
+
Close: e,
|
11
|
+
SuccessFilled: l,
|
12
|
+
InfoFilled: s,
|
13
|
+
WarningFilled: o,
|
14
|
+
CircleCloseFilled: c
|
15
|
+
}, u = {
|
16
|
+
success: l,
|
17
|
+
warning: o,
|
18
|
+
error: c,
|
19
|
+
info: s
|
20
|
+
}, C = {
|
21
|
+
validating: n,
|
138
22
|
success: i,
|
139
|
-
|
140
|
-
error: s,
|
141
|
-
info: n
|
142
|
-
}, V = {
|
143
|
-
validating: x,
|
144
|
-
success: d,
|
145
|
-
error: g
|
23
|
+
error: a
|
146
24
|
};
|
147
25
|
export {
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
26
|
+
p as CloseComponents,
|
27
|
+
_ as TypeComponents,
|
28
|
+
u as TypeComponentsMap,
|
29
|
+
C as ValidateComponentsMap,
|
30
|
+
f as iconPropType
|
153
31
|
};
|
154
32
|
//# sourceMappingURL=icon.js.map
|