voiptime-components 1.12.5 → 1.12.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/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +470 -438
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2284,7 +2284,7 @@ const Qa = /* @__PURE__ */ $(Ua, [["render", Xa]]), Ga = {}, Ja = {
|
|
|
2284
2284
|
fill: "none",
|
|
2285
2285
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2286
2286
|
};
|
|
2287
|
-
function
|
|
2287
|
+
function e3(n, e) {
|
|
2288
2288
|
return l(), a("svg", Ja, e[0] || (e[0] = [
|
|
2289
2289
|
o("path", {
|
|
2290
2290
|
"fill-rule": "evenodd",
|
|
@@ -2300,15 +2300,15 @@ function e2(n, e) {
|
|
|
2300
2300
|
}, null, -1)
|
|
2301
2301
|
]));
|
|
2302
2302
|
}
|
|
2303
|
-
const
|
|
2303
|
+
const t3 = /* @__PURE__ */ $(Ga, [["render", e3]]), n3 = {}, o3 = {
|
|
2304
2304
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2305
2305
|
width: "60",
|
|
2306
2306
|
height: "60",
|
|
2307
2307
|
viewBox: "0 0 60 60",
|
|
2308
2308
|
fill: "none"
|
|
2309
2309
|
};
|
|
2310
|
-
function
|
|
2311
|
-
return l(), a("svg",
|
|
2310
|
+
function s3(n, e) {
|
|
2311
|
+
return l(), a("svg", o3, e[0] || (e[0] = [
|
|
2312
2312
|
o("path", {
|
|
2313
2313
|
d: "M24.195 7H18.625C17.1332 7 15.7024 7.59263 14.6475 8.64752C13.5926 9.70242 13 11.1332 13 12.625V46.375C13 47.8668 13.5926 49.2976 14.6475 50.3525C15.7024 51.4074 17.1332 52 18.625 52H41.125C42.6168 52 44.0476 51.4074 45.1025 50.3525C46.1574 49.2976 46.75 47.8668 46.75 46.375V29.5M24.195 7C27.3025 7 29.875 9.5175 29.875 12.625V18.25C29.875 19.7418 30.4676 21.1726 31.5225 22.2275C32.5774 23.2824 34.0082 23.875 35.5 23.875H41.125C42.6168 23.875 44.0476 24.4676 45.1025 25.5225C46.1574 26.5774 46.75 28.0082 46.75 29.5M24.195 7C33.42 7 46.75 20.4 46.75 29.5",
|
|
2314
2314
|
stroke: "currentColor",
|
|
@@ -2318,27 +2318,27 @@ function s2(n, e) {
|
|
|
2318
2318
|
}, null, -1)
|
|
2319
2319
|
]));
|
|
2320
2320
|
}
|
|
2321
|
-
const
|
|
2321
|
+
const r3 = /* @__PURE__ */ $(n3, [["render", s3]]), l3 = {}, i3 = {
|
|
2322
2322
|
width: "20",
|
|
2323
2323
|
height: "20",
|
|
2324
2324
|
viewBox: "0 0 20 20",
|
|
2325
2325
|
fill: "none",
|
|
2326
2326
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2327
2327
|
};
|
|
2328
|
-
function
|
|
2329
|
-
return l(), a("svg",
|
|
2328
|
+
function a3(n, e) {
|
|
2329
|
+
return l(), a("svg", i3, e[0] || (e[0] = [
|
|
2330
2330
|
Re('<g clip-path="url(#clip0_8255_9011)"><path d="M3.125 3.9125C3.125 2.95 4.2 1.875 5.15 1.875H17.35C18.3 1.875 19.375 2.95 19.375 3.9125V16.1C19.375 17.05 18.3 18.125 17.35 18.125H5.1625C4.2 18.125 3.125 17.05 3.125 16.1M0.625 6.875L5.625 13.125M5.625 6.875L0.625 13.125" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M11.875 6.875V13.125M9.375 9.375H15.625M9.375 6.875H15.625V13.125H9.375V6.875Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_8255_9011"><rect width="20" height="20" fill="white"></rect></clipPath></defs>', 2)
|
|
2331
2331
|
]));
|
|
2332
2332
|
}
|
|
2333
|
-
const
|
|
2333
|
+
const u3 = /* @__PURE__ */ $(l3, [["render", a3]]), c3 = {}, d3 = {
|
|
2334
2334
|
width: "20",
|
|
2335
2335
|
height: "20",
|
|
2336
2336
|
viewBox: "0 0 20 20",
|
|
2337
2337
|
fill: "none",
|
|
2338
2338
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2339
2339
|
};
|
|
2340
|
-
function
|
|
2341
|
-
return l(), a("svg",
|
|
2340
|
+
function h3(n, e) {
|
|
2341
|
+
return l(), a("svg", d3, e[0] || (e[0] = [
|
|
2342
2342
|
o("path", {
|
|
2343
2343
|
d: "M8 3V5.2225M8 5.2225V10.7775M8 5.2225L9.875 4.25M8 5.2225L6.125 4.25M8 10.7775V13M8 10.7775L6.125 11.75M8 10.7775L9.875 11.75M13 8H10.7775M10.7775 8H5.2225M10.7775 8L11.75 9.875M10.7775 8L11.75 6.125M5.2225 8H3M5.2225 8L4.25 6.125M5.2225 8L4.25 9.875",
|
|
2344
2344
|
stroke: "currentColor",
|
|
@@ -2354,15 +2354,15 @@ function h2(n, e) {
|
|
|
2354
2354
|
}, null, -1)
|
|
2355
2355
|
]));
|
|
2356
2356
|
}
|
|
2357
|
-
const
|
|
2357
|
+
const p3 = /* @__PURE__ */ $(c3, [["render", h3]]), v3 = {}, f3 = {
|
|
2358
2358
|
width: "20",
|
|
2359
2359
|
height: "20",
|
|
2360
2360
|
viewBox: "0 0 20 20",
|
|
2361
2361
|
fill: "none",
|
|
2362
2362
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2363
2363
|
};
|
|
2364
|
-
function
|
|
2365
|
-
return l(), a("svg",
|
|
2364
|
+
function C3(n, e) {
|
|
2365
|
+
return l(), a("svg", f3, e[0] || (e[0] = [
|
|
2366
2366
|
o("path", {
|
|
2367
2367
|
d: "M3.33398 11.6641H10.0007M3.33398 15.4141H10.0007M3.33398 7.91406H16.6673M3.33398 4.16406H16.6673M12.5007 13.7474H16.6673M14.584 11.6641V15.8307",
|
|
2368
2368
|
stroke: "currentColor",
|
|
@@ -2372,15 +2372,15 @@ function C2(n, e) {
|
|
|
2372
2372
|
}, null, -1)
|
|
2373
2373
|
]));
|
|
2374
2374
|
}
|
|
2375
|
-
const
|
|
2375
|
+
const m3 = /* @__PURE__ */ $(v3, [["render", C3]]), _3 = {}, g3 = {
|
|
2376
2376
|
width: "20",
|
|
2377
2377
|
height: "20",
|
|
2378
2378
|
viewBox: "0 0 20 20",
|
|
2379
2379
|
fill: "none",
|
|
2380
2380
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2381
2381
|
};
|
|
2382
|
-
function
|
|
2383
|
-
return l(), a("svg",
|
|
2382
|
+
function w3(n, e) {
|
|
2383
|
+
return l(), a("svg", g3, e[0] || (e[0] = [
|
|
2384
2384
|
o("path", {
|
|
2385
2385
|
d: "M9.58268 15.4167H4.58268C4.14065 15.4167 3.71673 15.2411 3.40417 14.9285C3.09161 14.616 2.91602 14.192 2.91602 13.75V7.08333M2.91602 7.08333V5.41667C2.91602 4.97464 3.09161 4.55072 3.40417 4.23816C3.71673 3.92559 4.14065 3.75 4.58268 3.75H15.416C15.858 3.75 16.282 3.92559 16.5945 4.23816C16.9071 4.55072 17.0827 4.97464 17.0827 5.41667V6.95833C17.0827 6.97475 17.0795 6.991 17.0732 7.00617C17.0669 7.02133 17.0577 7.03511 17.0461 7.04672C17.0345 7.05833 17.0207 7.06754 17.0055 7.07382C16.9904 7.0801 16.9741 7.08333 16.9577 7.08333H2.91602ZM2.91602 11.25H7.91602",
|
|
2386
2386
|
stroke: "currentColor",
|
|
@@ -2400,15 +2400,15 @@ function w2(n, e) {
|
|
|
2400
2400
|
}, null, -1)
|
|
2401
2401
|
]));
|
|
2402
2402
|
}
|
|
2403
|
-
const
|
|
2403
|
+
const k3 = /* @__PURE__ */ $(_3, [["render", w3]]), y3 = {}, b3 = {
|
|
2404
2404
|
width: "20",
|
|
2405
2405
|
height: "20",
|
|
2406
2406
|
viewBox: "0 0 20 20",
|
|
2407
2407
|
fill: "none",
|
|
2408
2408
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2409
2409
|
};
|
|
2410
|
-
function $
|
|
2411
|
-
return l(), a("svg",
|
|
2410
|
+
function $3(n, e) {
|
|
2411
|
+
return l(), a("svg", b3, e[0] || (e[0] = [
|
|
2412
2412
|
o("path", {
|
|
2413
2413
|
d: "M14.5833 1.83594C15.7533 1.83594 16.3392 1.83594 16.7592 2.11677C16.9412 2.2384 17.0975 2.39471 17.2192 2.57677C17.5 2.99677 17.5 3.5826 17.5 4.7526V15.4193C17.5 16.5893 17.5 17.1751 17.2192 17.5951C17.0975 17.7772 16.9412 17.9335 16.7592 18.0551C16.3392 18.3359 15.7533 18.3359 14.5833 18.3359C13.4133 18.3359 12.8275 18.3359 12.4075 18.0551C12.2254 17.9335 12.0691 17.7772 11.9475 17.5951C11.6667 17.1751 11.6667 16.5893 11.6667 15.4193V4.7526C11.6667 3.5826 11.6667 2.99677 11.9475 2.57677C12.0691 2.39471 12.2254 2.2384 12.4075 2.11677C12.8275 1.83594 13.4133 1.83594 14.5833 1.83594ZM5.41667 1.83594C6.58667 1.83594 7.1725 1.83594 7.5925 2.11677C7.77456 2.2384 7.93087 2.39471 8.0525 2.57677C8.33333 2.99677 8.33333 3.5826 8.33333 4.7526V15.4193C8.33333 16.5893 8.33333 17.1751 8.0525 17.5951C7.93087 17.7772 7.77456 17.9335 7.5925 18.0551C7.1725 18.3359 6.58667 18.3359 5.41667 18.3359C4.24667 18.3359 3.66083 18.3359 3.24083 18.0551C3.05877 17.9335 2.90246 17.7772 2.78083 17.5951C2.5 17.1751 2.5 16.5893 2.5 15.4193V4.7526C2.5 3.5826 2.5 2.99677 2.78083 2.57677C2.90246 2.39471 3.05877 2.2384 3.24083 2.11677C3.66083 1.83594 4.24667 1.83594 5.41667 1.83594Z",
|
|
2414
2414
|
stroke: "currentColor",
|
|
@@ -2418,15 +2418,15 @@ function $2(n, e) {
|
|
|
2418
2418
|
}, null, -1)
|
|
2419
2419
|
]));
|
|
2420
2420
|
}
|
|
2421
|
-
const
|
|
2421
|
+
const M3 = /* @__PURE__ */ $(y3, [["render", $3]]), x3 = {}, L3 = {
|
|
2422
2422
|
width: "20",
|
|
2423
2423
|
height: "20",
|
|
2424
2424
|
viewBox: "0 0 20 20",
|
|
2425
2425
|
fill: "none",
|
|
2426
2426
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2427
2427
|
};
|
|
2428
|
-
function
|
|
2429
|
-
return l(), a("svg",
|
|
2428
|
+
function V3(n, e) {
|
|
2429
|
+
return l(), a("svg", L3, e[0] || (e[0] = [
|
|
2430
2430
|
o("path", {
|
|
2431
2431
|
d: "M18.166 14.5833C18.166 15.7533 18.166 16.3392 17.8852 16.7592C17.7636 16.9412 17.6072 17.0975 17.4252 17.2192C17.0052 17.5 16.4193 17.5 15.2493 17.5L4.58268 17.5C3.41268 17.5 2.82685 17.5 2.40685 17.2192C2.22479 17.0975 2.06848 16.9412 1.94685 16.7592C1.66601 16.3392 1.66602 15.7533 1.66602 14.5833C1.66602 13.4133 1.66601 12.8275 1.94685 12.4075C2.06848 12.2254 2.22479 12.0691 2.40685 11.9475C2.82685 11.6667 3.41268 11.6667 4.58268 11.6667L15.2493 11.6667C16.4193 11.6667 17.0052 11.6667 17.4252 11.9475C17.6072 12.0691 17.7636 12.2254 17.8852 12.4075C18.166 12.8275 18.166 13.4133 18.166 14.5833ZM18.166 5.41667C18.166 6.58667 18.166 7.1725 17.8852 7.5925C17.7636 7.77456 17.6072 7.93087 17.4252 8.0525C17.0052 8.33333 16.4193 8.33333 15.2493 8.33333L4.58268 8.33333C3.41268 8.33333 2.82685 8.33333 2.40685 8.0525C2.22479 7.93087 2.06848 7.77456 1.94685 7.5925C1.66601 7.1725 1.66602 6.58667 1.66602 5.41667C1.66602 4.24667 1.66601 3.66083 1.94685 3.24083C2.06848 3.05877 2.22479 2.90246 2.40685 2.78083C2.82685 2.5 3.41268 2.5 4.58268 2.5L15.2493 2.5C16.4193 2.5 17.0052 2.5 17.4252 2.78083C17.6072 2.90246 17.7636 3.05877 17.8852 3.24083C18.166 3.66083 18.166 4.24667 18.166 5.41667Z",
|
|
2432
2432
|
stroke: "currentColor",
|
|
@@ -2436,15 +2436,15 @@ function V2(n, e) {
|
|
|
2436
2436
|
}, null, -1)
|
|
2437
2437
|
]));
|
|
2438
2438
|
}
|
|
2439
|
-
const
|
|
2439
|
+
const S3 = /* @__PURE__ */ $(x3, [["render", V3]]), D3 = {}, H3 = {
|
|
2440
2440
|
width: "20",
|
|
2441
2441
|
height: "20",
|
|
2442
2442
|
viewBox: "0 0 20 20",
|
|
2443
2443
|
fill: "none",
|
|
2444
2444
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2445
2445
|
};
|
|
2446
|
-
function
|
|
2447
|
-
return l(), a("svg",
|
|
2446
|
+
function T3(n, e) {
|
|
2447
|
+
return l(), a("svg", H3, e[0] || (e[0] = [
|
|
2448
2448
|
o("path", {
|
|
2449
2449
|
d: "M8 3V5.2225M8 5.2225V10.7775M8 5.2225L9.875 4.25M8 5.2225L6.125 4.25M8 10.7775V13M8 10.7775L6.125 11.75M8 10.7775L9.875 11.75M13 8H10.7775M10.7775 8H5.2225M10.7775 8L11.75 9.875M10.7775 8L11.75 6.125M5.2225 8H3M5.2225 8L4.25 6.125M5.2225 8L4.25 9.875",
|
|
2450
2450
|
stroke: "currentColor",
|
|
@@ -2460,8 +2460,40 @@ function T2(n, e) {
|
|
|
2460
2460
|
}, null, -1)
|
|
2461
2461
|
]));
|
|
2462
2462
|
}
|
|
2463
|
-
const
|
|
2463
|
+
const I3 = /* @__PURE__ */ $(D3, [["render", T3]]), B3 = {}, E3 = {
|
|
2464
|
+
width: "21",
|
|
2465
|
+
height: "20",
|
|
2466
|
+
viewBox: "0 0 21 20",
|
|
2467
|
+
fill: "none",
|
|
2468
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2469
|
+
};
|
|
2470
|
+
function A3(n, e) {
|
|
2471
|
+
return l(), a("svg", E3, e[0] || (e[0] = [
|
|
2472
|
+
o("path", {
|
|
2473
|
+
d: "M9.97095 5H6.47095C5.47095 5 3.47095 5.67708 3.47095 7.70833C3.47095 9.73958 5.47095 10.4167 6.47095 10.4167H13.8043C14.8043 10.4167 16.8043 11.0937 16.8043 13.125C16.8043 15.1562 14.8043 15.8333 13.8043 15.8333H6.13761",
|
|
2474
|
+
stroke: "#333333",
|
|
2475
|
+
"stroke-width": "1.5",
|
|
2476
|
+
"stroke-linecap": "round",
|
|
2477
|
+
"stroke-linejoin": "round"
|
|
2478
|
+
}, null, -1),
|
|
2479
|
+
o("path", {
|
|
2480
|
+
d: "M4.72095 17.5C5.05247 17.5 5.37041 17.3683 5.60483 17.1339C5.83925 16.8995 5.97095 16.5815 5.97095 16.25C5.97095 15.9185 5.83925 15.6005 5.60483 15.3661C5.37041 15.1317 5.05247 15 4.72095 15C4.38943 15 4.07148 15.1317 3.83706 15.3661C3.60264 15.6005 3.47095 15.9185 3.47095 16.25C3.47095 16.5815 3.60264 16.8995 3.83706 17.1339C4.07148 17.3683 4.38943 17.5 4.72095 17.5Z",
|
|
2481
|
+
stroke: "#333333",
|
|
2482
|
+
"stroke-width": "1.5",
|
|
2483
|
+
"stroke-linejoin": "round"
|
|
2484
|
+
}, null, -1),
|
|
2485
|
+
o("path", {
|
|
2486
|
+
d: "M12.6376 5.00065L14.3042 6.66732L17.6376 3.33398",
|
|
2487
|
+
stroke: "#333333",
|
|
2488
|
+
"stroke-width": "1.5",
|
|
2489
|
+
"stroke-linecap": "round",
|
|
2490
|
+
"stroke-linejoin": "round"
|
|
2491
|
+
}, null, -1)
|
|
2492
|
+
]));
|
|
2493
|
+
}
|
|
2494
|
+
const j3 = /* @__PURE__ */ $(B3, [["render", A3]]), P3 = {
|
|
2464
2495
|
// actions icons
|
|
2496
|
+
addLine: j3,
|
|
2465
2497
|
circleChecked: bt,
|
|
2466
2498
|
circleClose: Lt,
|
|
2467
2499
|
close: Ht,
|
|
@@ -2574,15 +2606,15 @@ const I2 = /* @__PURE__ */ $(D2, [["render", T2]]), B2 = {
|
|
|
2574
2606
|
proposalBlock: qa,
|
|
2575
2607
|
// table icons
|
|
2576
2608
|
columnInsert: Qa,
|
|
2577
|
-
columnsMove:
|
|
2578
|
-
empty:
|
|
2579
|
-
excel:
|
|
2580
|
-
freeze:
|
|
2581
|
-
listAdd:
|
|
2582
|
-
tableSettings:
|
|
2583
|
-
twoColumns:
|
|
2584
|
-
twoRows:
|
|
2585
|
-
unfreeze:
|
|
2609
|
+
columnsMove: t3,
|
|
2610
|
+
empty: r3,
|
|
2611
|
+
excel: u3,
|
|
2612
|
+
freeze: p3,
|
|
2613
|
+
listAdd: m3,
|
|
2614
|
+
tableSettings: k3,
|
|
2615
|
+
twoColumns: M3,
|
|
2616
|
+
twoRows: S3,
|
|
2617
|
+
unfreeze: I3
|
|
2586
2618
|
}, fe = /* @__PURE__ */ we({
|
|
2587
2619
|
__name: "VIcon",
|
|
2588
2620
|
props: {
|
|
@@ -2592,7 +2624,7 @@ const I2 = /* @__PURE__ */ $(D2, [["render", T2]]), B2 = {
|
|
|
2592
2624
|
color: { default: "currentColor" }
|
|
2593
2625
|
},
|
|
2594
2626
|
setup(n) {
|
|
2595
|
-
const e = n, r = L(() =>
|
|
2627
|
+
const e = n, r = L(() => P3[e.name]), t = L(() => ({
|
|
2596
2628
|
...e.width && { width: typeof e.width == "number" ? `${e.width}px` : e.width },
|
|
2597
2629
|
...e.height && { height: typeof e.height == "number" ? `${e.height}px` : e.height },
|
|
2598
2630
|
color: e.color
|
|
@@ -2602,11 +2634,11 @@ const I2 = /* @__PURE__ */ $(D2, [["render", T2]]), B2 = {
|
|
|
2602
2634
|
style: Ee(t.value)
|
|
2603
2635
|
}, null, 8, ["style"])) : Z("", !0);
|
|
2604
2636
|
}
|
|
2605
|
-
}),
|
|
2606
|
-
function
|
|
2607
|
-
return l(), a("span",
|
|
2637
|
+
}), R3 = {}, F3 = { class: "vt-loader" };
|
|
2638
|
+
function Z3(n, e) {
|
|
2639
|
+
return l(), a("span", F3);
|
|
2608
2640
|
}
|
|
2609
|
-
const g1 = /* @__PURE__ */ $(
|
|
2641
|
+
const g1 = /* @__PURE__ */ $(R3, [["render", Z3]]), z3 = ["disabled", "type", "data-placement"], O3 = {
|
|
2610
2642
|
key: 2,
|
|
2611
2643
|
class: "vt-button__content"
|
|
2612
2644
|
}, Je = /* @__PURE__ */ we({
|
|
@@ -2656,21 +2688,21 @@ const g1 = /* @__PURE__ */ $(E2, [["render", j2]]), P2 = ["disabled", "type", "d
|
|
|
2656
2688
|
name: r.icon,
|
|
2657
2689
|
class: "vt-button__icon"
|
|
2658
2690
|
}, null, 8, ["name"])) : Z("", !0),
|
|
2659
|
-
c.value ? Z("", !0) : (l(), a("span",
|
|
2691
|
+
c.value ? Z("", !0) : (l(), a("span", O3, [
|
|
2660
2692
|
Se(h.$slots, "default")
|
|
2661
2693
|
]))
|
|
2662
|
-
], 10,
|
|
2694
|
+
], 10, z3)), [
|
|
2663
2695
|
[_, f.value]
|
|
2664
2696
|
]);
|
|
2665
2697
|
};
|
|
2666
2698
|
}
|
|
2667
|
-
}),
|
|
2699
|
+
}), Y3 = {
|
|
2668
2700
|
key: 0,
|
|
2669
2701
|
class: "vt-modal__header"
|
|
2670
|
-
},
|
|
2702
|
+
}, N3 = {
|
|
2671
2703
|
key: 0,
|
|
2672
2704
|
class: "vt-modal__title"
|
|
2673
|
-
},
|
|
2705
|
+
}, W3 = { class: "vt-modal__body" }, et = /* @__PURE__ */ we({
|
|
2674
2706
|
__name: "VModal",
|
|
2675
2707
|
props: {
|
|
2676
2708
|
modelValue: { type: Boolean },
|
|
@@ -2701,8 +2733,8 @@ const g1 = /* @__PURE__ */ $(E2, [["render", j2]]), P2 = ["disabled", "type", "d
|
|
|
2701
2733
|
onClick: v[0] || (v[0] = Ve(() => {
|
|
2702
2734
|
}, ["stop"]))
|
|
2703
2735
|
}, [
|
|
2704
|
-
f.title || f.showCloseButton ? (l(), a("div",
|
|
2705
|
-
f.title ? (l(), a("h2",
|
|
2736
|
+
f.title || f.showCloseButton ? (l(), a("div", Y3, [
|
|
2737
|
+
f.title ? (l(), a("h2", N3, R(f.title), 1)) : Z("", !0),
|
|
2706
2738
|
f.showCloseButton ? (l(), ge(fe, {
|
|
2707
2739
|
key: 1,
|
|
2708
2740
|
class: "vt-modal__close",
|
|
@@ -2710,14 +2742,14 @@ const g1 = /* @__PURE__ */ $(E2, [["render", j2]]), P2 = ["disabled", "type", "d
|
|
|
2710
2742
|
onClick: d
|
|
2711
2743
|
})) : Z("", !0)
|
|
2712
2744
|
])) : Z("", !0),
|
|
2713
|
-
o("div",
|
|
2745
|
+
o("div", W3, [
|
|
2714
2746
|
Se(f.$slots, "default")
|
|
2715
2747
|
])
|
|
2716
2748
|
], 2)
|
|
2717
2749
|
], 4)) : Z("", !0)
|
|
2718
2750
|
]));
|
|
2719
2751
|
}
|
|
2720
|
-
}),
|
|
2752
|
+
}), q3 = ["for"], U3 = ["id", "name", "value", "checked", "disabled", "required", ".indeterminate"], o1 = /* @__PURE__ */ we({
|
|
2721
2753
|
__name: "VCheckbox",
|
|
2722
2754
|
props: {
|
|
2723
2755
|
modelValue: { type: Boolean, default: void 0 },
|
|
@@ -2769,7 +2801,7 @@ const g1 = /* @__PURE__ */ $(E2, [["render", j2]]), P2 = ["disabled", "type", "d
|
|
|
2769
2801
|
onChange: p,
|
|
2770
2802
|
onFocus: f,
|
|
2771
2803
|
onBlur: v
|
|
2772
|
-
}, null, 40,
|
|
2804
|
+
}, null, 40, U3),
|
|
2773
2805
|
o("div", {
|
|
2774
2806
|
class: G([
|
|
2775
2807
|
"vt-checkbox__box",
|
|
@@ -2856,7 +2888,7 @@ const g1 = /* @__PURE__ */ $(E2, [["render", j2]]), P2 = ["disabled", "type", "d
|
|
|
2856
2888
|
])
|
|
2857
2889
|
])
|
|
2858
2890
|
], 2)) : Z("", !0)
|
|
2859
|
-
], 10,
|
|
2891
|
+
], 10, q3));
|
|
2860
2892
|
}
|
|
2861
2893
|
}), E1 = (n) => {
|
|
2862
2894
|
if (!n) return !1;
|
|
@@ -2872,7 +2904,7 @@ const g1 = /* @__PURE__ */ $(E2, [["render", j2]]), P2 = ["disabled", "type", "d
|
|
|
2872
2904
|
c = c.parentElement;
|
|
2873
2905
|
}
|
|
2874
2906
|
return !0;
|
|
2875
|
-
},
|
|
2907
|
+
}, K3 = (n) => {
|
|
2876
2908
|
const e = [];
|
|
2877
2909
|
let r = n.parentElement;
|
|
2878
2910
|
for (; r && r !== document.body; ) {
|
|
@@ -2880,7 +2912,7 @@ const g1 = /* @__PURE__ */ $(E2, [["render", j2]]), P2 = ["disabled", "type", "d
|
|
|
2880
2912
|
(["scroll", "auto"].includes(i) || ["scroll", "auto"].includes(c) || r.scrollHeight > r.clientHeight || r.scrollWidth > r.clientWidth) && e.push(r), r = r.parentElement;
|
|
2881
2913
|
}
|
|
2882
2914
|
return e.push(window), e;
|
|
2883
|
-
},
|
|
2915
|
+
}, X3 = (n, e, r) => {
|
|
2884
2916
|
let t = 0, i = 0;
|
|
2885
2917
|
switch (r) {
|
|
2886
2918
|
case "bottom":
|
|
@@ -2928,7 +2960,7 @@ function k1(n, e, r = {}) {
|
|
|
2928
2960
|
_.value !== oe && (_.value = oe, !oe && g.value ? (b.value = !0, g.value = !1, v == null || v(!1)) : oe && b.value && !g.value && (b.value = !1, g.value = !0, S(), v == null || v(!0)));
|
|
2929
2961
|
}, S = async () => {
|
|
2930
2962
|
if (await Te(), !n.value || !e.value) return;
|
|
2931
|
-
const oe = n.value.getBoundingClientRect(), A = e.value.getBoundingClientRect(), J =
|
|
2963
|
+
const oe = n.value.getBoundingClientRect(), A = e.value.getBoundingClientRect(), J = X3(oe, A, i);
|
|
2932
2964
|
j.value = {
|
|
2933
2965
|
...J,
|
|
2934
2966
|
minWidth: `${oe.width}px`
|
|
@@ -2936,7 +2968,7 @@ function k1(n, e, r = {}) {
|
|
|
2936
2968
|
}, T = () => {
|
|
2937
2969
|
(g.value || b.value) && (V(), g.value && S(), h == null || h());
|
|
2938
2970
|
}, U = () => {
|
|
2939
|
-
n.value && (N.value =
|
|
2971
|
+
n.value && (N.value = K3(n.value), N.value.forEach((oe) => {
|
|
2940
2972
|
oe.addEventListener("scroll", T, { passive: !0 });
|
|
2941
2973
|
}), window.addEventListener("resize", T));
|
|
2942
2974
|
}, q = () => {
|
|
@@ -2986,37 +3018,37 @@ function s1(n, e, r) {
|
|
|
2986
3018
|
function A1(n, e, r) {
|
|
2987
3019
|
return e.find((t) => s1(t.value, n, r));
|
|
2988
3020
|
}
|
|
2989
|
-
function
|
|
3021
|
+
function Q3(n, e, r, t) {
|
|
2990
3022
|
return r ? Array.isArray(e) ? e.some((i) => s1(i, n, t)) : !1 : s1(e, n, t);
|
|
2991
3023
|
}
|
|
2992
|
-
function
|
|
3024
|
+
function G3(n, e, r, t) {
|
|
2993
3025
|
if (!e.length) return [];
|
|
2994
3026
|
if (r)
|
|
2995
3027
|
return Array.isArray(n) ? n.map((c) => A1(c, e, t)).filter(Boolean) : [];
|
|
2996
3028
|
const i = A1(n, e, t);
|
|
2997
3029
|
return i ? [i] : [];
|
|
2998
3030
|
}
|
|
2999
|
-
function
|
|
3031
|
+
function J3(n, e, r, t) {
|
|
3000
3032
|
if (r) {
|
|
3001
3033
|
const i = Array.isArray(e) ? e : [];
|
|
3002
3034
|
return i.some((d) => s1(d, n.value, t)) ? i.filter((d) => !s1(d, n.value, t)) : [...i, n.value];
|
|
3003
3035
|
}
|
|
3004
3036
|
return n.value;
|
|
3005
3037
|
}
|
|
3006
|
-
function
|
|
3038
|
+
function e2(n, e, r) {
|
|
3007
3039
|
return Array.isArray(e) ? e.filter((t) => !s1(t, n, r)) : e;
|
|
3008
3040
|
}
|
|
3009
|
-
function
|
|
3041
|
+
function t2(n) {
|
|
3010
3042
|
return n ? [] : void 0;
|
|
3011
3043
|
}
|
|
3012
|
-
function
|
|
3044
|
+
function n2(n, e, r, t) {
|
|
3013
3045
|
const i = [];
|
|
3014
3046
|
return r && (e ? !Array.isArray(n) || n.length === 0 : n == null || n === "") && i.push(t || "Це поле є обов'язковим"), {
|
|
3015
3047
|
isValid: i.length === 0,
|
|
3016
3048
|
errors: i
|
|
3017
3049
|
};
|
|
3018
3050
|
}
|
|
3019
|
-
function
|
|
3051
|
+
function o2(n, e, r) {
|
|
3020
3052
|
var p;
|
|
3021
3053
|
if (!n || !e.length) return r;
|
|
3022
3054
|
const t = n.offsetWidth, i = 100;
|
|
@@ -3030,29 +3062,29 @@ function J2(n, e, r) {
|
|
|
3030
3062
|
}
|
|
3031
3063
|
return Math.max(1, d);
|
|
3032
3064
|
}
|
|
3033
|
-
function
|
|
3065
|
+
function s2(n, e) {
|
|
3034
3066
|
const r = e.map((t) => t.label).join(", ");
|
|
3035
3067
|
return `Ще ${n}: ${r}`;
|
|
3036
3068
|
}
|
|
3037
|
-
const
|
|
3069
|
+
const r2 = ["for"], l2 = {
|
|
3038
3070
|
key: 0,
|
|
3039
3071
|
class: "vt-input__required"
|
|
3040
|
-
},
|
|
3072
|
+
}, i2 = { class: "vt-input__container" }, a2 = {
|
|
3041
3073
|
key: 0,
|
|
3042
3074
|
class: "vt-input__prefix"
|
|
3043
|
-
},
|
|
3075
|
+
}, u2 = ["value", "placeholder", "disabled", "rows", "cols", "maxlength", "minlength", "required", "name", "id", "tabindex", "autocomplete"], c2 = ["type", "value", "placeholder", "disabled", "maxlength", "minlength", "min", "max", "step", "required", "pattern", "name", "id", "tabindex", "autocomplete"], d2 = {
|
|
3044
3076
|
key: 3,
|
|
3045
3077
|
class: "vt-input__suffix"
|
|
3046
|
-
},
|
|
3078
|
+
}, h2 = {
|
|
3047
3079
|
key: 1,
|
|
3048
3080
|
class: "vt-input__help"
|
|
3049
|
-
},
|
|
3081
|
+
}, p2 = {
|
|
3050
3082
|
key: 0,
|
|
3051
3083
|
class: "vt-input__error"
|
|
3052
|
-
},
|
|
3084
|
+
}, v2 = {
|
|
3053
3085
|
key: 1,
|
|
3054
3086
|
class: "vt-input__helper"
|
|
3055
|
-
},
|
|
3087
|
+
}, f2 = {
|
|
3056
3088
|
key: 2,
|
|
3057
3089
|
class: "vt-input__errors"
|
|
3058
3090
|
}, nt = /* @__PURE__ */ we({
|
|
@@ -3296,10 +3328,10 @@ const t3 = ["for"], n3 = {
|
|
|
3296
3328
|
for: k.id
|
|
3297
3329
|
}, [
|
|
3298
3330
|
$e(R(k.label) + " ", 1),
|
|
3299
|
-
k.required ? (l(), a("span",
|
|
3300
|
-
], 8,
|
|
3301
|
-
o("div",
|
|
3302
|
-
S.value ? (l(), a("div",
|
|
3331
|
+
k.required ? (l(), a("span", l2, "*")) : Z("", !0)
|
|
3332
|
+
], 8, r2)) : Z("", !0),
|
|
3333
|
+
o("div", i2, [
|
|
3334
|
+
S.value ? (l(), a("div", a2, [
|
|
3303
3335
|
ne(fe, {
|
|
3304
3336
|
name: T.value,
|
|
3305
3337
|
class: G(U.value)
|
|
@@ -3332,7 +3364,7 @@ const t3 = ["for"], n3 = {
|
|
|
3332
3364
|
onKeyup: Y[1] || (Y[1] = (W) => k.$emit("keyup", W)),
|
|
3333
3365
|
onKeypress: Y[2] || (Y[2] = (W) => k.$emit("keypress", W)),
|
|
3334
3366
|
onClick: Y[3] || (Y[3] = (W) => k.$emit("click", W))
|
|
3335
|
-
}, null, 44,
|
|
3367
|
+
}, null, 44, u2)) : (l(), a("input", {
|
|
3336
3368
|
key: 2,
|
|
3337
3369
|
ref_key: "inputRef",
|
|
3338
3370
|
ref: c,
|
|
@@ -3360,8 +3392,8 @@ const t3 = ["for"], n3 = {
|
|
|
3360
3392
|
onKeyup: Y[5] || (Y[5] = (W) => k.$emit("keyup", W)),
|
|
3361
3393
|
onKeypress: Y[6] || (Y[6] = (W) => k.$emit("keypress", W)),
|
|
3362
3394
|
onClick: Y[7] || (Y[7] = (W) => k.$emit("click", W))
|
|
3363
|
-
}, null, 40,
|
|
3364
|
-
q.value ? (l(), a("div",
|
|
3395
|
+
}, null, 40, c2)),
|
|
3396
|
+
q.value ? (l(), a("div", d2, [
|
|
3365
3397
|
D.value ? (l(), a("button", {
|
|
3366
3398
|
key: 0,
|
|
3367
3399
|
type: "button",
|
|
@@ -3391,10 +3423,10 @@ const t3 = ["for"], n3 = {
|
|
|
3391
3423
|
}, null, 8, ["name"])) : Z("", !0)
|
|
3392
3424
|
])) : Z("", !0)
|
|
3393
3425
|
]),
|
|
3394
|
-
k.helperText || J.value ? (l(), a("div",
|
|
3395
|
-
J.value ? (l(), a("span",
|
|
3426
|
+
k.helperText || J.value ? (l(), a("div", h2, [
|
|
3427
|
+
J.value ? (l(), a("span", p2, R(J.value), 1)) : k.helperText ? (l(), a("span", v2, R(k.helperText), 1)) : Z("", !0)
|
|
3396
3428
|
])) : Z("", !0),
|
|
3397
|
-
h.value.length > 1 && k.showAllErrors ? (l(), a("div",
|
|
3429
|
+
h.value.length > 1 && k.showAllErrors ? (l(), a("div", f2, [
|
|
3398
3430
|
(l(!0), a(ie, null, pe(h.value, (W, be) => (l(), a("div", {
|
|
3399
3431
|
key: be,
|
|
3400
3432
|
class: "vt-input__error-item"
|
|
@@ -3404,37 +3436,37 @@ const t3 = ["for"], n3 = {
|
|
|
3404
3436
|
])) : Z("", !0)
|
|
3405
3437
|
], 2));
|
|
3406
3438
|
}
|
|
3407
|
-
}),
|
|
3439
|
+
}), C2 = ["for"], m2 = {
|
|
3408
3440
|
key: 0,
|
|
3409
3441
|
class: "vt-select__required"
|
|
3410
|
-
},
|
|
3442
|
+
}, _2 = { class: "vt-select__field" }, g2 = { class: "vt-select__tag-text" }, w2 = {
|
|
3411
3443
|
key: 0,
|
|
3412
3444
|
class: "vt-select__tag vt-select__tag--collapsed"
|
|
3413
|
-
},
|
|
3445
|
+
}, k2 = { class: "vt-select__tag-text" }, y2 = {
|
|
3414
3446
|
key: 1,
|
|
3415
3447
|
class: "vt-select__display-text"
|
|
3416
|
-
},
|
|
3448
|
+
}, b2 = { key: 1 }, $2 = {
|
|
3417
3449
|
key: 2,
|
|
3418
3450
|
class: "vt-select__placeholder"
|
|
3419
|
-
},
|
|
3451
|
+
}, M2 = { class: "vt-select__suffix" }, x2 = ["disabled"], L2 = {
|
|
3420
3452
|
key: 0,
|
|
3421
3453
|
class: "vt-select__help"
|
|
3422
|
-
},
|
|
3454
|
+
}, V2 = {
|
|
3423
3455
|
"aria-hidden": "true",
|
|
3424
3456
|
style: { display: "none" }
|
|
3425
|
-
},
|
|
3457
|
+
}, S2 = ["aria-multiselectable"], D2 = {
|
|
3426
3458
|
key: 0,
|
|
3427
3459
|
class: "vt-select-dropdown__search"
|
|
3428
|
-
},
|
|
3460
|
+
}, H2 = {
|
|
3429
3461
|
key: 1,
|
|
3430
3462
|
class: "vt-select-dropdown__empty"
|
|
3431
|
-
},
|
|
3463
|
+
}, T2 = { key: 0 }, I2 = { key: 1 }, B2 = ["aria-disabled", "aria-selected", "onClick"], E2 = { class: "vt-option__text" }, A2 = { key: 1 }, j2 = {
|
|
3432
3464
|
key: 0,
|
|
3433
3465
|
class: "vt-select-dropdown__loading"
|
|
3434
|
-
},
|
|
3466
|
+
}, P2 = {
|
|
3435
3467
|
key: 2,
|
|
3436
3468
|
class: "vt-select__help"
|
|
3437
|
-
},
|
|
3469
|
+
}, R2 = {
|
|
3438
3470
|
key: 0,
|
|
3439
3471
|
class: "vt-select__error"
|
|
3440
3472
|
}, j1 = 300, ot = /* @__PURE__ */ we({
|
|
@@ -3541,7 +3573,7 @@ const t3 = ["for"], n3 = {
|
|
|
3541
3573
|
}
|
|
3542
3574
|
}), ue = {
|
|
3543
3575
|
validate() {
|
|
3544
|
-
const u =
|
|
3576
|
+
const u = n2(
|
|
3545
3577
|
t.modelValue,
|
|
3546
3578
|
se.value,
|
|
3547
3579
|
t.required || !1,
|
|
@@ -3552,7 +3584,7 @@ const t3 = ["for"], n3 = {
|
|
|
3552
3584
|
clear() {
|
|
3553
3585
|
_.validationErrors.value = [], _.isValid.value = !0, i("validation", { isValid: !0, errors: [] });
|
|
3554
3586
|
}
|
|
3555
|
-
}, se = L(() => t.multiple), ce = L(() => E.value.length ?
|
|
3587
|
+
}, se = L(() => t.multiple), ce = L(() => E.value.length ? G3(t.modelValue, E.value, se.value, t.valueKey) : []), Be = L(() => !t.multiple || ce.value.length === 0 ? [] : t.collapsedTags ? ce.value.slice(0, _.visibleCount.value) : ce.value), Oe = L(() => {
|
|
3556
3588
|
if (se.value) return "";
|
|
3557
3589
|
const u = ce.value[0];
|
|
3558
3590
|
return u ? u.label : t.modelValue && typeof t.modelValue == "object" ? t.modelValue.label ? t.modelValue.label : t.modelValue.name ? t.modelValue.name : JSON.stringify(t.modelValue) : t.modelValue !== void 0 && t.modelValue !== null && t.modelValue !== "" && !Array.isArray(t.modelValue) ? String(t.modelValue) : "";
|
|
@@ -3573,7 +3605,7 @@ const t3 = ["for"], n3 = {
|
|
|
3573
3605
|
})), We = L(() => ce.value.length - _.visibleCount.value), k = L(() => t.collapsedTags && t.multiple && ce.value.length > 0 && _.visibleCount.value < ce.value.length), Y = L(() => {
|
|
3574
3606
|
if (!k.value) return "";
|
|
3575
3607
|
const u = ce.value.slice(_.visibleCount.value);
|
|
3576
|
-
return
|
|
3608
|
+
return s2(We.value, u);
|
|
3577
3609
|
}), W = (u) => {
|
|
3578
3610
|
var ee, z;
|
|
3579
3611
|
if (!J.value) return;
|
|
@@ -3581,16 +3613,16 @@ const t3 = ["for"], n3 = {
|
|
|
3581
3613
|
(ee = c.value) != null && ee.contains(C) || (z = p.value) != null && z.contains(C) || P();
|
|
3582
3614
|
}, be = (u) => {
|
|
3583
3615
|
if (!u || u.disabled) return;
|
|
3584
|
-
const C =
|
|
3616
|
+
const C = J3(u, t.modelValue, se.value, t.valueKey);
|
|
3585
3617
|
i("update:modelValue", C), i("change", C), se.value || P(), t.validateOnInput && ue.validate();
|
|
3586
3618
|
}, He = (u, C) => {
|
|
3587
3619
|
u.disabled || be(u);
|
|
3588
3620
|
}, Ae = () => {
|
|
3589
|
-
const u =
|
|
3621
|
+
const u = t2(se.value);
|
|
3590
3622
|
i("update:modelValue", u), i("change", u), i("clear"), ue.clear();
|
|
3591
3623
|
}, Ze = (u) => {
|
|
3592
3624
|
if (!se.value) return;
|
|
3593
|
-
const C =
|
|
3625
|
+
const C = e2(u, t.modelValue, t.valueKey);
|
|
3594
3626
|
i("update:modelValue", C), i("change", C), i("remove-tag", u), t.validateOnInput && ue.validate();
|
|
3595
3627
|
}, Qe = () => {
|
|
3596
3628
|
t.disabled || K();
|
|
@@ -3609,14 +3641,14 @@ const t3 = ["for"], n3 = {
|
|
|
3609
3641
|
_.filterQuery.value = "", i("filter", ""), i("filter-clear");
|
|
3610
3642
|
}, _e = (u) => {
|
|
3611
3643
|
u.key === "Enter" || u.key === " " ? (u.preventDefault(), Qe()) : u.key === "Escape" && J.value && (u.preventDefault(), P());
|
|
3612
|
-
}, me = (u) =>
|
|
3644
|
+
}, me = (u) => Q3(u, t.modelValue, se.value, t.valueKey), ve = () => {
|
|
3613
3645
|
if (!t.collapsedTags || !f.value || ce.value.length === 0) {
|
|
3614
3646
|
_.visibleCount.value = ce.value.length;
|
|
3615
3647
|
return;
|
|
3616
3648
|
}
|
|
3617
3649
|
Te(() => {
|
|
3618
3650
|
if (!f.value) return;
|
|
3619
|
-
const u =
|
|
3651
|
+
const u = o2(f.value, v.value, ce.value.length);
|
|
3620
3652
|
_.visibleCount.value = u;
|
|
3621
3653
|
});
|
|
3622
3654
|
}, M = {
|
|
@@ -3730,8 +3762,8 @@ const t3 = ["for"], n3 = {
|
|
|
3730
3762
|
class: "vt-select__label"
|
|
3731
3763
|
}, [
|
|
3732
3764
|
$e(R(u.label) + " ", 1),
|
|
3733
|
-
u.required ? (l(), a("span",
|
|
3734
|
-
], 8,
|
|
3765
|
+
u.required ? (l(), a("span", m2, "*")) : Z("", !0)
|
|
3766
|
+
], 8, C2)) : Z("", !0),
|
|
3735
3767
|
o("div", {
|
|
3736
3768
|
ref_key: "triggerRef",
|
|
3737
3769
|
ref: d,
|
|
@@ -3742,7 +3774,7 @@ const t3 = ["for"], n3 = {
|
|
|
3742
3774
|
onFocus: e1,
|
|
3743
3775
|
onKeydown: _e
|
|
3744
3776
|
}, [
|
|
3745
|
-
o("div",
|
|
3777
|
+
o("div", _2, [
|
|
3746
3778
|
u.multiple && ce.value.length > 0 ? (l(), a("div", {
|
|
3747
3779
|
key: 0,
|
|
3748
3780
|
ref_key: "containerRef",
|
|
@@ -3755,7 +3787,7 @@ const t3 = ["for"], n3 = {
|
|
|
3755
3787
|
ref: (ke) => ke && (v.value[le] = ke),
|
|
3756
3788
|
class: "vt-select__tag"
|
|
3757
3789
|
}, [
|
|
3758
|
-
o("span",
|
|
3790
|
+
o("span", g2, R(z.label), 1),
|
|
3759
3791
|
t.disabled ? Z("", !0) : (l(), ge(fe, {
|
|
3760
3792
|
key: 0,
|
|
3761
3793
|
class: "vt-select__tag-close",
|
|
@@ -3763,19 +3795,19 @@ const t3 = ["for"], n3 = {
|
|
|
3763
3795
|
onClick: Ve((ke) => Ze(z.value), ["stop"])
|
|
3764
3796
|
}, null, 8, ["onClick"]))
|
|
3765
3797
|
]))), 128)),
|
|
3766
|
-
k.value ? i1((l(), a("div",
|
|
3767
|
-
o("span",
|
|
3798
|
+
k.value ? i1((l(), a("div", w2, [
|
|
3799
|
+
o("span", k2, "+" + R(We.value), 1)
|
|
3768
3800
|
])), [
|
|
3769
3801
|
[ee, Y.value]
|
|
3770
3802
|
]) : Z("", !0)
|
|
3771
|
-
], 512)) : !u.multiple && Oe.value ? (l(), a("span",
|
|
3803
|
+
], 512)) : !u.multiple && Oe.value ? (l(), a("span", y2, [
|
|
3772
3804
|
u.$slots.selected && ce.value[0] ? Se(u.$slots, "selected", {
|
|
3773
3805
|
key: 0,
|
|
3774
3806
|
option: ce.value[0]
|
|
3775
|
-
}) : (l(), a("span",
|
|
3776
|
-
])) : (l(), a("span",
|
|
3807
|
+
}) : (l(), a("span", b2, R(Oe.value), 1))
|
|
3808
|
+
])) : (l(), a("span", $2, R(u.placeholder), 1))
|
|
3777
3809
|
]),
|
|
3778
|
-
o("div",
|
|
3810
|
+
o("div", M2, [
|
|
3779
3811
|
u.loading ? (l(), ge(g1, {
|
|
3780
3812
|
key: 0,
|
|
3781
3813
|
class: "vt-select__loading"
|
|
@@ -3787,7 +3819,7 @@ const t3 = ["for"], n3 = {
|
|
|
3787
3819
|
onClick: Ve(Ae, ["stop"])
|
|
3788
3820
|
}, [
|
|
3789
3821
|
ne(fe, { name: "close" })
|
|
3790
|
-
], 8,
|
|
3822
|
+
], 8, x2)) : (l(), ge(fe, {
|
|
3791
3823
|
key: 2,
|
|
3792
3824
|
class: G([{ "vt-select__arrow--open": O(J) }, "vt-select__icon vt-select__arrow"]),
|
|
3793
3825
|
name: "arrowDown"
|
|
@@ -3796,7 +3828,7 @@ const t3 = ["for"], n3 = {
|
|
|
3796
3828
|
], 544),
|
|
3797
3829
|
ne(d1, { name: "fade" }, {
|
|
3798
3830
|
default: xe(() => [
|
|
3799
|
-
_.validationErrors && _.validationErrors.value.length ? (l(), a("div",
|
|
3831
|
+
_.validationErrors && _.validationErrors.value.length ? (l(), a("div", L2, [
|
|
3800
3832
|
(l(!0), a(ie, null, pe(_.validationErrors.value, (z, le) => (l(), a("div", {
|
|
3801
3833
|
key: `error-${le}`,
|
|
3802
3834
|
class: "vt-select__error"
|
|
@@ -3805,7 +3837,7 @@ const t3 = ["for"], n3 = {
|
|
|
3805
3837
|
]),
|
|
3806
3838
|
_: 1
|
|
3807
3839
|
}),
|
|
3808
|
-
o("div",
|
|
3840
|
+
o("div", V2, [
|
|
3809
3841
|
Se(u.$slots, "default")
|
|
3810
3842
|
]),
|
|
3811
3843
|
O(J) && O(he) ? (l(), ge(a1, {
|
|
@@ -3826,7 +3858,7 @@ const t3 = ["for"], n3 = {
|
|
|
3826
3858
|
onMousedown: C[3] || (C[3] = Ve(() => {
|
|
3827
3859
|
}, ["prevent"]))
|
|
3828
3860
|
}, [
|
|
3829
|
-
u.filterable ? (l(), a("div",
|
|
3861
|
+
u.filterable ? (l(), a("div", D2, [
|
|
3830
3862
|
ne(nt, {
|
|
3831
3863
|
ref_key: "filterInputRef",
|
|
3832
3864
|
ref: g,
|
|
@@ -3839,8 +3871,8 @@ const t3 = ["for"], n3 = {
|
|
|
3839
3871
|
onInput: X
|
|
3840
3872
|
}, null, 8, ["modelValue", "placeholder"])
|
|
3841
3873
|
])) : Z("", !0),
|
|
3842
|
-
D.value.length === 0 ? (l(), a("div",
|
|
3843
|
-
_.filterQuery.value ? (l(), a("span",
|
|
3874
|
+
D.value.length === 0 ? (l(), a("div", H2, [
|
|
3875
|
+
_.filterQuery.value ? (l(), a("span", T2, 'Немає результатів для "' + R(_.filterQuery.value) + '"', 1)) : (l(), a("span", I2, R(u.noDataText), 1))
|
|
3844
3876
|
])) : (l(), a("div", {
|
|
3845
3877
|
key: 2,
|
|
3846
3878
|
ref_key: "scrollContainerRef",
|
|
@@ -3872,27 +3904,27 @@ const t3 = ["for"], n3 = {
|
|
|
3872
3904
|
tabindex: "-1",
|
|
3873
3905
|
onChange: (le) => He(z)
|
|
3874
3906
|
}, null, 8, ["checked", "disabled", "onChange"])) : Z("", !0),
|
|
3875
|
-
o("span",
|
|
3876
|
-
T(z.value) ? (l(), ge(w1(T(z.value)), { key: 0 })) : (l(), a("span",
|
|
3907
|
+
o("span", E2, [
|
|
3908
|
+
T(z.value) ? (l(), ge(w1(T(z.value)), { key: 0 })) : (l(), a("span", A2, R(z.label || z.value), 1))
|
|
3877
3909
|
])
|
|
3878
|
-
], 42,
|
|
3879
|
-
u.loading ? (l(), a("div",
|
|
3910
|
+
], 42, B2))), 128)),
|
|
3911
|
+
u.loading ? (l(), a("div", j2, [
|
|
3880
3912
|
ne(g1, { class: "vt-select-dropdown__loading-icon" }),
|
|
3881
3913
|
$e(" " + R(t.loadingText), 1)
|
|
3882
3914
|
])) : Z("", !0)
|
|
3883
3915
|
], 544))
|
|
3884
|
-
], 44,
|
|
3916
|
+
], 44, S2)
|
|
3885
3917
|
]),
|
|
3886
3918
|
_: 1
|
|
3887
3919
|
})
|
|
3888
3920
|
])) : Z("", !0),
|
|
3889
|
-
Fe.value ? (l(), a("div",
|
|
3890
|
-
Fe.value ? (l(), a("span",
|
|
3921
|
+
Fe.value ? (l(), a("div", P2, [
|
|
3922
|
+
Fe.value ? (l(), a("span", R2, R(Fe.value), 1)) : Z("", !0)
|
|
3891
3923
|
])) : Z("", !0)
|
|
3892
3924
|
], 2);
|
|
3893
3925
|
};
|
|
3894
3926
|
}
|
|
3895
|
-
}),
|
|
3927
|
+
}), F2 = { style: { display: "none" } }, st = /* @__PURE__ */ we({
|
|
3896
3928
|
__name: "VOption",
|
|
3897
3929
|
props: {
|
|
3898
3930
|
label: {},
|
|
@@ -3915,11 +3947,11 @@ const t3 = ["for"], n3 = {
|
|
|
3915
3947
|
}
|
|
3916
3948
|
}), Q1(() => {
|
|
3917
3949
|
i && i.unregisterOption(r.value);
|
|
3918
|
-
}), (d, p) => (l(), a("div",
|
|
3950
|
+
}), (d, p) => (l(), a("div", F2, [
|
|
3919
3951
|
Se(d.$slots, "default")
|
|
3920
3952
|
]));
|
|
3921
3953
|
}
|
|
3922
|
-
}),
|
|
3954
|
+
}), Z2 = { class: "vt-pagination" }, z2 = { class: "vt-pagination__info" }, O2 = { class: "vt-pagination__rows-per-page" }, Y2 = { class: "vt-pagination__navigation" }, N2 = ["disabled"], W2 = ["onClick"], q2 = ["disabled"], U2 = /* @__PURE__ */ we({
|
|
3923
3955
|
__name: "VPagination",
|
|
3924
3956
|
props: {
|
|
3925
3957
|
totalItems: {},
|
|
@@ -3971,9 +4003,9 @@ const t3 = ["for"], n3 = {
|
|
|
3971
4003
|
() => {
|
|
3972
4004
|
i.value > d.value && d.value > 0 && (i.value = d.value, _());
|
|
3973
4005
|
}
|
|
3974
|
-
), (S, T) => (l(), a("div",
|
|
3975
|
-
o("div",
|
|
3976
|
-
o("div",
|
|
4006
|
+
), (S, T) => (l(), a("div", Z2, [
|
|
4007
|
+
o("div", z2, [
|
|
4008
|
+
o("div", O2, [
|
|
3977
4009
|
T[1] || (T[1] = o("label", {
|
|
3978
4010
|
class: "vt-pagination__label",
|
|
3979
4011
|
for: "rowsSelect"
|
|
@@ -4002,28 +4034,28 @@ const t3 = ["for"], n3 = {
|
|
|
4002
4034
|
]),
|
|
4003
4035
|
o("span", null, R(p.value) + " - " + R(f.value) + " з " + R(S.totalItems), 1)
|
|
4004
4036
|
]),
|
|
4005
|
-
o("div",
|
|
4037
|
+
o("div", Y2, [
|
|
4006
4038
|
o("button", {
|
|
4007
4039
|
class: G({ "vt-pagination__nav-button": !0, "has-items": !v.value }),
|
|
4008
4040
|
disabled: v.value,
|
|
4009
4041
|
onClick: s
|
|
4010
4042
|
}, [
|
|
4011
4043
|
ne(fe, { name: "arrowLeft" })
|
|
4012
|
-
], 10,
|
|
4044
|
+
], 10, N2),
|
|
4013
4045
|
(l(!0), a(ie, null, pe(g.value, (U) => (l(), a("button", {
|
|
4014
4046
|
key: U,
|
|
4015
4047
|
class: G([{
|
|
4016
4048
|
"vt-pagination__nav-button--active": U === i.value
|
|
4017
4049
|
}, "vt-pagination__nav-button"]),
|
|
4018
4050
|
onClick: (q) => b(U)
|
|
4019
|
-
}, R(U), 11,
|
|
4051
|
+
}, R(U), 11, W2))), 128)),
|
|
4020
4052
|
o("button", {
|
|
4021
4053
|
class: G({ "vt-pagination__nav-button": !0, "has-items": !h.value }),
|
|
4022
4054
|
disabled: h.value,
|
|
4023
4055
|
onClick: N
|
|
4024
4056
|
}, [
|
|
4025
4057
|
ne(fe, { name: "arrowRight" })
|
|
4026
|
-
], 10,
|
|
4058
|
+
], 10, q2)
|
|
4027
4059
|
]),
|
|
4028
4060
|
o("div", null, [
|
|
4029
4061
|
ne(Je, {
|
|
@@ -4042,7 +4074,7 @@ const t3 = ["for"], n3 = {
|
|
|
4042
4074
|
])
|
|
4043
4075
|
]));
|
|
4044
4076
|
}
|
|
4045
|
-
}),
|
|
4077
|
+
}), K2 = ["for"], X2 = ["id", "checked", "disabled", "name", "required", "value"], Q2 = /* @__PURE__ */ we({
|
|
4046
4078
|
__name: "VRadiobox",
|
|
4047
4079
|
props: {
|
|
4048
4080
|
modelValue: { default: void 0 },
|
|
@@ -4089,7 +4121,7 @@ const t3 = ["for"], n3 = {
|
|
|
4089
4121
|
onBlur: v,
|
|
4090
4122
|
onChange: p,
|
|
4091
4123
|
onFocus: f
|
|
4092
|
-
}, null, 40,
|
|
4124
|
+
}, null, 40, X2),
|
|
4093
4125
|
o("div", {
|
|
4094
4126
|
class: G([
|
|
4095
4127
|
"vt-radiobox__circle",
|
|
@@ -4123,10 +4155,10 @@ const t3 = ["for"], n3 = {
|
|
|
4123
4155
|
])
|
|
4124
4156
|
])
|
|
4125
4157
|
], 2)) : Z("", !0)
|
|
4126
|
-
], 10,
|
|
4158
|
+
], 10, K2));
|
|
4127
4159
|
}
|
|
4128
4160
|
});
|
|
4129
|
-
function
|
|
4161
|
+
function G2(n) {
|
|
4130
4162
|
const e = L(() => {
|
|
4131
4163
|
const i = n.filter((p) => p.pinnedLeft), c = n.filter((p) => p.pinnedRight), d = n.filter((p) => !p.pinnedLeft && !p.pinnedRight);
|
|
4132
4164
|
return [...i, ...d, ...c];
|
|
@@ -4157,7 +4189,7 @@ function U3(n) {
|
|
|
4157
4189
|
}
|
|
4158
4190
|
};
|
|
4159
4191
|
}
|
|
4160
|
-
function
|
|
4192
|
+
function J2(n) {
|
|
4161
4193
|
const e = () => {
|
|
4162
4194
|
const c = {};
|
|
4163
4195
|
return n.maxHeight && (c.maxHeight = `${n.maxHeight}px`), c;
|
|
@@ -4186,7 +4218,7 @@ function K3(n) {
|
|
|
4186
4218
|
}
|
|
4187
4219
|
};
|
|
4188
4220
|
}
|
|
4189
|
-
function
|
|
4221
|
+
function e5() {
|
|
4190
4222
|
const n = B({
|
|
4191
4223
|
resizingCol: null,
|
|
4192
4224
|
startX: 0,
|
|
@@ -4214,7 +4246,7 @@ function X3() {
|
|
|
4214
4246
|
resizeState: n
|
|
4215
4247
|
};
|
|
4216
4248
|
}
|
|
4217
|
-
function
|
|
4249
|
+
function t5(n, e, r, t) {
|
|
4218
4250
|
var oe;
|
|
4219
4251
|
const i = n.selectionKey || "id", c = B([]), d = B(null), p = B(!1);
|
|
4220
4252
|
(oe = n.defaultSelection) != null && oe.length && (c.value = [...n.defaultSelection]);
|
|
@@ -4292,7 +4324,7 @@ function Q3(n, e, r, t) {
|
|
|
4292
4324
|
selectAbsolutelyAll: T
|
|
4293
4325
|
};
|
|
4294
4326
|
}
|
|
4295
|
-
const
|
|
4327
|
+
const n5 = (n, e, r = "asc") => {
|
|
4296
4328
|
if (n == null && e == null) return 0;
|
|
4297
4329
|
if (n == null) return r === "asc" ? 1 : -1;
|
|
4298
4330
|
if (e == null) return r === "asc" ? -1 : 1;
|
|
@@ -4303,7 +4335,7 @@ const G3 = (n, e, r = "asc") => {
|
|
|
4303
4335
|
numeric: !0,
|
|
4304
4336
|
sensitivity: "base"
|
|
4305
4337
|
}), r === "desc" ? -t : t;
|
|
4306
|
-
}, P1 = (n) => n instanceof Date ? !isNaN(n.getTime()) : typeof n == "string" && /\d{4}-\d{2}-\d{2}|\//.test(n) ? !isNaN(new Date(n).getTime()) : !1,
|
|
4338
|
+
}, P1 = (n) => n instanceof Date ? !isNaN(n.getTime()) : typeof n == "string" && /\d{4}-\d{2}-\d{2}|\//.test(n) ? !isNaN(new Date(n).getTime()) : !1, o5 = (n, e, r) => {
|
|
4307
4339
|
n.sortable && r({
|
|
4308
4340
|
prop: n.prop,
|
|
4309
4341
|
direction: e
|
|
@@ -4314,11 +4346,11 @@ const G3 = (n, e, r = "asc") => {
|
|
|
4314
4346
|
asc: ["vt-th__sort-icon", r && t === "asc" && "vt-th__sortable-active"].filter(Boolean).join(" "),
|
|
4315
4347
|
desc: ["vt-th__sort-icon", r && t === "desc" && "vt-th__sortable-active"].filter(Boolean).join(" ")
|
|
4316
4348
|
};
|
|
4317
|
-
},
|
|
4349
|
+
}, s5 = (n, e, r) => {
|
|
4318
4350
|
if (!e) return [...n];
|
|
4319
4351
|
const t = r.find((c) => c.prop === e.prop);
|
|
4320
4352
|
if (!(t != null && t.sortable)) return [...n];
|
|
4321
|
-
const i = t.sortMethod ||
|
|
4353
|
+
const i = t.sortMethod || n5;
|
|
4322
4354
|
return [...n].sort((c, d) => {
|
|
4323
4355
|
const p = c[t.prop], f = d[t.prop];
|
|
4324
4356
|
return i(p, f, e.direction);
|
|
@@ -4456,7 +4488,7 @@ const G3 = (n, e, r = "asc") => {
|
|
|
4456
4488
|
], 2));
|
|
4457
4489
|
}
|
|
4458
4490
|
});
|
|
4459
|
-
class
|
|
4491
|
+
class r5 {
|
|
4460
4492
|
constructor() {
|
|
4461
4493
|
this.modalStack = [], this.baseZIndex = 1e3, this.parentApp = null;
|
|
4462
4494
|
}
|
|
@@ -4550,7 +4582,7 @@ class t5 {
|
|
|
4550
4582
|
recalculateZIndices() {
|
|
4551
4583
|
}
|
|
4552
4584
|
}
|
|
4553
|
-
const Ge = new
|
|
4585
|
+
const Ge = new r5(), l5 = {
|
|
4554
4586
|
install(n) {
|
|
4555
4587
|
Ge.setParentApp(n), n.config.globalProperties.$modal = Ge, n.config.globalProperties.$modalStack = {
|
|
4556
4588
|
closeAll: () => Ge.closeAll(),
|
|
@@ -4558,16 +4590,16 @@ const Ge = new t5(), n5 = {
|
|
|
4558
4590
|
closeById: (e) => Ge.closeById(e)
|
|
4559
4591
|
};
|
|
4560
4592
|
}
|
|
4561
|
-
},
|
|
4593
|
+
}, i5 = { class: "vt-columns-selector-body" }, a5 = { class: "vt-columns-selector" }, u5 = { class: "vt-columns-selector__panel" }, c5 = ["draggable", "onDragstart", "onDragover", "onDrop"], d5 = {
|
|
4562
4594
|
key: 0,
|
|
4563
4595
|
class: "vt-columns-selector__panel-item-pinned"
|
|
4564
|
-
},
|
|
4596
|
+
}, h5 = { class: "vt-columns-selector__available" }, p5 = ["onClick"], v5 = {
|
|
4565
4597
|
key: 0,
|
|
4566
4598
|
class: "vt-columns-selector__group-columns"
|
|
4567
|
-
},
|
|
4599
|
+
}, f5 = {
|
|
4568
4600
|
key: 0,
|
|
4569
4601
|
class: "vt-columns-selector__pinned-note"
|
|
4570
|
-
},
|
|
4602
|
+
}, C5 = { class: "vt-modal__content-button" }, m5 = /* @__PURE__ */ we({
|
|
4571
4603
|
__name: "VTableColumnSelector",
|
|
4572
4604
|
props: {
|
|
4573
4605
|
columns: {},
|
|
@@ -4676,9 +4708,9 @@ const Ge = new t5(), n5 = {
|
|
|
4676
4708
|
};
|
|
4677
4709
|
return ze(() => {
|
|
4678
4710
|
E();
|
|
4679
|
-
}), (I, P) => (l(), a("div",
|
|
4680
|
-
o("div",
|
|
4681
|
-
o("div",
|
|
4711
|
+
}), (I, P) => (l(), a("div", i5, [
|
|
4712
|
+
o("div", a5, [
|
|
4713
|
+
o("div", u5, [
|
|
4682
4714
|
(l(!0), a(ie, null, pe(i.value, (K, re) => (l(), a("div", {
|
|
4683
4715
|
key: K.prop,
|
|
4684
4716
|
class: G(q(re)),
|
|
@@ -4701,10 +4733,10 @@ const Ge = new t5(), n5 = {
|
|
|
4701
4733
|
onClick: P[0] || (P[0] = Ve(() => {
|
|
4702
4734
|
}, ["stop"]))
|
|
4703
4735
|
}, null, 8, ["label", "disabled", "onChange"]),
|
|
4704
|
-
g(K) ? (l(), a("span",
|
|
4705
|
-
], 42,
|
|
4736
|
+
g(K) ? (l(), a("span", d5, "pinned")) : Z("", !0)
|
|
4737
|
+
], 42, c5))), 128))
|
|
4706
4738
|
]),
|
|
4707
|
-
o("div",
|
|
4739
|
+
o("div", h5, [
|
|
4708
4740
|
(l(!0), a(ie, null, pe(h.value, (K) => {
|
|
4709
4741
|
var re, ue;
|
|
4710
4742
|
return l(), a("div", {
|
|
@@ -4728,8 +4760,8 @@ const Ge = new t5(), n5 = {
|
|
|
4728
4760
|
name: K.icon,
|
|
4729
4761
|
class: "vt-columns-selector__group-icon"
|
|
4730
4762
|
}, null, 8, ["name"])) : Z("", !0)
|
|
4731
|
-
], 8,
|
|
4732
|
-
c.value.has(K.name) ? (l(), a("div",
|
|
4763
|
+
], 8, p5),
|
|
4764
|
+
c.value.has(K.name) ? (l(), a("div", v5, [
|
|
4733
4765
|
(l(!0), a(ie, null, pe(K.columns, (se) => (l(), a("div", {
|
|
4734
4766
|
key: se.prop,
|
|
4735
4767
|
class: "vt-columns-selector__group-column"
|
|
@@ -4740,14 +4772,14 @@ const Ge = new t5(), n5 = {
|
|
|
4740
4772
|
disabled: !A(se),
|
|
4741
4773
|
onChange: (ce) => D(se, ce)
|
|
4742
4774
|
}, null, 8, ["label", "checked", "disabled", "onChange"]),
|
|
4743
|
-
A(se) ? Z("", !0) : (l(), a("span",
|
|
4775
|
+
A(se) ? Z("", !0) : (l(), a("span", f5, " (закріплена) "))
|
|
4744
4776
|
]))), 128))
|
|
4745
4777
|
])) : Z("", !0)
|
|
4746
4778
|
]);
|
|
4747
4779
|
}), 128))
|
|
4748
4780
|
])
|
|
4749
4781
|
]),
|
|
4750
|
-
o("div",
|
|
4782
|
+
o("div", C5, [
|
|
4751
4783
|
ne(Je, { onClick: Ce }, {
|
|
4752
4784
|
default: xe(() => P[2] || (P[2] = [
|
|
4753
4785
|
$e("Скасувати", -1)
|
|
@@ -4768,7 +4800,7 @@ const Ge = new t5(), n5 = {
|
|
|
4768
4800
|
])
|
|
4769
4801
|
]));
|
|
4770
4802
|
}
|
|
4771
|
-
}),
|
|
4803
|
+
}), _5 = { class: "vt-table-header-actions" }, g5 = /* @__PURE__ */ we({
|
|
4772
4804
|
__name: "ColumnActions",
|
|
4773
4805
|
props: {
|
|
4774
4806
|
column: {},
|
|
@@ -4819,7 +4851,7 @@ const Ge = new t5(), n5 = {
|
|
|
4819
4851
|
console.log("handleToggleVisibility called");
|
|
4820
4852
|
const h = f(r.allColumns);
|
|
4821
4853
|
Ge.open({
|
|
4822
|
-
component:
|
|
4854
|
+
component: m5,
|
|
4823
4855
|
title: "Управління колонками таблиці",
|
|
4824
4856
|
props: {
|
|
4825
4857
|
columns: r.allColumns,
|
|
@@ -4857,23 +4889,23 @@ const Ge = new t5(), n5 = {
|
|
|
4857
4889
|
})
|
|
4858
4890
|
]),
|
|
4859
4891
|
default: xe(() => [
|
|
4860
|
-
o("div",
|
|
4892
|
+
o("div", _5, [
|
|
4861
4893
|
ne(fe, { name: "listBullet" })
|
|
4862
4894
|
])
|
|
4863
4895
|
]),
|
|
4864
4896
|
_: 1
|
|
4865
4897
|
}));
|
|
4866
4898
|
}
|
|
4867
|
-
}),
|
|
4899
|
+
}), w5 = { class: "vt-table" }, k5 = { key: 0 }, y5 = { class: "vt-th__content" }, b5 = { class: "vt-th__content" }, $5 = { class: "vt-th__label" }, M5 = {
|
|
4868
4900
|
key: 0,
|
|
4869
4901
|
class: "vt-th__sortable"
|
|
4870
|
-
},
|
|
4902
|
+
}, x5 = ["data-resizer", "onMousedown"], L5 = {
|
|
4871
4903
|
key: 0,
|
|
4872
4904
|
class: "vt-table__empty-row"
|
|
4873
|
-
},
|
|
4905
|
+
}, V5 = ["colspan"], S5 = { class: "vt-table__empty-content" }, D5 = ["onClick"], H5 = { class: "vt-table__cell-content" }, T5 = { class: "vt-table__cell-content vt-table__cell-content--ellipsis" }, I5 = { key: 1 }, B5 = ["data-resizer", "onMousedown"], E5 = {
|
|
4874
4906
|
key: 1,
|
|
4875
4907
|
class: "vt-table__summary"
|
|
4876
|
-
},
|
|
4908
|
+
}, A5 = { class: "vt-table__cell-content vt-table__cell-content--summary" }, $1 = 50, j5 = /* @__PURE__ */ we({
|
|
4877
4909
|
__name: "VTable",
|
|
4878
4910
|
props: /* @__PURE__ */ B1({
|
|
4879
4911
|
data: {},
|
|
@@ -4902,7 +4934,7 @@ const Ge = new t5(), n5 = {
|
|
|
4902
4934
|
}),
|
|
4903
4935
|
emits: /* @__PURE__ */ B1(["sort-change", "selection-change", "current-change", "row-click", "update:columns", "column-pin", "column-resize", "column-visibility", "column-sort", "columns-change", "infinity-scroll"], ["update:columns"]),
|
|
4904
4936
|
setup(n, { expose: e, emit: r }) {
|
|
4905
|
-
const t = n, i = r, c = mt(n, "columns"), d = B({}), p = B(), f = H1([]), v = B(t.defaultSort || null), h = L(() =>
|
|
4937
|
+
const t = n, i = r, c = mt(n, "columns"), d = B({}), p = B(), f = H1([]), v = B(t.defaultSort || null), h = L(() => s5(t.data || [], v.value, f)), g = L(() => c.value !== void 0), _ = L(() => t.data && t.data.length > 0), b = B(!1), s = B(0);
|
|
4906
4938
|
let N;
|
|
4907
4939
|
const j = (F, X) => t.rowKey && F[t.rowKey] != null ? String(F[t.rowKey]) : String(X);
|
|
4908
4940
|
Me(
|
|
@@ -4918,7 +4950,7 @@ const Ge = new t5(), n5 = {
|
|
|
4918
4950
|
},
|
|
4919
4951
|
{ deep: !0 }
|
|
4920
4952
|
), p1("vt-table-columns", f);
|
|
4921
|
-
const { sortedColumns: V, getDefaultColumnWidth: S, getStickyOffset: T } =
|
|
4953
|
+
const { sortedColumns: V, getDefaultColumnWidth: S, getStickyOffset: T } = G2(f), { getTableWrapperStyle: U, getColumnStyle: q, getHeaderStyle: E, getFooterStyle: D } = J2(t), { onMouseDown: Q } = e5(), oe = L(() => t.allData || t.data), A = t.selectable ? t5(t, h, i, oe) : null, J = () => ({
|
|
4922
4954
|
width: `${$1}px`,
|
|
4923
4955
|
minWidth: `${$1}px`,
|
|
4924
4956
|
maxWidth: `${$1}px`,
|
|
@@ -4957,7 +4989,7 @@ const Ge = new t5(), n5 = {
|
|
|
4957
4989
|
N && clearTimeout(N), p.value && p.value.removeEventListener("scroll", I);
|
|
4958
4990
|
});
|
|
4959
4991
|
const K = (F, X) => {
|
|
4960
|
-
|
|
4992
|
+
o5(F, X, (ae) => {
|
|
4961
4993
|
var _e, me;
|
|
4962
4994
|
((_e = v.value) == null ? void 0 : _e.prop) === F.prop && v.value.direction === X ? v.value = null : v.value = ae, i("sort-change", {
|
|
4963
4995
|
column: F,
|
|
@@ -5064,8 +5096,8 @@ const Ge = new t5(), n5 = {
|
|
|
5064
5096
|
onScroll: I
|
|
5065
5097
|
}, [
|
|
5066
5098
|
Se(F.$slots, "default"),
|
|
5067
|
-
o("table",
|
|
5068
|
-
t.hideHeader ? Z("", !0) : (l(), a("thead",
|
|
5099
|
+
o("table", w5, [
|
|
5100
|
+
t.hideHeader ? Z("", !0) : (l(), a("thead", k5, [
|
|
5069
5101
|
o("tr", null, [
|
|
5070
5102
|
t.selectable ? (l(), a("th", {
|
|
5071
5103
|
key: 0,
|
|
@@ -5075,7 +5107,7 @@ const Ge = new t5(), n5 = {
|
|
|
5075
5107
|
}, "vt-table__th vt-table__th--selection"]),
|
|
5076
5108
|
style: Ee(he())
|
|
5077
5109
|
}, [
|
|
5078
|
-
o("div",
|
|
5110
|
+
o("div", y5, [
|
|
5079
5111
|
ne(o1, {
|
|
5080
5112
|
checked: (_e = O(A)) == null ? void 0 : _e.isAllSelected.value,
|
|
5081
5113
|
indeterminate: (me = O(A)) == null ? void 0 : me.isIndeterminate.value,
|
|
@@ -5099,13 +5131,13 @@ const Ge = new t5(), n5 = {
|
|
|
5099
5131
|
]),
|
|
5100
5132
|
style: Ee(Fe(w, u))
|
|
5101
5133
|
}, [
|
|
5102
|
-
o("div",
|
|
5103
|
-
i1((l(), a("div",
|
|
5134
|
+
o("div", b5, [
|
|
5135
|
+
i1((l(), a("div", $5, [
|
|
5104
5136
|
$e(R(w.label), 1)
|
|
5105
5137
|
])), [
|
|
5106
5138
|
[ae, w.label]
|
|
5107
5139
|
]),
|
|
5108
|
-
w.sortable ? (l(), a("div",
|
|
5140
|
+
w.sortable ? (l(), a("div", M5, [
|
|
5109
5141
|
ne(fe, {
|
|
5110
5142
|
class: G(O(R1)(w, v.value).asc),
|
|
5111
5143
|
name: "arrowTop",
|
|
@@ -5117,7 +5149,7 @@ const Ge = new t5(), n5 = {
|
|
|
5117
5149
|
onClick: Ve((C) => K(w, "desc"), ["stop"])
|
|
5118
5150
|
}, null, 8, ["class", "onClick"])
|
|
5119
5151
|
])) : Z("", !0),
|
|
5120
|
-
w.actionColumn ? (l(), ge(
|
|
5152
|
+
w.actionColumn ? (l(), ge(g5, {
|
|
5121
5153
|
key: 1,
|
|
5122
5154
|
"all-columns": O(V),
|
|
5123
5155
|
column: w,
|
|
@@ -5130,7 +5162,7 @@ const Ge = new t5(), n5 = {
|
|
|
5130
5162
|
"data-resizer": w.prop,
|
|
5131
5163
|
class: "vt-table__resizer",
|
|
5132
5164
|
onMousedown: (C) => De(C, w)
|
|
5133
|
-
}, null, 40,
|
|
5165
|
+
}, null, 40, x5)
|
|
5134
5166
|
], 6))), 128))
|
|
5135
5167
|
])
|
|
5136
5168
|
])),
|
|
@@ -5157,7 +5189,7 @@ const Ge = new t5(), n5 = {
|
|
|
5157
5189
|
}, "vt-table__td vt-table__td--selection"]),
|
|
5158
5190
|
style: Ee(J())
|
|
5159
5191
|
}, [
|
|
5160
|
-
o("div",
|
|
5192
|
+
o("div", H5, [
|
|
5161
5193
|
ne(o1, {
|
|
5162
5194
|
checked: (z = O(A)) == null ? void 0 : z.isRowSelected(w),
|
|
5163
5195
|
onChange: (le, ke) => Be(le, w, ke)
|
|
@@ -5177,14 +5209,14 @@ const Ge = new t5(), n5 = {
|
|
|
5177
5209
|
]),
|
|
5178
5210
|
style: Ee(ye(le, ke))
|
|
5179
5211
|
}, [
|
|
5180
|
-
i1((l(), a("div",
|
|
5212
|
+
i1((l(), a("div", T5, [
|
|
5181
5213
|
le.renderSlot ? (l(), ge(w1(le.renderSlot), {
|
|
5182
5214
|
key: 0,
|
|
5183
5215
|
column: le,
|
|
5184
5216
|
index: u,
|
|
5185
5217
|
row: w,
|
|
5186
5218
|
value: w[le.prop]
|
|
5187
|
-
}, null, 8, ["column", "index", "row", "value"])) : (l(), a("span",
|
|
5219
|
+
}, null, 8, ["column", "index", "row", "value"])) : (l(), a("span", I5, R(w[le.prop]), 1))
|
|
5188
5220
|
])), [
|
|
5189
5221
|
[ae, le.showOverflowTooltip ? We(w, le) : null]
|
|
5190
5222
|
]),
|
|
@@ -5192,25 +5224,25 @@ const Ge = new t5(), n5 = {
|
|
|
5192
5224
|
"data-resizer": le.prop,
|
|
5193
5225
|
class: "vt-table__resizer",
|
|
5194
5226
|
onMousedown: (Le) => De(Le, le)
|
|
5195
|
-
}, null, 40,
|
|
5227
|
+
}, null, 40, B5)
|
|
5196
5228
|
], 6))), 128))
|
|
5197
|
-
], 10,
|
|
5198
|
-
}), 128)) : (l(), a("tr",
|
|
5229
|
+
], 10, D5);
|
|
5230
|
+
}), 128)) : (l(), a("tr", L5, [
|
|
5199
5231
|
o("td", {
|
|
5200
5232
|
colspan: O(V).length + (t.selectable ? 1 : 0),
|
|
5201
5233
|
class: "vt-table__empty-cell"
|
|
5202
5234
|
}, [
|
|
5203
|
-
o("div",
|
|
5235
|
+
o("div", S5, [
|
|
5204
5236
|
ne(fe, {
|
|
5205
5237
|
class: "vt-table__empty-icon",
|
|
5206
5238
|
name: "empty"
|
|
5207
5239
|
}),
|
|
5208
5240
|
X[0] || (X[0] = o("span", { class: "vt-table__empty-text" }, "Немає даних!", -1))
|
|
5209
5241
|
])
|
|
5210
|
-
], 8,
|
|
5242
|
+
], 8, V5)
|
|
5211
5243
|
]))
|
|
5212
5244
|
]),
|
|
5213
|
-
Y.value ? (l(), a("tfoot",
|
|
5245
|
+
Y.value ? (l(), a("tfoot", E5, [
|
|
5214
5246
|
o("tr", null, [
|
|
5215
5247
|
t.selectable ? (l(), a("td", {
|
|
5216
5248
|
key: 0,
|
|
@@ -5232,7 +5264,7 @@ const Ge = new t5(), n5 = {
|
|
|
5232
5264
|
]),
|
|
5233
5265
|
style: Ee(Ne(w, u))
|
|
5234
5266
|
}, [
|
|
5235
|
-
o("div",
|
|
5267
|
+
o("div", A5, R(k.value[w.prop]), 1)
|
|
5236
5268
|
], 6))), 128))
|
|
5237
5269
|
])
|
|
5238
5270
|
])) : Z("", !0)
|
|
@@ -5240,7 +5272,7 @@ const Ge = new t5(), n5 = {
|
|
|
5240
5272
|
], 36);
|
|
5241
5273
|
};
|
|
5242
5274
|
}
|
|
5243
|
-
}),
|
|
5275
|
+
}), P5 = /* @__PURE__ */ we({
|
|
5244
5276
|
__name: "VTableColumn",
|
|
5245
5277
|
props: {
|
|
5246
5278
|
prop: {},
|
|
@@ -5318,7 +5350,7 @@ const Ge = new t5(), n5 = {
|
|
|
5318
5350
|
}
|
|
5319
5351
|
}), (d, p) => null;
|
|
5320
5352
|
}
|
|
5321
|
-
}),
|
|
5353
|
+
}), A4 = {
|
|
5322
5354
|
yyyy: {
|
|
5323
5355
|
pattern: /yyyy/g,
|
|
5324
5356
|
replacement: (n) => String(n.getFullYear())
|
|
@@ -5363,7 +5395,7 @@ const Ge = new t5(), n5 = {
|
|
|
5363
5395
|
pattern: new RegExp("(?<!s)s(?!s)", "g"),
|
|
5364
5396
|
replacement: (n) => String(n.getSeconds())
|
|
5365
5397
|
}
|
|
5366
|
-
},
|
|
5398
|
+
}, R5 = [
|
|
5367
5399
|
"Січень",
|
|
5368
5400
|
"Лютий",
|
|
5369
5401
|
"Березень",
|
|
@@ -5376,7 +5408,7 @@ const Ge = new t5(), n5 = {
|
|
|
5376
5408
|
"Жовтень",
|
|
5377
5409
|
"Листопад",
|
|
5378
5410
|
"Грудень"
|
|
5379
|
-
], it = ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"],
|
|
5411
|
+
], it = ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"], j4 = ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"], M1 = ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], F5 = {
|
|
5380
5412
|
date: "yyyy-MM-dd",
|
|
5381
5413
|
datetime: "yyyy-MM-dd HH:mm:ss",
|
|
5382
5414
|
daterange: "yyyy-MM-dd",
|
|
@@ -5393,9 +5425,9 @@ const Ge = new t5(), n5 = {
|
|
|
5393
5425
|
return !isNaN(e.getTime());
|
|
5394
5426
|
}
|
|
5395
5427
|
return !1;
|
|
5396
|
-
},
|
|
5428
|
+
}, Z5 = (n) => Array.isArray(n) ? n.length === 0 || n.every((e) => !e) : !1, z5 = (n, e, r) => {
|
|
5397
5429
|
const t = [], i = ["daterange", "datetimerange", "monthrange", "yearrange"].includes(e);
|
|
5398
|
-
if (r && (n ? i &&
|
|
5430
|
+
if (r && (n ? i && Z5(n) && t.push("Це поле є обов'язковим") : t.push("Це поле є обов'язковим")), n)
|
|
5399
5431
|
if (i && !Array.isArray(n) ? t.push("Для діапазону очікується масив з двох дат") : !i && Array.isArray(n) && t.push("Для одиночного вибору очікується одна дата"), Array.isArray(n)) {
|
|
5400
5432
|
if (n.length !== 2)
|
|
5401
5433
|
t.push("Діапазон повинен містити дві дати");
|
|
@@ -5410,12 +5442,12 @@ const Ge = new t5(), n5 = {
|
|
|
5410
5442
|
isValid: t.length === 0,
|
|
5411
5443
|
errors: t
|
|
5412
5444
|
};
|
|
5413
|
-
},
|
|
5445
|
+
}, O5 = () => {
|
|
5414
5446
|
const n = (i, c) => {
|
|
5415
5447
|
if (!i || !(i instanceof Date) || isNaN(i.getTime())) return "";
|
|
5416
5448
|
const d = i.getFullYear(), p = i.getMonth(), f = i.getDate(), v = i.getHours(), h = v > 12 ? v - 12 : v === 0 ? 12 : v, g = i.getMinutes(), _ = i.getSeconds(), b = i.getTime();
|
|
5417
5449
|
let s = c;
|
|
5418
|
-
s = s.replace(/yyyy/g, String(d)), s = s.replace(/yy/g, String(d).slice(-2)), s = s.replace(/MMMM/g,
|
|
5450
|
+
s = s.replace(/yyyy/g, String(d)), s = s.replace(/yy/g, String(d).slice(-2)), s = s.replace(/MMMM/g, R5[p]), s = s.replace(/MMM/g, it[p]), s = s.replace(/MM/g, String(p + 1).padStart(2, "0")), s = s.replace(/M/g, String(p + 1));
|
|
5419
5451
|
const N = r(i);
|
|
5420
5452
|
return s = s.replace(/WW/g, String(N).padStart(2, "0")), s = s.replace(/W/g, String(N)), s = s.replace(/dd/g, String(f).padStart(2, "0")), s = s.replace(/d/g, String(f)), s = s.replace(/HH/g, String(v).padStart(2, "0")), s = s.replace(/H/g, String(v)), s = s.replace(/hh/g, String(h).padStart(2, "0")), s = s.replace(/h/g, String(h)), s = s.replace(/mm/g, String(g).padStart(2, "0")), s = s.replace(/m/g, String(g)), s = s.replace(/ss/g, String(_).padStart(2, "0")), s = s.replace(/s/g, String(_)), s = s.replace(/A/g, v >= 12 ? "PM" : "AM"), s = s.replace(/a/g, v >= 12 ? "pm" : "am"), s = s.replace(/timestamp/g, String(b)), s = s.replace(/\[([^\]]+)\]/g, "$1"), s;
|
|
5421
5453
|
}, e = (i) => {
|
|
@@ -5432,10 +5464,10 @@ const Ge = new t5(), n5 = {
|
|
|
5432
5464
|
formatDate: n,
|
|
5433
5465
|
parseDate: e,
|
|
5434
5466
|
getWeekOfYear: r,
|
|
5435
|
-
getDefaultFormat: (i) =>
|
|
5467
|
+
getDefaultFormat: (i) => F5[i] || "yyyy-MM-dd"
|
|
5436
5468
|
};
|
|
5437
|
-
},
|
|
5438
|
-
const { formatDate: c, parseDate: d, getDefaultFormat: p } =
|
|
5469
|
+
}, Y5 = (n, e, r, t, i) => {
|
|
5470
|
+
const { formatDate: c, parseDate: d, getDefaultFormat: p } = O5(), f = L(() => ["datetimerange", "daterange", "monthrange", "yearrange"].includes(e.value)), v = L(() => r.value || p(e.value)), h = L(() => t.value || p(e.value)), g = L(() => n.value ? f.value ? Array.isArray(n.value) && n.value.length === 2 ? [d(n.value[0]), d(n.value[1])] : [null, null] : d(n.value) : f.value ? [null, null] : null), _ = L(() => {
|
|
5439
5471
|
if (f.value) {
|
|
5440
5472
|
const [j, V] = g.value;
|
|
5441
5473
|
if (j && V) {
|
|
@@ -5469,7 +5501,7 @@ const Ge = new t5(), n5 = {
|
|
|
5469
5501
|
} else
|
|
5470
5502
|
return t.value === "timestamp" ? j.getTime() : t.value ? c(j, h.value) : j;
|
|
5471
5503
|
},
|
|
5472
|
-
validate: (j = !1) =>
|
|
5504
|
+
validate: (j = !1) => z5(n.value, e.value, j),
|
|
5473
5505
|
formatDate: c,
|
|
5474
5506
|
parseDate: d
|
|
5475
5507
|
};
|
|
@@ -5537,7 +5569,7 @@ const Ge = new t5(), n5 = {
|
|
|
5537
5569
|
// hh:mm:ss AM/PM (12h)
|
|
5538
5570
|
/^(0?[1-9]|1[0-2]):([0-5]\d)\s?(AM|PM)$/i
|
|
5539
5571
|
// hh:mm AM/PM (12h)
|
|
5540
|
-
].some((r) => r.test(n.trim())) : !1,
|
|
5572
|
+
].some((r) => r.test(n.trim())) : !1, N5 = (n, e, r) => {
|
|
5541
5573
|
const t = [], i = e === "timerange";
|
|
5542
5574
|
if (r && (n ? i && Array.isArray(n) && (n.length !== 2 || !n[0] || !n[1]) && t.push("Необхідно вибрати початковий та кінцевий час") : t.push("Це поле є обов'язковим")), n)
|
|
5543
5575
|
if (i && !Array.isArray(n) ? t.push("Для діапазону очікується масив з двох значень часу") : !i && Array.isArray(n) && t.push("Для одиночного вибору очікується одне значення часу"), Array.isArray(n)) {
|
|
@@ -5578,13 +5610,13 @@ const Ge = new t5(), n5 = {
|
|
|
5578
5610
|
}
|
|
5579
5611
|
}
|
|
5580
5612
|
return null;
|
|
5581
|
-
},
|
|
5613
|
+
}, W5 = (n, e, r = 0, t = "HH:mm:ss", i = !1) => {
|
|
5582
5614
|
let c = n;
|
|
5583
5615
|
i && (c = n === 0 ? 12 : n > 12 ? n - 12 : n);
|
|
5584
5616
|
const d = c.toString().padStart(2, "0"), p = e.toString().padStart(2, "0"), f = r.toString().padStart(2, "0");
|
|
5585
5617
|
let v = t;
|
|
5586
5618
|
return v = v.replace(/HH/g, n.toString().padStart(2, "0")), v = v.replace(/H/g, n.toString()), v = v.replace(/hh/g, d), v = v.replace(/h/g, c.toString()), v = v.replace(/mm/g, p), v = v.replace(/m/g, e.toString()), v = v.replace(/ss/g, f), v = v.replace(/s/g, r.toString()), v = v.replace(/A/g, n >= 12 ? "PM" : "AM"), v = v.replace(/a/g, n >= 12 ? "pm" : "am"), v;
|
|
5587
|
-
},
|
|
5619
|
+
}, q5 = (n) => {
|
|
5588
5620
|
if (!n) return null;
|
|
5589
5621
|
const e = [
|
|
5590
5622
|
/^(\d{1,2}):(\d{2}):(\d{2})$/,
|
|
@@ -5614,40 +5646,40 @@ const Ge = new t5(), n5 = {
|
|
|
5614
5646
|
disabled: t.includes(c)
|
|
5615
5647
|
});
|
|
5616
5648
|
return i;
|
|
5617
|
-
},
|
|
5649
|
+
}, U5 = { class: "vt-timepicker__input" }, K5 = { class: "vt-timepicker__icon" }, X5 = {
|
|
5618
5650
|
key: 0,
|
|
5619
5651
|
class: "vt-timepicker__text"
|
|
5620
|
-
},
|
|
5652
|
+
}, Q5 = {
|
|
5621
5653
|
key: 1,
|
|
5622
5654
|
class: "vt-timepicker__placeholder"
|
|
5623
|
-
},
|
|
5655
|
+
}, G5 = { class: "vt-timepicker__suffix" }, J5 = ["disabled"], e6 = {
|
|
5624
5656
|
key: 0,
|
|
5625
5657
|
class: "vt-timepicker__dual-panel"
|
|
5626
|
-
},
|
|
5658
|
+
}, t6 = { class: "vt-timepicker__panel" }, n6 = { class: "vt-timepicker__time-columns" }, o6 = { class: "vt-timepicker__column" }, s6 = { class: "vt-timepicker__options" }, r6 = ["disabled", "onClick"], l6 = { class: "vt-timepicker__column" }, i6 = { class: "vt-timepicker__options" }, a6 = ["disabled", "onClick"], u6 = {
|
|
5627
5659
|
key: 0,
|
|
5628
5660
|
class: "vt-timepicker__column"
|
|
5629
|
-
},
|
|
5661
|
+
}, c6 = { class: "vt-timepicker__options" }, d6 = ["disabled", "onClick"], h6 = {
|
|
5630
5662
|
key: 1,
|
|
5631
5663
|
class: "vt-timepicker__column"
|
|
5632
|
-
},
|
|
5664
|
+
}, p6 = { class: "vt-timepicker__options" }, v6 = ["onClick"], f6 = { class: "vt-timepicker__panel" }, C6 = { class: "vt-timepicker__time-columns" }, m6 = { class: "vt-timepicker__column" }, _6 = { class: "vt-timepicker__options" }, g6 = ["disabled", "onClick"], w6 = { class: "vt-timepicker__column" }, k6 = { class: "vt-timepicker__options" }, y6 = ["disabled", "onClick"], b6 = {
|
|
5633
5665
|
key: 0,
|
|
5634
5666
|
class: "vt-timepicker__column"
|
|
5635
|
-
},
|
|
5667
|
+
}, $6 = { class: "vt-timepicker__options" }, M6 = ["disabled", "onClick"], x6 = {
|
|
5636
5668
|
key: 1,
|
|
5637
5669
|
class: "vt-timepicker__column"
|
|
5638
|
-
},
|
|
5670
|
+
}, L6 = { class: "vt-timepicker__options" }, V6 = ["onClick"], S6 = {
|
|
5639
5671
|
key: 1,
|
|
5640
5672
|
class: "vt-timepicker__single-panel"
|
|
5641
|
-
},
|
|
5673
|
+
}, D6 = { class: "vt-timepicker__time-columns" }, H6 = { class: "vt-timepicker__column" }, T6 = { class: "vt-timepicker__options" }, I6 = ["disabled", "onClick"], B6 = { class: "vt-timepicker__column" }, E6 = { class: "vt-timepicker__options" }, A6 = ["disabled", "onClick"], j6 = {
|
|
5642
5674
|
key: 0,
|
|
5643
5675
|
class: "vt-timepicker__column"
|
|
5644
|
-
},
|
|
5676
|
+
}, P6 = { class: "vt-timepicker__options" }, R6 = ["disabled", "onClick"], F6 = {
|
|
5645
5677
|
key: 1,
|
|
5646
5678
|
class: "vt-timepicker__column"
|
|
5647
|
-
},
|
|
5679
|
+
}, Z6 = { class: "vt-timepicker__options" }, z6 = ["onClick"], O6 = { class: "vt-timepicker__actions" }, Y6 = {
|
|
5648
5680
|
key: 1,
|
|
5649
5681
|
class: "vt-timepicker__help"
|
|
5650
|
-
},
|
|
5682
|
+
}, N6 = {
|
|
5651
5683
|
key: 0,
|
|
5652
5684
|
class: "vt-timepicker__error"
|
|
5653
5685
|
}, m1 = /* @__PURE__ */ we({
|
|
@@ -5684,12 +5716,12 @@ const Ge = new t5(), n5 = {
|
|
|
5684
5716
|
}, v = B(/* @__PURE__ */ new Map()), h = L(() => t.type === "timerange"), g = (M) => {
|
|
5685
5717
|
if (!M) return "";
|
|
5686
5718
|
const { hour: w, minute: u, second: C } = M, ee = t.format || (t.showSeconds ? t.use12Hours ? C1["12h"] : C1["24h"] : t.use12Hours ? C1["12h_no_seconds"] : C1["24h_no_seconds"]);
|
|
5687
|
-
return
|
|
5719
|
+
return W5(w, u, C, ee, t.use12Hours);
|
|
5688
5720
|
}, _ = (M) => M ? M instanceof Date ? {
|
|
5689
5721
|
hour: M.getHours(),
|
|
5690
5722
|
minute: M.getMinutes(),
|
|
5691
5723
|
second: M.getSeconds()
|
|
5692
|
-
} : typeof M == "string" && V1(M) ?
|
|
5724
|
+
} : typeof M == "string" && V1(M) ? q5(M) : null : null, b = (M, w = !1) => N5(M, t.type, w), s = L(() => t.modelValue ? h.value ? Array.isArray(t.modelValue) && t.modelValue.length === 2 ? [_(t.modelValue[0]), _(t.modelValue[1])] : [null, null] : _(t.modelValue) : h.value ? [null, null] : null), N = L(() => {
|
|
5693
5725
|
if (h.value) {
|
|
5694
5726
|
const [M, w] = s.value;
|
|
5695
5727
|
return M && w ? [g(M), g(w)] : M ? [g(M), ""] : ["", ""];
|
|
@@ -5975,11 +6007,11 @@ const Ge = new t5(), n5 = {
|
|
|
5975
6007
|
onClick: W,
|
|
5976
6008
|
onFocus: be
|
|
5977
6009
|
}, [
|
|
5978
|
-
o("div",
|
|
5979
|
-
o("div",
|
|
6010
|
+
o("div", U5, [
|
|
6011
|
+
o("div", K5, [
|
|
5980
6012
|
ne(fe, { name: "clock" })
|
|
5981
6013
|
]),
|
|
5982
|
-
j.value ? (l(), a("div",
|
|
6014
|
+
j.value ? (l(), a("div", X5, [
|
|
5983
6015
|
h.value ? (l(), a(ie, { key: 0 }, [
|
|
5984
6016
|
o("span", null, R(N.value[0]), 1),
|
|
5985
6017
|
o("span", null, R(t.rangeSeparator), 1),
|
|
@@ -5987,7 +6019,7 @@ const Ge = new t5(), n5 = {
|
|
|
5987
6019
|
], 64)) : (l(), a(ie, { key: 1 }, [
|
|
5988
6020
|
$e(R(N.value), 1)
|
|
5989
6021
|
], 64))
|
|
5990
|
-
])) : (l(), a("div",
|
|
6022
|
+
])) : (l(), a("div", Q5, [
|
|
5991
6023
|
h.value ? (l(), a(ie, { key: 0 }, [
|
|
5992
6024
|
o("span", null, R(t.startPlaceholder), 1),
|
|
5993
6025
|
o("span", null, R(t.rangeSeparator), 1),
|
|
@@ -5996,7 +6028,7 @@ const Ge = new t5(), n5 = {
|
|
|
5996
6028
|
$e(R(S.value), 1)
|
|
5997
6029
|
], 64))
|
|
5998
6030
|
])),
|
|
5999
|
-
o("div",
|
|
6031
|
+
o("div", G5, [
|
|
6000
6032
|
V.value ? (l(), a("button", {
|
|
6001
6033
|
key: 0,
|
|
6002
6034
|
disabled: t.disabled,
|
|
@@ -6005,7 +6037,7 @@ const Ge = new t5(), n5 = {
|
|
|
6005
6037
|
onClick: Ve(Ae, ["stop"])
|
|
6006
6038
|
}, [
|
|
6007
6039
|
ne(fe, { name: "close" })
|
|
6008
|
-
], 8,
|
|
6040
|
+
], 8, J5)) : Z("", !0)
|
|
6009
6041
|
])
|
|
6010
6042
|
])
|
|
6011
6043
|
], 544),
|
|
@@ -6025,12 +6057,12 @@ const Ge = new t5(), n5 = {
|
|
|
6025
6057
|
onMousedown: w[1] || (w[1] = Ve(() => {
|
|
6026
6058
|
}, ["prevent"]))
|
|
6027
6059
|
}, [
|
|
6028
|
-
h.value ? (l(), a("div",
|
|
6029
|
-
o("div",
|
|
6060
|
+
h.value ? (l(), a("div", e6, [
|
|
6061
|
+
o("div", t6, [
|
|
6030
6062
|
w[2] || (w[2] = o("div", { class: "vt-timepicker__panel-header" }, "Початковий час", -1)),
|
|
6031
|
-
o("div",
|
|
6032
|
-
o("div",
|
|
6033
|
-
o("div",
|
|
6063
|
+
o("div", n6, [
|
|
6064
|
+
o("div", o6, [
|
|
6065
|
+
o("div", s6, [
|
|
6034
6066
|
(l(!0), a(ie, null, pe(Ce.value, (u) => (l(), a("button", {
|
|
6035
6067
|
key: `start-hour-${u.value}`,
|
|
6036
6068
|
class: G([
|
|
@@ -6042,11 +6074,11 @@ const Ge = new t5(), n5 = {
|
|
|
6042
6074
|
]),
|
|
6043
6075
|
disabled: u.disabled,
|
|
6044
6076
|
onClick: (C) => k(u.value, "hour", !1, u.disabled, C)
|
|
6045
|
-
}, R(u.label), 11,
|
|
6077
|
+
}, R(u.label), 11, r6))), 128))
|
|
6046
6078
|
])
|
|
6047
6079
|
]),
|
|
6048
|
-
o("div",
|
|
6049
|
-
o("div",
|
|
6080
|
+
o("div", l6, [
|
|
6081
|
+
o("div", i6, [
|
|
6050
6082
|
(l(!0), a(ie, null, pe(I.value, (u) => (l(), a("button", {
|
|
6051
6083
|
key: `start-minute-${u.value}`,
|
|
6052
6084
|
class: G([
|
|
@@ -6058,11 +6090,11 @@ const Ge = new t5(), n5 = {
|
|
|
6058
6090
|
]),
|
|
6059
6091
|
disabled: u.disabled,
|
|
6060
6092
|
onClick: (C) => k(u.value, "minute", !1, u.disabled, C)
|
|
6061
|
-
}, R(u.label), 11,
|
|
6093
|
+
}, R(u.label), 11, a6))), 128))
|
|
6062
6094
|
])
|
|
6063
6095
|
]),
|
|
6064
|
-
M.showSeconds ? (l(), a("div",
|
|
6065
|
-
o("div",
|
|
6096
|
+
M.showSeconds ? (l(), a("div", u6, [
|
|
6097
|
+
o("div", c6, [
|
|
6066
6098
|
(l(!0), a(ie, null, pe(P.value, (u) => (l(), a("button", {
|
|
6067
6099
|
key: `start-second-${u.value}`,
|
|
6068
6100
|
class: G([
|
|
@@ -6074,11 +6106,11 @@ const Ge = new t5(), n5 = {
|
|
|
6074
6106
|
]),
|
|
6075
6107
|
disabled: u.disabled,
|
|
6076
6108
|
onClick: (C) => k(u.value, "second", !1, u.disabled, C)
|
|
6077
|
-
}, R(u.label), 11,
|
|
6109
|
+
}, R(u.label), 11, d6))), 128))
|
|
6078
6110
|
])
|
|
6079
6111
|
])) : Z("", !0),
|
|
6080
|
-
M.use12Hours ? (l(), a("div",
|
|
6081
|
-
o("div",
|
|
6112
|
+
M.use12Hours ? (l(), a("div", h6, [
|
|
6113
|
+
o("div", p6, [
|
|
6082
6114
|
(l(!0), a(ie, null, pe(K.value, (u) => (l(), a("button", {
|
|
6083
6115
|
key: `start-period-${u}`,
|
|
6084
6116
|
class: G([
|
|
@@ -6086,16 +6118,16 @@ const Ge = new t5(), n5 = {
|
|
|
6086
6118
|
{ "vt-timepicker__option--selected": Q.value === u }
|
|
6087
6119
|
]),
|
|
6088
6120
|
onClick: (C) => k(u, "period", !1, !1, C)
|
|
6089
|
-
}, R(u), 11,
|
|
6121
|
+
}, R(u), 11, v6))), 128))
|
|
6090
6122
|
])
|
|
6091
6123
|
])) : Z("", !0)
|
|
6092
6124
|
])
|
|
6093
6125
|
]),
|
|
6094
|
-
o("div",
|
|
6126
|
+
o("div", f6, [
|
|
6095
6127
|
w[3] || (w[3] = o("div", { class: "vt-timepicker__panel-header" }, "Кінцевий час", -1)),
|
|
6096
|
-
o("div",
|
|
6097
|
-
o("div",
|
|
6098
|
-
o("div",
|
|
6128
|
+
o("div", C6, [
|
|
6129
|
+
o("div", m6, [
|
|
6130
|
+
o("div", _6, [
|
|
6099
6131
|
(l(!0), a(ie, null, pe(Ce.value, (u) => (l(), a("button", {
|
|
6100
6132
|
key: `end-hour-${u.value}`,
|
|
6101
6133
|
class: G([
|
|
@@ -6107,11 +6139,11 @@ const Ge = new t5(), n5 = {
|
|
|
6107
6139
|
]),
|
|
6108
6140
|
disabled: u.disabled,
|
|
6109
6141
|
onClick: (C) => k(u.value, "hour", !0, u.disabled, C)
|
|
6110
|
-
}, R(u.label), 11,
|
|
6142
|
+
}, R(u.label), 11, g6))), 128))
|
|
6111
6143
|
])
|
|
6112
6144
|
]),
|
|
6113
|
-
o("div",
|
|
6114
|
-
o("div",
|
|
6145
|
+
o("div", w6, [
|
|
6146
|
+
o("div", k6, [
|
|
6115
6147
|
(l(!0), a(ie, null, pe(I.value, (u) => (l(), a("button", {
|
|
6116
6148
|
key: `end-minute-${u.value}`,
|
|
6117
6149
|
class: G([
|
|
@@ -6123,11 +6155,11 @@ const Ge = new t5(), n5 = {
|
|
|
6123
6155
|
]),
|
|
6124
6156
|
disabled: u.disabled,
|
|
6125
6157
|
onClick: (C) => k(u.value, "minute", !0, u.disabled, C)
|
|
6126
|
-
}, R(u.label), 11,
|
|
6158
|
+
}, R(u.label), 11, y6))), 128))
|
|
6127
6159
|
])
|
|
6128
6160
|
]),
|
|
6129
|
-
M.showSeconds ? (l(), a("div",
|
|
6130
|
-
o("div",
|
|
6161
|
+
M.showSeconds ? (l(), a("div", b6, [
|
|
6162
|
+
o("div", $6, [
|
|
6131
6163
|
(l(!0), a(ie, null, pe(P.value, (u) => (l(), a("button", {
|
|
6132
6164
|
key: `end-second-${u.value}`,
|
|
6133
6165
|
class: G([
|
|
@@ -6139,24 +6171,24 @@ const Ge = new t5(), n5 = {
|
|
|
6139
6171
|
]),
|
|
6140
6172
|
disabled: u.disabled,
|
|
6141
6173
|
onClick: (C) => k(u.value, "second", !0, u.disabled, C)
|
|
6142
|
-
}, R(u.label), 11,
|
|
6174
|
+
}, R(u.label), 11, M6))), 128))
|
|
6143
6175
|
])
|
|
6144
6176
|
])) : Z("", !0),
|
|
6145
|
-
M.use12Hours ? (l(), a("div",
|
|
6146
|
-
o("div",
|
|
6177
|
+
M.use12Hours ? (l(), a("div", x6, [
|
|
6178
|
+
o("div", L6, [
|
|
6147
6179
|
(l(!0), a(ie, null, pe(K.value, (u) => (l(), a("button", {
|
|
6148
6180
|
key: `end-period-${u}`,
|
|
6149
6181
|
class: G(["vt-timepicker__option", { "vt-timepicker__option--selected": he.value === u }]),
|
|
6150
6182
|
onClick: (C) => k(u, "period", !0, !1, C)
|
|
6151
|
-
}, R(u), 11,
|
|
6183
|
+
}, R(u), 11, V6))), 128))
|
|
6152
6184
|
])
|
|
6153
6185
|
])) : Z("", !0)
|
|
6154
6186
|
])
|
|
6155
6187
|
])
|
|
6156
|
-
])) : (l(), a("div",
|
|
6157
|
-
o("div",
|
|
6158
|
-
o("div",
|
|
6159
|
-
o("div",
|
|
6188
|
+
])) : (l(), a("div", S6, [
|
|
6189
|
+
o("div", D6, [
|
|
6190
|
+
o("div", H6, [
|
|
6191
|
+
o("div", T6, [
|
|
6160
6192
|
(l(!0), a(ie, null, pe(Ce.value, (u) => (l(), a("button", {
|
|
6161
6193
|
key: `hour-${u.value}`,
|
|
6162
6194
|
class: G([
|
|
@@ -6168,11 +6200,11 @@ const Ge = new t5(), n5 = {
|
|
|
6168
6200
|
]),
|
|
6169
6201
|
disabled: u.disabled,
|
|
6170
6202
|
onClick: (C) => k(u.value, "hour", !1, u.disabled, C)
|
|
6171
|
-
}, R(u.label), 11,
|
|
6203
|
+
}, R(u.label), 11, I6))), 128))
|
|
6172
6204
|
])
|
|
6173
6205
|
]),
|
|
6174
|
-
o("div",
|
|
6175
|
-
o("div",
|
|
6206
|
+
o("div", B6, [
|
|
6207
|
+
o("div", E6, [
|
|
6176
6208
|
(l(!0), a(ie, null, pe(I.value, (u) => (l(), a("button", {
|
|
6177
6209
|
key: `minute-${u.value}`,
|
|
6178
6210
|
class: G([
|
|
@@ -6184,11 +6216,11 @@ const Ge = new t5(), n5 = {
|
|
|
6184
6216
|
]),
|
|
6185
6217
|
disabled: u.disabled,
|
|
6186
6218
|
onClick: (C) => k(u.value, "minute", !1, u.disabled, C)
|
|
6187
|
-
}, R(u.label), 11,
|
|
6219
|
+
}, R(u.label), 11, A6))), 128))
|
|
6188
6220
|
])
|
|
6189
6221
|
]),
|
|
6190
|
-
M.showSeconds ? (l(), a("div",
|
|
6191
|
-
o("div",
|
|
6222
|
+
M.showSeconds ? (l(), a("div", j6, [
|
|
6223
|
+
o("div", P6, [
|
|
6192
6224
|
(l(!0), a(ie, null, pe(P.value, (u) => (l(), a("button", {
|
|
6193
6225
|
key: `second-${u.value}`,
|
|
6194
6226
|
class: G([
|
|
@@ -6200,21 +6232,21 @@ const Ge = new t5(), n5 = {
|
|
|
6200
6232
|
]),
|
|
6201
6233
|
disabled: u.disabled,
|
|
6202
6234
|
onClick: (C) => k(u.value, "second", !1, u.disabled, C)
|
|
6203
|
-
}, R(u.label), 11,
|
|
6235
|
+
}, R(u.label), 11, R6))), 128))
|
|
6204
6236
|
])
|
|
6205
6237
|
])) : Z("", !0),
|
|
6206
|
-
M.use12Hours ? (l(), a("div",
|
|
6207
|
-
o("div",
|
|
6238
|
+
M.use12Hours ? (l(), a("div", F6, [
|
|
6239
|
+
o("div", Z6, [
|
|
6208
6240
|
(l(!0), a(ie, null, pe(K.value, (u) => (l(), a("button", {
|
|
6209
6241
|
key: `period-${u}`,
|
|
6210
6242
|
class: G(["vt-timepicker__option", { "vt-timepicker__option--selected": Q.value === u }]),
|
|
6211
6243
|
onClick: (C) => k(u, "period", !1, !1, C)
|
|
6212
|
-
}, R(u), 11,
|
|
6244
|
+
}, R(u), 11, z6))), 128))
|
|
6213
6245
|
])
|
|
6214
6246
|
])) : Z("", !0)
|
|
6215
6247
|
])
|
|
6216
6248
|
])),
|
|
6217
|
-
o("div",
|
|
6249
|
+
o("div", O6, [
|
|
6218
6250
|
ne(Je, { onClick: e1 }, {
|
|
6219
6251
|
default: xe(() => w[4] || (w[4] = [
|
|
6220
6252
|
$e("Скасувати", -1)
|
|
@@ -6238,51 +6270,51 @@ const Ge = new t5(), n5 = {
|
|
|
6238
6270
|
_: 1
|
|
6239
6271
|
})
|
|
6240
6272
|
])) : Z("", !0),
|
|
6241
|
-
U.value ? (l(), a("div",
|
|
6242
|
-
U.value ? (l(), a("span",
|
|
6273
|
+
U.value ? (l(), a("div", Y6, [
|
|
6274
|
+
U.value ? (l(), a("span", N6, R(U.value), 1)) : Z("", !0)
|
|
6243
6275
|
])) : Z("", !0)
|
|
6244
6276
|
], 2));
|
|
6245
6277
|
}
|
|
6246
|
-
}),
|
|
6278
|
+
}), W6 = { class: "vt-datepicker__input" }, q6 = { class: "vt-datepicker__icon" }, U6 = {
|
|
6247
6279
|
key: 0,
|
|
6248
6280
|
class: "vt-datepicker__text"
|
|
6249
|
-
},
|
|
6281
|
+
}, K6 = { class: "vt-datepicker__separator" }, X6 = {
|
|
6250
6282
|
key: 1,
|
|
6251
6283
|
class: "vt-datepicker__placeholder"
|
|
6252
|
-
},
|
|
6284
|
+
}, Q6 = { class: "vt-datepicker__separator" }, G6 = { class: "vt-datepicker__suffix" }, J6 = ["disabled"], e0 = {
|
|
6253
6285
|
key: 0,
|
|
6254
6286
|
class: "vt-datepicker__dual-calendar"
|
|
6255
|
-
},
|
|
6287
|
+
}, t0 = { class: "vt-datepicker__calendar-panel" }, n0 = {
|
|
6256
6288
|
key: 0,
|
|
6257
6289
|
class: "vt-datepicker__time"
|
|
6258
|
-
},
|
|
6290
|
+
}, o0 = { class: "vt-datepicker__header" }, s0 = { class: "vt-datepicker__header-content" }, r0 = { class: "vt-datepicker__content" }, l0 = { class: "vt-datepicker__calendar" }, i0 = { class: "vt-datepicker__weekdays" }, a0 = { class: "vt-datepicker__dates" }, u0 = ["disabled", "onClick", "onMouseenter"], c0 = { class: "vt-datepicker__calendar-panel" }, d0 = {
|
|
6259
6291
|
key: 0,
|
|
6260
6292
|
class: "vt-datepicker__time"
|
|
6261
|
-
},
|
|
6293
|
+
}, h0 = { class: "vt-datepicker__header" }, p0 = { class: "vt-datepicker__header-content" }, v0 = { class: "vt-datepicker__content" }, f0 = { class: "vt-datepicker__calendar" }, C0 = { class: "vt-datepicker__weekdays" }, m0 = { class: "vt-datepicker__dates" }, _0 = ["disabled", "onClick", "onMouseenter"], g0 = { key: 1 }, w0 = {
|
|
6262
6294
|
key: 0,
|
|
6263
6295
|
class: "vt-datepicker__time"
|
|
6264
|
-
},
|
|
6296
|
+
}, k0 = { class: "vt-datepicker__header" }, y0 = { class: "vt-datepicker__header-content" }, b0 = {
|
|
6265
6297
|
key: 2,
|
|
6266
6298
|
class: "vt-datepicker__header-text"
|
|
6267
|
-
},
|
|
6299
|
+
}, $0 = { class: "vt-datepicker__content" }, M0 = {
|
|
6268
6300
|
key: 0,
|
|
6269
6301
|
class: "vt-datepicker__calendar"
|
|
6270
|
-
},
|
|
6302
|
+
}, x0 = { class: "vt-datepicker__weekdays" }, L0 = { class: "vt-datepicker__dates" }, V0 = ["onClick", "onMouseenter"], S0 = {
|
|
6271
6303
|
key: 1,
|
|
6272
6304
|
class: "vt-datepicker__months"
|
|
6273
|
-
},
|
|
6305
|
+
}, D0 = ["onClick", "onMouseenter"], H0 = {
|
|
6274
6306
|
key: 2,
|
|
6275
6307
|
class: "vt-datepicker__years"
|
|
6276
|
-
},
|
|
6308
|
+
}, T0 = ["onClick", "onMouseenter"], I0 = {
|
|
6277
6309
|
key: 0,
|
|
6278
6310
|
class: "vt-datepicker__actions"
|
|
6279
|
-
},
|
|
6311
|
+
}, B0 = {
|
|
6280
6312
|
key: 1,
|
|
6281
6313
|
class: "vt-datepicker__help"
|
|
6282
|
-
},
|
|
6314
|
+
}, E0 = {
|
|
6283
6315
|
key: 0,
|
|
6284
6316
|
class: "vt-datepicker__error"
|
|
6285
|
-
},
|
|
6317
|
+
}, A0 = /* @__PURE__ */ we({
|
|
6286
6318
|
__name: "VDatePicker",
|
|
6287
6319
|
props: {
|
|
6288
6320
|
modelValue: {},
|
|
@@ -6383,7 +6415,7 @@ const Ge = new t5(), n5 = {
|
|
|
6383
6415
|
hasDisplayValue: E,
|
|
6384
6416
|
formatOutput: D,
|
|
6385
6417
|
validate: Q
|
|
6386
|
-
} =
|
|
6418
|
+
} = Y5(N, j, V, S), {
|
|
6387
6419
|
calendarDates: oe,
|
|
6388
6420
|
monthsInYear: A,
|
|
6389
6421
|
yearsInDecade: J,
|
|
@@ -6781,30 +6813,30 @@ const Ge = new t5(), n5 = {
|
|
|
6781
6813
|
onClick: Le,
|
|
6782
6814
|
onFocus: Pe
|
|
6783
6815
|
}, [
|
|
6784
|
-
o("div",
|
|
6785
|
-
o("div",
|
|
6816
|
+
o("div", W6, [
|
|
6817
|
+
o("div", q6, [
|
|
6786
6818
|
ne(fe, {
|
|
6787
6819
|
name: De.value ? "clock" : "calendar"
|
|
6788
6820
|
}, null, 8, ["name"])
|
|
6789
6821
|
]),
|
|
6790
|
-
O(E) ? (l(), a("div",
|
|
6822
|
+
O(E) ? (l(), a("div", U6, [
|
|
6791
6823
|
O(T) ? (l(), a(ie, { key: 0 }, [
|
|
6792
6824
|
o("span", null, R(O(q)[0]), 1),
|
|
6793
|
-
o("span",
|
|
6825
|
+
o("span", K6, R(t.rangeSeparator), 1),
|
|
6794
6826
|
o("span", null, R(O(q)[1]), 1)
|
|
6795
6827
|
], 64)) : (l(), a(ie, { key: 1 }, [
|
|
6796
6828
|
$e(R(O(q)), 1)
|
|
6797
6829
|
], 64))
|
|
6798
|
-
])) : (l(), a("div",
|
|
6830
|
+
])) : (l(), a("div", X6, [
|
|
6799
6831
|
O(T) ? (l(), a(ie, { key: 0 }, [
|
|
6800
6832
|
o("span", null, R(t.startPlaceholder), 1),
|
|
6801
|
-
o("span",
|
|
6833
|
+
o("span", Q6, R(t.rangeSeparator), 1),
|
|
6802
6834
|
o("span", null, R(t.endPlaceholder), 1)
|
|
6803
6835
|
], 64)) : (l(), a(ie, { key: 1 }, [
|
|
6804
6836
|
$e(R(e1.value), 1)
|
|
6805
6837
|
], 64))
|
|
6806
6838
|
])),
|
|
6807
|
-
o("div",
|
|
6839
|
+
o("div", G6, [
|
|
6808
6840
|
Qe.value ? (l(), a("button", {
|
|
6809
6841
|
key: 0,
|
|
6810
6842
|
disabled: t.disabled,
|
|
@@ -6813,7 +6845,7 @@ const Ge = new t5(), n5 = {
|
|
|
6813
6845
|
onClick: Ve(Ue, ["stop"])
|
|
6814
6846
|
}, [
|
|
6815
6847
|
ne(fe, { name: "close" })
|
|
6816
|
-
], 8,
|
|
6848
|
+
], 8, J6)) : Z("", !0)
|
|
6817
6849
|
])
|
|
6818
6850
|
])
|
|
6819
6851
|
], 544),
|
|
@@ -6836,9 +6868,9 @@ const Ge = new t5(), n5 = {
|
|
|
6836
6868
|
o("div", {
|
|
6837
6869
|
class: G([{ "vt-datepicker__date-section--with-time": ye.value }, "vt-datepicker__date-section"])
|
|
6838
6870
|
}, [
|
|
6839
|
-
_e.value ? (l(), a("div",
|
|
6840
|
-
o("div",
|
|
6841
|
-
ye.value ? (l(), a("div",
|
|
6871
|
+
_e.value ? (l(), a("div", e0, [
|
|
6872
|
+
o("div", t0, [
|
|
6873
|
+
ye.value ? (l(), a("div", n0, [
|
|
6842
6874
|
ne(m1, {
|
|
6843
6875
|
ref_key: "startTimePickerRef",
|
|
6844
6876
|
ref: f,
|
|
@@ -6859,14 +6891,14 @@ const Ge = new t5(), n5 = {
|
|
|
6859
6891
|
onChange: x[1] || (x[1] = (y) => u1(y, !1))
|
|
6860
6892
|
}, null, 8, ["modelValue", "disabled-hours", "disabled-minutes", "disabled-seconds", "hide-disabled-options", "hour-step", "minute-step", "second-step", "show-seconds", "use12-hours"])
|
|
6861
6893
|
])) : Z("", !0),
|
|
6862
|
-
o("div",
|
|
6894
|
+
o("div", o0, [
|
|
6863
6895
|
o("button", {
|
|
6864
6896
|
class: "vt-datepicker__nav-btn",
|
|
6865
6897
|
onClick: T1
|
|
6866
6898
|
}, [
|
|
6867
6899
|
ne(fe, { name: "arrowLeft" })
|
|
6868
6900
|
]),
|
|
6869
|
-
o("div",
|
|
6901
|
+
o("div", s0, [
|
|
6870
6902
|
o("button", {
|
|
6871
6903
|
class: "vt-datepicker__header-btn",
|
|
6872
6904
|
onClick: x[2] || (x[2] = (y) => s.viewMode.value = "month")
|
|
@@ -6874,15 +6906,15 @@ const Ge = new t5(), n5 = {
|
|
|
6874
6906
|
]),
|
|
6875
6907
|
x[12] || (x[12] = o("div", { class: "vt-datepicker__nav-spacer" }, null, -1))
|
|
6876
6908
|
]),
|
|
6877
|
-
o("div",
|
|
6878
|
-
o("div",
|
|
6879
|
-
o("div",
|
|
6909
|
+
o("div", r0, [
|
|
6910
|
+
o("div", l0, [
|
|
6911
|
+
o("div", i0, [
|
|
6880
6912
|
(l(!0), a(ie, null, pe(O(M1), (y, H) => (l(), a("span", {
|
|
6881
6913
|
key: `${H}_${y}`,
|
|
6882
6914
|
class: "vt-datepicker__weekday"
|
|
6883
6915
|
}, R(y), 1))), 128))
|
|
6884
6916
|
]),
|
|
6885
|
-
o("div",
|
|
6917
|
+
o("div", a0, [
|
|
6886
6918
|
(l(!0), a(ie, null, pe(O(oe), (y) => (l(), a("button", {
|
|
6887
6919
|
key: y.getTime(),
|
|
6888
6920
|
class: G([
|
|
@@ -6901,13 +6933,13 @@ const Ge = new t5(), n5 = {
|
|
|
6901
6933
|
onClick: (H) => je(y, !0, !1),
|
|
6902
6934
|
onMouseenter: (H) => t1(y, !0, !1),
|
|
6903
6935
|
onMouseleave: r1
|
|
6904
|
-
}, R(y.getDate()), 43,
|
|
6936
|
+
}, R(y.getDate()), 43, u0))), 128))
|
|
6905
6937
|
])
|
|
6906
6938
|
])
|
|
6907
6939
|
])
|
|
6908
6940
|
]),
|
|
6909
|
-
o("div",
|
|
6910
|
-
ye.value ? (l(), a("div",
|
|
6941
|
+
o("div", c0, [
|
|
6942
|
+
ye.value ? (l(), a("div", d0, [
|
|
6911
6943
|
ne(m1, {
|
|
6912
6944
|
ref_key: "endTimePickerRef",
|
|
6913
6945
|
ref: v,
|
|
@@ -6928,9 +6960,9 @@ const Ge = new t5(), n5 = {
|
|
|
6928
6960
|
onChange: x[4] || (x[4] = (y) => u1(y, !0))
|
|
6929
6961
|
}, null, 8, ["modelValue", "disabled-hours", "disabled-minutes", "disabled-seconds", "hide-disabled-options", "hour-step", "minute-step", "second-step", "show-seconds", "use12-hours"])
|
|
6930
6962
|
])) : Z("", !0),
|
|
6931
|
-
o("div",
|
|
6963
|
+
o("div", h0, [
|
|
6932
6964
|
x[13] || (x[13] = o("div", { class: "vt-datepicker__nav-spacer" }, null, -1)),
|
|
6933
|
-
o("div",
|
|
6965
|
+
o("div", p0, [
|
|
6934
6966
|
o("button", {
|
|
6935
6967
|
class: "vt-datepicker__header-btn",
|
|
6936
6968
|
onClick: x[5] || (x[5] = (y) => s.viewMode.value = "month")
|
|
@@ -6943,15 +6975,15 @@ const Ge = new t5(), n5 = {
|
|
|
6943
6975
|
ne(fe, { name: "arrowRight" })
|
|
6944
6976
|
])
|
|
6945
6977
|
]),
|
|
6946
|
-
o("div",
|
|
6947
|
-
o("div",
|
|
6948
|
-
o("div",
|
|
6978
|
+
o("div", v0, [
|
|
6979
|
+
o("div", f0, [
|
|
6980
|
+
o("div", C0, [
|
|
6949
6981
|
(l(!0), a(ie, null, pe(O(M1), (y, H) => (l(), a("span", {
|
|
6950
6982
|
key: `${H}_${y}`,
|
|
6951
6983
|
class: "vt-datepicker__weekday"
|
|
6952
6984
|
}, R(y), 1))), 128))
|
|
6953
6985
|
]),
|
|
6954
|
-
o("div",
|
|
6986
|
+
o("div", m0, [
|
|
6955
6987
|
(l(!0), a(ie, null, pe(O(se), (y) => (l(), a("button", {
|
|
6956
6988
|
key: y.getTime(),
|
|
6957
6989
|
class: G([
|
|
@@ -6970,13 +7002,13 @@ const Ge = new t5(), n5 = {
|
|
|
6970
7002
|
onClick: (H) => je(y, !1, !0),
|
|
6971
7003
|
onMouseenter: (H) => t1(y, !1, !0),
|
|
6972
7004
|
onMouseleave: r1
|
|
6973
|
-
}, R(y.getDate()), 43,
|
|
7005
|
+
}, R(y.getDate()), 43, _0))), 128))
|
|
6974
7006
|
])
|
|
6975
7007
|
])
|
|
6976
7008
|
])
|
|
6977
7009
|
])
|
|
6978
|
-
])) : (l(), a("div",
|
|
6979
|
-
ye.value ? (l(), a("div",
|
|
7010
|
+
])) : (l(), a("div", g0, [
|
|
7011
|
+
ye.value ? (l(), a("div", w0, [
|
|
6980
7012
|
ne(m1, {
|
|
6981
7013
|
ref_key: "startTimePickerRef",
|
|
6982
7014
|
ref: f,
|
|
@@ -6997,14 +7029,14 @@ const Ge = new t5(), n5 = {
|
|
|
6997
7029
|
onChange: x[7] || (x[7] = (y) => u1(y, !1))
|
|
6998
7030
|
}, null, 8, ["modelValue", "disabled-hours", "disabled-minutes", "disabled-seconds", "hide-disabled-options", "hour-step", "minute-step", "second-step", "show-seconds", "use12-hours"])
|
|
6999
7031
|
])) : Z("", !0),
|
|
7000
|
-
o("div",
|
|
7032
|
+
o("div", k0, [
|
|
7001
7033
|
o("button", {
|
|
7002
7034
|
class: "vt-datepicker__nav-btn",
|
|
7003
7035
|
onClick: T1
|
|
7004
7036
|
}, [
|
|
7005
7037
|
ne(fe, { name: "arrowLeft" })
|
|
7006
7038
|
]),
|
|
7007
|
-
o("div",
|
|
7039
|
+
o("div", y0, [
|
|
7008
7040
|
s.viewMode.value === "date" ? (l(), a("button", {
|
|
7009
7041
|
key: 0,
|
|
7010
7042
|
class: "vt-datepicker__header-btn",
|
|
@@ -7013,7 +7045,7 @@ const Ge = new t5(), n5 = {
|
|
|
7013
7045
|
key: 1,
|
|
7014
7046
|
class: "vt-datepicker__header-btn",
|
|
7015
7047
|
onClick: x[9] || (x[9] = (y) => s.viewMode.value = "year")
|
|
7016
|
-
}, R(s.currentDate.value.getFullYear()), 1)) : (l(), a("span",
|
|
7048
|
+
}, R(s.currentDate.value.getFullYear()), 1)) : (l(), a("span", b0, R(O(he)), 1))
|
|
7017
7049
|
]),
|
|
7018
7050
|
o("button", {
|
|
7019
7051
|
class: "vt-datepicker__nav-btn",
|
|
@@ -7022,15 +7054,15 @@ const Ge = new t5(), n5 = {
|
|
|
7022
7054
|
ne(fe, { name: "arrowRight" })
|
|
7023
7055
|
])
|
|
7024
7056
|
]),
|
|
7025
|
-
o("div",
|
|
7026
|
-
s.viewMode.value === "date" ? (l(), a("div",
|
|
7027
|
-
o("div",
|
|
7057
|
+
o("div", $0, [
|
|
7058
|
+
s.viewMode.value === "date" ? (l(), a("div", M0, [
|
|
7059
|
+
o("div", x0, [
|
|
7028
7060
|
(l(!0), a(ie, null, pe(O(M1), (y, H) => (l(), a("span", {
|
|
7029
7061
|
key: `${H}_${y}`,
|
|
7030
7062
|
class: "vt-datepicker__weekday"
|
|
7031
7063
|
}, R(y), 1))), 128))
|
|
7032
7064
|
]),
|
|
7033
|
-
o("div",
|
|
7065
|
+
o("div", L0, [
|
|
7034
7066
|
(l(!0), a(ie, null, pe(O(oe), (y) => (l(), a("button", {
|
|
7035
7067
|
key: y.getTime(),
|
|
7036
7068
|
class: G([
|
|
@@ -7048,9 +7080,9 @@ const Ge = new t5(), n5 = {
|
|
|
7048
7080
|
onClick: (H) => je(y),
|
|
7049
7081
|
onMouseenter: (H) => t1(y),
|
|
7050
7082
|
onMouseleave: r1
|
|
7051
|
-
}, R(y.getDate()), 43,
|
|
7083
|
+
}, R(y.getDate()), 43, V0))), 128))
|
|
7052
7084
|
])
|
|
7053
|
-
])) : s.viewMode.value === "month" ? (l(), a("div",
|
|
7085
|
+
])) : s.viewMode.value === "month" ? (l(), a("div", S0, [
|
|
7054
7086
|
(l(!0), a(ie, null, pe(O(A), (y, H) => (l(), a("button", {
|
|
7055
7087
|
key: y.name,
|
|
7056
7088
|
class: G([
|
|
@@ -7064,8 +7096,8 @@ const Ge = new t5(), n5 = {
|
|
|
7064
7096
|
onClick: (te) => dt(H, !1),
|
|
7065
7097
|
onMouseenter: (te) => ht(H, s.currentDate.value),
|
|
7066
7098
|
onMouseleave: pt
|
|
7067
|
-
}, R(y.name), 43,
|
|
7068
|
-
])) : (l(), a("div",
|
|
7099
|
+
}, R(y.name), 43, D0))), 128))
|
|
7100
|
+
])) : (l(), a("div", H0, [
|
|
7069
7101
|
(l(!0), a(ie, null, pe(O(J), (y) => (l(), a("button", {
|
|
7070
7102
|
key: y.year,
|
|
7071
7103
|
class: G([
|
|
@@ -7079,12 +7111,12 @@ const Ge = new t5(), n5 = {
|
|
|
7079
7111
|
onClick: (H) => vt(y.year),
|
|
7080
7112
|
onMouseenter: (H) => ft(y.year),
|
|
7081
7113
|
onMouseleave: Ct
|
|
7082
|
-
}, R(y.year), 43,
|
|
7114
|
+
}, R(y.year), 43, T0))), 128))
|
|
7083
7115
|
]))
|
|
7084
7116
|
])
|
|
7085
7117
|
]))
|
|
7086
7118
|
], 2),
|
|
7087
|
-
ye.value ? (l(), a("div",
|
|
7119
|
+
ye.value ? (l(), a("div", I0, [
|
|
7088
7120
|
ne(Je, { onClick: ct }, {
|
|
7089
7121
|
default: xe(() => x[14] || (x[14] = [
|
|
7090
7122
|
$e("Скасувати", -1)
|
|
@@ -7109,12 +7141,12 @@ const Ge = new t5(), n5 = {
|
|
|
7109
7141
|
_: 1
|
|
7110
7142
|
})
|
|
7111
7143
|
])) : Z("", !0),
|
|
7112
|
-
X.value ? (l(), a("div",
|
|
7113
|
-
X.value ? (l(), a("span",
|
|
7144
|
+
X.value ? (l(), a("div", B0, [
|
|
7145
|
+
X.value ? (l(), a("span", E0, R(X.value), 1)) : Z("", !0)
|
|
7114
7146
|
])) : Z("", !0)
|
|
7115
7147
|
], 2));
|
|
7116
7148
|
}
|
|
7117
|
-
}),
|
|
7149
|
+
}), j0 = { class: "v-collapse" }, P0 = /* @__PURE__ */ we({
|
|
7118
7150
|
__name: "VCollapse",
|
|
7119
7151
|
props: {
|
|
7120
7152
|
modelValue: {},
|
|
@@ -7138,11 +7170,11 @@ const Ge = new t5(), n5 = {
|
|
|
7138
7170
|
h > -1 ? v.splice(h, 1) : v.push(f), t("update:modelValue", v), t("change", v);
|
|
7139
7171
|
}
|
|
7140
7172
|
});
|
|
7141
|
-
return p1("collapseContext", p), (f, v) => (l(), a("div",
|
|
7173
|
+
return p1("collapseContext", p), (f, v) => (l(), a("div", j0, [
|
|
7142
7174
|
Se(f.$slots, "default")
|
|
7143
7175
|
]));
|
|
7144
7176
|
}
|
|
7145
|
-
}),
|
|
7177
|
+
}), R0 = { class: "v-collapse-item__title" }, F0 = { class: "v-collapse-item__wrap" }, Z0 = { class: "v-collapse-item__content" }, z0 = /* @__PURE__ */ we({
|
|
7146
7178
|
__name: "VCollapseItem",
|
|
7147
7179
|
props: {
|
|
7148
7180
|
title: {},
|
|
@@ -7176,7 +7208,7 @@ const Ge = new t5(), n5 = {
|
|
|
7176
7208
|
class: G([{ "is-active": c.value }, "v-collapse-item__header"]),
|
|
7177
7209
|
onClick: d
|
|
7178
7210
|
}, [
|
|
7179
|
-
o("div",
|
|
7211
|
+
o("div", R0, [
|
|
7180
7212
|
Se(g.$slots, "title", {
|
|
7181
7213
|
isActive: c.value,
|
|
7182
7214
|
title: g.title
|
|
@@ -7198,8 +7230,8 @@ const Ge = new t5(), n5 = {
|
|
|
7198
7230
|
onAfterLeave: h
|
|
7199
7231
|
}, {
|
|
7200
7232
|
default: xe(() => [
|
|
7201
|
-
i1(o("div",
|
|
7202
|
-
o("div",
|
|
7233
|
+
i1(o("div", F0, [
|
|
7234
|
+
o("div", Z0, [
|
|
7203
7235
|
Se(g.$slots, "default")
|
|
7204
7236
|
])
|
|
7205
7237
|
], 512), [
|
|
@@ -7210,7 +7242,7 @@ const Ge = new t5(), n5 = {
|
|
|
7210
7242
|
})
|
|
7211
7243
|
], 2));
|
|
7212
7244
|
}
|
|
7213
|
-
}),
|
|
7245
|
+
}), O0 = { class: "vt-tabs" }, Y0 = { class: "vt-tabs__nav" }, N0 = ["onClick"], W0 = { key: 1 }, q0 = ["onClick"], U0 = { class: "vt-tabs__content" }, K0 = /* @__PURE__ */ we({
|
|
7214
7246
|
__name: "VTabs",
|
|
7215
7247
|
props: {
|
|
7216
7248
|
modelValue: { default: void 0 }
|
|
@@ -7245,8 +7277,8 @@ const Ge = new t5(), n5 = {
|
|
|
7245
7277
|
addTab: p,
|
|
7246
7278
|
removeTab: f,
|
|
7247
7279
|
selectTab: v
|
|
7248
|
-
}), (g, _) => (l(), a("div",
|
|
7249
|
-
o("div",
|
|
7280
|
+
}), (g, _) => (l(), a("div", O0, [
|
|
7281
|
+
o("div", Y0, [
|
|
7250
7282
|
(l(!0), a(ie, null, pe(d.value, (b) => (l(), a("div", {
|
|
7251
7283
|
key: b.name,
|
|
7252
7284
|
class: G([{
|
|
@@ -7264,7 +7296,7 @@ const Ge = new t5(), n5 = {
|
|
|
7264
7296
|
name: b.icon,
|
|
7265
7297
|
class: "vt-tab-icon"
|
|
7266
7298
|
}, null, 8, ["name"])) : Z("", !0),
|
|
7267
|
-
b.label ? (l(), a("span",
|
|
7299
|
+
b.label ? (l(), a("span", W0, R(b.label), 1)) : Z("", !0)
|
|
7268
7300
|
], 64)),
|
|
7269
7301
|
b.closable ? (l(), a("span", {
|
|
7270
7302
|
key: 2,
|
|
@@ -7272,15 +7304,15 @@ const Ge = new t5(), n5 = {
|
|
|
7272
7304
|
onClick: Ve((s) => f(b.name), ["stop"])
|
|
7273
7305
|
}, [
|
|
7274
7306
|
ne(fe, { name: "close" })
|
|
7275
|
-
], 8,
|
|
7276
|
-
], 10,
|
|
7307
|
+
], 8, q0)) : Z("", !0)
|
|
7308
|
+
], 10, N0))), 128))
|
|
7277
7309
|
]),
|
|
7278
|
-
o("div",
|
|
7310
|
+
o("div", U0, [
|
|
7279
7311
|
Se(g.$slots, "default")
|
|
7280
7312
|
])
|
|
7281
7313
|
]));
|
|
7282
7314
|
}
|
|
7283
|
-
}),
|
|
7315
|
+
}), X0 = { class: "vt-tabs__pane" }, Q0 = /* @__PURE__ */ we({
|
|
7284
7316
|
__name: "VTabItem",
|
|
7285
7317
|
props: {
|
|
7286
7318
|
label: { default: "" },
|
|
@@ -7306,7 +7338,7 @@ const Ge = new t5(), n5 = {
|
|
|
7306
7338
|
});
|
|
7307
7339
|
}), Q1(() => {
|
|
7308
7340
|
r.removeTab(e.name);
|
|
7309
|
-
}), (i, c) => i1((l(), a("div",
|
|
7341
|
+
}), (i, c) => i1((l(), a("div", X0, [
|
|
7310
7342
|
Se(i.$slots, "default")
|
|
7311
7343
|
], 512)), [
|
|
7312
7344
|
[J1, t.value]
|
|
@@ -7340,13 +7372,13 @@ class l1 {
|
|
|
7340
7372
|
return `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
7341
7373
|
}
|
|
7342
7374
|
}
|
|
7343
|
-
const
|
|
7375
|
+
const G0 = { class: "vt-upload" }, J0 = { class: "vt-upload__text" }, e4 = { class: "vt-upload__placeholder" }, t4 = { class: "vt-upload__link" }, n4 = {
|
|
7344
7376
|
key: 0,
|
|
7345
7377
|
class: "vt-upload__tip"
|
|
7346
|
-
},
|
|
7378
|
+
}, o4 = {
|
|
7347
7379
|
key: 2,
|
|
7348
7380
|
class: "vt-upload__list"
|
|
7349
|
-
},
|
|
7381
|
+
}, s4 = { class: "vt-upload__list-item-icon" }, r4 = { class: "vt-upload__list-item-info" }, l4 = { class: "vt-upload__list-item-name" }, i4 = { class: "vt-upload__list-item-size" }, a4 = ["disabled", "onClick"], u4 = ["accept", "disabled", "multiple"], c4 = /* @__PURE__ */ we({
|
|
7350
7382
|
__name: "VUpload",
|
|
7351
7383
|
props: {
|
|
7352
7384
|
modelValue: { default: () => [] },
|
|
@@ -7424,7 +7456,7 @@ const U0 = { class: "vt-upload" }, K0 = { class: "vt-upload__text" }, X0 = { cla
|
|
|
7424
7456
|
var V;
|
|
7425
7457
|
r.disabled || !f.value || (V = c.value) == null || V.click();
|
|
7426
7458
|
};
|
|
7427
|
-
return (V, S) => (l(), a("div",
|
|
7459
|
+
return (V, S) => (l(), a("div", G0, [
|
|
7428
7460
|
V.type === "drag" ? (l(), a("div", {
|
|
7429
7461
|
key: 0,
|
|
7430
7462
|
class: G([{
|
|
@@ -7458,13 +7490,13 @@ const U0 = { class: "vt-upload" }, K0 = { class: "vt-upload__text" }, X0 = { cla
|
|
|
7458
7490
|
})
|
|
7459
7491
|
])
|
|
7460
7492
|
], -1)),
|
|
7461
|
-
o("div",
|
|
7462
|
-
o("span",
|
|
7493
|
+
o("div", J0, [
|
|
7494
|
+
o("span", e4, [
|
|
7463
7495
|
$e(R(V.placeholder.split(" or ")[0]) + " ", 1),
|
|
7464
|
-
o("span",
|
|
7496
|
+
o("span", t4, " or " + R(V.placeholder.split(" or ")[1]), 1)
|
|
7465
7497
|
])
|
|
7466
7498
|
]),
|
|
7467
|
-
p.value ? (l(), a("div",
|
|
7499
|
+
p.value ? (l(), a("div", n4, R(p.value), 1)) : Z("", !0)
|
|
7468
7500
|
], 34)) : (l(), ge(Je, {
|
|
7469
7501
|
key: 1,
|
|
7470
7502
|
disabled: V.disabled || !f.value,
|
|
@@ -7478,17 +7510,17 @@ const U0 = { class: "vt-upload" }, K0 = { class: "vt-upload__text" }, X0 = { cla
|
|
|
7478
7510
|
_: 1,
|
|
7479
7511
|
__: [1]
|
|
7480
7512
|
}, 8, ["disabled"])),
|
|
7481
|
-
d.value.length > 0 ? (l(), a("div",
|
|
7513
|
+
d.value.length > 0 ? (l(), a("div", o4, [
|
|
7482
7514
|
(l(!0), a(ie, null, pe(d.value, (T) => (l(), a("div", {
|
|
7483
7515
|
key: T.id,
|
|
7484
7516
|
class: "vt-upload__list-item"
|
|
7485
7517
|
}, [
|
|
7486
|
-
o("div",
|
|
7518
|
+
o("div", s4, [
|
|
7487
7519
|
ne(fe, { name: "fileDoc" })
|
|
7488
7520
|
]),
|
|
7489
|
-
o("div",
|
|
7490
|
-
o("div",
|
|
7491
|
-
o("div",
|
|
7521
|
+
o("div", r4, [
|
|
7522
|
+
o("div", l4, R(T.name), 1),
|
|
7523
|
+
o("div", i4, R(O(l1).formatFileSize(T.size)), 1)
|
|
7492
7524
|
]),
|
|
7493
7525
|
o("button", {
|
|
7494
7526
|
disabled: V.disabled,
|
|
@@ -7497,7 +7529,7 @@ const U0 = { class: "vt-upload" }, K0 = { class: "vt-upload__text" }, X0 = { cla
|
|
|
7497
7529
|
onClick: (U) => N(T)
|
|
7498
7530
|
}, [
|
|
7499
7531
|
ne(fe, { name: "delete" })
|
|
7500
|
-
], 8,
|
|
7532
|
+
], 8, a4)
|
|
7501
7533
|
]))), 128))
|
|
7502
7534
|
])) : Z("", !0),
|
|
7503
7535
|
o("input", {
|
|
@@ -7509,7 +7541,7 @@ const U0 = { class: "vt-upload" }, K0 = { class: "vt-upload__text" }, X0 = { cla
|
|
|
7509
7541
|
class: "vt-upload__input",
|
|
7510
7542
|
type: "file",
|
|
7511
7543
|
onChange: _
|
|
7512
|
-
}, null, 40,
|
|
7544
|
+
}, null, 40, u4)
|
|
7513
7545
|
]));
|
|
7514
7546
|
}
|
|
7515
7547
|
}), O1 = (n, e) => {
|
|
@@ -7603,7 +7635,7 @@ const U0 = { class: "vt-upload" }, K0 = { class: "vt-upload__text" }, X0 = { cla
|
|
|
7603
7635
|
});
|
|
7604
7636
|
}, N1 = (n) => {
|
|
7605
7637
|
n.style.opacity = "0", n.style.visibility = "hidden";
|
|
7606
|
-
}, W1 = (n) => n.scrollWidth > n.clientWidth || n.scrollHeight > n.clientHeight, q1 = (n) => !!n.closest(".vt-table, table"),
|
|
7638
|
+
}, W1 = (n) => n.scrollWidth > n.clientWidth || n.scrollHeight > n.clientHeight, q1 = (n) => !!n.closest(".vt-table, table"), d4 = {
|
|
7607
7639
|
mounted(n, e) {
|
|
7608
7640
|
var f;
|
|
7609
7641
|
const r = (f = e.value) == null ? void 0 : f.trim();
|
|
@@ -7640,7 +7672,7 @@ const U0 = { class: "vt-upload" }, K0 = { class: "vt-upload__text" }, X0 = { cla
|
|
|
7640
7672
|
beforeUnmount(n) {
|
|
7641
7673
|
n.__tooltipEl && n.__tooltipEl.parentElement && (n.__tooltipEl.parentElement.removeChild(n.__tooltipEl), delete n.__tooltipEl), n.__mouseenterHandler && (n.removeEventListener("mouseenter", n.__mouseenterHandler), delete n.__mouseenterHandler), n.__mouseleaveHandler && (n.removeEventListener("mouseleave", n.__mouseleaveHandler), delete n.__mouseleaveHandler), n.__scrollHandler && (window.removeEventListener("scroll", n.__scrollHandler, !0), window.removeEventListener("resize", n.__scrollHandler), delete n.__scrollHandler);
|
|
7642
7674
|
}
|
|
7643
|
-
},
|
|
7675
|
+
}, h4 = {
|
|
7644
7676
|
mounted(n, e) {
|
|
7645
7677
|
O(e.value) && U1(n);
|
|
7646
7678
|
},
|
|
@@ -7663,10 +7695,10 @@ function K1(n) {
|
|
|
7663
7695
|
const e = n._loaderEl;
|
|
7664
7696
|
e && (e.remove(), delete n._loaderEl);
|
|
7665
7697
|
}
|
|
7666
|
-
const
|
|
7698
|
+
const p4 = { class: "vt-message-container" }, v4 = { class: "vt-message-icon" }, f4 = { class: "vt-message-content" }, C4 = ["innerHTML"], m4 = {
|
|
7667
7699
|
key: 1,
|
|
7668
7700
|
class: "vt-message-text"
|
|
7669
|
-
},
|
|
7701
|
+
}, _4 = ["onClick"], g4 = /* @__PURE__ */ we({
|
|
7670
7702
|
__name: "VMessage",
|
|
7671
7703
|
setup(n, { expose: e }) {
|
|
7672
7704
|
const r = B([]);
|
|
@@ -7696,7 +7728,7 @@ const u4 = { class: "vt-message-container" }, c4 = { class: "vt-message-icon" },
|
|
|
7696
7728
|
addMessage: c,
|
|
7697
7729
|
removeMessage: d
|
|
7698
7730
|
}), (p, f) => (l(), ge(a1, { to: "body" }, [
|
|
7699
|
-
o("div",
|
|
7731
|
+
o("div", p4, [
|
|
7700
7732
|
ne(gt, {
|
|
7701
7733
|
name: "vt-message",
|
|
7702
7734
|
tag: "div"
|
|
@@ -7710,18 +7742,18 @@ const u4 = { class: "vt-message-container" }, c4 = { class: "vt-message-icon" },
|
|
|
7710
7742
|
{ "vt-message-item--closable": v.showClose }
|
|
7711
7743
|
])
|
|
7712
7744
|
}, [
|
|
7713
|
-
o("div",
|
|
7745
|
+
o("div", v4, [
|
|
7714
7746
|
ne(fe, {
|
|
7715
7747
|
color: v.type === "primary" ? "#00475A" : "",
|
|
7716
7748
|
name: i(v.type)
|
|
7717
7749
|
}, null, 8, ["color", "name"])
|
|
7718
7750
|
]),
|
|
7719
|
-
o("div",
|
|
7751
|
+
o("div", f4, [
|
|
7720
7752
|
v.dangerouslyUseHTMLString ? (l(), a("div", {
|
|
7721
7753
|
key: 0,
|
|
7722
7754
|
class: "vt-message-text",
|
|
7723
7755
|
innerHTML: v.message
|
|
7724
|
-
}, null, 8,
|
|
7756
|
+
}, null, 8, C4)) : (l(), a("div", m4, R(v.message), 1))
|
|
7725
7757
|
]),
|
|
7726
7758
|
v.showClose ? (l(), a("button", {
|
|
7727
7759
|
key: 0,
|
|
@@ -7730,7 +7762,7 @@ const u4 = { class: "vt-message-container" }, c4 = { class: "vt-message-icon" },
|
|
|
7730
7762
|
onClick: (h) => d(v.id)
|
|
7731
7763
|
}, [
|
|
7732
7764
|
ne(fe, { name: "close" })
|
|
7733
|
-
], 8,
|
|
7765
|
+
], 8, _4)) : Z("", !0)
|
|
7734
7766
|
], 2))), 128))
|
|
7735
7767
|
]),
|
|
7736
7768
|
_: 1
|
|
@@ -7739,7 +7771,7 @@ const u4 = { class: "vt-message-container" }, c4 = { class: "vt-message-icon" },
|
|
|
7739
7771
|
]));
|
|
7740
7772
|
}
|
|
7741
7773
|
});
|
|
7742
|
-
class
|
|
7774
|
+
class w4 {
|
|
7743
7775
|
constructor() {
|
|
7744
7776
|
this.messageInstance = null, this.app = null, this.container = null;
|
|
7745
7777
|
}
|
|
@@ -7776,10 +7808,10 @@ class C4 {
|
|
|
7776
7808
|
return this.messageInstance ? this.messageInstance.messages.length : 0;
|
|
7777
7809
|
}
|
|
7778
7810
|
ensureInstance() {
|
|
7779
|
-
return this.messageInstance ? this.messageInstance : (this.container = document.createElement("div"), this.container.setAttribute("data-vt-message-container", ""), document.body.appendChild(this.container), this.app = G1(
|
|
7811
|
+
return this.messageInstance ? this.messageInstance : (this.container = document.createElement("div"), this.container.setAttribute("data-vt-message-container", ""), document.body.appendChild(this.container), this.app = G1(g4), this.messageInstance = this.app.mount(this.container), this.messageInstance);
|
|
7780
7812
|
}
|
|
7781
7813
|
}
|
|
7782
|
-
const Xe = new
|
|
7814
|
+
const Xe = new w4(), X1 = Object.assign(
|
|
7783
7815
|
(n = {}) => Xe.call(n),
|
|
7784
7816
|
{
|
|
7785
7817
|
success: (n, e = {}) => Xe.success(n, e),
|
|
@@ -7793,7 +7825,7 @@ const Xe = new C4(), X1 = Object.assign(
|
|
|
7793
7825
|
Xe.closeAll();
|
|
7794
7826
|
}
|
|
7795
7827
|
}
|
|
7796
|
-
),
|
|
7828
|
+
), k4 = {
|
|
7797
7829
|
install(n) {
|
|
7798
7830
|
n.config.globalProperties.$message = X1, n.provide("$message", X1), n.config.globalProperties.$messageStack = {
|
|
7799
7831
|
closeAll: () => Xe.closeAll(),
|
|
@@ -7802,15 +7834,15 @@ const Xe = new C4(), X1 = Object.assign(
|
|
|
7802
7834
|
};
|
|
7803
7835
|
}
|
|
7804
7836
|
};
|
|
7805
|
-
function
|
|
7837
|
+
function P4(n, e) {
|
|
7806
7838
|
const r = e;
|
|
7807
7839
|
return r.$params = n, r;
|
|
7808
7840
|
}
|
|
7809
|
-
function
|
|
7841
|
+
function R4(n, e) {
|
|
7810
7842
|
const r = e;
|
|
7811
7843
|
return r.$message = n, r;
|
|
7812
7844
|
}
|
|
7813
|
-
function
|
|
7845
|
+
function F4(n) {
|
|
7814
7846
|
const e = n;
|
|
7815
7847
|
return e.$async = !0, e;
|
|
7816
7848
|
}
|
|
@@ -7818,30 +7850,30 @@ function f1(n, e) {
|
|
|
7818
7850
|
const r = e;
|
|
7819
7851
|
return r.$validatorName = n, r;
|
|
7820
7852
|
}
|
|
7821
|
-
function
|
|
7853
|
+
function Z4(n, e) {
|
|
7822
7854
|
let r = e;
|
|
7823
7855
|
return n.name && (r.$validatorName = n.name), n.params && (r.$params = n.params), n.message && (r.$message = n.message), n.async && (r.$async = !0), r;
|
|
7824
7856
|
}
|
|
7825
|
-
const
|
|
7826
|
-
f1("required",
|
|
7827
|
-
const
|
|
7857
|
+
const y4 = (n) => n == null ? "Поле є обовʼязковим" : Array.isArray(n) ? n.length > 0 || "Поле є обовʼязковим" : n.toString().trim() !== "" || "Поле є обовʼязковим";
|
|
7858
|
+
f1("required", y4);
|
|
7859
|
+
const z4 = (n) => Object.assign(
|
|
7828
7860
|
(e) => e == null || e === "" ? !0 : e.length >= n || `Мінімальна довжина ${n}`,
|
|
7829
7861
|
{ $params: { min: n }, $validatorName: "minLength" }
|
|
7830
|
-
),
|
|
7862
|
+
), O4 = (n) => Object.assign(
|
|
7831
7863
|
(e) => e == null || e === "" ? !0 : e.length <= n || `Максимальна довжина ${n}`,
|
|
7832
7864
|
{ $params: { max: n }, $validatorName: "maxLength" }
|
|
7833
|
-
),
|
|
7834
|
-
f1("email",
|
|
7835
|
-
const
|
|
7865
|
+
), b4 = (n) => (n == null || n === "" ? !0 : /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)) || "Невірний email";
|
|
7866
|
+
f1("email", b4);
|
|
7867
|
+
const Y4 = (n, e) => Object.assign(
|
|
7836
7868
|
(r) => r === n() || e || "Значення не співпадає",
|
|
7837
7869
|
{ $params: { eq: n }, $validatorName: "sameAs" }
|
|
7838
|
-
),
|
|
7839
|
-
f1("numeric",
|
|
7840
|
-
const
|
|
7841
|
-
f1("containUpperCaseLetter",
|
|
7842
|
-
const
|
|
7843
|
-
f1("noSpaces",
|
|
7844
|
-
const
|
|
7870
|
+
), $4 = (n) => (n == null || n === "" ? !0 : !isNaN(Number(n))) || "Повинно бути числом";
|
|
7871
|
+
f1("numeric", $4);
|
|
7872
|
+
const M4 = (n) => n == null || n === "" ? !0 : /[A-Z]/.test(n) || "Має містити хоча б одну велику літеру";
|
|
7873
|
+
f1("containUpperCaseLetter", M4);
|
|
7874
|
+
const x4 = (n) => n == null || n === "" ? !0 : !/\s/.test(n) || "Не повинно містити пробілів";
|
|
7875
|
+
f1("noSpaces", x4);
|
|
7876
|
+
const N4 = (n, e = "Значення вже зайнято") => Object.assign(async (t) => t == null || t === "" ? !0 : await n(t) || e, { $async: !0, $validatorName: "uniqueAsync" });
|
|
7845
7877
|
function at(n, e) {
|
|
7846
7878
|
if (!e) return n;
|
|
7847
7879
|
const r = e.split(".");
|
|
@@ -7852,7 +7884,7 @@ function at(n, e) {
|
|
|
7852
7884
|
}
|
|
7853
7885
|
return t;
|
|
7854
7886
|
}
|
|
7855
|
-
function
|
|
7887
|
+
function L4(n, e, r) {
|
|
7856
7888
|
const t = e.split(".");
|
|
7857
7889
|
let i = n;
|
|
7858
7890
|
for (let c = 0; c < t.length - 1; c++) {
|
|
@@ -7861,7 +7893,7 @@ function b4(n, e, r) {
|
|
|
7861
7893
|
}
|
|
7862
7894
|
i[t[t.length - 1]] = r;
|
|
7863
7895
|
}
|
|
7864
|
-
function
|
|
7896
|
+
function V4(n, e) {
|
|
7865
7897
|
return {
|
|
7866
7898
|
get value() {
|
|
7867
7899
|
const r = _1(n) ? n.value : n;
|
|
@@ -7869,12 +7901,12 @@ function $4(n, e) {
|
|
|
7869
7901
|
},
|
|
7870
7902
|
set value(r) {
|
|
7871
7903
|
const t = _1(n) ? n.value : n;
|
|
7872
|
-
|
|
7904
|
+
L4(t, e, r);
|
|
7873
7905
|
}
|
|
7874
7906
|
};
|
|
7875
7907
|
}
|
|
7876
|
-
function
|
|
7877
|
-
const i =
|
|
7908
|
+
function S4(n, e, r, t) {
|
|
7909
|
+
const i = V4(n, e), c = B(!1), d = B(!1), p = B(!1), f = { t: 0 };
|
|
7878
7910
|
let v = !1, h = [];
|
|
7879
7911
|
const g = B([]);
|
|
7880
7912
|
async function _(s) {
|
|
@@ -7965,7 +7997,7 @@ function M4(n, e, r, t) {
|
|
|
7965
7997
|
h = [], b.$validate();
|
|
7966
7998
|
}, b;
|
|
7967
7999
|
}
|
|
7968
|
-
function
|
|
8000
|
+
function W4(n, e, r) {
|
|
7969
8001
|
const t = { silentErrors: !!(r != null && r.silentErrors) }, i = typeof n == "function" ? n() : n, c = (_1(e), e);
|
|
7970
8002
|
function d(h, g = "") {
|
|
7971
8003
|
const _ = {}, b = Object.keys(h || {});
|
|
@@ -7973,7 +8005,7 @@ function z4(n, e, r) {
|
|
|
7973
8005
|
const D = h[E], Q = g ? `${g}.${E}` : E;
|
|
7974
8006
|
if (typeof D == "function" || Array.isArray(D) && D.length > 0 && typeof D[0] == "function") {
|
|
7975
8007
|
const oe = Array.isArray(D) ? D : [D];
|
|
7976
|
-
_[E] =
|
|
8008
|
+
_[E] = S4(c, Q, oe, t);
|
|
7977
8009
|
} else typeof D == "object" && D !== null ? typeof D == "object" && Array.isArray(D) === !1 && (_[E] = d(D, Q)) : _[E] = d({}, Q);
|
|
7978
8010
|
}
|
|
7979
8011
|
const s = async () => {
|
|
@@ -8068,81 +8100,81 @@ function z4(n, e, r) {
|
|
|
8068
8100
|
const v = d(i, "");
|
|
8069
8101
|
return v;
|
|
8070
8102
|
}
|
|
8071
|
-
const
|
|
8103
|
+
const q4 = {
|
|
8072
8104
|
sortable: !0,
|
|
8073
8105
|
actionColumn: !1,
|
|
8074
8106
|
showOverflowTooltip: !0,
|
|
8075
8107
|
visible: !0,
|
|
8076
8108
|
pinnedLeft: !1,
|
|
8077
8109
|
pinnedRight: !1
|
|
8078
|
-
},
|
|
8110
|
+
}, D4 = {
|
|
8079
8111
|
install(n, e = {}) {
|
|
8080
8112
|
const { prefix: r = "V", modal: t = !0, message: i = !0 } = e;
|
|
8081
|
-
n.component(`${r}Button`, Je), n.component(`${r}Icon`, fe), n.component(`${r}Loader`, g1), n.component(`${r}Modal`, et), n.component(`${r}Pagination`,
|
|
8113
|
+
n.component(`${r}Button`, Je), n.component(`${r}Icon`, fe), n.component(`${r}Loader`, g1), n.component(`${r}Modal`, et), n.component(`${r}Pagination`, U2), n.component(`${r}Checkbox`, o1), n.component(`${r}Radiobox`, Q2), n.component(`${r}Table`, j5), n.component(`${r}TableColumn`, P5), n.component(`${r}Dropdown`, lt), n.component(`${r}DropdownItem`, L1), n.component(`${r}Input`, nt), n.component(`${r}Select`, ot), n.component(`${r}Option`, st), n.component(`${r}DatePicker`, A0), n.component(`${r}TimePicker`, m1), n.component(`${r}Collapse`, P0), n.component(`${r}CollapseItem`, z0), n.component(`${r}Tabs`, K0), n.component(`${r}TabItem`, Q0), n.component(`${r}Upload`, c4), n.directive("tooltip", d4), n.directive("loader", h4), t && n.use(l5), i && n.use(k4);
|
|
8082
8114
|
}
|
|
8083
|
-
},
|
|
8115
|
+
}, U4 = D4.install;
|
|
8084
8116
|
export {
|
|
8085
|
-
|
|
8086
|
-
|
|
8117
|
+
q4 as DEFAULT_COLUMN_CONFIG,
|
|
8118
|
+
F5 as DEFAULT_FORMATS,
|
|
8087
8119
|
C1 as DEFAULT_TIME_FORMATS,
|
|
8088
8120
|
rt as DropdownContextKey,
|
|
8089
|
-
|
|
8121
|
+
A4 as FORMAT_TOKENS,
|
|
8090
8122
|
l1 as FileValidator,
|
|
8091
|
-
|
|
8123
|
+
R5 as MONTH_NAMES,
|
|
8092
8124
|
it as MONTH_NAMES_SHORT,
|
|
8093
8125
|
Je as VButton,
|
|
8094
8126
|
o1 as VCheckbox,
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8127
|
+
P0 as VCollapse,
|
|
8128
|
+
z0 as VCollapseItem,
|
|
8129
|
+
A0 as VDatePicker,
|
|
8098
8130
|
lt as VDropdown,
|
|
8099
8131
|
L1 as VDropdownItem,
|
|
8100
8132
|
fe as VIcon,
|
|
8101
8133
|
nt as VInput,
|
|
8102
8134
|
g1 as VLoader,
|
|
8103
8135
|
X1 as VMessage,
|
|
8104
|
-
|
|
8136
|
+
k4 as VMessagePlugin,
|
|
8105
8137
|
et as VModal,
|
|
8106
|
-
|
|
8138
|
+
l5 as VModalPlugin,
|
|
8107
8139
|
st as VOption,
|
|
8108
|
-
|
|
8109
|
-
|
|
8140
|
+
U2 as VPagination,
|
|
8141
|
+
Q2 as VRadiobox,
|
|
8110
8142
|
ot as VSelect,
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8143
|
+
Q0 as VTabItem,
|
|
8144
|
+
j5 as VTable,
|
|
8145
|
+
P5 as VTableColumn,
|
|
8146
|
+
K0 as VTabs,
|
|
8115
8147
|
m1 as VTimePicker,
|
|
8116
|
-
|
|
8148
|
+
c4 as VUpload,
|
|
8117
8149
|
tt as VtSelectContextKey,
|
|
8118
|
-
|
|
8150
|
+
j4 as WEEKDAY_NAMES,
|
|
8119
8151
|
M1 as WEEKDAY_NAMES_SHORT,
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8152
|
+
M4 as containUpperCaseLetter,
|
|
8153
|
+
D4 as default,
|
|
8154
|
+
b4 as email,
|
|
8155
|
+
W5 as formatTime,
|
|
8124
8156
|
x1 as generateTimeOptions,
|
|
8125
|
-
|
|
8157
|
+
U4 as install,
|
|
8126
8158
|
F1 as isValidDate,
|
|
8127
8159
|
V1 as isValidTimeString,
|
|
8128
|
-
|
|
8129
|
-
|
|
8160
|
+
h4 as loaderDirective,
|
|
8161
|
+
O4 as maxLength,
|
|
8130
8162
|
Xe as messageManager,
|
|
8131
|
-
|
|
8132
|
-
|
|
8163
|
+
z4 as minLength,
|
|
8164
|
+
Z4 as mk,
|
|
8133
8165
|
Ge as modalManager,
|
|
8134
|
-
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8166
|
+
x4 as noSpaces,
|
|
8167
|
+
$4 as numeric,
|
|
8168
|
+
q5 as parseTimeString,
|
|
8169
|
+
y4 as required,
|
|
8170
|
+
Y4 as sameAs,
|
|
8171
|
+
d4 as tooltipDirective,
|
|
8172
|
+
N4 as uniqueAsync,
|
|
8173
|
+
W4 as useValidate,
|
|
8174
|
+
z5 as validateDateValue,
|
|
8175
|
+
N5 as validateTimeValue,
|
|
8176
|
+
F4 as withAsync,
|
|
8177
|
+
R4 as withMessage,
|
|
8146
8178
|
f1 as withName,
|
|
8147
|
-
|
|
8179
|
+
P4 as withParams
|
|
8148
8180
|
};
|