evui 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +23148 -0
- package/dist/index.umd.cjs +28 -0
- package/package.json +5 -11
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/common/utils.bignumber.js +0 -23
- package/dist/common/utils.debounce.js +0 -66
- package/dist/common/utils.js +0 -64
- package/dist/common/utils.throttle.js +0 -15
- package/dist/components/button/Button.vue.js +0 -65
- package/dist/components/button/index.js +0 -7
- package/dist/components/buttonGroup/ButtonGroup.vue.js +0 -14
- package/dist/components/buttonGroup/index.js +0 -7
- package/dist/components/calendar/Calendar.vue.js +0 -299
- package/dist/components/calendar/index.js +0 -7
- package/dist/components/calendar/uses.js +0 -579
- package/dist/components/chart/Chart.vue.js +0 -261
- package/dist/components/chart/ChartToolbar.vue.js +0 -32
- package/dist/components/chart/chart.core.js +0 -738
- package/dist/components/chart/chartZoom.core.js +0 -221
- package/dist/components/chart/element/element.bar.js +0 -358
- package/dist/components/chart/element/element.bar.time.js +0 -55
- package/dist/components/chart/element/element.heatmap.js +0 -403
- package/dist/components/chart/element/element.line.js +0 -292
- package/dist/components/chart/element/element.pie.js +0 -73
- package/dist/components/chart/element/element.scatter.js +0 -209
- package/dist/components/chart/element/element.tip.js +0 -312
- package/dist/components/chart/helpers/helpers.canvas.js +0 -141
- package/dist/components/chart/helpers/helpers.constant.js +0 -253
- package/dist/components/chart/helpers/helpers.util.js +0 -265
- package/dist/components/chart/index.js +0 -7
- package/dist/components/chart/model/index.js +0 -6
- package/dist/components/chart/model/model.series.js +0 -82
- package/dist/components/chart/model/model.store.js +0 -650
- package/dist/components/chart/plugins/plugins.interaction.js +0 -823
- package/dist/components/chart/plugins/plugins.legend.gradient.js +0 -281
- package/dist/components/chart/plugins/plugins.legend.js +0 -665
- package/dist/components/chart/plugins/plugins.pie.js +0 -86
- package/dist/components/chart/plugins/plugins.scrollbar.js +0 -345
- package/dist/components/chart/plugins/plugins.title.js +0 -43
- package/dist/components/chart/plugins/plugins.tooltip.js +0 -508
- package/dist/components/chart/scale/scale.js +0 -492
- package/dist/components/chart/scale/scale.linear.js +0 -248
- package/dist/components/chart/scale/scale.logarithmic.js +0 -82
- package/dist/components/chart/scale/scale.step.js +0 -227
- package/dist/components/chart/scale/scale.time.category.js +0 -148
- package/dist/components/chart/scale/scale.time.js +0 -95
- package/dist/components/chart/uses.js +0 -479
- package/dist/components/chartBrush/ChartBrush.vue.js +0 -198
- package/dist/components/chartBrush/chartBrush.core.js +0 -265
- package/dist/components/chartBrush/index.js +0 -7
- package/dist/components/chartBrush/uses.js +0 -18
- package/dist/components/chartGroup/ChartGroup.vue.js +0 -128
- package/dist/components/chartGroup/index.js +0 -7
- package/dist/components/chartGroup/uses.js +0 -47
- package/dist/components/checkbox/Checkbox.vue.js +0 -99
- package/dist/components/checkbox/index.js +0 -7
- package/dist/components/checkboxGroup/CheckboxGroup.vue.js +0 -40
- package/dist/components/checkboxGroup/index.js +0 -7
- package/dist/components/contextMenu/ContextMenu.vue.js +0 -70
- package/dist/components/contextMenu/MenuList.vue.js +0 -105
- package/dist/components/contextMenu/index.js +0 -7
- package/dist/components/contextMenu/uses.js +0 -79
- package/dist/components/datePicker/DatePicker.vue.js +0 -310
- package/dist/components/datePicker/index.js +0 -7
- package/dist/components/datePicker/uses.js +0 -190
- package/dist/components/grid/Grid.vue.js +0 -1261
- package/dist/components/grid/GridColumnSetting.vue.js +0 -212
- package/dist/components/grid/GridFilterSetting.vue.js +0 -222
- package/dist/components/grid/GridPagination.vue.js +0 -69
- package/dist/components/grid/GridSummary.vue.js +0 -186
- package/dist/components/grid/GridToolbar.vue.js +0 -15
- package/dist/components/grid/icon/icon-option-button.vue.js +0 -39
- package/dist/components/grid/icon/icon-sort-button.vue.js +0 -56
- package/dist/components/grid/index.js +0 -7
- package/dist/components/grid/uses.js +0 -697
- package/dist/components/icon/Icon.vue.js +0 -50
- package/dist/components/icon/index.js +0 -8
- package/dist/components/inputNumber/InputNumber.vue.js +0 -112
- package/dist/components/inputNumber/index.js +0 -7
- package/dist/components/inputNumber/uses.js +0 -76
- package/dist/components/loading/Loading.vue.js +0 -78
- package/dist/components/loading/index.js +0 -7
- package/dist/components/menu/Menu.vue.js +0 -66
- package/dist/components/menu/MenuItem.vue.js +0 -125
- package/dist/components/menu/index.js +0 -7
- package/dist/components/message/Message.vue.js +0 -122
- package/dist/components/message/index.js +0 -16
- package/dist/components/messageBox/MessageBox.vue.js +0 -216
- package/dist/components/messageBox/index.js +0 -13
- package/dist/components/notification/Notification.vue.js +0 -140
- package/dist/components/notification/index.js +0 -23
- package/dist/components/pagination/Pagination.vue.js +0 -215
- package/dist/components/pagination/index.js +0 -7
- package/dist/components/pagination/pageButton.vue.js +0 -35
- package/dist/components/progress/Progress.vue.js +0 -88
- package/dist/components/progress/index.js +0 -7
- package/dist/components/radio/Radio.vue.js +0 -75
- package/dist/components/radio/index.js +0 -7
- package/dist/components/radioGroup/RadioGroup.vue.js +0 -37
- package/dist/components/radioGroup/index.js +0 -7
- package/dist/components/scheduler/Scheduler.vue.js +0 -128
- package/dist/components/scheduler/index.js +0 -7
- package/dist/components/scheduler/uses.js +0 -73
- package/dist/components/select/Select.vue.js +0 -381
- package/dist/components/select/index.js +0 -7
- package/dist/components/select/uses.js +0 -147
- package/dist/components/slider/Slider.vue.js +0 -243
- package/dist/components/slider/index.js +0 -7
- package/dist/components/slider/uses.js +0 -188
- package/dist/components/tabPanel/TabPanel.vue.js +0 -39
- package/dist/components/tabPanel/index.js +0 -7
- package/dist/components/tabs/Tabs.vue.js +0 -220
- package/dist/components/tabs/index.js +0 -7
- package/dist/components/textField/TextField.vue.js +0 -209
- package/dist/components/textField/index.js +0 -7
- package/dist/components/timePicker/TimePicker.vue.js +0 -227
- package/dist/components/timePicker/index.js +0 -7
- package/dist/components/toggle/Toggle.vue.js +0 -66
- package/dist/components/toggle/index.js +0 -7
- package/dist/components/tree/Tree.vue.js +0 -220
- package/dist/components/tree/TreeNode.vue.js +0 -146
- package/dist/components/tree/index.js +0 -7
- package/dist/components/treeGrid/TreeGrid.vue.js +0 -898
- package/dist/components/treeGrid/TreeGridNode.vue.js +0 -274
- package/dist/components/treeGrid/TreeGridToolbar.vue.js +0 -15
- package/dist/components/treeGrid/index.js +0 -7
- package/dist/components/treeGrid/uses.js +0 -497
- package/dist/components/window/Window.vue.js +0 -211
- package/dist/components/window/index.js +0 -7
- package/dist/components/window/uses.js +0 -345
- package/dist/directives/clickoutside.js +0 -47
- package/dist/main.js +0 -142
- package/dist/package.json.js +0 -4
- package/dist/resolver.js +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "evui",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"description": "A EXEM Library project",
|
|
5
5
|
"author": "exem <dev_client@ex-em.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,18 +24,12 @@
|
|
|
24
24
|
"files": [
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
"*.scss"
|
|
30
|
-
],
|
|
31
|
-
"main": "dist/main.js",
|
|
32
|
-
"module": "dist/main.js",
|
|
27
|
+
"main": "dist/index.js",
|
|
28
|
+
"module": "dist/index.js",
|
|
33
29
|
"exports": {
|
|
34
30
|
".": {
|
|
35
|
-
"import": "./dist/
|
|
36
|
-
|
|
37
|
-
"./resolver": {
|
|
38
|
-
"import": "./dist/resolver.js"
|
|
31
|
+
"import": "./dist/index.js",
|
|
32
|
+
"require": "./dist/index.umd.cjs"
|
|
39
33
|
},
|
|
40
34
|
"./style": {
|
|
41
35
|
"import": "./dist/style.css",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import e from "bignumber.js";
|
|
2
|
-
function u(n) {
|
|
3
|
-
return new e(n);
|
|
4
|
-
}
|
|
5
|
-
function i(n, r) {
|
|
6
|
-
return u(n).plus(u(r)).toNumber();
|
|
7
|
-
}
|
|
8
|
-
function o(n, r) {
|
|
9
|
-
return u(n).minus(u(r)).toNumber();
|
|
10
|
-
}
|
|
11
|
-
function b(n, r) {
|
|
12
|
-
return u(n).dividedBy(u(r)).toNumber();
|
|
13
|
-
}
|
|
14
|
-
function m(n, r) {
|
|
15
|
-
return u(n).decimalPlaces(r, e.ROUND_DOWN).toNumber();
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
b as bnDivide,
|
|
19
|
-
m as bnFloor,
|
|
20
|
-
o as bnMinus,
|
|
21
|
-
i as bnPlus,
|
|
22
|
-
u as toBigNumber
|
|
23
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
function C(f) {
|
|
2
|
-
const e = typeof f;
|
|
3
|
-
return f != null && (e === "object" || e === "function");
|
|
4
|
-
}
|
|
5
|
-
function D(f, e, o) {
|
|
6
|
-
let c, l, m, a, t, r, d = 0, k = !1, s = !1, T = !0;
|
|
7
|
-
const p = !e && e !== 0 && typeof root.requestAnimationFrame == "function";
|
|
8
|
-
if (typeof f != "function")
|
|
9
|
-
throw new TypeError("Expected a function");
|
|
10
|
-
e = +e || 0, C(o) && (k = !!o.leading, s = "maxWait" in o, m = s ? Math.max(+o.maxWait || 0, e) : m, T = "trailing" in o ? !!o.trailing : T);
|
|
11
|
-
function A(n) {
|
|
12
|
-
const i = c, u = l;
|
|
13
|
-
return c = l = void 0, d = n, a = f.apply(u, i), a;
|
|
14
|
-
}
|
|
15
|
-
function g(n, i) {
|
|
16
|
-
return p ? (window.cancelAnimationFrame(t), window.requestAnimationFrame(n)) : setTimeout(n, i);
|
|
17
|
-
}
|
|
18
|
-
function E(n) {
|
|
19
|
-
if (p)
|
|
20
|
-
return window.cancelAnimationFrame(n);
|
|
21
|
-
clearTimeout(n);
|
|
22
|
-
}
|
|
23
|
-
function F(n) {
|
|
24
|
-
return d = n, t = g(h, e), k ? A(n) : a;
|
|
25
|
-
}
|
|
26
|
-
function W(n) {
|
|
27
|
-
const i = n - r, u = n - d, v = e - i;
|
|
28
|
-
return s ? Math.min(v, m - u) : v;
|
|
29
|
-
}
|
|
30
|
-
function y(n) {
|
|
31
|
-
const i = n - r, u = n - d;
|
|
32
|
-
return r === void 0 || i >= e || i < 0 || s && u >= m;
|
|
33
|
-
}
|
|
34
|
-
function h() {
|
|
35
|
-
const n = Date.now();
|
|
36
|
-
if (y(n))
|
|
37
|
-
return I(n);
|
|
38
|
-
t = g(h, W(n));
|
|
39
|
-
}
|
|
40
|
-
function I(n) {
|
|
41
|
-
return t = void 0, T && c ? A(n) : (c = l = void 0, a);
|
|
42
|
-
}
|
|
43
|
-
function b() {
|
|
44
|
-
t !== void 0 && E(t), d = 0, c = r = l = t = void 0;
|
|
45
|
-
}
|
|
46
|
-
function L() {
|
|
47
|
-
return t === void 0 ? a : I(Date.now());
|
|
48
|
-
}
|
|
49
|
-
function S() {
|
|
50
|
-
return t !== void 0;
|
|
51
|
-
}
|
|
52
|
-
function x(...n) {
|
|
53
|
-
const i = Date.now(), u = y(i);
|
|
54
|
-
if (c = n, l = this, r = i, u) {
|
|
55
|
-
if (t === void 0)
|
|
56
|
-
return F(r);
|
|
57
|
-
if (s)
|
|
58
|
-
return t = g(h, e), A(r);
|
|
59
|
-
}
|
|
60
|
-
return t === void 0 && (t = g(h, e)), a;
|
|
61
|
-
}
|
|
62
|
-
return x.cancel = b, x.flush = L, x.pending = S, x;
|
|
63
|
-
}
|
|
64
|
-
export {
|
|
65
|
-
D as default
|
|
66
|
-
};
|
package/dist/common/utils.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
function o(n) {
|
|
2
|
-
let t = null;
|
|
3
|
-
if (typeof n == "string" || typeof n == "number") {
|
|
4
|
-
const e = /^(normal|(-*\d+(?:\.\d+)?)(px|%)?)$/.exec(n);
|
|
5
|
-
t = e ? { value: +e[2], unit: e[3] || void 0 } : null;
|
|
6
|
-
}
|
|
7
|
-
return t;
|
|
8
|
-
}
|
|
9
|
-
function i(n) {
|
|
10
|
-
return typeof n == "number" && !Number.isNaN(n);
|
|
11
|
-
}
|
|
12
|
-
function r(...n) {
|
|
13
|
-
return n.every(i);
|
|
14
|
-
}
|
|
15
|
-
function u(n, t) {
|
|
16
|
-
const e = n / t * 100;
|
|
17
|
-
return !r(n, t, e) || n === 0 || t === 0 ? 0 : e.toFixed(2);
|
|
18
|
-
}
|
|
19
|
-
function c(n) {
|
|
20
|
-
return r(n) ? 1e6 * n : 0;
|
|
21
|
-
}
|
|
22
|
-
function f(n) {
|
|
23
|
-
return r(n) ? 1e9 * n : 0;
|
|
24
|
-
}
|
|
25
|
-
function l(n) {
|
|
26
|
-
return r(n) ? 1e12 * n : 0;
|
|
27
|
-
}
|
|
28
|
-
function d(n) {
|
|
29
|
-
return r(n) ? 1e15 * n : 0;
|
|
30
|
-
}
|
|
31
|
-
function s(n) {
|
|
32
|
-
const t = /\B(?=(\d{3})+(?!\d))/g;
|
|
33
|
-
if (r(n)) {
|
|
34
|
-
if (Number.isInteger(n))
|
|
35
|
-
return n.toString().replace(t, ",");
|
|
36
|
-
const e = n.toString().split(".");
|
|
37
|
-
return e[0].replace(t, ",") + (e[1] ? `.${e[1]}` : "");
|
|
38
|
-
}
|
|
39
|
-
return !1;
|
|
40
|
-
}
|
|
41
|
-
function m(n) {
|
|
42
|
-
const t = (n == null ? void 0 : n.toString().split(".")[1]) || 0;
|
|
43
|
-
return t ? t.length : 0;
|
|
44
|
-
}
|
|
45
|
-
function g(n) {
|
|
46
|
-
return n == null;
|
|
47
|
-
}
|
|
48
|
-
function a() {
|
|
49
|
-
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || "ontouchstart" in window;
|
|
50
|
-
}
|
|
51
|
-
export {
|
|
52
|
-
f as billions,
|
|
53
|
-
g as checkNullAndUndefined,
|
|
54
|
-
u as convertToPercent,
|
|
55
|
-
m as getPrecision,
|
|
56
|
-
o as getQuantity,
|
|
57
|
-
c as millions,
|
|
58
|
-
a as mobileCheck,
|
|
59
|
-
s as numberWithComma,
|
|
60
|
-
d as quadrillion,
|
|
61
|
-
l as trillion,
|
|
62
|
-
r as truthy,
|
|
63
|
-
i as truthyNumber
|
|
64
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import r from "./utils.debounce.js";
|
|
2
|
-
const i = "Expected a function";
|
|
3
|
-
function u(t, e, a) {
|
|
4
|
-
let n = !0, o = !0;
|
|
5
|
-
if (typeof t != "function")
|
|
6
|
-
throw new TypeError(i);
|
|
7
|
-
return r(t, e, {
|
|
8
|
-
leading: n,
|
|
9
|
-
maxWait: e,
|
|
10
|
-
trailing: o
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
u as default
|
|
15
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as l, normalizeClass as s, renderSlot as n, ref as i, onMounted as d } from "vue";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import f from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const c = {
|
|
5
|
-
name: "EvButton",
|
|
6
|
-
props: {
|
|
7
|
-
disabled: {
|
|
8
|
-
type: Boolean,
|
|
9
|
-
default: !1
|
|
10
|
-
},
|
|
11
|
-
autoFocus: {
|
|
12
|
-
type: Boolean,
|
|
13
|
-
default: !1
|
|
14
|
-
},
|
|
15
|
-
type: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: "default"
|
|
18
|
-
},
|
|
19
|
-
htmlType: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: "button",
|
|
22
|
-
validator: (t) => ["button", "submit", "reset"].includes(t)
|
|
23
|
-
},
|
|
24
|
-
shape: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: "square"
|
|
27
|
-
},
|
|
28
|
-
size: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: "medium"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
emits: {
|
|
34
|
-
click: null
|
|
35
|
-
},
|
|
36
|
-
setup(t) {
|
|
37
|
-
const u = i(null);
|
|
38
|
-
return d(() => {
|
|
39
|
-
t.autoFocus && u.value.focus();
|
|
40
|
-
}), {
|
|
41
|
-
buttonRef: u
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
}, r = ["type", "disabled", "autofocus"];
|
|
45
|
-
function m(t, u, e, y, b, p) {
|
|
46
|
-
return o(), l("button", {
|
|
47
|
-
ref: "buttonRef",
|
|
48
|
-
class: s(["ev-button", {
|
|
49
|
-
disabled: e.disabled,
|
|
50
|
-
[`type-${e.type}`]: !!e.type,
|
|
51
|
-
[`shape-${e.shape}`]: e.shape !== "square",
|
|
52
|
-
[`size-${e.size}`]: e.size !== "medium"
|
|
53
|
-
}]),
|
|
54
|
-
type: e.htmlType,
|
|
55
|
-
disabled: e.disabled,
|
|
56
|
-
autofocus: e.autoFocus,
|
|
57
|
-
onClick: u[0] || (u[0] = (a) => t.$emit("click", a))
|
|
58
|
-
}, [
|
|
59
|
-
n(t.$slots, "default")
|
|
60
|
-
], 10, r);
|
|
61
|
-
}
|
|
62
|
-
const k = /* @__PURE__ */ f(c, [["render", m]]);
|
|
63
|
-
export {
|
|
64
|
-
k as default
|
|
65
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { openBlock as t, createElementBlock as e, renderSlot as r } from "vue";
|
|
2
|
-
import n from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const s = {
|
|
4
|
-
name: "EvButtonGroup"
|
|
5
|
-
}, c = { class: "ev-button-group" };
|
|
6
|
-
function p(o, u, a, _, d, f) {
|
|
7
|
-
return t(), e("div", c, [
|
|
8
|
-
r(o.$slots, "default")
|
|
9
|
-
]);
|
|
10
|
-
}
|
|
11
|
-
const m = /* @__PURE__ */ n(s, [["render", p]]);
|
|
12
|
-
export {
|
|
13
|
-
m as default
|
|
14
|
-
};
|
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
import { useModel as V, useCalendarDate as D, useEvent as I } from "./uses.js";
|
|
2
|
-
import { resolveComponent as U, openBlock as l, createElementBlock as r, Fragment as s, renderList as m, createElementVNode as o, toDisplayString as _, createCommentVNode as g, withModifiers as x, mergeProps as K, toHandlerKey as z, normalizeClass as b, createVNode as q, withCtx as G, createTextVNode as J } from "vue";
|
|
3
|
-
/* empty css */
|
|
4
|
-
import Q from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const X = {
|
|
6
|
-
name: "EvCalendar",
|
|
7
|
-
props: {
|
|
8
|
-
modelValue: {
|
|
9
|
-
type: [String, Array],
|
|
10
|
-
default: "",
|
|
11
|
-
validator: (i) => {
|
|
12
|
-
const d = new RegExp(/[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/), c = new RegExp(
|
|
13
|
-
/[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]/
|
|
14
|
-
);
|
|
15
|
-
return Array.isArray(i) ? i.every(
|
|
16
|
-
(e) => !!(!e || e.length === 10 && d.exec(e)) || e.length === 19 && c.exec(e)
|
|
17
|
-
) : !!(!i || i.length === 10 && d.exec(i) || i.length === 19 && c.exec(i));
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
mode: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: "date",
|
|
23
|
-
validator: (i) => ["date", "dateTime", "dateMulti", "dateRange", "dateTimeRange"].indexOf(i) !== -1
|
|
24
|
-
},
|
|
25
|
-
monthNotation: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: "fullName",
|
|
28
|
-
validator: (i) => ["fullName", "abbrName", "numberName", "korName"].indexOf(i) !== -1
|
|
29
|
-
},
|
|
30
|
-
dayOfTheWeekNotation: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "abbrUpperName",
|
|
33
|
-
validator: (i) => ["abbrUpperName", "abbrLowerName", "abbrPascalName", "abbrKorName"].indexOf(i) !== -1
|
|
34
|
-
},
|
|
35
|
-
options: {
|
|
36
|
-
type: Object,
|
|
37
|
-
default: () => ({
|
|
38
|
-
multiType: "date",
|
|
39
|
-
limit: 1
|
|
40
|
-
}),
|
|
41
|
-
validator: ({ multiType: i, multiDayLimit: d, disabledDate: c, timeFormat: e }) => {
|
|
42
|
-
const h = new RegExp(/(HH|2[0-3]|[01][0-9]):(mm|[0-5][0-9]):(ss|[0-5][0-9])/);
|
|
43
|
-
return (!i || ["weekday", "week", "date"].indexOf(i) !== -1) && (!d || typeof d == "number" && d > 0) && (!c || typeof c == "function" || Array.isArray(c)) && Array.isArray(e) ? e.every((k) => !!(!k || h.exec(k))) : !!(!e || h.exec(e));
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
emits: {
|
|
48
|
-
"update:modelValue": [Array, String]
|
|
49
|
-
},
|
|
50
|
-
setup(i) {
|
|
51
|
-
const {
|
|
52
|
-
calendarList: d,
|
|
53
|
-
selectedValue: c,
|
|
54
|
-
calendarPageInfo: e,
|
|
55
|
-
calendarMonth: h,
|
|
56
|
-
dayOfTheWeekList: k,
|
|
57
|
-
calendarYearRangeInfo: u,
|
|
58
|
-
selectedListType: n
|
|
59
|
-
} = V(), {
|
|
60
|
-
calendarTableInfo: t,
|
|
61
|
-
calendarMonthTableInfo: a,
|
|
62
|
-
calendarYearTableInfo: v,
|
|
63
|
-
calendarTimeTableInfo: f,
|
|
64
|
-
setCalendarDate: C,
|
|
65
|
-
setCalendarMonth: w,
|
|
66
|
-
setCalendarYear: M,
|
|
67
|
-
setHmsTime: N,
|
|
68
|
-
getTimeInfo: y
|
|
69
|
-
} = D({
|
|
70
|
-
selectedValue: c,
|
|
71
|
-
calendarPageInfo: e,
|
|
72
|
-
calendarYearRangeInfo: u
|
|
73
|
-
}), {
|
|
74
|
-
clickPrevNextBtn: R,
|
|
75
|
-
clickYearMonthBtn: E,
|
|
76
|
-
clickDate: L,
|
|
77
|
-
clickYearMonth: Y,
|
|
78
|
-
clickHmsBtn: B,
|
|
79
|
-
clickTime: S,
|
|
80
|
-
wheelMonth: A,
|
|
81
|
-
wheelTime: O,
|
|
82
|
-
calendarEventName: W,
|
|
83
|
-
onMousemoveDate: H,
|
|
84
|
-
preventTimeEventType: P
|
|
85
|
-
} = I({
|
|
86
|
-
selectedValue: c,
|
|
87
|
-
calendarPageInfo: e,
|
|
88
|
-
calendarTimeTableInfo: f,
|
|
89
|
-
selectedListType: n,
|
|
90
|
-
setCalendarDate: C,
|
|
91
|
-
setCalendarMonth: w,
|
|
92
|
-
setCalendarYear: M,
|
|
93
|
-
setHmsTime: N
|
|
94
|
-
});
|
|
95
|
-
return C("main"), ["dateRange", "dateTimeRange"].includes(i.mode) && C("expanded"), ["dateTime", "dateTimeRange"].includes(i.mode) && N(), {
|
|
96
|
-
calendarList: d,
|
|
97
|
-
selectedValue: c,
|
|
98
|
-
calendarPageInfo: e,
|
|
99
|
-
calendarMonth: h,
|
|
100
|
-
dayOfTheWeekList: k,
|
|
101
|
-
calendarYearRangeInfo: u,
|
|
102
|
-
selectedListType: n,
|
|
103
|
-
calendarTableInfo: t,
|
|
104
|
-
calendarMonthTableInfo: a,
|
|
105
|
-
calendarYearTableInfo: v,
|
|
106
|
-
calendarTimeTableInfo: f,
|
|
107
|
-
getTimeInfo: y,
|
|
108
|
-
clickPrevNextBtn: R,
|
|
109
|
-
clickYearMonthBtn: E,
|
|
110
|
-
clickDate: L,
|
|
111
|
-
clickYearMonth: Y,
|
|
112
|
-
clickHmsBtn: B,
|
|
113
|
-
clickTime: S,
|
|
114
|
-
wheelMonth: A,
|
|
115
|
-
wheelTime: O,
|
|
116
|
-
calendarEventName: W,
|
|
117
|
-
onMousemoveDate: H,
|
|
118
|
-
preventTimeEventType: P
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
}, Z = { class: "ev-calendar-wrapper" }, F = { class: "ev-calendar-date-area" }, j = { class: "ev-calendar-header" }, T = ["onClick"], $ = { class: "ev-calendar-year-month-wrapper" }, p = {
|
|
122
|
-
key: 0,
|
|
123
|
-
class: "ev-calendar-year-range"
|
|
124
|
-
}, ee = ["onClick"], te = ["onClick"], ne = ["onClick"], ae = { class: "ev-calendar-body" }, le = ["onWheel"], re = ["onClick"], oe = ["onWheel"], ie = ["onClick"], de = {
|
|
125
|
-
key: 2,
|
|
126
|
-
class: "ev-calendar-selector-btn-wrapper"
|
|
127
|
-
}, se = {
|
|
128
|
-
key: 0,
|
|
129
|
-
class: "ev-calendar-time-area"
|
|
130
|
-
}, ce = {
|
|
131
|
-
key: 0,
|
|
132
|
-
class: "ev-calendar-time-area-disabled"
|
|
133
|
-
}, ve = { class: "ev-calendar-time-side" }, me = { class: "ev-calendar-time-center" }, _e = ["onWheel"], he = ["onClick"], ke = { class: "ev-calendar-time-side" }, be = ["onClick"];
|
|
134
|
-
function ue(i, d, c, e, h, k) {
|
|
135
|
-
const u = U("ev-button");
|
|
136
|
-
return l(), r("div", Z, [
|
|
137
|
-
(l(!0), r(s, null, m(e.calendarList, (n) => (l(), r(s, { key: n }, [
|
|
138
|
-
o("div", F, [
|
|
139
|
-
o("div", j, [
|
|
140
|
-
o("div", {
|
|
141
|
-
class: "move-month-arrow",
|
|
142
|
-
onClick: (t) => e.clickPrevNextBtn(n, "prev")
|
|
143
|
-
}, [...d[0] || (d[0] = [
|
|
144
|
-
o("i", { class: "ev-icon-s-arrow-left move-month-arrow-icon" }, null, -1)
|
|
145
|
-
])], 8, T),
|
|
146
|
-
o("div", $, [
|
|
147
|
-
e.selectedListType[n] === "year" ? (l(), r("span", p, _(e.calendarYearRangeInfo[n].start + " - " + e.calendarYearRangeInfo[n].end), 1)) : (l(), r(s, { key: 1 }, [
|
|
148
|
-
o("span", {
|
|
149
|
-
class: "ev-calendar-year",
|
|
150
|
-
onClick: (t) => e.clickYearMonthBtn(n, "year")
|
|
151
|
-
}, _(e.calendarPageInfo[n].year), 9, ee),
|
|
152
|
-
e.selectedListType[n] === "date" ? (l(), r("span", {
|
|
153
|
-
key: 0,
|
|
154
|
-
class: "ev-calendar-month",
|
|
155
|
-
onClick: (t) => e.clickYearMonthBtn(n, "month")
|
|
156
|
-
}, _(e.calendarMonth[n]), 9, te)) : g("", !0)
|
|
157
|
-
], 64))
|
|
158
|
-
]),
|
|
159
|
-
o("div", {
|
|
160
|
-
class: "move-month-arrow",
|
|
161
|
-
onClick: (t) => e.clickPrevNextBtn(n, "next")
|
|
162
|
-
}, [...d[1] || (d[1] = [
|
|
163
|
-
o("i", { class: "ev-icon-s-arrow-right move-month-arrow-icon" }, null, -1)
|
|
164
|
-
])], 8, ne)
|
|
165
|
-
]),
|
|
166
|
-
o("div", ae, [
|
|
167
|
-
e.selectedListType[n] === "date" ? (l(), r("table", {
|
|
168
|
-
key: `${n}_calendar_table`,
|
|
169
|
-
class: "ev-calendar-table"
|
|
170
|
-
}, [
|
|
171
|
-
o("thead", null, [
|
|
172
|
-
o("tr", null, [
|
|
173
|
-
(l(!0), r(s, null, m(e.dayOfTheWeekList, (t) => (l(), r("th", { key: t }, _(t), 1))), 128))
|
|
174
|
-
])
|
|
175
|
-
]),
|
|
176
|
-
o("tbody", {
|
|
177
|
-
onWheel: x((t) => e.wheelMonth(n, t), ["prevent"])
|
|
178
|
-
}, [
|
|
179
|
-
(l(!0), r(s, null, m(e.calendarTableInfo[n], (t) => (l(), r("tr", { key: t }, [
|
|
180
|
-
(l(!0), r(s, null, m(t, (a) => (l(), r("td", K({
|
|
181
|
-
key: a,
|
|
182
|
-
class: [
|
|
183
|
-
"ev-calendar-date-td",
|
|
184
|
-
{ [a.monthType]: !!a.monthType },
|
|
185
|
-
{ today: a.isToday },
|
|
186
|
-
{ selected: a.isSelected }
|
|
187
|
-
],
|
|
188
|
-
onClick: (v) => e.clickDate(n, a)
|
|
189
|
-
}, {
|
|
190
|
-
[z(`${e.calendarEventName}`)]: (v) => e.onMousemoveDate(n, v)
|
|
191
|
-
}), [
|
|
192
|
-
o("div", null, [
|
|
193
|
-
o("span", null, _(a.date), 1)
|
|
194
|
-
])
|
|
195
|
-
], 16, re))), 128))
|
|
196
|
-
]))), 128))
|
|
197
|
-
], 40, le)
|
|
198
|
-
])) : (l(), r("table", {
|
|
199
|
-
key: 1,
|
|
200
|
-
class: b([
|
|
201
|
-
"ev-calendar-selector-table",
|
|
202
|
-
`ev-calendar-selector-table--${e.selectedListType[n]}`
|
|
203
|
-
])
|
|
204
|
-
}, [
|
|
205
|
-
o("tbody", {
|
|
206
|
-
onWheel: x((t) => e.wheelMonth(n, t), ["prevent"])
|
|
207
|
-
}, [
|
|
208
|
-
(l(!0), r(s, null, m(e.selectedListType[n] === "month" ? e.calendarMonthTableInfo[n] : e.calendarYearTableInfo[n], (t) => (l(), r("tr", { key: t }, [
|
|
209
|
-
(l(!0), r(s, null, m(t, (a) => (l(), r("td", {
|
|
210
|
-
key: a.value,
|
|
211
|
-
onClick: (v) => e.clickYearMonth(n, a)
|
|
212
|
-
}, [
|
|
213
|
-
o("div", {
|
|
214
|
-
class: b([
|
|
215
|
-
"ev-calendar-selector",
|
|
216
|
-
{ selected: a.isSelected },
|
|
217
|
-
{ today: a.today },
|
|
218
|
-
{ disabled: a.disabled }
|
|
219
|
-
])
|
|
220
|
-
}, _(a.label), 3)
|
|
221
|
-
], 8, ie))), 128))
|
|
222
|
-
]))), 128))
|
|
223
|
-
], 40, oe)
|
|
224
|
-
], 2)),
|
|
225
|
-
e.selectedListType[n] !== "date" ? (l(), r("div", de, [
|
|
226
|
-
q(u, {
|
|
227
|
-
onClick: (t) => e.clickYearMonthBtn(n, "date")
|
|
228
|
-
}, {
|
|
229
|
-
default: G(() => [...d[2] || (d[2] = [
|
|
230
|
-
J(" Done ", -1)
|
|
231
|
-
])]),
|
|
232
|
-
_: 1
|
|
233
|
-
}, 8, ["onClick"])
|
|
234
|
-
])) : g("", !0)
|
|
235
|
-
])
|
|
236
|
-
]),
|
|
237
|
-
["dateTime", "dateTimeRange"].includes(c.mode) ? (l(), r("div", se, [
|
|
238
|
-
e.selectedListType[n] !== "date" ? (l(), r("div", ce)) : g("", !0),
|
|
239
|
-
o("div", ve, [
|
|
240
|
-
(l(), r(s, null, m(["HOUR", "MIN", "SEC"], (t) => o("div", {
|
|
241
|
-
key: `${t}_label`,
|
|
242
|
-
class: "ev-calendar-time-side--label"
|
|
243
|
-
}, _(t), 1)), 64))
|
|
244
|
-
]),
|
|
245
|
-
o("div", me, [
|
|
246
|
-
(l(), r(s, null, m(["hour", "min", "sec"], (t) => o("table", {
|
|
247
|
-
key: `${t}_table`,
|
|
248
|
-
class: "ev-calendar-time-table"
|
|
249
|
-
}, [
|
|
250
|
-
o("tbody", {
|
|
251
|
-
onWheel: x((a) => e.wheelTime(n, t, a), ["prevent"])
|
|
252
|
-
}, [
|
|
253
|
-
(l(), r(s, null, m(3, (a) => o("tr", {
|
|
254
|
-
key: `${t}_${a}_tr`
|
|
255
|
-
}, [
|
|
256
|
-
(l(), r(s, null, m(4, (v) => o("td", {
|
|
257
|
-
key: `${t}_${a}_${v}_td`,
|
|
258
|
-
class: b([
|
|
259
|
-
"ev-calendar-time-td",
|
|
260
|
-
{ selected: e.getTimeInfo(t, a, v, n).isSelected },
|
|
261
|
-
{
|
|
262
|
-
disabled: e.preventTimeEventType[n][t] || e.getTimeInfo(t, a, v, n).isDisabled
|
|
263
|
-
}
|
|
264
|
-
]),
|
|
265
|
-
onClick: (f) => e.clickTime(n, t, a, v)
|
|
266
|
-
}, [
|
|
267
|
-
o("div", null, _(e.getTimeInfo(t, a, v, n).num), 1)
|
|
268
|
-
], 10, he)), 64))
|
|
269
|
-
])), 64))
|
|
270
|
-
], 40, _e)
|
|
271
|
-
])), 64))
|
|
272
|
-
]),
|
|
273
|
-
o("div", ke, [
|
|
274
|
-
(l(), r(s, null, m(["hour", "min", "sec"], (t) => (l(), r(s, {
|
|
275
|
-
key: `${t}_btn_area`
|
|
276
|
-
}, [
|
|
277
|
-
(l(), r(s, null, m(["up", "down"], (a) => o("div", {
|
|
278
|
-
key: `${t}_${a}_btn`,
|
|
279
|
-
class: b([
|
|
280
|
-
"ev-calendar-time-side--btn",
|
|
281
|
-
`arrow-${t}`,
|
|
282
|
-
{ disabled: e.preventTimeEventType[n][t] }
|
|
283
|
-
]),
|
|
284
|
-
onClick: (v) => e.clickHmsBtn(n, t, a)
|
|
285
|
-
}, [
|
|
286
|
-
o("i", {
|
|
287
|
-
class: b(`ev-icon-arrow-${a}`)
|
|
288
|
-
}, null, 2)
|
|
289
|
-
], 10, be)), 64))
|
|
290
|
-
], 64))), 64))
|
|
291
|
-
])
|
|
292
|
-
])) : g("", !0)
|
|
293
|
-
], 64))), 128))
|
|
294
|
-
]);
|
|
295
|
-
}
|
|
296
|
-
const Ne = /* @__PURE__ */ Q(X, [["render", ue]]);
|
|
297
|
-
export {
|
|
298
|
-
Ne as default
|
|
299
|
-
};
|