orion-design 0.1.17 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -5
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +2 -2
- package/dist/components/Form/index.js +40 -38
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/LovTable/LovPagetable.vue.d.ts +28 -0
- package/dist/components/LovTable/LovQuerytable.vue.d.ts +28 -0
- package/dist/components/LovTable/index.d.ts +28 -0
- package/dist/components/LovTable/index.js +22 -20
- package/dist/components/LovTable/index.js.map +1 -1
- package/dist/components/Pagetable/Pagetable.d.ts +13 -0
- package/dist/components/Pagetable/index.d.ts +9 -0
- package/dist/components/Pagetable/index.js +131 -126
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Querytable/Querytable.d.ts +13 -0
- package/dist/components/Querytable/index.d.ts +9 -0
- package/dist/components/Querytable/index.js +85 -81
- package/dist/components/Querytable/index.js.map +1 -1
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +71 -0
- package/dist/components/RichTextEditor/index.d.ts +51 -0
- package/dist/components/RichTextEditor/index.js +20791 -0
- package/dist/components/RichTextEditor/index.js.map +1 -0
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/_util/arrays.js.map +1 -1
- package/dist/components/_util/browser.js.map +1 -1
- package/dist/components/_util/dom/aria.js.map +1 -1
- package/dist/components/_util/dom/element.js.map +1 -1
- package/dist/components/_util/dom/event.js.map +1 -1
- package/dist/components/_util/dom/position.js.map +1 -1
- package/dist/components/_util/dom/scroll.js.map +1 -1
- package/dist/components/_util/dom/style.js.map +1 -1
- package/dist/components/_util/easings.js.map +1 -1
- package/dist/components/_util/error.js.map +1 -1
- package/dist/components/_util/i18n.js.map +1 -1
- package/dist/components/_util/objects.js.map +1 -1
- package/dist/components/_util/raf.js.map +1 -1
- package/dist/components/_util/rand.js.map +1 -1
- package/dist/components/_util/strings.js.map +1 -1
- package/dist/components/_util/throttleByRaf.js.map +1 -1
- package/dist/components/_util/types.js.map +1 -1
- package/dist/components/_util/typescript.js.map +1 -1
- package/dist/components/_util/vue/global-node.js.map +1 -1
- package/dist/components/_util/vue/icon.js +1 -1
- package/dist/components/_util/vue/icon.js.map +1 -1
- package/dist/components/_util/vue/install.js.map +1 -1
- package/dist/components/_util/vue/props/runtime.js.map +1 -1
- package/dist/components/_util/vue/refs.js.map +1 -1
- package/dist/components/_util/vue/size.js.map +1 -1
- package/dist/components/_util/vue/validator.js.map +1 -1
- package/dist/components/_util/vue/vnode.js.map +1 -1
- package/dist/components/components.d.ts +2 -0
- package/dist/components/components.js +12 -10
- package/dist/components/components.js.map +1 -1
- package/dist/components/index.js +16 -14
- package/dist/components/index.js.map +1 -1
- package/dist/components-Cx2JsH63.js +74 -0
- package/dist/{components-0PErqPHo.js.map → components-Cx2JsH63.js.map} +1 -1
- package/dist/{index-BwWeqwHB.js → index-C6P_0wAy.js} +57 -42
- package/dist/{index-BwWeqwHB.js.map → index-C6P_0wAy.js.map} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +22 -20
- package/dist/index.js.map +1 -1
- package/global.d.ts +2 -0
- package/package.json +3 -1
- package/dist/components-0PErqPHo.js +0 -72
@@ -0,0 +1,74 @@
|
|
1
|
+
import p from "./components/Button/index.js";
|
2
|
+
import { S as h } from "./index-BbsXWo7C.js";
|
3
|
+
import { Colflex as w, Flexitem as g, Rowflex as x } from "./components/Flex/index.js";
|
4
|
+
import C from "./components/Tabs/index.js";
|
5
|
+
import b from "./components/Pagetable/index.js";
|
6
|
+
import _ from "./components/Querytable/index.js";
|
7
|
+
import P from "./components/RichTextEditor/index.js";
|
8
|
+
import { defineComponent as $, ref as l, shallowRef as M, provide as y, createVNode as f, Fragment as O } from "vue";
|
9
|
+
import { ElDialog as S } from "element-plus";
|
10
|
+
import "lodash-es";
|
11
|
+
import { addUnit as T } from "./components/_util/dom/style.js";
|
12
|
+
import { withInstall as j } from "./components/_util/vue/install.js";
|
13
|
+
import E from "./components/Form/index.js";
|
14
|
+
import F from "./components/LovTable/index.js";
|
15
|
+
const R = /* @__PURE__ */ $({
|
16
|
+
name: "OModal",
|
17
|
+
setup(k, {
|
18
|
+
slots: z,
|
19
|
+
attrs: B,
|
20
|
+
emit: D,
|
21
|
+
expose: c
|
22
|
+
}) {
|
23
|
+
const o = l(!1), r = l(), n = M(), t = l(), a = l(), s = l(), u = l(), i = l(!0);
|
24
|
+
c({
|
25
|
+
open: async (e) => (o.value = !0, r.value = e.title, n.value = e.content, e.contentProps ? t.value = e.contentProps : t.value = {}, e.width && (a.value = e.width), e.height && (s.value = T(e.height)), e.showClose != null && e.showClose == !1 && (i.value = !1), new Promise((v, L) => {
|
26
|
+
u.value = v;
|
27
|
+
}))
|
28
|
+
});
|
29
|
+
const m = (e) => {
|
30
|
+
const d = u.value;
|
31
|
+
o.value = !1, r.value = void 0, n.value = void 0, t.value = void 0, a.value = void 0, s.value = void 0, u.value = void 0, i.value = !0, d && d(e);
|
32
|
+
};
|
33
|
+
return y("$$Modal", {
|
34
|
+
close: m
|
35
|
+
}), () => {
|
36
|
+
const e = n.value;
|
37
|
+
return o.value ? f(S, {
|
38
|
+
title: r.value,
|
39
|
+
width: a.value,
|
40
|
+
modelValue: o.value,
|
41
|
+
beforeClose: m,
|
42
|
+
draggable: !0,
|
43
|
+
closeOnClickModal: !1,
|
44
|
+
closeOnPressEscape: !1,
|
45
|
+
showClose: i.value,
|
46
|
+
alignCenter: !0,
|
47
|
+
style: {
|
48
|
+
height: s.value
|
49
|
+
}
|
50
|
+
}, {
|
51
|
+
default: () => [f(e, t.value, null)]
|
52
|
+
}) : f(O, null, null);
|
53
|
+
};
|
54
|
+
}
|
55
|
+
}), V = j(R), le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
56
|
+
__proto__: null,
|
57
|
+
Button: p,
|
58
|
+
Colflex: w,
|
59
|
+
Flexitem: g,
|
60
|
+
Form: E,
|
61
|
+
LovTable: F,
|
62
|
+
Modal: V,
|
63
|
+
Pagetable: b,
|
64
|
+
Querytable: _,
|
65
|
+
RichTextEditor: P,
|
66
|
+
Rowflex: x,
|
67
|
+
Space: h,
|
68
|
+
Tabs: C
|
69
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
70
|
+
export {
|
71
|
+
le as c,
|
72
|
+
V as i
|
73
|
+
};
|
74
|
+
//# sourceMappingURL=components-Cx2JsH63.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"components-
|
1
|
+
{"version":3,"file":"components-Cx2JsH63.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;AAAAA,EAAO,GAAG;AAC3C,UAAMC,IAAOC,EAAI,EAAK,GAChBC,IAAQD,KACRE,IAAUC,KACVC,IAAeJ,KACfK,IAAQL,KACRM,IAASN,KACTO,IAAYP,KACZQ,IAAYR,EAAI,EAAI;AA2B1BF,IAAAA,EAAO;AAAA,MACLW,MA1BqE,OAAOC,OAC5EX,EAAKY,QAAQ,IACbV,EAAMU,QAAQD,EAAQT,OACtBC,EAAQS,QAAQD,EAAQR,SACpBQ,EAAQN,eACVA,EAAaO,QAAQD,EAAQN,eAE7BA,EAAaO,QAAQ,IAEnBD,EAAQL,UACVA,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ponent as a, openBlock as _, createElementBlock as r, createElementVNode as e } from "vue";
|
2
2
|
/*! Element Plus Icons Vue v2.3.1 */
|
3
3
|
var s = /* @__PURE__ */ a({
|
4
4
|
name: "ArrowLeft",
|
5
5
|
__name: "arrow-left",
|
6
|
-
setup(
|
7
|
-
return (t, c) => (_(),
|
6
|
+
setup(l) {
|
7
|
+
return (t, c) => (_(), r("svg", {
|
8
8
|
xmlns: "http://www.w3.org/2000/svg",
|
9
9
|
viewBox: "0 0 1024 1024"
|
10
10
|
}, [
|
@@ -14,11 +14,11 @@ var s = /* @__PURE__ */ a({
|
|
14
14
|
})
|
15
15
|
]));
|
16
16
|
}
|
17
|
-
}),
|
17
|
+
}), h = s, u = /* @__PURE__ */ a({
|
18
18
|
name: "ArrowRight",
|
19
19
|
__name: "arrow-right",
|
20
|
-
setup(
|
21
|
-
return (t, c) => (_(),
|
20
|
+
setup(l) {
|
21
|
+
return (t, c) => (_(), r("svg", {
|
22
22
|
xmlns: "http://www.w3.org/2000/svg",
|
23
23
|
viewBox: "0 0 1024 1024"
|
24
24
|
}, [
|
@@ -28,11 +28,11 @@ var s = /* @__PURE__ */ a({
|
|
28
28
|
})
|
29
29
|
]));
|
30
30
|
}
|
31
|
-
}),
|
31
|
+
}), x = u, o = /* @__PURE__ */ a({
|
32
32
|
name: "CircleCheck",
|
33
33
|
__name: "circle-check",
|
34
|
-
setup(
|
35
|
-
return (t, c) => (_(),
|
34
|
+
setup(l) {
|
35
|
+
return (t, c) => (_(), r("svg", {
|
36
36
|
xmlns: "http://www.w3.org/2000/svg",
|
37
37
|
viewBox: "0 0 1024 1024"
|
38
38
|
}, [
|
@@ -46,11 +46,11 @@ var s = /* @__PURE__ */ a({
|
|
46
46
|
})
|
47
47
|
]));
|
48
48
|
}
|
49
|
-
}),
|
49
|
+
}), L = o, p = /* @__PURE__ */ a({
|
50
50
|
name: "CircleCloseFilled",
|
51
51
|
__name: "circle-close-filled",
|
52
|
-
setup(
|
53
|
-
return (t, c) => (_(),
|
52
|
+
setup(l) {
|
53
|
+
return (t, c) => (_(), r("svg", {
|
54
54
|
xmlns: "http://www.w3.org/2000/svg",
|
55
55
|
viewBox: "0 0 1024 1024"
|
56
56
|
}, [
|
@@ -60,11 +60,11 @@ var s = /* @__PURE__ */ a({
|
|
60
60
|
})
|
61
61
|
]));
|
62
62
|
}
|
63
|
-
}),
|
63
|
+
}), C = p, n = /* @__PURE__ */ a({
|
64
64
|
name: "CircleClose",
|
65
65
|
__name: "circle-close",
|
66
|
-
setup(
|
67
|
-
return (t, c) => (_(),
|
66
|
+
setup(l) {
|
67
|
+
return (t, c) => (_(), r("svg", {
|
68
68
|
xmlns: "http://www.w3.org/2000/svg",
|
69
69
|
viewBox: "0 0 1024 1024"
|
70
70
|
}, [
|
@@ -78,11 +78,11 @@ var s = /* @__PURE__ */ a({
|
|
78
78
|
})
|
79
79
|
]));
|
80
80
|
}
|
81
|
-
}),
|
81
|
+
}), M = n, i = /* @__PURE__ */ a({
|
82
82
|
name: "Close",
|
83
83
|
__name: "close",
|
84
|
-
setup(
|
85
|
-
return (t, c) => (_(),
|
84
|
+
setup(l) {
|
85
|
+
return (t, c) => (_(), r("svg", {
|
86
86
|
xmlns: "http://www.w3.org/2000/svg",
|
87
87
|
viewBox: "0 0 1024 1024"
|
88
88
|
}, [
|
@@ -92,11 +92,11 @@ var s = /* @__PURE__ */ a({
|
|
92
92
|
})
|
93
93
|
]));
|
94
94
|
}
|
95
|
-
}),
|
95
|
+
}), B = i, v = /* @__PURE__ */ a({
|
96
96
|
name: "InfoFilled",
|
97
97
|
__name: "info-filled",
|
98
|
-
setup(
|
99
|
-
return (t, c) => (_(),
|
98
|
+
setup(l) {
|
99
|
+
return (t, c) => (_(), r("svg", {
|
100
100
|
xmlns: "http://www.w3.org/2000/svg",
|
101
101
|
viewBox: "0 0 1024 1024"
|
102
102
|
}, [
|
@@ -106,11 +106,11 @@ var s = /* @__PURE__ */ a({
|
|
106
106
|
})
|
107
107
|
]));
|
108
108
|
}
|
109
|
-
}),
|
109
|
+
}), z = v, w = /* @__PURE__ */ a({
|
110
110
|
name: "Loading",
|
111
111
|
__name: "loading",
|
112
|
-
setup(
|
113
|
-
return (t, c) => (_(),
|
112
|
+
setup(l) {
|
113
|
+
return (t, c) => (_(), r("svg", {
|
114
114
|
xmlns: "http://www.w3.org/2000/svg",
|
115
115
|
viewBox: "0 0 1024 1024"
|
116
116
|
}, [
|
@@ -120,11 +120,25 @@ var s = /* @__PURE__ */ a({
|
|
120
120
|
})
|
121
121
|
]));
|
122
122
|
}
|
123
|
-
}),
|
123
|
+
}), y = w, d = /* @__PURE__ */ a({
|
124
|
+
name: "Search",
|
125
|
+
__name: "search",
|
126
|
+
setup(l) {
|
127
|
+
return (t, c) => (_(), r("svg", {
|
128
|
+
xmlns: "http://www.w3.org/2000/svg",
|
129
|
+
viewBox: "0 0 1024 1024"
|
130
|
+
}, [
|
131
|
+
e("path", {
|
132
|
+
fill: "currentColor",
|
133
|
+
d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"
|
134
|
+
})
|
135
|
+
]));
|
136
|
+
}
|
137
|
+
}), k = d, f = /* @__PURE__ */ a({
|
124
138
|
name: "SuccessFilled",
|
125
139
|
__name: "success-filled",
|
126
|
-
setup(
|
127
|
-
return (t, c) => (_(),
|
140
|
+
setup(l) {
|
141
|
+
return (t, c) => (_(), r("svg", {
|
128
142
|
xmlns: "http://www.w3.org/2000/svg",
|
129
143
|
viewBox: "0 0 1024 1024"
|
130
144
|
}, [
|
@@ -134,11 +148,11 @@ var s = /* @__PURE__ */ a({
|
|
134
148
|
})
|
135
149
|
]));
|
136
150
|
}
|
137
|
-
}),
|
151
|
+
}), A = f, g = /* @__PURE__ */ a({
|
138
152
|
name: "WarningFilled",
|
139
153
|
__name: "warning-filled",
|
140
|
-
setup(
|
141
|
-
return (t, c) => (_(),
|
154
|
+
setup(l) {
|
155
|
+
return (t, c) => (_(), r("svg", {
|
142
156
|
xmlns: "http://www.w3.org/2000/svg",
|
143
157
|
viewBox: "0 0 1024 1024"
|
144
158
|
}, [
|
@@ -148,17 +162,18 @@ var s = /* @__PURE__ */ a({
|
|
148
162
|
})
|
149
163
|
]));
|
150
164
|
}
|
151
|
-
}),
|
165
|
+
}), F = g;
|
152
166
|
export {
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
z as
|
161
|
-
y as
|
162
|
-
|
167
|
+
C as a,
|
168
|
+
L as b,
|
169
|
+
B as c,
|
170
|
+
M as d,
|
171
|
+
h as e,
|
172
|
+
x as f,
|
173
|
+
k as g,
|
174
|
+
z as i,
|
175
|
+
y as l,
|
176
|
+
A as s,
|
177
|
+
F as w
|
163
178
|
};
|
164
|
-
//# sourceMappingURL=index-
|
179
|
+
//# sourceMappingURL=index-C6P_0wAy.js.map
|