@das-fed/ui 6.4.0-dev.55.24 → 6.4.0-dev.55.26
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/package.json +5 -5
- package/packages/components/autocomplete/index.js +19 -25
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/style.css +1 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/cascader/index.js +41 -40
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/date-picker/index.js +238 -237
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/edit-table/index.d.ts +2 -2
- package/packages/components/edit-table/index.js +1005 -1017
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/src/hooks/use-validator.d.ts +1 -0
- package/packages/components/edit-table/src/utils.d.ts +0 -2
- package/packages/components/form-item/index.js +3 -3
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/input/index.js +76 -76
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/index.js +18 -18
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-number/index.js +63 -63
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/src/App.vue.d.ts +1 -3
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/map/index.js +38 -37
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/select/index.js +70 -70
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +3 -3
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +42 -42
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/text-tooltip/index.js +150 -150
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/tree/index.js +221 -221
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +68 -73
- package/packages/components/tree-select/index.js.gz +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/special-range-picker-year/style.css';
|
|
2
2
|
import { withInstall as ge } from "@das-fed/utils/with-install/index";
|
|
3
3
|
import { i18n as N, setI18nRule as fe } from "@das-fed/web/packages/i18n/index";
|
|
4
|
-
import { getVarValue as U, getVar as H, setThemeRule as
|
|
5
|
-
import { ref as y, computed as W, defineComponent as
|
|
6
|
-
import { ElPopover as ye, ClickOutside as
|
|
4
|
+
import { getVarValue as U, getVar as H, setThemeRule as he } from "@das-fed/web/packages/theme/index";
|
|
5
|
+
import { ref as y, computed as W, defineComponent as be, onMounted as me, openBlock as I, createElementBlock as E, normalizeStyle as P, unref as e, createElementVNode as d, normalizeClass as S, createVNode as V, withCtx as X, toDisplayString as x, withDirectives as ee, createTextVNode as O, Fragment as Y, renderList as ae, createBlock as ke, Teleport as De, createCommentVNode as re } from "vue";
|
|
6
|
+
import { ElPopover as ye, ClickOutside as Me } from "element-plus";
|
|
7
7
|
import "element-plus/es/components/popover/style/css";
|
|
8
|
-
import { vDasTooltip as
|
|
8
|
+
import { vDasTooltip as we } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
9
9
|
import { DasIconEmpty as $e } from "@das-fed/ui/packages/icons/empty/index";
|
|
10
10
|
import { DasIconDate as Ie } from "@das-fed/ui/packages/icons/date/index";
|
|
11
11
|
import { DasIconLeft as xe } from "@das-fed/ui/packages/icons/left/index";
|
|
@@ -15,7 +15,7 @@ import "@das-fed/ui/packages/global/theme";
|
|
|
15
15
|
const oe = () => ({ getDateTime: (t) => {
|
|
16
16
|
const v = `2020/${t}`;
|
|
17
17
|
return new Date(v).getTime();
|
|
18
|
-
}, formatDateStr: (t) => t >= 10 ? t : "0" + t }), Ee = (k, g, r, t, v, l,
|
|
18
|
+
}, formatDateStr: (t) => t >= 10 ? t : "0" + t }), Ee = (k, g, r, t, v, l, w) => {
|
|
19
19
|
const i = y({ begin: "", end: "" }), C = y(""), { getDateTime: f, formatDateStr: u } = oe();
|
|
20
20
|
return {
|
|
21
21
|
popClickData: i,
|
|
@@ -66,7 +66,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
66
66
|
left: k.value,
|
|
67
67
|
right: g.value
|
|
68
68
|
}, o = `${u(m[s])}/${u(n)}`;
|
|
69
|
-
t.value === "begin" ? i.value.begin = o : i.value.end = o, v.value === 1 ? t.value = t.value === "begin" ? "end" : "begin" :
|
|
69
|
+
t.value === "begin" ? i.value.begin = o : i.value.end = o, v.value === 1 ? t.value = t.value === "begin" ? "end" : "begin" : w();
|
|
70
70
|
},
|
|
71
71
|
mouseEnter: (n, s) => {
|
|
72
72
|
const m = {
|
|
@@ -91,7 +91,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
91
91
|
padding: "2px 8px",
|
|
92
92
|
"box-sizing": "border-box",
|
|
93
93
|
"z-index": k.errorModelZIndex
|
|
94
|
-
})),
|
|
94
|
+
})), w = W(() => ({
|
|
95
95
|
...l.value,
|
|
96
96
|
width: t.value + "px",
|
|
97
97
|
position: "fixed",
|
|
@@ -102,19 +102,19 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
102
102
|
display: "block",
|
|
103
103
|
"text-align": "left",
|
|
104
104
|
color: U("--das-ui-special-range-picker-error").value,
|
|
105
|
-
"white-space": "break-spaces"
|
|
106
|
-
|
|
105
|
+
"white-space": "break-spaces"
|
|
106
|
+
// 'word-break': 'break-all',
|
|
107
107
|
}), C = () => {
|
|
108
108
|
var R, B, z;
|
|
109
109
|
t.value = (R = g.value) == null ? void 0 : R.clientWidth;
|
|
110
|
-
const { top:
|
|
111
|
-
v.value.x =
|
|
110
|
+
const { top: h = 0, left: b = 0 } = ((B = g.value) == null ? void 0 : B.getBoundingClientRect()) ?? {}, M = (z = g.value) == null ? void 0 : z.clientHeight;
|
|
111
|
+
v.value.x = b, v.value.y = h + M;
|
|
112
112
|
};
|
|
113
113
|
return {
|
|
114
114
|
$dasSpecialRangeYearPicker: g,
|
|
115
115
|
isHoverInInput: r,
|
|
116
116
|
errorModalBaseSyle: l,
|
|
117
|
-
errorModelStyle:
|
|
117
|
+
errorModelStyle: w,
|
|
118
118
|
errorLabelStyle: i,
|
|
119
119
|
errorModalInputMouseEnter: () => {
|
|
120
120
|
C(), r.value = !0;
|
|
@@ -126,7 +126,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
126
126
|
}, Re = { class: "date-container" }, Le = { class: "year-container" }, _e = { class: "month-container left-month-container" }, Be = { class: "header" }, ze = ["onMouseenter", "onClick"], Pe = { class: "item-text" }, Ve = { class: "month-container right-month-container" }, Fe = { class: "header" }, Ne = ["onMouseenter", "onClick"], He = { class: "item-text" }, Ye = {
|
|
127
127
|
key: 0,
|
|
128
128
|
class: "das-special-range-picker-error-label-content"
|
|
129
|
-
}, Te = /* @__PURE__ */
|
|
129
|
+
}, Te = /* @__PURE__ */ be({
|
|
130
130
|
__name: "Index",
|
|
131
131
|
props: {
|
|
132
132
|
modelValue: {},
|
|
@@ -143,19 +143,19 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
143
143
|
},
|
|
144
144
|
emits: ["update:modelValue", "update:error", "change", "show-popover"],
|
|
145
145
|
setup(k, { emit: g }) {
|
|
146
|
-
const r = k, t = g, v = y(!1), l = te(r, "modelValue"),
|
|
146
|
+
const r = k, t = g, v = y(!1), l = te(r, "modelValue"), w = y(["", ""]), i = te(r, "error"), C = y(0), f = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], u = y({}), h = y(1), b = y(2), M = y(void 0);
|
|
147
147
|
let R = !0;
|
|
148
148
|
const B = y(0), z = W(() => !r.disabled && !r.isView && l.value[0] && l.value[1]), T = (p, c) => {
|
|
149
149
|
if (!(r.disabled || r.isView)) {
|
|
150
|
-
if (R = !1, v.value = !0,
|
|
150
|
+
if (R = !1, v.value = !0, M.value = c, B.value = 0, w.value = [l.value[0], l.value[1]], p) {
|
|
151
151
|
const a = Number(p.split("/")[0]);
|
|
152
|
-
c === "begin" ? (
|
|
152
|
+
c === "begin" ? (h.value = a < 12 ? a : 11, b.value = h.value + 1) : (b.value = a > 1 ? a : 2, h.value = b.value - 1);
|
|
153
153
|
} else
|
|
154
|
-
|
|
154
|
+
h.value = C.value < 12 ? C.value : 11, b.value = h.value + 1;
|
|
155
155
|
t("show-popover");
|
|
156
156
|
}
|
|
157
157
|
}, Z = () => {
|
|
158
|
-
|
|
158
|
+
M.value = void 0;
|
|
159
159
|
const p = s.value;
|
|
160
160
|
t("update:modelValue", [p.begin, p.end]), t("change", [p.begin, p.end]), t("update:error", !1), v.value = !1;
|
|
161
161
|
}, { formatDateStr: n } = oe(), {
|
|
@@ -168,7 +168,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
168
168
|
clickData: A,
|
|
169
169
|
mouseEnter: j,
|
|
170
170
|
mouseLeave: F
|
|
171
|
-
} = Ee(b,
|
|
171
|
+
} = Ee(h, b, w, M, B, l, Z), {
|
|
172
172
|
$dasSpecialRangeYearPicker: ne,
|
|
173
173
|
isHoverInInput: q,
|
|
174
174
|
errorModalBaseSyle: le,
|
|
@@ -177,16 +177,16 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
177
177
|
errorModalInputMouseEnter: J,
|
|
178
178
|
errorModallInputMouseLeave: K
|
|
179
179
|
} = Se(r), ie = () => {
|
|
180
|
-
|
|
180
|
+
h.value !== 1 && (h.value--, b.value--);
|
|
181
181
|
}, ue = () => {
|
|
182
|
-
|
|
182
|
+
b.value !== 12 && (b.value++, h.value++);
|
|
183
183
|
}, ce = () => {
|
|
184
184
|
setTimeout(() => {
|
|
185
185
|
if (!R) {
|
|
186
186
|
R = !0;
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
w.value = ["", ""], s.value = { begin: l.value[0], end: l.value[1] }, M.value = void 0, v.value = !1;
|
|
190
190
|
}, 50);
|
|
191
191
|
}, de = () => {
|
|
192
192
|
t("update:modelValue", [null, null]), t("update:error", !1), t("change", [null, null]);
|
|
@@ -217,7 +217,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
217
217
|
p.borderType,
|
|
218
218
|
r.disabled ? "disabled" : "",
|
|
219
219
|
r.isView ? "readonly" : "",
|
|
220
|
-
{ active:
|
|
220
|
+
{ active: M.value !== void 0 },
|
|
221
221
|
e(i) ? "is-error" : "",
|
|
222
222
|
p.size
|
|
223
223
|
]])
|
|
@@ -236,12 +236,12 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
236
236
|
"div",
|
|
237
237
|
{
|
|
238
238
|
class: S(["left-date", {
|
|
239
|
-
placeholder: !e(l)[0] ||
|
|
240
|
-
active:
|
|
239
|
+
placeholder: !e(l)[0] || M.value === "begin" && w.value[0],
|
|
240
|
+
active: M.value === "begin"
|
|
241
241
|
}]),
|
|
242
242
|
onClick: c[0] || (c[0] = (a) => T(e(l)[0], "begin"))
|
|
243
243
|
},
|
|
244
|
-
x(
|
|
244
|
+
x(w.value[0] || e(l)[0] || e(N)("das-special-range-picker-begin-date").value),
|
|
245
245
|
3
|
|
246
246
|
/* TEXT, CLASS */
|
|
247
247
|
),
|
|
@@ -256,12 +256,12 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
256
256
|
"div",
|
|
257
257
|
{
|
|
258
258
|
class: S(["right-date", {
|
|
259
|
-
placeholder: !e(l)[1] ||
|
|
260
|
-
active:
|
|
259
|
+
placeholder: !e(l)[1] || M.value === "end" && w.value[1],
|
|
260
|
+
active: M.value === "end"
|
|
261
261
|
}]),
|
|
262
262
|
onClick: c[1] || (c[1] = (a) => T(e(l)[1], "end"))
|
|
263
263
|
},
|
|
264
|
-
x(
|
|
264
|
+
x(w.value[1] || e(l)[1] || e(N)("das-special-range-picker-end-date").value),
|
|
265
265
|
3
|
|
266
266
|
/* TEXT, CLASS */
|
|
267
267
|
),
|
|
@@ -296,7 +296,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
296
296
|
d(
|
|
297
297
|
"div",
|
|
298
298
|
{
|
|
299
|
-
class: S(["turn-btn turn-left", { disabled:
|
|
299
|
+
class: S(["turn-btn turn-left", { disabled: h.value === 1 }])
|
|
300
300
|
},
|
|
301
301
|
[
|
|
302
302
|
V(e(xe), {
|
|
@@ -310,7 +310,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
310
310
|
/* CLASS */
|
|
311
311
|
),
|
|
312
312
|
O(
|
|
313
|
-
" " + x(
|
|
313
|
+
" " + x(h.value) + x(e(N)("das-special-range-picker-month").value),
|
|
314
314
|
1
|
|
315
315
|
/* TEXT */
|
|
316
316
|
)
|
|
@@ -326,12 +326,12 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
326
326
|
(I(!0), E(
|
|
327
327
|
Y,
|
|
328
328
|
null,
|
|
329
|
-
ae(u.value[
|
|
329
|
+
ae(u.value[h.value], (a) => (I(), E("div", {
|
|
330
330
|
class: S(["item", {
|
|
331
331
|
"in-range": e(m)(a, "left") || e(o)(a, "left"),
|
|
332
332
|
"new-range": e(D)(a, "left"),
|
|
333
|
-
"range-start": e(s).begin === `${e(n)(
|
|
334
|
-
"range-end": e(s).end === `${e(n)(
|
|
333
|
+
"range-start": e(s).begin === `${e(n)(h.value)}/${e(n)(a)}`,
|
|
334
|
+
"range-end": e(s).end === `${e(n)(h.value)}/${e(n)(a)}`,
|
|
335
335
|
"out-range": e($)(a, "left") || e(L)(a, "left")
|
|
336
336
|
}]),
|
|
337
337
|
onMouseenter: (_) => e(j)(a, "left"),
|
|
@@ -358,7 +358,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
358
358
|
d(
|
|
359
359
|
"div",
|
|
360
360
|
{
|
|
361
|
-
class: S(["turn-btn turn-right", { disabled:
|
|
361
|
+
class: S(["turn-btn turn-right", { disabled: b.value === 12 }])
|
|
362
362
|
},
|
|
363
363
|
[
|
|
364
364
|
V(e(Ce), {
|
|
@@ -372,7 +372,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
372
372
|
/* CLASS */
|
|
373
373
|
),
|
|
374
374
|
O(
|
|
375
|
-
" " + x(
|
|
375
|
+
" " + x(b.value) + x(e(N)("das-special-range-picker-month").value),
|
|
376
376
|
1
|
|
377
377
|
/* TEXT */
|
|
378
378
|
)
|
|
@@ -388,12 +388,12 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
388
388
|
(I(!0), E(
|
|
389
389
|
Y,
|
|
390
390
|
null,
|
|
391
|
-
ae(u.value[
|
|
391
|
+
ae(u.value[b.value], (a) => (I(), E("div", {
|
|
392
392
|
class: S(["item", {
|
|
393
393
|
"in-range": e(m)(a, "right") || e(o)(a, "right"),
|
|
394
394
|
"new-range": e(D)(a, "right"),
|
|
395
|
-
"range-start": e(s).begin === `${e(n)(
|
|
396
|
-
"range-end": e(s).end === `${e(n)(
|
|
395
|
+
"range-start": e(s).begin === `${e(n)(b.value)}/${e(n)(a)}`,
|
|
396
|
+
"range-end": e(s).end === `${e(n)(b.value)}/${e(n)(a)}`,
|
|
397
397
|
"out-range": e($)(a, "right") || e(L)(a, "right")
|
|
398
398
|
}]),
|
|
399
399
|
onMouseenter: (_) => e(j)(a, "right"),
|
|
@@ -416,7 +416,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
416
416
|
)
|
|
417
417
|
])
|
|
418
418
|
])), [
|
|
419
|
-
[e(
|
|
419
|
+
[e(Me), ce]
|
|
420
420
|
])
|
|
421
421
|
]),
|
|
422
422
|
_: 1
|
|
@@ -437,7 +437,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
437
437
|
/* TEXT */
|
|
438
438
|
)
|
|
439
439
|
])), [
|
|
440
|
-
[e(
|
|
440
|
+
[e(we)]
|
|
441
441
|
]) : e(q) ? (I(), E(
|
|
442
442
|
Y,
|
|
443
443
|
{ key: 1 },
|
|
@@ -527,7 +527,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
527
527
|
"--das-ui-special-range-picker-overlay-error-bg-color": { light: "#FFDBE0" }
|
|
528
528
|
}, na = ge(We);
|
|
529
529
|
fe(Ze);
|
|
530
|
-
|
|
530
|
+
he(Ae);
|
|
531
531
|
export {
|
|
532
532
|
na as DasSpecialRangePickerYear,
|
|
533
533
|
na as default
|
|
Binary file
|