@seresweb/website-component 2.3.6 → 2.3.7
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/cjs/config-provider.cjs +1 -1
- package/dist/cjs/date-picker.cjs +1 -1
- package/dist/cjs/date-select.cjs +1 -1
- package/dist/cjs/horizontal-viewer.cjs +1 -1
- package/dist/cjs/image-indicator.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/locales.cjs +1 -1
- package/dist/cjs/swiper-normal.cjs +1 -1
- package/dist/dayjs.min-B_s8lXoY.js +288 -0
- package/dist/dayjs.min-Bs4YQaH1.cjs +1 -0
- package/dist/{en-US-BBTWftdk.js → en-US-DRY37Ke3.js} +1 -0
- package/dist/en-US-DYuJmmdF.cjs +1 -0
- package/dist/es/config-provider.mjs +53 -10
- package/dist/es/date-picker.mjs +354 -4
- package/dist/es/date-select.mjs +42 -37
- package/dist/es/horizontal-viewer.mjs +1 -1
- package/dist/es/image-indicator.mjs +1 -1
- package/dist/es/index.mjs +3 -3
- package/dist/es/locales.mjs +2 -1
- package/dist/es/swiper-normal.mjs +1 -1
- package/dist/index-0n3E5pgL.cjs +1 -0
- package/dist/{index-BPpds5EG.js → index-Dzp0ckB8.js} +1 -1
- package/dist/types/components/date-picker/date-picker.vue.d.ts +8 -8
- package/dist/types/components/date-picker/index.d.ts +22 -22
- package/dist/types/components/date-picker/type.d.ts +6 -6
- package/dist/types/components/date-select/date-select.vue.d.ts +6 -6
- package/dist/types/components/date-select/type.d.ts +7 -7
- package/dist/types/components/locales/ar-SA.d.ts +1 -0
- package/dist/types/components/locales/en-US.d.ts +1 -0
- package/dist/types/components/locales/index.d.ts +2 -0
- package/package.json +1 -1
- package/dist/en-US-UkqgG0fb.cjs +0 -1
- package/dist/index-B-0yM6xR.cjs +0 -1
- package/dist/index-CMZ8zDDd.js +0 -644
- package/dist/index-D6pYBGfZ.cjs +0 -1
package/dist/es/date-picker.mjs
CHANGED
|
@@ -1,6 +1,356 @@
|
|
|
1
|
-
import "../_utils-B7LThWoT.js";
|
|
2
|
-
import {
|
|
1
|
+
import { w as ve } from "../_utils-B7LThWoT.js";
|
|
2
|
+
import { defineComponent as De, inject as ye, ref as oe, computed as ie, watch as ke, createElementBlock as E, openBlock as V, normalizeClass as v, unref as o, createElementVNode as $, toDisplayString as R, Fragment as le, renderList as ce } from "vue";
|
|
3
|
+
import { g as Me, d as T } from "../dayjs.min-B_s8lXoY.js";
|
|
4
|
+
import { P as u } from "../_vars-BV4QQF-p.js";
|
|
5
|
+
import { e as _e } from "../en-US-DRY37Ke3.js";
|
|
6
|
+
import { C as Ye } from "../_icons-B97SN5iK.js";
|
|
7
|
+
var X = { exports: {} }, $e = X.exports, de;
|
|
8
|
+
function ge() {
|
|
9
|
+
return de || (de = 1, (function(q, re) {
|
|
10
|
+
(function(O, k) {
|
|
11
|
+
q.exports = k();
|
|
12
|
+
})($e, (function() {
|
|
13
|
+
var O = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, k = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, A = /\d/, g = /\d\d/, l = /\d\d?/, c = /\d*[^-_:/,()\s\d]+/, f = {}, F = function(e) {
|
|
14
|
+
return (e = +e) + (e > 68 ? 1900 : 2e3);
|
|
15
|
+
}, d = function(e) {
|
|
16
|
+
return function(t) {
|
|
17
|
+
this[e] = +t;
|
|
18
|
+
};
|
|
19
|
+
}, C = [/[+-]\d\d:?(\d\d)?|Z/, function(e) {
|
|
20
|
+
(this.zone || (this.zone = {})).offset = (function(t) {
|
|
21
|
+
if (!t || t === "Z") return 0;
|
|
22
|
+
var r = t.match(/([+-]|\d\d)/g), s = 60 * r[1] + (+r[2] || 0);
|
|
23
|
+
return s === 0 ? 0 : r[0] === "+" ? -s : s;
|
|
24
|
+
})(e);
|
|
25
|
+
}], H = function(e) {
|
|
26
|
+
var t = f[e];
|
|
27
|
+
return t && (t.indexOf ? t : t.s.concat(t.f));
|
|
28
|
+
}, Z = function(e, t) {
|
|
29
|
+
var r, s = f.meridiem;
|
|
30
|
+
if (s) {
|
|
31
|
+
for (var h = 1; h <= 24; h += 1) if (e.indexOf(s(h, 0, t)) > -1) {
|
|
32
|
+
r = h > 12;
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
} else r = e === (t ? "pm" : "PM");
|
|
36
|
+
return r;
|
|
37
|
+
}, Q = { A: [c, function(e) {
|
|
38
|
+
this.afternoon = Z(e, !1);
|
|
39
|
+
}], a: [c, function(e) {
|
|
40
|
+
this.afternoon = Z(e, !0);
|
|
41
|
+
}], Q: [A, function(e) {
|
|
42
|
+
this.month = 3 * (e - 1) + 1;
|
|
43
|
+
}], S: [A, function(e) {
|
|
44
|
+
this.milliseconds = 100 * +e;
|
|
45
|
+
}], SS: [g, function(e) {
|
|
46
|
+
this.milliseconds = 10 * +e;
|
|
47
|
+
}], SSS: [/\d{3}/, function(e) {
|
|
48
|
+
this.milliseconds = +e;
|
|
49
|
+
}], s: [l, d("seconds")], ss: [l, d("seconds")], m: [l, d("minutes")], mm: [l, d("minutes")], H: [l, d("hours")], h: [l, d("hours")], HH: [l, d("hours")], hh: [l, d("hours")], D: [l, d("day")], DD: [g, d("day")], Do: [c, function(e) {
|
|
50
|
+
var t = f.ordinal, r = e.match(/\d+/);
|
|
51
|
+
if (this.day = r[0], t) for (var s = 1; s <= 31; s += 1) t(s).replace(/\[|\]/g, "") === e && (this.day = s);
|
|
52
|
+
}], w: [l, d("week")], ww: [g, d("week")], M: [l, d("month")], MM: [g, d("month")], MMM: [c, function(e) {
|
|
53
|
+
var t = H("months"), r = (H("monthsShort") || t.map((function(s) {
|
|
54
|
+
return s.slice(0, 3);
|
|
55
|
+
}))).indexOf(e) + 1;
|
|
56
|
+
if (r < 1) throw new Error();
|
|
57
|
+
this.month = r % 12 || r;
|
|
58
|
+
}], MMMM: [c, function(e) {
|
|
59
|
+
var t = H("months").indexOf(e) + 1;
|
|
60
|
+
if (t < 1) throw new Error();
|
|
61
|
+
this.month = t % 12 || t;
|
|
62
|
+
}], Y: [/[+-]?\d+/, d("year")], YY: [g, function(e) {
|
|
63
|
+
this.year = F(e);
|
|
64
|
+
}], YYYY: [/\d{4}/, d("year")], Z: C, ZZ: C };
|
|
65
|
+
function a(e) {
|
|
66
|
+
var t, r;
|
|
67
|
+
t = e, r = f && f.formats;
|
|
68
|
+
for (var s = (e = t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(m, M, _) {
|
|
69
|
+
var y = _ && _.toUpperCase();
|
|
70
|
+
return M || r[_] || O[_] || r[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(w, x, S) {
|
|
71
|
+
return x || S.slice(1);
|
|
72
|
+
}));
|
|
73
|
+
}))).match(k), h = s.length, D = 0; D < h; D += 1) {
|
|
74
|
+
var L = s[D], Y = Q[L], n = Y && Y[0], i = Y && Y[1];
|
|
75
|
+
s[D] = i ? { regex: n, parser: i } : L.replace(/^\[|\]$/g, "");
|
|
76
|
+
}
|
|
77
|
+
return function(m) {
|
|
78
|
+
for (var M = {}, _ = 0, y = 0; _ < h; _ += 1) {
|
|
79
|
+
var w = s[_];
|
|
80
|
+
if (typeof w == "string") y += w.length;
|
|
81
|
+
else {
|
|
82
|
+
var x = w.regex, S = w.parser, z = m.slice(y), P = x.exec(z)[0];
|
|
83
|
+
S.call(M, P), m = m.replace(P, "");
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return (function(b) {
|
|
87
|
+
var B = b.afternoon;
|
|
88
|
+
if (B !== void 0) {
|
|
89
|
+
var p = b.hours;
|
|
90
|
+
B ? p < 12 && (b.hours += 12) : p === 12 && (b.hours = 0), delete b.afternoon;
|
|
91
|
+
}
|
|
92
|
+
})(M), M;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
return function(e, t, r) {
|
|
96
|
+
r.p.customParseFormat = !0, e && e.parseTwoDigitYear && (F = e.parseTwoDigitYear);
|
|
97
|
+
var s = t.prototype, h = s.parse;
|
|
98
|
+
s.parse = function(D) {
|
|
99
|
+
var L = D.date, Y = D.utc, n = D.args;
|
|
100
|
+
this.$u = Y;
|
|
101
|
+
var i = n[1];
|
|
102
|
+
if (typeof i == "string") {
|
|
103
|
+
var m = n[2] === !0, M = n[3] === !0, _ = m || M, y = n[2];
|
|
104
|
+
M && (y = n[2]), f = this.$locale(), !m && y && (f = r.Ls[y]), this.$d = (function(z, P, b, B) {
|
|
105
|
+
try {
|
|
106
|
+
if (["x", "X"].indexOf(P) > -1) return new Date((P === "X" ? 1e3 : 1) * z);
|
|
107
|
+
var p = a(P)(z), W = p.year, U = p.month, ue = p.day, fe = p.hours, he = p.minutes, me = p.seconds, pe = p.milliseconds, ne = p.zone, se = p.week, N = /* @__PURE__ */ new Date(), G = ue || (W || U ? 1 : N.getDate()), J = W || N.getFullYear(), j = 0;
|
|
108
|
+
W && !U || (j = U > 0 ? U - 1 : N.getMonth());
|
|
109
|
+
var I, K = fe || 0, ee = he || 0, te = me || 0, ae = pe || 0;
|
|
110
|
+
return ne ? new Date(Date.UTC(J, j, G, K, ee, te, ae + 60 * ne.offset * 1e3)) : b ? new Date(Date.UTC(J, j, G, K, ee, te, ae)) : (I = new Date(J, j, G, K, ee, te, ae), se && (I = B(I).week(se).toDate()), I);
|
|
111
|
+
} catch {
|
|
112
|
+
return /* @__PURE__ */ new Date("");
|
|
113
|
+
}
|
|
114
|
+
})(L, i, Y, r), this.init(), y && y !== !0 && (this.$L = this.locale(y).$L), _ && L != this.format(i) && (this.$d = /* @__PURE__ */ new Date("")), f = {};
|
|
115
|
+
} else if (i instanceof Array) for (var w = i.length, x = 1; x <= w; x += 1) {
|
|
116
|
+
n[1] = i[x - 1];
|
|
117
|
+
var S = r.apply(this, n);
|
|
118
|
+
if (S.isValid()) {
|
|
119
|
+
this.$d = S.$d, this.$L = S.$L, this.init();
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
x === w && (this.$d = /* @__PURE__ */ new Date(""));
|
|
123
|
+
}
|
|
124
|
+
else h.call(this, D);
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
}));
|
|
128
|
+
})(X)), X.exports;
|
|
129
|
+
}
|
|
130
|
+
var we = ge();
|
|
131
|
+
const xe = /* @__PURE__ */ Me(we), Le = ["innerHTML"], Se = ["innerHTML"], be = ["onClick"], Te = "YYYY-MM-DD", Fe = /* @__PURE__ */ De({
|
|
132
|
+
name: "ScDatePicker",
|
|
133
|
+
__name: "date-picker",
|
|
134
|
+
props: {
|
|
135
|
+
modelValue: { default: null },
|
|
136
|
+
displayFormat: { default: Te },
|
|
137
|
+
disabled: { type: Boolean, default: !1 },
|
|
138
|
+
dark: { type: Boolean, default: !1 },
|
|
139
|
+
minDate: { default: void 0 },
|
|
140
|
+
maxDate: { default: void 0 }
|
|
141
|
+
},
|
|
142
|
+
emits: ["update:modelValue", "change"],
|
|
143
|
+
setup(q, { emit: re }) {
|
|
144
|
+
T.extend(xe);
|
|
145
|
+
const O = Ye, k = q, A = re, g = ye("scLocale", _e), l = oe((/* @__PURE__ */ new Date()).getFullYear()), c = oe((/* @__PURE__ */ new Date()).getMonth()), f = (a) => {
|
|
146
|
+
if (a == null) return null;
|
|
147
|
+
if (typeof a == "number" || a instanceof Date) {
|
|
148
|
+
const e = T(a);
|
|
149
|
+
return e.isValid() ? e : null;
|
|
150
|
+
}
|
|
151
|
+
return null;
|
|
152
|
+
}, F = ie(() => f(k.modelValue)), d = ie(() => {
|
|
153
|
+
const a = [], e = T().year(l.value).month(c.value).date(1), t = e.endOf("month"), r = e.subtract(1, "day"), s = T(), h = e.day(), D = h === 0 ? 6 : h - 1;
|
|
154
|
+
for (let n = D - 1; n >= 0; n--) {
|
|
155
|
+
const i = r.date() - n, m = T().year(l.value).month(c.value - 1).date(i);
|
|
156
|
+
a.push({
|
|
157
|
+
date: i,
|
|
158
|
+
fullDate: m,
|
|
159
|
+
key: `prev-${i}`,
|
|
160
|
+
isOtherMonth: !0,
|
|
161
|
+
isToday: !1,
|
|
162
|
+
isSelected: !1,
|
|
163
|
+
isDisabled: C(m)
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
const L = t.date();
|
|
167
|
+
for (let n = 1; n <= L; n++) {
|
|
168
|
+
const i = T().year(l.value).month(c.value).date(n), m = i.isSame(s, "day"), M = F.value ? i.isSame(F.value, "day") : !1;
|
|
169
|
+
a.push({
|
|
170
|
+
date: n,
|
|
171
|
+
fullDate: i,
|
|
172
|
+
key: `current-${n}`,
|
|
173
|
+
isOtherMonth: !1,
|
|
174
|
+
isToday: m,
|
|
175
|
+
isSelected: M,
|
|
176
|
+
isDisabled: C(i)
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
const Y = 42 - a.length;
|
|
180
|
+
for (let n = 1; n <= Y; n++) {
|
|
181
|
+
const i = T().year(l.value).month(c.value + 1).date(n);
|
|
182
|
+
a.push({
|
|
183
|
+
date: n,
|
|
184
|
+
fullDate: i,
|
|
185
|
+
key: `next-${n}`,
|
|
186
|
+
isOtherMonth: !0,
|
|
187
|
+
isToday: !1,
|
|
188
|
+
isSelected: !1,
|
|
189
|
+
isDisabled: C(i)
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
return a;
|
|
193
|
+
});
|
|
194
|
+
function C(a) {
|
|
195
|
+
if (k.minDate) {
|
|
196
|
+
const e = f(k.minDate);
|
|
197
|
+
if (e && a.isBefore(e, "day")) return !0;
|
|
198
|
+
}
|
|
199
|
+
if (k.maxDate) {
|
|
200
|
+
const e = f(k.maxDate);
|
|
201
|
+
if (e && a.isAfter(e, "day")) return !0;
|
|
202
|
+
}
|
|
203
|
+
return !1;
|
|
204
|
+
}
|
|
205
|
+
function H(a) {
|
|
206
|
+
a.preventDefault(), c.value === 0 ? (c.value = 11, l.value--) : c.value--;
|
|
207
|
+
}
|
|
208
|
+
function Z(a) {
|
|
209
|
+
a.preventDefault(), c.value === 11 ? (c.value = 0, l.value++) : c.value++;
|
|
210
|
+
}
|
|
211
|
+
function Q(a, e) {
|
|
212
|
+
if (a.preventDefault(), e.isDisabled || k.disabled) return;
|
|
213
|
+
const t = e.fullDate.valueOf();
|
|
214
|
+
A("update:modelValue", t), A("change", t);
|
|
215
|
+
}
|
|
216
|
+
return ke(
|
|
217
|
+
F,
|
|
218
|
+
(a) => {
|
|
219
|
+
a && (l.value = a.year(), c.value = a.month());
|
|
220
|
+
},
|
|
221
|
+
{ immediate: !0 }
|
|
222
|
+
), (a, e) => (V(), E(
|
|
223
|
+
"div",
|
|
224
|
+
{
|
|
225
|
+
class: v([
|
|
226
|
+
`${o(u)}-date-picker`,
|
|
227
|
+
{ [`${o(u)}-date-picker--disabled`]: a.disabled, [`${o(u)}-date-picker--dark`]: a.dark }
|
|
228
|
+
])
|
|
229
|
+
},
|
|
230
|
+
[
|
|
231
|
+
$(
|
|
232
|
+
"div",
|
|
233
|
+
{
|
|
234
|
+
class: v(`${o(u)}-date-picker__panel`)
|
|
235
|
+
},
|
|
236
|
+
[
|
|
237
|
+
$(
|
|
238
|
+
"div",
|
|
239
|
+
{
|
|
240
|
+
class: v(`${o(u)}-date-picker__header`)
|
|
241
|
+
},
|
|
242
|
+
[
|
|
243
|
+
$(
|
|
244
|
+
"button",
|
|
245
|
+
{
|
|
246
|
+
class: v(`${o(u)}-date-picker__nav`),
|
|
247
|
+
onClick: H
|
|
248
|
+
},
|
|
249
|
+
[
|
|
250
|
+
$("span", {
|
|
251
|
+
class: v(`${o(u)}-date-picker__nav-prev`),
|
|
252
|
+
innerHTML: o(O),
|
|
253
|
+
"aria-hidden": "true"
|
|
254
|
+
}, null, 10, Le)
|
|
255
|
+
],
|
|
256
|
+
2
|
|
257
|
+
/* CLASS */
|
|
258
|
+
),
|
|
259
|
+
$(
|
|
260
|
+
"div",
|
|
261
|
+
{
|
|
262
|
+
class: v(`${o(u)}-date-picker__header-label`)
|
|
263
|
+
},
|
|
264
|
+
R(o(g).datePicker.months[c.value]) + " " + R(l.value),
|
|
265
|
+
3
|
|
266
|
+
/* TEXT, CLASS */
|
|
267
|
+
),
|
|
268
|
+
$(
|
|
269
|
+
"button",
|
|
270
|
+
{
|
|
271
|
+
class: v(`${o(u)}-date-picker__nav`),
|
|
272
|
+
onClick: Z
|
|
273
|
+
},
|
|
274
|
+
[
|
|
275
|
+
$("span", {
|
|
276
|
+
class: v(`${o(u)}-date-picker__nav-next`),
|
|
277
|
+
innerHTML: o(O),
|
|
278
|
+
"aria-hidden": "true"
|
|
279
|
+
}, null, 10, Se)
|
|
280
|
+
],
|
|
281
|
+
2
|
|
282
|
+
/* CLASS */
|
|
283
|
+
)
|
|
284
|
+
],
|
|
285
|
+
2
|
|
286
|
+
/* CLASS */
|
|
287
|
+
),
|
|
288
|
+
$(
|
|
289
|
+
"div",
|
|
290
|
+
{
|
|
291
|
+
class: v(`${o(u)}-date-picker__weekdays`)
|
|
292
|
+
},
|
|
293
|
+
[
|
|
294
|
+
(V(!0), E(
|
|
295
|
+
le,
|
|
296
|
+
null,
|
|
297
|
+
ce(o(g).datePicker.weekdays, (t) => (V(), E(
|
|
298
|
+
"div",
|
|
299
|
+
{
|
|
300
|
+
key: t,
|
|
301
|
+
class: v(`${o(u)}-date-picker__weekday`)
|
|
302
|
+
},
|
|
303
|
+
R(t),
|
|
304
|
+
3
|
|
305
|
+
/* TEXT, CLASS */
|
|
306
|
+
))),
|
|
307
|
+
128
|
|
308
|
+
/* KEYED_FRAGMENT */
|
|
309
|
+
))
|
|
310
|
+
],
|
|
311
|
+
2
|
|
312
|
+
/* CLASS */
|
|
313
|
+
),
|
|
314
|
+
$(
|
|
315
|
+
"div",
|
|
316
|
+
{
|
|
317
|
+
class: v(`${o(u)}-date-picker__days`)
|
|
318
|
+
},
|
|
319
|
+
[
|
|
320
|
+
(V(!0), E(
|
|
321
|
+
le,
|
|
322
|
+
null,
|
|
323
|
+
ce(d.value, (t) => (V(), E("div", {
|
|
324
|
+
key: t.key,
|
|
325
|
+
class: v([
|
|
326
|
+
`${o(u)}-date-picker__day`,
|
|
327
|
+
{
|
|
328
|
+
[`${o(u)}-date-picker__day--today`]: t.isToday,
|
|
329
|
+
[`${o(u)}-date-picker__day--selected`]: t.isSelected,
|
|
330
|
+
[`${o(u)}-date-picker__day--other-month`]: t.isOtherMonth,
|
|
331
|
+
[`${o(u)}-date-picker__day--disabled`]: t.isDisabled
|
|
332
|
+
}
|
|
333
|
+
]),
|
|
334
|
+
onClick: (r) => Q(r, t)
|
|
335
|
+
}, R(t.date), 11, be))),
|
|
336
|
+
128
|
|
337
|
+
/* KEYED_FRAGMENT */
|
|
338
|
+
))
|
|
339
|
+
],
|
|
340
|
+
2
|
|
341
|
+
/* CLASS */
|
|
342
|
+
)
|
|
343
|
+
],
|
|
344
|
+
2
|
|
345
|
+
/* CLASS */
|
|
346
|
+
)
|
|
347
|
+
],
|
|
348
|
+
2
|
|
349
|
+
/* CLASS */
|
|
350
|
+
));
|
|
351
|
+
}
|
|
352
|
+
}), Ze = ve(Fe);
|
|
3
353
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
354
|
+
Ze as ScDatePicker,
|
|
355
|
+
Ze as default
|
|
6
356
|
};
|
package/dist/es/date-select.mjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { d as
|
|
3
|
-
import { P as
|
|
4
|
-
import { a as
|
|
1
|
+
import { defineComponent as S, ref as C, computed as F, watch as B, createElementBlock as u, openBlock as m, normalizeClass as i, unref as d, createVNode as h, withCtx as y, createElementVNode as E, toDisplayString as k } from "vue";
|
|
2
|
+
import { d as D } from "../dayjs.min-B_s8lXoY.js";
|
|
3
|
+
import { P as c } from "../_vars-BV4QQF-p.js";
|
|
4
|
+
import { a as Y } from "../_icons-B97SN5iK.js";
|
|
5
|
+
import { ScDatePicker as M } from "./date-picker.mjs";
|
|
5
6
|
import { ScSelect as P } from "./select.mjs";
|
|
6
|
-
const U = { key: 0 },
|
|
7
|
+
const U = { key: 0 }, p = "YYYY-MM-DD", f = /* @__PURE__ */ S({
|
|
7
8
|
name: "ScDateSelect",
|
|
8
9
|
__name: "date-select",
|
|
9
10
|
props: {
|
|
10
11
|
modelValue: { default: null },
|
|
11
|
-
|
|
12
|
+
displayFormat: { default: p },
|
|
12
13
|
placeholder: { default: "请选择日期" },
|
|
13
14
|
disabled: { type: Boolean, default: !1 },
|
|
14
15
|
dark: { type: Boolean, default: !1 },
|
|
@@ -18,83 +19,87 @@ const U = { key: 0 }, D = "YYYY-MM-DD", p = /* @__PURE__ */ C({
|
|
|
18
19
|
},
|
|
19
20
|
emits: ["update:modelValue", "change"],
|
|
20
21
|
setup(r, { emit: g }) {
|
|
21
|
-
const
|
|
22
|
+
const s = r, o = g, a = C(s.modelValue ?? null), V = F({
|
|
22
23
|
get: () => {
|
|
23
24
|
if (!a.value) return "";
|
|
24
|
-
const e =
|
|
25
|
-
return e.isValid() ? e.format(
|
|
25
|
+
const e = D(a.value);
|
|
26
|
+
return e.isValid() ? e.format(s.displayFormat || p) : "";
|
|
26
27
|
},
|
|
27
28
|
set: (e) => {
|
|
28
29
|
if (!e) {
|
|
29
|
-
a.value = null,
|
|
30
|
+
a.value = null, o("update:modelValue", null), o("change", null);
|
|
30
31
|
return;
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
+
const l = D(e, s.displayFormat || p);
|
|
34
|
+
if (l.isValid()) {
|
|
35
|
+
const t = l.valueOf();
|
|
36
|
+
a.value = t, o("update:modelValue", t), o("change", t);
|
|
37
|
+
}
|
|
33
38
|
}
|
|
34
39
|
});
|
|
35
40
|
B(
|
|
36
|
-
() =>
|
|
41
|
+
() => s.modelValue,
|
|
37
42
|
(e) => {
|
|
38
43
|
a.value = e ?? null;
|
|
39
44
|
}
|
|
40
45
|
);
|
|
41
|
-
const
|
|
42
|
-
a.value = e,
|
|
43
|
-
},
|
|
44
|
-
e === null && (a.value = null,
|
|
46
|
+
const b = (e, l) => {
|
|
47
|
+
a.value = e, o("update:modelValue", e), o("change", e), l();
|
|
48
|
+
}, v = (e) => {
|
|
49
|
+
e === null && (a.value = null, o("update:modelValue", null), o("change", null));
|
|
45
50
|
};
|
|
46
|
-
return (e,
|
|
51
|
+
return (e, l) => (m(), u(
|
|
47
52
|
"div",
|
|
48
53
|
{
|
|
49
|
-
class:
|
|
54
|
+
class: i(`${d(c)}-date-select`)
|
|
50
55
|
},
|
|
51
56
|
[
|
|
52
|
-
|
|
53
|
-
modelValue:
|
|
54
|
-
"onUpdate:modelValue":
|
|
57
|
+
h(d(P), {
|
|
58
|
+
modelValue: V.value,
|
|
59
|
+
"onUpdate:modelValue": l[1] || (l[1] = (t) => V.value = t),
|
|
55
60
|
placeholder: e.placeholder,
|
|
56
61
|
disabled: e.disabled,
|
|
57
62
|
dark: e.dark,
|
|
58
63
|
clearable: e.clearable,
|
|
59
|
-
icon:
|
|
64
|
+
icon: d(Y),
|
|
60
65
|
"icon-rotate": !1,
|
|
61
|
-
onChange:
|
|
66
|
+
onChange: v
|
|
62
67
|
}, {
|
|
63
|
-
selected:
|
|
64
|
-
n ? (m(),
|
|
68
|
+
selected: y(({ value: t, hasValue: n }) => [
|
|
69
|
+
n ? (m(), u(
|
|
65
70
|
"span",
|
|
66
71
|
U,
|
|
67
|
-
k(
|
|
72
|
+
k(t),
|
|
68
73
|
1
|
|
69
74
|
/* TEXT */
|
|
70
|
-
)) : (m(),
|
|
75
|
+
)) : (m(), u(
|
|
71
76
|
"span",
|
|
72
77
|
{
|
|
73
78
|
key: 1,
|
|
74
|
-
class:
|
|
79
|
+
class: i(`${d(c)}-date-select__placeholder`)
|
|
75
80
|
},
|
|
76
81
|
k(e.placeholder),
|
|
77
82
|
3
|
|
78
83
|
/* TEXT, CLASS */
|
|
79
84
|
))
|
|
80
85
|
]),
|
|
81
|
-
default:
|
|
86
|
+
default: y(({ close: t }) => [
|
|
82
87
|
E(
|
|
83
88
|
"div",
|
|
84
89
|
{
|
|
85
|
-
class:
|
|
90
|
+
class: i(`${d(c)}-date-select__panel`)
|
|
86
91
|
},
|
|
87
92
|
[
|
|
88
|
-
|
|
93
|
+
h(d(M), {
|
|
89
94
|
modelValue: a.value,
|
|
90
|
-
"onUpdate:modelValue":
|
|
95
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => a.value = n),
|
|
91
96
|
dark: e.dark,
|
|
92
|
-
format: e.
|
|
97
|
+
"display-format": e.displayFormat,
|
|
93
98
|
disabled: e.disabled,
|
|
94
99
|
"min-date": e.minDate,
|
|
95
100
|
"max-date": e.maxDate,
|
|
96
|
-
onChange: (n) =>
|
|
97
|
-
}, null, 8, ["modelValue", "dark", "format", "disabled", "min-date", "max-date", "onChange"])
|
|
101
|
+
onChange: (n) => b(n, t)
|
|
102
|
+
}, null, 8, ["modelValue", "dark", "display-format", "disabled", "min-date", "max-date", "onChange"])
|
|
98
103
|
],
|
|
99
104
|
2
|
|
100
105
|
/* CLASS */
|
|
@@ -109,8 +114,8 @@ const U = { key: 0 }, D = "YYYY-MM-DD", p = /* @__PURE__ */ C({
|
|
|
109
114
|
));
|
|
110
115
|
}
|
|
111
116
|
});
|
|
112
|
-
|
|
113
|
-
const R =
|
|
117
|
+
f.install = (r) => (r.component("ScDateSelect", f), r);
|
|
118
|
+
const R = f;
|
|
114
119
|
export {
|
|
115
120
|
R as ScDateSelect
|
|
116
121
|
};
|
package/dist/es/index.mjs
CHANGED
|
@@ -3,12 +3,12 @@ import { ScAnimatedNumber as a } from "./animated-number.mjs";
|
|
|
3
3
|
import { ScCheckbox as S } from "./checkbox.mjs";
|
|
4
4
|
import { ScCol as l } from "./col.mjs";
|
|
5
5
|
import { ScConfigProvider as d } from "./config-provider.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { ScDatePicker as u } from "./date-picker.mjs";
|
|
7
7
|
import { ScDateSelect as h } from "./date-select.mjs";
|
|
8
8
|
import { ScDrawer as w } from "./drawer.mjs";
|
|
9
9
|
import { ScDropdown as x } from "./dropdown.mjs";
|
|
10
10
|
import { ScGradualHighlight as g } from "./gradual-highlight.mjs";
|
|
11
|
-
import { S as y, a as b, b as v } from "../index-
|
|
11
|
+
import { S as y, a as b, b as v } from "../index-Dzp0ckB8.js";
|
|
12
12
|
import { ScInput as I } from "./input.mjs";
|
|
13
13
|
import { ScLayzImage as P } from "./layz-image.mjs";
|
|
14
14
|
import { ScLocales as $ } from "./locales.mjs";
|
|
@@ -21,7 +21,7 @@ import { ScSwiperShowcase as z } from "./swiper-showcase.mjs";
|
|
|
21
21
|
import { ScSwiperVehicle as L } from "./swiper-vehicle.mjs";
|
|
22
22
|
import { ScTabIndicator as R } from "./tab-indicator.mjs";
|
|
23
23
|
import { ScVideo as V } from "./video.mjs";
|
|
24
|
-
import { e as po } from "../en-US-
|
|
24
|
+
import { e as po } from "../en-US-DRY37Ke3.js";
|
|
25
25
|
const n = "@seresweb/website-component", so = (t = {}) => {
|
|
26
26
|
const s = t.prefix || "Sc", o = t.importStyle ?? "css";
|
|
27
27
|
return {
|
package/dist/es/locales.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),H=require("./swiper-bundle-gkukcY4l.cjs"),n=require("./_vars-CyrPevgT.cjs");require("./cjs/accordion-info-panel.cjs");require("./cjs/animated-number.cjs");require("./cjs/checkbox.cjs");require("./cjs/col.cjs");require("./cjs/config-provider.cjs");require("./cjs/date-picker.cjs");require("./cjs/date-select.cjs");require("./cjs/drawer.cjs");require("./cjs/dropdown.cjs");require("./cjs/gradual-highlight.cjs");const X=require("@vavt/util");require("./cjs/input.cjs");const V=require("./cjs/layz-image.cjs");require("./cjs/parameter-box.cjs");require("./cjs/radio.cjs");require("./cjs/row.cjs");require("./cjs/select.cjs");require("./cjs/swiper-showcase.cjs");require("./cjs/swiper-vehicle.cjs");const q=require("./cjs/tab-indicator.cjs"),$=require("./cjs/video.cjs"),W=["innerHTML"],O=["innerHTML"],U=["innerHTML"],D=["innerHTML"],A=e.defineComponent({__name:"pc-viewer",props:{title:{},desc:{},dataList:{},extraTopSpacing:{default:0},extraBottomSpacing:{default:0}},setup(l){const p=l,a=e.ref(),v=e.ref(),o=e.ref(),d=e.ref(),f=e.ref(),i=e.ref(),h=e.reactive({container:"",root:"",item:""}),u=r=>typeof r!="number"||Number.isNaN(r)?0:r,g=(r,s,c)=>{const k=Math.min(Math.max(r,0),c),_=Math.min(Math.max(s,0),Math.max(c-k,0));return{safeTop:k,safeBottom:_}},B=()=>{var b;if(!o.value)return;const r=o.value.offsetHeight,s=window.innerHeight,c=((b=i.value)==null?void 0:b.offsetHeight)||0,k=m(i.value),_=u(p.extraTopSpacing),E=u(p.extraBottomSpacing),{safeTop:I,safeBottom:L}=g(_,E,s),C=Math.max(s-I-L,0),z=Math.max((C-c-r-k)/2,0),M=I+z,N=L+z;h.container=`padding-top: ${M}px; padding-bottom: ${N}px; min-height: ${s}px;`;const x=o.value.scrollWidth;h.root=`height: ${Math.max(x,s)}px`},t=()=>{const r=document.documentElement.getAttribute("dir")||"ltr",s=r==="rtl"?"right":"left";if(!a.value||!o.value||!d.value||!f.value)return;const k=a.value.clientHeight-window.innerHeight,{offsetTop:_}=X.getRootOffset(a.value),E=document.documentElement.scrollTop-_;if(E<0){o.value.scrollTo({left:0}),f.value.style[s]="0px";return}if(E>k){const z=o.value.scrollWidth-window.innerWidth;o.value.scrollTo({left:r==="rtl"?-z:z}),f.value.style[s]=d.value.clientWidth-f.value.clientWidth+"px";return}const I=E/k,L=I*(o.value.scrollWidth-window.innerWidth),C=I*(d.value.clientWidth*2/3);o.value.scrollTo({left:r==="rtl"?-L:L}),f.value.style[s]=`${C}px`},w=()=>{h.container="",B()},m=r=>{if(!(r instanceof HTMLElement))return 0;const s=window.getComputedStyle(r),c=parseFloat(s.marginTop)||0,k=parseFloat(s.marginBottom)||0;return c+k};let y;return e.watch(()=>[p.extraTopSpacing,p.extraBottomSpacing],()=>{h.container="",B()}),e.onMounted(()=>{y=new IntersectionObserver(r=>{r.forEach(s=>{s.isIntersecting&&(h.container="",B())})},{root:null,rootMargin:"200px 0px 200px 0px",threshold:0}),window.addEventListener("scroll",t),window.addEventListener("resize",w),a.value&&y.observe(a.value)}),e.onBeforeUnmount(()=>{window.removeEventListener("scroll",t),window.removeEventListener("resize",w),y&&y.disconnect()}),(r,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"rootRef",ref:a,class:e.normalizeClass(`${e.unref(n.PREFIX)}-horizontal-viewer`),style:e.normalizeStyle(h.root)},[e.createElementVNode("div",{ref_key:"containerRef",ref:v,class:e.normalizeClass([`${e.unref(n.PREFIX)}-horizontal-viewer__container`,(r.title||r.desc)&&"has-header"]),style:e.normalizeStyle(h.container)},[r.title||r.desc?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(`${e.unref(n.PREFIX)}-horizontal-viewer__header`),ref_key:"headerRef",ref:i},[r.title?(e.openBlock(),e.createElementBlock("p",{key:0,innerHTML:r.title},null,8,W)):e.createCommentVNode("v-if",!0),r.desc?(e.openBlock(),e.createElementBlock("p",{key:1,innerHTML:r.desc},null,8,O)):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{ref_key:"scrollerRef",ref:o,class:e.normalizeClass(`${e.unref(n.PREFIX)}-horizontal-viewer__scroller`)},[e.createElementVNode("div",{class:e.normalizeClass(`${e.unref(n.PREFIX)}-horizontal-viewer__content`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.dataList,c=>(e.openBlock(),e.createElementBlock("div",{key:c.title,class:e.normalizeClass(`${e.unref(n.PREFIX)}-horizontal-viewer__content-item`)},[c.type==="img"?(e.openBlock(),e.createBlock(e.unref(V.ScLayzImage),{key:0,src:c.url,alt:c.alt},null,8,["src","alt"])):(e.openBlock(),e.createBlock(e.unref($.ScVideo),{key:1,url:c.url,poster:c.poster,"auto-play":!1},null,8,["url","poster"])),e.createElementVNode("div",{class:e.normalizeClass(`${e.unref(n.PREFIX)}-horizontal-viewer__content-item-footer`)},[e.createElementVNode("p",{innerHTML:c.title},null,8,U),e.createElementVNode("p",{innerHTML:c.desc},null,8,D)],2)],2))),128))],2)],2),e.createElementVNode("div",{ref_key:"paginationRef",ref:d,class:e.normalizeClass(`${e.unref(n.PREFIX)}-horizontal-viewer__pagination`)},[e.createElementVNode("div",{class:e.normalizeClass(`${e.unref(n.PREFIX)}-horizontal-viewer__scrollbar`)},[e.createElementVNode("div",{ref_key:"scrollbarDragRef",ref:f,class:e.normalizeClass(`${e.unref(n.PREFIX)}-horizontal-viewer__scrollbar-drag`)},null,2)],2)],2)],6)],6))}}),Y=e.defineComponent({__name:"mb-viewer",props:{title:{},desc:{},isMobile:{type:Boolean},extraTopSpacing:{},extraBottomSpacing:{},modelValue:{},dataList:{},swiperOptions:{},effect:{},showIntro:{type:Boolean},videoProps:{},indicatorClass:{},tabIndicatorBottom:{},widthType:{},indicatorType:{},showIndicator:{type:Boolean},indicatorPosition:{}},setup(l){const p=l,a=e.ref();return(v,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"rootRef",ref:a,class:e.normalizeClass(`${e.unref(n.PREFIX)}-horizontal-viewer-mb`)},[e.createVNode(e.unref(F),e.mergeProps(p,{indicatorType:"image"}),null,16)],2))}}),R=e.defineComponent({__name:"horizontal-viewer",props:{title:{},desc:{},isMobile:{type:Boolean},extraTopSpacing:{},extraBottomSpacing:{},modelValue:{},dataList:{},swiperOptions:{},effect:{},showIntro:{type:Boolean},videoProps:{},indicatorClass:{},tabIndicatorBottom:{},widthType:{},indicatorType:{},showIndicator:{type:Boolean,default:!0},indicatorPosition:{}},setup(l){const p=l;return(a,v)=>a.isMobile?(e.openBlock(),e.createBlock(Y,e.normalizeProps(e.mergeProps({key:0},p)),null,16)):(e.openBlock(),e.createBlock(A,e.normalizeProps(e.mergeProps({key:1},p)),null,16))}});R.install=l=>(l.component("ScHorizontalViewer",R),l);const Z=R,j=["onClick"],G=["innerHTML"],J=["innerHTML"],P=e.defineComponent({__name:"image-indicator",props:{dataList:{},showIntro:{type:Boolean,default:!0}},emits:["change"],setup(l,{emit:p}){const a=p,v=e.ref(0),o=e.ref([]),d=e.computed(()=>{const i=o.value[v.value];return{height:`${i==null?void 0:i.offsetHeight}px`}}),f=i=>{v.value=i,a("change",i)};return(i,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`${e.unref(n.PREFIX)}-image-indicator`)},[e.createElementVNode("div",{class:e.normalizeClass(`${e.unref(n.PREFIX)}-image-indicator__list`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.dataList,(u,g)=>(e.openBlock(),e.createElementBlock("div",{key:u.url,class:e.normalizeClass([`${e.unref(n.PREFIX)}-image-indicator__list-item`,v.value===g?`${e.unref(n.PREFIX)}-image-indicator__active`:""]),onClick:B=>f(g)},[e.createVNode(e.unref(V.ScLayzImage),{src:u.url,alt:u.alt},null,8,["src","alt"])],10,j))),128))],2),i.showIntro?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(`${e.unref(n.PREFIX)}-image-indicator__intro`),style:e.normalizeStyle(d.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.dataList,(u,g)=>(e.openBlock(),e.createElementBlock("div",{key:u.url,ref_for:!0,ref_key:"introItemRef",ref:o,class:e.normalizeClass([`${e.unref(n.PREFIX)}-image-indicator__intro-item`,v.value===g&&`${e.unref(n.PREFIX)}-image-indicator__active`])},[u.title?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(`${e.unref(n.PREFIX)}-image-indicator__intro-title`),innerHTML:u.title},null,10,G)):e.createCommentVNode("v-if",!0),u.desc?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(`${e.unref(n.PREFIX)}-image-indicator__intro-desc`),innerHTML:u.desc},null,10,J)):e.createCommentVNode("v-if",!0)],2))),128))],6)):e.createCommentVNode("v-if",!0)],2))}});P.install=l=>(l.component("ScImageIndicator",P),l);const T=P,K={class:"swiper-wrapper"},S=e.defineComponent({__name:"swiper-normal",props:{modelValue:{default:0},dataList:{},swiperOptions:{default:()=>({})},effect:{},showIntro:{type:Boolean,default:!0},videoProps:{},indicatorClass:{},tabIndicatorBottom:{},widthType:{default:"full"},indicatorType:{default:"tab"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{default:"relative"}},emits:["change","update:modelValue"],setup(l,{emit:p}){const a=l,v=p;let o=null;const d=e.ref(a.modelValue),f=e.ref(),i=e.computed(()=>{const t=[`${n.PREFIX}-swiper-main`];return a.widthType==="middle"?t.push(`${n.PREFIX}-swiper-main__middle`):t.push(`${n.PREFIX}-swiper-main__full`),t}),h=e.computed(()=>{const t={};return a.tabIndicatorBottom&&(t.position="absolute",t.zIndex=1,t.bottom=typeof a.tabIndicatorBottom=="number"?`${a.tabIndicatorBottom}px`:a.tabIndicatorBottom),t});e.watch(()=>a.modelValue,()=>{d.value=a.modelValue,g(d.value)});const u=e.computed(()=>a.dataList.map(t=>({...t,url:t.type==="img"?t.url||"":t.poster||""}))),g=t=>{o==null||o.slideTo(t)},B=()=>{o==null||o.destroy(),f.value&&(o=new H.Swiper(f.value,{slidesPerView:1,allowTouchMove:!1,effect:a.effect,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},...a.swiperOptions}),o.on("slideChange",t=>{d.value=t.activeIndex,v("change",t.activeIndex),v("update:modelValue",t.activeIndex)}))};return e.onMounted(()=>{B(),window.addEventListener("resize",B)}),e.onBeforeUnmount(()=>{o==null||o.destroy(),window.removeEventListener("resize",B)}),(t,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`${e.unref(n.PREFIX)}-swiper`)},[e.createElementVNode("div",{ref_key:"swiperRef",ref:f,class:e.normalizeClass(i.value)},[e.createElementVNode("div",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataList,(m,y)=>(e.openBlock(),e.createElementBlock("div",{key:m.title,class:"swiper-slide"},[m.type==="img"?(e.openBlock(),e.createBlock(e.unref(V.ScLayzImage),{key:0,src:m.url,alt:m.alt},null,8,["src","alt"])):(e.openBlock(),e.createBlock(e.unref($.ScVideo),e.mergeProps({key:1,ref_for:!0},t.videoProps,{url:m.url,poster:m.poster,playable:d.value===y}),null,16,["url","poster","playable"])),m.mask?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${e.unref(n.PREFIX)}-swiper-mask`)},null,2)):e.createCommentVNode("v-if",!0)]))),128))]),w[2]||(w[2]=e.createStaticVNode('<div class="swiper-button-next"><svg xmlns="http://www.w3.org/2000/svg" width="25" height="24" viewBox="0 0 25 24" fill="none"><path d="M9.64299 3.12871L9.51887 5.83301L15.6859 12L9.51887 18.167L9.64299 20.8713L18.5143 12L9.64299 3.12871Z" fill="white"></path></svg></div><div class="swiper-button-prev"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M15.1289 3.12871L15.2531 5.83301L9.08609 12L15.2531 18.167L15.1289 20.8713L6.25766 12L15.1289 3.12871Z" fill="white"></path></svg></div>',2))],2),t.showIndicator?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.indicatorType==="tab"?(e.openBlock(),e.createBlock(e.unref(q.ScTabIndicator),{key:0,modelValue:d.value,"onUpdate:modelValue":w[0]||(w[0]=m=>d.value=m),class:e.normalizeClass([t.indicatorClass,t.indicatorPosition==="absolute"&&`${e.unref(n.PREFIX)}-swiper-indicator-absolute`]),dataList:t.dataList,"show-intro":t.showIntro,style:e.normalizeStyle(h.value),onChange:g},null,8,["modelValue","class","dataList","show-intro","style"])):(e.openBlock(),e.createBlock(e.unref(T),{key:1,modelValue:d.value,"onUpdate:modelValue":w[1]||(w[1]=m=>d.value=m),dataList:u.value,onChange:g},null,8,["modelValue","dataList"]))],64)):e.createCommentVNode("v-if",!0)],2))}});S.install=l=>(l.component("ScSwiperNormal",S),l);const F=S;exports.ScHorizontalViewer=Z;exports.ScImageIndicator=T;exports.ScSwiperNormal=F;
|
|
@@ -6,7 +6,7 @@ import "./es/animated-number.mjs";
|
|
|
6
6
|
import "./es/checkbox.mjs";
|
|
7
7
|
import "./es/col.mjs";
|
|
8
8
|
import "./es/config-provider.mjs";
|
|
9
|
-
import "./
|
|
9
|
+
import "./es/date-picker.mjs";
|
|
10
10
|
import "./es/date-select.mjs";
|
|
11
11
|
import "./es/drawer.mjs";
|
|
12
12
|
import "./es/dropdown.mjs";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { DatePickerProps } from './type';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<DatePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
-
change: (value:
|
|
4
|
-
"update:modelValue": (value:
|
|
3
|
+
change: (value: number | null) => any;
|
|
4
|
+
"update:modelValue": (value: number | null) => any;
|
|
5
5
|
}, string, import('vue').PublicProps, Readonly<DatePickerProps> & Readonly<{
|
|
6
|
-
onChange?: ((value:
|
|
7
|
-
"onUpdate:modelValue"?: ((value:
|
|
6
|
+
onChange?: ((value: number | null) => any) | undefined;
|
|
7
|
+
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
|
-
|
|
10
|
-
modelValue: Date | string | null;
|
|
9
|
+
modelValue: number | null;
|
|
11
10
|
disabled: boolean;
|
|
12
11
|
dark: boolean;
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
displayFormat: string;
|
|
13
|
+
minDate: number | Date;
|
|
14
|
+
maxDate: number | Date;
|
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
16
|
export default _default;
|