monobill-mintui 0.6.738 → 0.6.739
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/components/alert/browser.js +4 -4
- package/dist/components/alert/index.cjs +1 -1
- package/dist/components/alert/index.js +4 -4
- package/dist/components/back-button/browser.js +1 -1
- package/dist/components/back-button/index.cjs +1 -1
- package/dist/components/back-button/index.js +1 -1
- package/dist/components/bottom-navigation/browser.js +2 -2
- package/dist/components/bottom-navigation/index.cjs +1 -1
- package/dist/components/bottom-navigation/index.js +2 -2
- package/dist/components/button/browser.js +1 -1
- package/dist/components/button/index.cjs +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/checkbox/browser.js +1 -1
- package/dist/components/checkbox/index.cjs +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/chip/browser.js +1 -1
- package/dist/components/chip/index.cjs +1 -1
- package/dist/components/chip/index.js +1 -1
- package/dist/components/chunks/ScrollFade-58GqgRLY.js +1 -0
- package/dist/components/chunks/ScrollFade-kpfpO4Zb.js +160 -0
- package/dist/components/chunks/{back-button-C_aLMNZE.js → back-button-CQ3ZKGa1.js} +1 -1
- package/dist/components/chunks/{back-button-CMZR-p_D.js → back-button-DpPfWpAh.js} +2 -2
- package/dist/components/chunks/{button-THsh4Svz.js → button-CIuVIyLf.js} +2 -2
- package/dist/components/chunks/{button-CELyLLtj.js → button-CgymemwA.js} +1 -1
- package/dist/components/chunks/{caret-down-DUfiCBEs.js → caret-down-CikQdiAu.js} +1 -1
- package/dist/components/chunks/caret-down-DZinO2Vg.js +1 -0
- package/dist/components/chunks/caret-right-CMZIcNYV.js +1 -0
- package/dist/components/chunks/{caret-right-CppgjbLX.js → caret-right-ZvpF7jIK.js} +1 -1
- package/dist/components/chunks/{checkbox-d5UlscqI.js → checkbox-98ctQydC.js} +1 -1
- package/dist/components/chunks/{checkbox-CZViKLNo.js → checkbox-B8VzPrhn.js} +2 -2
- package/dist/components/chunks/{chip-G6SRCgLq.js → chip-Cqm_NPF5.js} +3 -3
- package/dist/components/chunks/{chip-DJ_kZURn.js → chip-dVw8BZP7.js} +1 -1
- package/dist/components/chunks/{close-ChHICicN.js → close-DtRLefjU.js} +1 -1
- package/dist/components/chunks/close-DuS1TdUB.js +1 -0
- package/dist/components/chunks/{confirm-action-BSHfjDfA.js → confirm-action-8Yx0K5j1.js} +1 -1
- package/dist/components/chunks/{confirm-action-CRZMTjpd.js → confirm-action-C0XX_TyJ.js} +2 -2
- package/dist/components/chunks/{date-picker-R8J7EzuF.js → date-picker-BJ_82oRR.js} +1 -1
- package/dist/components/chunks/{date-picker-STjYRdxE.js → date-picker-BuJJ8gvT.js} +5 -5
- package/dist/components/chunks/icon-Cmx9FTmb.js +1 -0
- package/dist/components/chunks/{icon-1cs-hcBy.js → icon-CuRTWM4k.js} +67 -57
- package/dist/components/chunks/icon-pgeP1zxb.js +51 -0
- package/dist/components/chunks/icon-rdeLRs-R.js +1 -0
- package/dist/components/chunks/{input-Bu4xPosP.js → input-BpcFd35m.js} +3 -3
- package/dist/components/chunks/{input-Zqw53jts.js → input-DJaqPjMg.js} +1 -1
- package/dist/components/chunks/{modal-CL5EStu0.js → modal-BJtuPK1b.js} +1 -1
- package/dist/components/chunks/{modal-ss_OTDJJ.js → modal-BzRle8yT.js} +2 -2
- package/dist/components/chunks/{popover-7-PJT1-5.js → popover-BcN2LEbO.js} +1 -1
- package/dist/components/chunks/{popover-CD0v0njp.js → popover-N3cKN8iW.js} +1 -1
- package/dist/components/chunks/search-DA6dk5kF.js +1 -0
- package/dist/components/chunks/{search-qSlGRuMR.js → search-Dw9cb1wC.js} +1 -1
- package/dist/components/chunks/{select-oEt5Dm4P.js → select-Ctps8gPL.js} +1 -1
- package/dist/components/chunks/{select-hL6gV7mL.js → select-DPERiupq.js} +3 -3
- package/dist/components/chunks/sortable-Bj0VTUqS.js +1 -0
- package/dist/components/chunks/{sortable-CQtdBuGw.js → sortable-DWfdFpgA.js} +59 -22
- package/dist/components/chunks/{table-D82Gvcva.js → table-C4xUMQw6.js} +1 -1
- package/dist/components/chunks/{table-BZ73d2Yb.js → table-k97RfsAA.js} +1 -1
- package/dist/components/chunks/{time-picker-B7oXBU8q.js → time-picker-Bl8KsaJj.js} +3 -3
- package/dist/components/chunks/{time-picker-QzH9kywR.js → time-picker-D74vZTpL.js} +1 -1
- package/dist/components/chunks/{warning-gkij2FhS.js → warning-B1-z7ww9.js} +1 -1
- package/dist/components/chunks/{warning-Cf8ePVsQ.js → warning-CfJwI6nV.js} +1 -1
- package/dist/components/confirm-action/browser.js +1 -1
- package/dist/components/confirm-action/index.cjs +1 -1
- package/dist/components/confirm-action/index.js +1 -1
- package/dist/components/date-picker/browser.js +1 -1
- package/dist/components/date-picker/index.cjs +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/datetime-picker/browser.js +3 -3
- package/dist/components/datetime-picker/index.cjs +1 -1
- package/dist/components/datetime-picker/index.js +3 -3
- package/dist/components/dropzone/browser.js +4 -4
- package/dist/components/dropzone/index.cjs +1 -1
- package/dist/components/dropzone/index.js +4 -4
- package/dist/components/editor/Editor.d.ts.map +1 -1
- package/dist/components/editor/browser.js +76 -73
- package/dist/components/editor/index.cjs +2 -2
- package/dist/components/editor/index.d.ts +1 -0
- package/dist/components/editor/index.d.ts.map +1 -1
- package/dist/components/editor/index.js +76 -73
- package/dist/components/form/Form.d.ts +5 -1
- package/dist/components/form/Form.d.ts.map +1 -1
- package/dist/components/form/browser.js +52 -40
- package/dist/components/form/index.cjs +1 -1
- package/dist/components/form/index.js +52 -40
- package/dist/components/icon/browser.js +1 -1
- package/dist/components/icon/icons/index.d.ts +1 -0
- package/dist/components/icon/icons/index.d.ts.map +1 -1
- package/dist/components/icon/icons/play.d.ts +3 -0
- package/dist/components/icon/icons/play.d.ts.map +1 -0
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/input/browser.js +1 -1
- package/dist/components/input/index.cjs +1 -1
- package/dist/components/input/index.js +1 -1
- package/dist/components/modal/browser.js +1 -1
- package/dist/components/modal/index.cjs +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/navigation/browser.js +3 -3
- package/dist/components/navigation/index.cjs +1 -1
- package/dist/components/navigation/index.js +3 -3
- package/dist/components/off-canvas/browser.js +2 -2
- package/dist/components/off-canvas/index.cjs +1 -1
- package/dist/components/off-canvas/index.js +2 -2
- package/dist/components/page/browser.js +4 -4
- package/dist/components/page/index.cjs +1 -1
- package/dist/components/page/index.js +4 -4
- package/dist/components/popover/browser.js +1 -1
- package/dist/components/popover/index.cjs +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/resource-table/browser.js +11 -11
- package/dist/components/resource-table/index.cjs +1 -1
- package/dist/components/resource-table/index.js +11 -11
- package/dist/components/scroll-fade/ScrollFade.d.ts.map +1 -1
- package/dist/components/scroll-fade/browser.js +1 -1
- package/dist/components/scroll-fade/index.cjs +1 -1
- package/dist/components/scroll-fade/index.js +1 -1
- package/dist/components/search/browser.js +7 -7
- package/dist/components/search/index.cjs +1 -1
- package/dist/components/search/index.js +7 -7
- package/dist/components/select/browser.js +1 -1
- package/dist/components/select/index.cjs +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/side-navigation/browser.js +6 -6
- package/dist/components/side-navigation/index.cjs +1 -1
- package/dist/components/side-navigation/index.js +6 -6
- package/dist/components/sortable/Sortable.d.ts +8 -0
- package/dist/components/sortable/Sortable.d.ts.map +1 -1
- package/dist/components/sortable/browser.js +1 -1
- package/dist/components/sortable/index.cjs +1 -1
- package/dist/components/sortable/index.js +1 -1
- package/dist/components/switch/browser.js +2 -2
- package/dist/components/switch/index.cjs +1 -1
- package/dist/components/switch/index.js +2 -2
- package/dist/components/table/browser.js +1 -1
- package/dist/components/table/index.cjs +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/tabs/browser.js +1 -1
- package/dist/components/tabs/index.cjs +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tags/Tags.d.ts.map +1 -1
- package/dist/components/tags/browser.js +8 -17
- package/dist/components/tags/index.cjs +1 -1
- package/dist/components/tags/index.js +8 -17
- package/dist/components/time-picker/browser.js +1 -1
- package/dist/components/time-picker/index.cjs +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/tree/browser.js +5 -5
- package/dist/components/tree/index.cjs +1 -1
- package/dist/components/tree/index.js +5 -5
- package/dist/editor.css +1 -1
- package/dist/icons/play.svg +3 -0
- package/dist/index.cjs +14 -14
- package/dist/index.css +3 -3
- package/dist/index.js +611 -484
- package/dist/navigation-search.json +8 -1
- package/dist/scroll-fade.css +1 -1
- package/dist/tags.css +1 -1
- package/package.json +1 -1
- package/dist/components/chunks/ScrollFade-DOnPtfC2.js +0 -85
- package/dist/components/chunks/ScrollFade-FBvsnQ1i.js +0 -1
- package/dist/components/chunks/caret-down-BiAVkpX7.js +0 -1
- package/dist/components/chunks/caret-right-8n-rhz51.js +0 -1
- package/dist/components/chunks/close-CuYimzX0.js +0 -1
- package/dist/components/chunks/icon-Bv1J3LwC.js +0 -51
- package/dist/components/chunks/icon-C-6HOPtI.js +0 -1
- package/dist/components/chunks/icon-aNwWb0hA.js +0 -1
- package/dist/components/chunks/search-C3uTkxhf.js +0 -1
- package/dist/components/chunks/sortable-Brecvk9d.js +0 -1
package/dist/index.js
CHANGED
|
@@ -351,124 +351,124 @@ var D = {
|
|
|
351
351
|
s(D);
|
|
352
352
|
//#endregion
|
|
353
353
|
//#region src/components/icon/icons/caret-down.js
|
|
354
|
-
var
|
|
354
|
+
var ee = {
|
|
355
355
|
name: "caret-down",
|
|
356
356
|
viewBox: "0 0 24 24",
|
|
357
357
|
path: "M19 9l-7 7-7-7",
|
|
358
358
|
strokeLinecap: "round",
|
|
359
359
|
strokeLinejoin: "round"
|
|
360
360
|
};
|
|
361
|
-
s(
|
|
361
|
+
s(ee);
|
|
362
362
|
//#endregion
|
|
363
363
|
//#region src/components/icon/icons/caret-left.js
|
|
364
|
-
var
|
|
364
|
+
var O = {
|
|
365
365
|
name: "caret-left",
|
|
366
366
|
viewBox: "0 0 24 24",
|
|
367
367
|
path: "M15 19l-7-7 7-7",
|
|
368
368
|
strokeLinecap: "round",
|
|
369
369
|
strokeLinejoin: "round"
|
|
370
370
|
};
|
|
371
|
-
s(
|
|
371
|
+
s(O);
|
|
372
372
|
//#endregion
|
|
373
373
|
//#region src/components/icon/icons/caret-right.js
|
|
374
|
-
var
|
|
374
|
+
var k = {
|
|
375
375
|
name: "caret-right",
|
|
376
376
|
viewBox: "0 0 24 24",
|
|
377
377
|
path: "M9 5l7 7-7 7",
|
|
378
378
|
strokeLinecap: "round",
|
|
379
379
|
strokeLinejoin: "round"
|
|
380
380
|
};
|
|
381
|
-
s(
|
|
381
|
+
s(k);
|
|
382
382
|
//#endregion
|
|
383
383
|
//#region src/components/icon/icons/caret-up.js
|
|
384
|
-
var
|
|
384
|
+
var A = {
|
|
385
385
|
name: "caret-up",
|
|
386
386
|
viewBox: "0 0 24 24",
|
|
387
387
|
path: "M5 15l7-7 7 7",
|
|
388
388
|
strokeLinecap: "round",
|
|
389
389
|
strokeLinejoin: "round"
|
|
390
390
|
};
|
|
391
|
-
s(
|
|
391
|
+
s(A);
|
|
392
392
|
//#endregion
|
|
393
393
|
//#region src/components/icon/icons/chart-bar.js
|
|
394
|
-
var
|
|
394
|
+
var j = {
|
|
395
395
|
name: "chart-bar",
|
|
396
396
|
viewBox: "0 0 24 24",
|
|
397
397
|
path: "M3 20h18M6 17v-5m4 5V7m4 10v-8m4 8v-3",
|
|
398
398
|
strokeLinecap: "round",
|
|
399
399
|
strokeLinejoin: "round"
|
|
400
400
|
};
|
|
401
|
-
s(
|
|
401
|
+
s(j);
|
|
402
402
|
//#endregion
|
|
403
403
|
//#region src/components/icon/icons/chart-line.js
|
|
404
|
-
var
|
|
404
|
+
var M = {
|
|
405
405
|
name: "chart-line",
|
|
406
406
|
viewBox: "0 0 24 24",
|
|
407
407
|
path: "M3 20h18M4 18V4m2 11l4-4 3 3 5-6m0 0h-4m4 0v4",
|
|
408
408
|
strokeLinecap: "round",
|
|
409
409
|
strokeLinejoin: "round"
|
|
410
410
|
};
|
|
411
|
-
s(
|
|
411
|
+
s(M);
|
|
412
412
|
//#endregion
|
|
413
413
|
//#region src/components/icon/icons/chat.js
|
|
414
|
-
var
|
|
414
|
+
var te = {
|
|
415
415
|
name: "chat",
|
|
416
416
|
viewBox: "0 0 24 24",
|
|
417
417
|
path: "M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z",
|
|
418
418
|
strokeLinecap: "round",
|
|
419
419
|
strokeLinejoin: "round"
|
|
420
420
|
};
|
|
421
|
-
s(
|
|
421
|
+
s(te);
|
|
422
422
|
//#endregion
|
|
423
423
|
//#region src/components/icon/icons/check.js
|
|
424
|
-
var
|
|
424
|
+
var N = {
|
|
425
425
|
name: "check",
|
|
426
426
|
viewBox: "0 0 24 24",
|
|
427
427
|
path: "M5 13l4 4L19 7",
|
|
428
428
|
strokeLinecap: "round",
|
|
429
429
|
strokeLinejoin: "round"
|
|
430
430
|
};
|
|
431
|
-
s(
|
|
431
|
+
s(N);
|
|
432
432
|
//#endregion
|
|
433
433
|
//#region src/components/icon/icons/collapse.js
|
|
434
|
-
var
|
|
434
|
+
var P = {
|
|
435
435
|
name: "collapse",
|
|
436
436
|
viewBox: "0 0 24 24",
|
|
437
437
|
path: "M8 3v3a2 2 0 01-2 2H3m18 0h-3a2 2 0 01-2-2V3M3 16h3a2 2 0 012 2v3m13-5h-3a2 2 0 00-2 2v3",
|
|
438
438
|
strokeLinecap: "round",
|
|
439
439
|
strokeLinejoin: "round"
|
|
440
440
|
};
|
|
441
|
-
s(
|
|
441
|
+
s(P);
|
|
442
442
|
//#endregion
|
|
443
443
|
//#region src/components/icon/icons/clock.js
|
|
444
|
-
var
|
|
444
|
+
var ne = {
|
|
445
445
|
name: "clock",
|
|
446
446
|
viewBox: "0 0 24 24",
|
|
447
447
|
path: "M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z",
|
|
448
448
|
strokeLinecap: "round",
|
|
449
449
|
strokeLinejoin: "round"
|
|
450
450
|
};
|
|
451
|
-
s(
|
|
451
|
+
s(ne);
|
|
452
452
|
//#endregion
|
|
453
453
|
//#region src/components/icon/icons/close.js
|
|
454
|
-
var
|
|
454
|
+
var F = {
|
|
455
455
|
name: "close",
|
|
456
456
|
viewBox: "0 0 24 24",
|
|
457
457
|
path: "M6 18L18 6M6 6l12 12",
|
|
458
458
|
strokeLinecap: "round",
|
|
459
459
|
strokeLinejoin: "round"
|
|
460
460
|
};
|
|
461
|
-
s(
|
|
461
|
+
s(F);
|
|
462
462
|
//#endregion
|
|
463
463
|
//#region src/components/icon/icons/code.js
|
|
464
|
-
var
|
|
464
|
+
var I = {
|
|
465
465
|
name: "code",
|
|
466
466
|
viewBox: "0 0 24 24",
|
|
467
467
|
path: "M9 4H7a2 2 0 00-2 2v3a3 3 0 01-3 3 3 3 0 013 3v3a2 2 0 002 2h2M15 4h2a2 2 0 012 2v3a3 3 0 003 3 3 3 0 00-3 3v3a2 2 0 01-2 2h-2",
|
|
468
468
|
strokeLinecap: "round",
|
|
469
469
|
strokeLinejoin: "round"
|
|
470
470
|
};
|
|
471
|
-
s(
|
|
471
|
+
s(I);
|
|
472
472
|
//#endregion
|
|
473
473
|
//#region src/components/icon/icons/copy.js
|
|
474
474
|
var re = {
|
|
@@ -491,34 +491,34 @@ var ie = {
|
|
|
491
491
|
s(ie);
|
|
492
492
|
//#endregion
|
|
493
493
|
//#region src/components/icon/icons/delete.js
|
|
494
|
-
var
|
|
494
|
+
var ae = {
|
|
495
495
|
name: "delete",
|
|
496
496
|
viewBox: "0 0 24 24",
|
|
497
497
|
path: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16",
|
|
498
498
|
strokeLinecap: "round",
|
|
499
499
|
strokeLinejoin: "round"
|
|
500
500
|
};
|
|
501
|
-
s(
|
|
501
|
+
s(ae);
|
|
502
502
|
//#endregion
|
|
503
503
|
//#region src/components/icon/icons/desktop.js
|
|
504
|
-
var
|
|
504
|
+
var L = {
|
|
505
505
|
name: "desktop",
|
|
506
506
|
viewBox: "0 0 24 24",
|
|
507
507
|
path: "M4 4h16a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1ZM12 17v3m-4 0h8",
|
|
508
508
|
strokeLinecap: "round",
|
|
509
509
|
strokeLinejoin: "round"
|
|
510
510
|
};
|
|
511
|
-
s(
|
|
511
|
+
s(L);
|
|
512
512
|
//#endregion
|
|
513
513
|
//#region src/components/icon/icons/desktop-screen.js
|
|
514
|
-
var
|
|
514
|
+
var R = {
|
|
515
515
|
name: "desktop-screen",
|
|
516
516
|
viewBox: "0 0 24 24",
|
|
517
517
|
path: "M3 5a2 2 0 012-2h14a2 2 0 012 2v9a2 2 0 01-2 2h-5m-4 0H5a2 2 0 01-2-2V5m7 11v4m-2 0h8",
|
|
518
518
|
strokeLinecap: "round",
|
|
519
519
|
strokeLinejoin: "round"
|
|
520
520
|
};
|
|
521
|
-
s(
|
|
521
|
+
s(R);
|
|
522
522
|
//#endregion
|
|
523
523
|
//#region src/components/icon/icons/documentation.js
|
|
524
524
|
var oe = {
|
|
@@ -927,258 +927,268 @@ var Ke = {
|
|
|
927
927
|
};
|
|
928
928
|
s(Ke);
|
|
929
929
|
//#endregion
|
|
930
|
-
//#region src/components/icon/icons/
|
|
930
|
+
//#region src/components/icon/icons/play.js
|
|
931
931
|
var qe = {
|
|
932
|
+
name: "play",
|
|
933
|
+
viewBox: "0 0 24 24",
|
|
934
|
+
path: "M8 5.5v13l10-6.5L8 5.5z",
|
|
935
|
+
strokeLinecap: "round",
|
|
936
|
+
strokeLinejoin: "round"
|
|
937
|
+
};
|
|
938
|
+
s(qe);
|
|
939
|
+
//#endregion
|
|
940
|
+
//#region src/components/icon/icons/print.js
|
|
941
|
+
var Je = {
|
|
932
942
|
name: "print",
|
|
933
943
|
viewBox: "0 0 24 24",
|
|
934
944
|
path: "M17 17h2a2 2 0 002-2v-4a2 2 0 00-2-2H5a2 2 0 00-2 2v4a2 2 0 002 2h2m2 4h6a2 2 0 002-2v-4a2 2 0 00-2-2H9a2 2 0 00-2 2v4a2 2 0 002 2zm8-12V5a2 2 0 00-2-2H9a2 2 0 00-2 2v4h10z",
|
|
935
945
|
strokeLinecap: "round",
|
|
936
946
|
strokeLinejoin: "round"
|
|
937
947
|
};
|
|
938
|
-
s(
|
|
948
|
+
s(Je);
|
|
939
949
|
//#endregion
|
|
940
950
|
//#region src/components/icon/icons/qr-code.js
|
|
941
|
-
var
|
|
951
|
+
var Ye = {
|
|
942
952
|
name: "qr-code",
|
|
943
953
|
viewBox: "0 0 24 24",
|
|
944
954
|
path: "M4 3H9C10.1 3 11 3.9 11 5V10C11 11.1 10.1 12 9 12H4C2.9 12 2 11.1 2 10V5C2 3.9 2.9 3 4 3ZM4.75 4.5C4.34 4.5 4 4.84 4 5.25V9.75C4 10.16 4.34 10.5 4.75 10.5H8.25C8.66 10.5 9 10.16 9 9.75V5.25C9 4.84 8.66 4.5 8.25 4.5H4.75ZM15 3H20C21.1 3 22 3.9 22 5V10C22 11.1 21.1 12 20 12H15C13.9 12 13 11.1 13 10V5C13 3.9 13.9 3 15 3ZM15.75 4.5C15.34 4.5 15 4.84 15 5.25V9.75C15 10.16 15.34 10.5 15.75 10.5H19.25C19.66 10.5 20 10.16 20 9.75V5.25C20 4.84 19.66 4.5 19.25 4.5H15.75ZM4 13H9C10.1 13 11 13.9 11 15V20C11 21.1 10.1 22 9 22H4C2.9 22 2 21.1 2 20V15C2 13.9 2.9 13 4 13ZM4.75 14.5C4.34 14.5 4 14.84 4 15.25V19.75C4 20.16 4.34 20.5 4.75 20.5H8.25C8.66 20.5 9 20.16 9 19.75V15.25C9 14.84 8.66 14.5 8.25 14.5H4.75ZM13 13H16V16H19V19H16V22H13V19H16V16H13V13Z",
|
|
945
955
|
strokeLinecap: "round",
|
|
946
956
|
strokeLinejoin: "round"
|
|
947
957
|
};
|
|
948
|
-
s(
|
|
958
|
+
s(Ye);
|
|
949
959
|
//#endregion
|
|
950
960
|
//#region src/components/icon/icons/refresh.js
|
|
951
|
-
var
|
|
961
|
+
var Xe = {
|
|
952
962
|
name: "refresh",
|
|
953
963
|
viewBox: "0 0 24 24",
|
|
954
964
|
path: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15",
|
|
955
965
|
strokeLinecap: "round",
|
|
956
966
|
strokeLinejoin: "round"
|
|
957
967
|
};
|
|
958
|
-
s(
|
|
968
|
+
s(Xe);
|
|
959
969
|
//#endregion
|
|
960
970
|
//#region src/components/icon/icons/remove.js
|
|
961
|
-
var
|
|
971
|
+
var Ze = {
|
|
962
972
|
name: "remove",
|
|
963
973
|
viewBox: "0 0 24 24",
|
|
964
974
|
path: "M20 12H4",
|
|
965
975
|
strokeLinecap: "round",
|
|
966
976
|
strokeLinejoin: "round"
|
|
967
977
|
};
|
|
968
|
-
s(
|
|
978
|
+
s(Ze);
|
|
969
979
|
//#endregion
|
|
970
980
|
//#region src/components/icon/icons/save.js
|
|
971
|
-
var
|
|
981
|
+
var Qe = {
|
|
972
982
|
name: "save",
|
|
973
983
|
viewBox: "0 0 24 24",
|
|
974
984
|
path: "M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4",
|
|
975
985
|
strokeLinecap: "round",
|
|
976
986
|
strokeLinejoin: "round"
|
|
977
987
|
};
|
|
978
|
-
s(
|
|
988
|
+
s(Qe);
|
|
979
989
|
//#endregion
|
|
980
990
|
//#region src/components/icon/icons/save-alt.js
|
|
981
|
-
var
|
|
991
|
+
var $e = {
|
|
982
992
|
name: "save-alt",
|
|
983
993
|
viewBox: "0 0 24 24",
|
|
984
994
|
path: "M5 3h12l4 4v14H3V3h2zm2 0v6h10V3M7 21v-8h10v8",
|
|
985
995
|
strokeLinecap: "round",
|
|
986
996
|
strokeLinejoin: "round"
|
|
987
997
|
};
|
|
988
|
-
s(
|
|
998
|
+
s($e);
|
|
989
999
|
//#endregion
|
|
990
1000
|
//#region src/components/icon/icons/search.js
|
|
991
|
-
var
|
|
1001
|
+
var et = {
|
|
992
1002
|
name: "search",
|
|
993
1003
|
viewBox: "0 0 24 24",
|
|
994
1004
|
path: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z",
|
|
995
1005
|
strokeLinecap: "round",
|
|
996
1006
|
strokeLinejoin: "round"
|
|
997
1007
|
};
|
|
998
|
-
s(
|
|
1008
|
+
s(et);
|
|
999
1009
|
//#endregion
|
|
1000
1010
|
//#region src/components/icon/icons/settings.js
|
|
1001
|
-
var
|
|
1011
|
+
var tt = {
|
|
1002
1012
|
name: "settings",
|
|
1003
1013
|
viewBox: "0 0 24 24",
|
|
1004
1014
|
path: "M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z",
|
|
1005
1015
|
strokeLinecap: "round",
|
|
1006
1016
|
strokeLinejoin: "round"
|
|
1007
1017
|
};
|
|
1008
|
-
s(
|
|
1018
|
+
s(tt);
|
|
1009
1019
|
//#endregion
|
|
1010
1020
|
//#region src/components/icon/icons/share.js
|
|
1011
|
-
var
|
|
1021
|
+
var nt = {
|
|
1012
1022
|
name: "share",
|
|
1013
1023
|
viewBox: "0 0 24 24",
|
|
1014
1024
|
path: "M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.368 2.684 3 3 0 00-5.368-2.684z",
|
|
1015
1025
|
strokeLinecap: "round",
|
|
1016
1026
|
strokeLinejoin: "round"
|
|
1017
1027
|
};
|
|
1018
|
-
s(
|
|
1028
|
+
s(nt);
|
|
1019
1029
|
//#endregion
|
|
1020
1030
|
//#region src/components/icon/icons/sort.js
|
|
1021
|
-
var
|
|
1031
|
+
var rt = {
|
|
1022
1032
|
name: "sort",
|
|
1023
1033
|
viewBox: "0 0 24 24",
|
|
1024
1034
|
path: "M3 6h18M7 12h10m-7 6h4",
|
|
1025
1035
|
strokeLinecap: "round",
|
|
1026
1036
|
strokeLinejoin: "round"
|
|
1027
1037
|
};
|
|
1028
|
-
s(
|
|
1038
|
+
s(rt);
|
|
1029
1039
|
//#endregion
|
|
1030
1040
|
//#region src/components/icon/icons/sort-arrows.js
|
|
1031
|
-
var
|
|
1041
|
+
var it = {
|
|
1032
1042
|
name: "sort-arrows",
|
|
1033
1043
|
viewBox: "0 0 24 24",
|
|
1034
1044
|
path: "M1 5l5-4m0 0l5 4m-5-4v22 M13 19l5 4m0 0l5-4m-5 4V1",
|
|
1035
1045
|
strokeLinecap: "round",
|
|
1036
1046
|
strokeLinejoin: "round"
|
|
1037
1047
|
};
|
|
1038
|
-
s(
|
|
1048
|
+
s(it);
|
|
1039
1049
|
//#endregion
|
|
1040
1050
|
//#region src/components/icon/icons/star.js
|
|
1041
|
-
var
|
|
1051
|
+
var at = {
|
|
1042
1052
|
name: "star",
|
|
1043
1053
|
viewBox: "0 0 24 24",
|
|
1044
1054
|
path: "M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z",
|
|
1045
1055
|
strokeLinecap: "round",
|
|
1046
1056
|
strokeLinejoin: "round"
|
|
1047
1057
|
};
|
|
1048
|
-
s(
|
|
1058
|
+
s(at);
|
|
1049
1059
|
//#endregion
|
|
1050
1060
|
//#region src/components/icon/icons/success.js
|
|
1051
|
-
var
|
|
1061
|
+
var ot = {
|
|
1052
1062
|
name: "success",
|
|
1053
1063
|
viewBox: "0 0 24 24",
|
|
1054
1064
|
path: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z",
|
|
1055
1065
|
strokeLinecap: "round",
|
|
1056
1066
|
strokeLinejoin: "round"
|
|
1057
1067
|
};
|
|
1058
|
-
s(
|
|
1068
|
+
s(ot);
|
|
1059
1069
|
//#endregion
|
|
1060
1070
|
//#region src/components/icon/icons/sun.js
|
|
1061
|
-
var
|
|
1071
|
+
var st = {
|
|
1062
1072
|
name: "sun",
|
|
1063
1073
|
viewBox: "0 0 24 24",
|
|
1064
1074
|
path: "M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z",
|
|
1065
1075
|
strokeLinecap: "round",
|
|
1066
1076
|
strokeLinejoin: "round"
|
|
1067
1077
|
};
|
|
1068
|
-
s(
|
|
1078
|
+
s(st);
|
|
1069
1079
|
//#endregion
|
|
1070
1080
|
//#region src/components/icon/icons/table.js
|
|
1071
|
-
var
|
|
1081
|
+
var ct = {
|
|
1072
1082
|
name: "table",
|
|
1073
1083
|
viewBox: "0 0 24 24",
|
|
1074
1084
|
path: "M3 10h18M3 14h18m-9-4v8m-7 0h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z",
|
|
1075
1085
|
strokeLinecap: "round",
|
|
1076
1086
|
strokeLinejoin: "round"
|
|
1077
1087
|
};
|
|
1078
|
-
s(
|
|
1088
|
+
s(ct);
|
|
1079
1089
|
//#endregion
|
|
1080
1090
|
//#region src/components/icon/icons/tablet.js
|
|
1081
|
-
var
|
|
1091
|
+
var lt = {
|
|
1082
1092
|
name: "tablet",
|
|
1083
1093
|
viewBox: "0 0 24 24",
|
|
1084
1094
|
path: "M6 3h12a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm5 15h2",
|
|
1085
1095
|
strokeLinecap: "round",
|
|
1086
1096
|
strokeLinejoin: "round"
|
|
1087
1097
|
};
|
|
1088
|
-
s(
|
|
1098
|
+
s(lt);
|
|
1089
1099
|
//#endregion
|
|
1090
1100
|
//#region src/components/icon/icons/tag.js
|
|
1091
|
-
var
|
|
1101
|
+
var ut = {
|
|
1092
1102
|
name: "tag",
|
|
1093
1103
|
viewBox: "0 0 24 24",
|
|
1094
1104
|
path: "M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z",
|
|
1095
1105
|
strokeLinecap: "round",
|
|
1096
1106
|
strokeLinejoin: "round"
|
|
1097
1107
|
};
|
|
1098
|
-
s(
|
|
1108
|
+
s(ut);
|
|
1099
1109
|
//#endregion
|
|
1100
1110
|
//#region src/components/icon/icons/trash.js
|
|
1101
|
-
var
|
|
1111
|
+
var dt = {
|
|
1102
1112
|
name: "trash",
|
|
1103
1113
|
viewBox: "0 0 24 24",
|
|
1104
1114
|
path: "M3 6h18m-2 0v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2",
|
|
1105
1115
|
strokeLinecap: "round",
|
|
1106
1116
|
strokeLinejoin: "round"
|
|
1107
1117
|
};
|
|
1108
|
-
s(
|
|
1118
|
+
s(dt);
|
|
1109
1119
|
//#endregion
|
|
1110
1120
|
//#region src/components/icon/icons/unlock.js
|
|
1111
|
-
var
|
|
1121
|
+
var ft = {
|
|
1112
1122
|
name: "unlock",
|
|
1113
1123
|
viewBox: "0 0 24 24",
|
|
1114
1124
|
path: "M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z",
|
|
1115
1125
|
strokeLinecap: "round",
|
|
1116
1126
|
strokeLinejoin: "round"
|
|
1117
1127
|
};
|
|
1118
|
-
s(
|
|
1128
|
+
s(ft);
|
|
1119
1129
|
//#endregion
|
|
1120
1130
|
//#region src/components/icon/icons/upload.js
|
|
1121
|
-
var
|
|
1131
|
+
var pt = {
|
|
1122
1132
|
name: "upload",
|
|
1123
1133
|
viewBox: "0 0 24 24",
|
|
1124
1134
|
path: "M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12",
|
|
1125
1135
|
strokeLinecap: "round",
|
|
1126
1136
|
strokeLinejoin: "round"
|
|
1127
1137
|
};
|
|
1128
|
-
s(
|
|
1138
|
+
s(pt);
|
|
1129
1139
|
//#endregion
|
|
1130
1140
|
//#region src/components/icon/icons/user.js
|
|
1131
|
-
var
|
|
1141
|
+
var mt = {
|
|
1132
1142
|
name: "user",
|
|
1133
1143
|
viewBox: "0 0 24 24",
|
|
1134
1144
|
path: "M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z",
|
|
1135
1145
|
strokeLinecap: "round",
|
|
1136
1146
|
strokeLinejoin: "round"
|
|
1137
1147
|
};
|
|
1138
|
-
s(
|
|
1148
|
+
s(mt);
|
|
1139
1149
|
//#endregion
|
|
1140
1150
|
//#region src/components/icon/icons/user-add.js
|
|
1141
|
-
var
|
|
1151
|
+
var ht = {
|
|
1142
1152
|
name: "user-add",
|
|
1143
1153
|
viewBox: "0 0 24 24",
|
|
1144
1154
|
path: "M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z",
|
|
1145
1155
|
strokeLinecap: "round",
|
|
1146
1156
|
strokeLinejoin: "round"
|
|
1147
1157
|
};
|
|
1148
|
-
s(
|
|
1158
|
+
s(ht);
|
|
1149
1159
|
//#endregion
|
|
1150
1160
|
//#region src/components/icon/icons/users.js
|
|
1151
|
-
var
|
|
1161
|
+
var gt = {
|
|
1152
1162
|
name: "users",
|
|
1153
1163
|
viewBox: "0 0 24 24",
|
|
1154
1164
|
path: "M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z",
|
|
1155
1165
|
strokeLinecap: "round",
|
|
1156
1166
|
strokeLinejoin: "round"
|
|
1157
1167
|
};
|
|
1158
|
-
s(
|
|
1168
|
+
s(gt);
|
|
1159
1169
|
//#endregion
|
|
1160
1170
|
//#region src/components/icon/icons/video.js
|
|
1161
|
-
var
|
|
1171
|
+
var _t = {
|
|
1162
1172
|
name: "video",
|
|
1163
1173
|
viewBox: "0 0 24 24",
|
|
1164
1174
|
path: "M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z",
|
|
1165
1175
|
strokeLinecap: "round",
|
|
1166
1176
|
strokeLinejoin: "round"
|
|
1167
1177
|
};
|
|
1168
|
-
s(
|
|
1178
|
+
s(_t);
|
|
1169
1179
|
//#endregion
|
|
1170
1180
|
//#region src/components/icon/icons/warning.js
|
|
1171
|
-
var
|
|
1181
|
+
var vt = {
|
|
1172
1182
|
name: "warning",
|
|
1173
1183
|
viewBox: "0 0 24 24",
|
|
1174
1184
|
path: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z",
|
|
1175
1185
|
strokeLinecap: "round",
|
|
1176
1186
|
strokeLinejoin: "round"
|
|
1177
1187
|
};
|
|
1178
|
-
s(
|
|
1188
|
+
s(vt);
|
|
1179
1189
|
//#endregion
|
|
1180
1190
|
//#region src/components/icon/icons/shopping-cart.js
|
|
1181
|
-
var
|
|
1191
|
+
var yt = {
|
|
1182
1192
|
name: "shopping-cart",
|
|
1183
1193
|
viewBox: "0 0 24 24",
|
|
1184
1194
|
path: "M3 4h2l2.2 11h10.9l2-7H6m3.2 7-.9 3h10.2M9 21h.01M17 21h.01",
|
|
@@ -1186,10 +1196,10 @@ var vt = {
|
|
|
1186
1196
|
strokeLinejoin: "round",
|
|
1187
1197
|
strokeWidth: "1.8"
|
|
1188
1198
|
};
|
|
1189
|
-
s(
|
|
1199
|
+
s(yt);
|
|
1190
1200
|
//#endregion
|
|
1191
1201
|
//#region src/components/icon/icons/package.js
|
|
1192
|
-
var
|
|
1202
|
+
var bt = {
|
|
1193
1203
|
name: "package",
|
|
1194
1204
|
viewBox: "0 0 24 24",
|
|
1195
1205
|
path: "M3 7l9-4 9 4-9 4-9-4zm0 0v10l9 4 9-4V7M12 11v10M7.5 5l9 4",
|
|
@@ -1197,10 +1207,10 @@ var yt = {
|
|
|
1197
1207
|
strokeLinejoin: "round",
|
|
1198
1208
|
strokeWidth: "1.8"
|
|
1199
1209
|
};
|
|
1200
|
-
s(
|
|
1210
|
+
s(bt);
|
|
1201
1211
|
//#endregion
|
|
1202
1212
|
//#region src/components/icon/icons/storefront.js
|
|
1203
|
-
var
|
|
1213
|
+
var xt = {
|
|
1204
1214
|
name: "storefront",
|
|
1205
1215
|
viewBox: "0 0 24 24",
|
|
1206
1216
|
path: "M3 10l2-6h14l2 6M4 10v10h16V10M3 10a3 3 0 006 0 3 3 0 006 0 3 3 0 006 0M10 15v5m4-5v5",
|
|
@@ -1208,10 +1218,10 @@ var bt = {
|
|
|
1208
1218
|
strokeLinejoin: "round",
|
|
1209
1219
|
strokeWidth: "1.8"
|
|
1210
1220
|
};
|
|
1211
|
-
s(
|
|
1221
|
+
s(xt);
|
|
1212
1222
|
//#endregion
|
|
1213
1223
|
//#region src/components/icon/icons/receipt.js
|
|
1214
|
-
var
|
|
1224
|
+
var St = {
|
|
1215
1225
|
name: "receipt",
|
|
1216
1226
|
viewBox: "0 0 24 24",
|
|
1217
1227
|
path: "M6 3l2 1.5L10 3l2 1.5L14 3l2 1.5L18 3v18l-2-1.5-2 1.5-2-1.5-2 1.5-2-1.5L6 21V3zm3 6h6m-6 4h6m-6 4h3",
|
|
@@ -1219,10 +1229,10 @@ var xt = {
|
|
|
1219
1229
|
strokeLinejoin: "round",
|
|
1220
1230
|
strokeWidth: "1.8"
|
|
1221
1231
|
};
|
|
1222
|
-
s(
|
|
1232
|
+
s(St);
|
|
1223
1233
|
//#endregion
|
|
1224
1234
|
//#region src/components/icon/icons/coupon.js
|
|
1225
|
-
var
|
|
1235
|
+
var Ct = {
|
|
1226
1236
|
name: "coupon",
|
|
1227
1237
|
viewBox: "0 0 24 24",
|
|
1228
1238
|
path: "M4 5h16v4a3 3 0 000 6v4H4v-4a3 3 0 000-6V5zm8 1v2m0 2v2m0 2v2",
|
|
@@ -1230,10 +1240,10 @@ var St = {
|
|
|
1230
1240
|
strokeLinejoin: "round",
|
|
1231
1241
|
strokeWidth: "1.8"
|
|
1232
1242
|
};
|
|
1233
|
-
s(
|
|
1243
|
+
s(Ct);
|
|
1234
1244
|
//#endregion
|
|
1235
1245
|
//#region src/components/icon/icons/heart.js
|
|
1236
|
-
var
|
|
1246
|
+
var wt = {
|
|
1237
1247
|
name: "heart",
|
|
1238
1248
|
viewBox: "0 0 24 24",
|
|
1239
1249
|
path: "M20.8 8.8c0 5.2-8.8 11-8.8 11s-8.8-5.8-8.8-11a4.8 4.8 0 018.8-2.6 4.8 4.8 0 018.8 2.6z",
|
|
@@ -1241,10 +1251,10 @@ var Ct = {
|
|
|
1241
1251
|
strokeLinejoin: "round",
|
|
1242
1252
|
strokeWidth: "1.8"
|
|
1243
1253
|
};
|
|
1244
|
-
s(
|
|
1254
|
+
s(wt);
|
|
1245
1255
|
//#endregion
|
|
1246
1256
|
//#region src/components/icon/icons/return.js
|
|
1247
|
-
var
|
|
1257
|
+
var Tt = {
|
|
1248
1258
|
name: "return",
|
|
1249
1259
|
viewBox: "0 0 24 24",
|
|
1250
1260
|
path: "M9 14l-5-5 5-5M4 9h10a6 6 0 010 12h-3",
|
|
@@ -1252,7 +1262,7 @@ var wt = {
|
|
|
1252
1262
|
strokeLinejoin: "round",
|
|
1253
1263
|
strokeWidth: "1.8"
|
|
1254
1264
|
};
|
|
1255
|
-
s(
|
|
1265
|
+
s(Tt), s({
|
|
1256
1266
|
name: "undo",
|
|
1257
1267
|
viewBox: "0 0 24 24",
|
|
1258
1268
|
path: "M9 14 4 9l5-5M4 9h10a6 6 0 0 1 0 12h-2",
|
|
@@ -1267,7 +1277,7 @@ s(wt), s({
|
|
|
1267
1277
|
});
|
|
1268
1278
|
//#endregion
|
|
1269
1279
|
//#region src/components/icon/icons/shirt.js
|
|
1270
|
-
var
|
|
1280
|
+
var Et = {
|
|
1271
1281
|
name: "shirt",
|
|
1272
1282
|
viewBox: "0 0 24 24",
|
|
1273
1283
|
path: "M8 4l4 2 4-2 5 3-2 4-3-1v10H8V10l-3 1-2-4 5-3z M8 4c0 2 1.8 3.5 4 3.5S16 6 16 4",
|
|
@@ -1275,10 +1285,10 @@ var Tt = {
|
|
|
1275
1285
|
strokeLinejoin: "round",
|
|
1276
1286
|
strokeWidth: "1.8"
|
|
1277
1287
|
};
|
|
1278
|
-
s(
|
|
1288
|
+
s(Et);
|
|
1279
1289
|
//#endregion
|
|
1280
1290
|
//#region src/components/icon/icons/jacket.js
|
|
1281
|
-
var
|
|
1291
|
+
var Dt = {
|
|
1282
1292
|
name: "jacket",
|
|
1283
1293
|
viewBox: "0 0 24 24",
|
|
1284
1294
|
path: "M8 4l4 2 4-2 4 3-2 14h-5V11l-1 2-1-2v10H6L4 7l4-3z M8 4c0 2 1.8 3.5 4 3.5S16 6 16 4 M12 8v3",
|
|
@@ -1286,10 +1296,10 @@ var Et = {
|
|
|
1286
1296
|
strokeLinejoin: "round",
|
|
1287
1297
|
strokeWidth: "1.8"
|
|
1288
1298
|
};
|
|
1289
|
-
s(
|
|
1299
|
+
s(Dt);
|
|
1290
1300
|
//#endregion
|
|
1291
1301
|
//#region src/components/icon/icons/dress.js
|
|
1292
|
-
var
|
|
1302
|
+
var Ot = {
|
|
1293
1303
|
name: "dress",
|
|
1294
1304
|
viewBox: "0 0 24 24",
|
|
1295
1305
|
path: "M9 4a3 3 0 006 0l2 2-2 4 5 10H4l5-10-2-4 2-2z M9 10h6",
|
|
@@ -1297,10 +1307,10 @@ var Dt = {
|
|
|
1297
1307
|
strokeLinejoin: "round",
|
|
1298
1308
|
strokeWidth: "1.8"
|
|
1299
1309
|
};
|
|
1300
|
-
s(
|
|
1310
|
+
s(Ot);
|
|
1301
1311
|
//#endregion
|
|
1302
1312
|
//#region src/components/icon/icons/shoe.js
|
|
1303
|
-
var
|
|
1313
|
+
var kt = {
|
|
1304
1314
|
name: "shoe",
|
|
1305
1315
|
viewBox: "0 0 24 24",
|
|
1306
1316
|
path: "M3 15l4-1 4-7 3 2-1 3 4 2 4 1v4H3v-4z M11 10l2 1 M9 12l2 1 M7 14l2 1",
|
|
@@ -1308,7 +1318,7 @@ var Ot = {
|
|
|
1308
1318
|
strokeLinejoin: "round",
|
|
1309
1319
|
strokeWidth: "1.8"
|
|
1310
1320
|
};
|
|
1311
|
-
s(
|
|
1321
|
+
s(kt), s({
|
|
1312
1322
|
name: "grip-dots",
|
|
1313
1323
|
viewBox: "0 0 24 24",
|
|
1314
1324
|
path: "M12 12",
|
|
@@ -1316,7 +1326,7 @@ s(Ot), s({
|
|
|
1316
1326
|
});
|
|
1317
1327
|
//#endregion
|
|
1318
1328
|
//#region src/components/icon/icons/wallet.js
|
|
1319
|
-
var
|
|
1329
|
+
var At = {
|
|
1320
1330
|
name: "wallet",
|
|
1321
1331
|
viewBox: "0 0 24 24",
|
|
1322
1332
|
path: "M4 6.5A2.5 2.5 0 016.5 4H20v16H6a3 3 0 01-3-3V6.5A2.5 2.5 0 016 9h14m-4 4h.01",
|
|
@@ -1324,10 +1334,10 @@ var kt = {
|
|
|
1324
1334
|
strokeLinejoin: "round",
|
|
1325
1335
|
strokeWidth: "1.8"
|
|
1326
1336
|
};
|
|
1327
|
-
s(
|
|
1337
|
+
s(At);
|
|
1328
1338
|
//#endregion
|
|
1329
1339
|
//#region src/components/icon/icons/gift.js
|
|
1330
|
-
var
|
|
1340
|
+
var jt = {
|
|
1331
1341
|
name: "gift",
|
|
1332
1342
|
viewBox: "0 0 24 24",
|
|
1333
1343
|
path: "M3 9h18v12H3V9zm-1-3h20v3H2V6zm10 0v15m0-15C11 4.6 9.8 3 8 3a1.5 1.5 0 000 3m4 0c1-1.4 2.2-3 4-3a1.5 1.5 0 010 3",
|
|
@@ -1335,10 +1345,10 @@ var At = {
|
|
|
1335
1345
|
strokeLinejoin: "round",
|
|
1336
1346
|
strokeWidth: "1.8"
|
|
1337
1347
|
};
|
|
1338
|
-
s(
|
|
1348
|
+
s(jt);
|
|
1339
1349
|
//#endregion
|
|
1340
1350
|
//#region src/components/icon/icons/support.js
|
|
1341
|
-
var
|
|
1351
|
+
var Mt = {
|
|
1342
1352
|
name: "support",
|
|
1343
1353
|
viewBox: "0 0 24 24",
|
|
1344
1354
|
path: "M4 13v-2a8 8 0 0116 0v2m-16 0h3v6H6a2 2 0 01-2-2v-2a2 2 0 012-2zm16 0h-3v6h1a2 2 0 002-2v-2a2 2 0 00-2-2zm-3 8h-4",
|
|
@@ -1346,10 +1356,10 @@ var jt = {
|
|
|
1346
1356
|
strokeLinejoin: "round",
|
|
1347
1357
|
strokeWidth: "1.8"
|
|
1348
1358
|
};
|
|
1349
|
-
s(
|
|
1359
|
+
s(Mt);
|
|
1350
1360
|
//#endregion
|
|
1351
1361
|
//#region src/components/icon/icons/shopping-bag.js
|
|
1352
|
-
var
|
|
1362
|
+
var Nt = {
|
|
1353
1363
|
name: "shopping-bag",
|
|
1354
1364
|
viewBox: "0 0 24 24",
|
|
1355
1365
|
path: "M5 8h14l1 13H4L5 8zm4 0V6a3 3 0 016 0v2",
|
|
@@ -1357,10 +1367,10 @@ var Mt = {
|
|
|
1357
1367
|
strokeLinejoin: "round",
|
|
1358
1368
|
strokeWidth: "1.8"
|
|
1359
1369
|
};
|
|
1360
|
-
s(
|
|
1370
|
+
s(Nt);
|
|
1361
1371
|
//#endregion
|
|
1362
1372
|
//#region src/components/icon/icons/warehouse.js
|
|
1363
|
-
var
|
|
1373
|
+
var Pt = {
|
|
1364
1374
|
name: "warehouse",
|
|
1365
1375
|
viewBox: "0 0 24 24",
|
|
1366
1376
|
path: "M3 10l9-6 9 6v10H3V10zm4 10v-7h10v7m-7-7v7m4-7v7",
|
|
@@ -1368,10 +1378,10 @@ var Nt = {
|
|
|
1368
1378
|
strokeLinejoin: "round",
|
|
1369
1379
|
strokeWidth: "1.8"
|
|
1370
1380
|
};
|
|
1371
|
-
s(
|
|
1381
|
+
s(Pt);
|
|
1372
1382
|
//#endregion
|
|
1373
1383
|
//#region src/components/icon/icons/delivery-location.js
|
|
1374
|
-
var
|
|
1384
|
+
var Ft = {
|
|
1375
1385
|
name: "delivery-location",
|
|
1376
1386
|
viewBox: "0 0 24 24",
|
|
1377
1387
|
path: "M12 21s7-6.2 7-12a7 7 0 10-14 0c0 5.8 7 12 7 12zm0-9a3 3 0 110-6 3 3 0 010 6zm-9 9h18",
|
|
@@ -1379,10 +1389,10 @@ var Pt = {
|
|
|
1379
1389
|
strokeLinejoin: "round",
|
|
1380
1390
|
strokeWidth: "1.8"
|
|
1381
1391
|
};
|
|
1382
|
-
s(
|
|
1392
|
+
s(Ft);
|
|
1383
1393
|
//#endregion
|
|
1384
1394
|
//#region src/components/icon/icons/order-tracking.js
|
|
1385
|
-
var
|
|
1395
|
+
var It = {
|
|
1386
1396
|
name: "order-tracking",
|
|
1387
1397
|
viewBox: "0 0 24 24",
|
|
1388
1398
|
path: "M14.7 2.2H2.9a1.5 1.5 0 00-1.5 1.5v11.4a1.5 1.5 0 001.5 1.5h.2m6.1 0h5.5m0-14.4v14.4M14.7 6.1H18c.8 0 1.5.4 2 1.1l2.4 3.4c.5.7.7 1.4.7 2.2v2.3a1.5 1.5 0 01-1.5 1.5h-.4m-5.8 0h-.7M15.2 7.9h2.6l2.8 4.1h-5.4zM3 19.6a3.1 3.1 0 106.2 0 3.1 3.1 0 00-6.2 0zm12 0a3.1 3.1 0 106.2 0 3.1 3.1 0 00-6.2 0z",
|
|
@@ -1391,10 +1401,10 @@ var Ft = {
|
|
|
1391
1401
|
strokeLinejoin: "round",
|
|
1392
1402
|
strokeWidth: "1.8"
|
|
1393
1403
|
};
|
|
1394
|
-
s(
|
|
1404
|
+
s(It);
|
|
1395
1405
|
//#endregion
|
|
1396
1406
|
//#region src/components/icon/icons/cash.js
|
|
1397
|
-
var
|
|
1407
|
+
var Lt = {
|
|
1398
1408
|
name: "cash",
|
|
1399
1409
|
viewBox: "0 0 24 24",
|
|
1400
1410
|
path: "M3 6h18v12H3V6zm4 3h.01M17 9h.01M7 15h.01M17 15h.01M12 15a3 3 0 100-6 3 3 0 000 6z",
|
|
@@ -1402,10 +1412,10 @@ var It = {
|
|
|
1402
1412
|
strokeLinejoin: "round",
|
|
1403
1413
|
strokeWidth: "1.8"
|
|
1404
1414
|
};
|
|
1405
|
-
s(
|
|
1415
|
+
s(Lt);
|
|
1406
1416
|
//#endregion
|
|
1407
1417
|
//#region src/components/icon/icons/installments.js
|
|
1408
|
-
var
|
|
1418
|
+
var Rt = {
|
|
1409
1419
|
name: "installments",
|
|
1410
1420
|
viewBox: "0 0 24 24",
|
|
1411
1421
|
path: "M4 4h16v16H4V4zm0 4h16m-12 4h2m4 0h2m-8 4h2m4 0h2",
|
|
@@ -1413,10 +1423,10 @@ var Lt = {
|
|
|
1413
1423
|
strokeLinejoin: "round",
|
|
1414
1424
|
strokeWidth: "1.8"
|
|
1415
1425
|
};
|
|
1416
|
-
s(
|
|
1426
|
+
s(Rt);
|
|
1417
1427
|
//#endregion
|
|
1418
1428
|
//#region src/components/icon/icons/invoice.js
|
|
1419
|
-
var
|
|
1429
|
+
var zt = {
|
|
1420
1430
|
name: "invoice",
|
|
1421
1431
|
viewBox: "0 0 24 24",
|
|
1422
1432
|
path: "M6 3h12v18l-3-2-3 2-3-2-3 2V3zm3 5h6m-6 4h6m-6 4h3",
|
|
@@ -1424,10 +1434,10 @@ var Rt = {
|
|
|
1424
1434
|
strokeLinejoin: "round",
|
|
1425
1435
|
strokeWidth: "1.8"
|
|
1426
1436
|
};
|
|
1427
|
-
s(
|
|
1437
|
+
s(zt);
|
|
1428
1438
|
//#endregion
|
|
1429
1439
|
//#region src/components/icon/icons/price-label.js
|
|
1430
|
-
var
|
|
1440
|
+
var Bt = {
|
|
1431
1441
|
name: "price-label",
|
|
1432
1442
|
viewBox: "0 0 24 24",
|
|
1433
1443
|
path: "M3 5h10l8 8-8 8-10-10V5zm5 5h.01",
|
|
@@ -1435,10 +1445,10 @@ var zt = {
|
|
|
1435
1445
|
strokeLinejoin: "round",
|
|
1436
1446
|
strokeWidth: "1.8"
|
|
1437
1447
|
};
|
|
1438
|
-
s(
|
|
1448
|
+
s(Bt);
|
|
1439
1449
|
//#endregion
|
|
1440
1450
|
//#region src/components/icon/icons/sale-burst.js
|
|
1441
|
-
var
|
|
1451
|
+
var Vt = {
|
|
1442
1452
|
name: "sale-burst",
|
|
1443
1453
|
viewBox: "0 0 24 24",
|
|
1444
1454
|
path: "M12 1.5l1.63 2.31 2.39-1.51.62 2.76 2.78-.48-.48 2.78 2.76.62-1.51 2.39L22.5 12l-2.31 1.63 1.51 2.39-2.76.62.48 2.78-2.78-.48-.62 2.76-2.39-1.51L12 22.5l-1.63-2.31-2.39 1.51-.62-2.76-2.78.48.48-2.78-2.76-.62 1.51-2.39L1.5 12l2.31-1.63L2.3 7.98l2.76-.62-.48-2.78 2.78.48.62-2.76 2.39 1.51L12 1.5zm-3 6.2a1.7 1.7 0 100 3.4 1.7 1.7 0 000-3.4zm6 5.2a1.7 1.7 0 100 3.4 1.7 1.7 0 000-3.4M8 16l8-8",
|
|
@@ -1446,10 +1456,10 @@ var Bt = {
|
|
|
1446
1456
|
strokeLinejoin: "miter",
|
|
1447
1457
|
strokeWidth: "1.8"
|
|
1448
1458
|
};
|
|
1449
|
-
s(
|
|
1459
|
+
s(Vt);
|
|
1450
1460
|
//#endregion
|
|
1451
1461
|
//#region src/components/icon/icons/percent-discount.js
|
|
1452
|
-
var
|
|
1462
|
+
var Ht = {
|
|
1453
1463
|
name: "percent-discount",
|
|
1454
1464
|
viewBox: "0 0 24 24",
|
|
1455
1465
|
path: "M19 5L5 19M7 8a2 2 0 110-4 2 2 0 010 4zm10 12a2 2 0 110-4 2 2 0 010 4z",
|
|
@@ -1457,10 +1467,10 @@ var Vt = {
|
|
|
1457
1467
|
strokeLinejoin: "round",
|
|
1458
1468
|
strokeWidth: "1.8"
|
|
1459
1469
|
};
|
|
1460
|
-
s(
|
|
1470
|
+
s(Ht);
|
|
1461
1471
|
//#endregion
|
|
1462
1472
|
//#region src/components/icon/icons/product-review.js
|
|
1463
|
-
var
|
|
1473
|
+
var Ut = {
|
|
1464
1474
|
name: "product-review",
|
|
1465
1475
|
viewBox: "0 0 24 24",
|
|
1466
1476
|
path: "M12 3l2.7 5.5 6.1.9-4.4 4.3 1 6.1-5.4-2.9-5.4 2.9 1-6.1-4.4-4.3 6.1-.9L12 3z",
|
|
@@ -1468,17 +1478,17 @@ var Ht = {
|
|
|
1468
1478
|
strokeLinejoin: "round",
|
|
1469
1479
|
strokeWidth: "1.8"
|
|
1470
1480
|
};
|
|
1471
|
-
s(
|
|
1472
|
-
var
|
|
1481
|
+
s(Ut);
|
|
1482
|
+
var Wt = {
|
|
1473
1483
|
name: "products",
|
|
1474
1484
|
viewBox: "0 0 24 24",
|
|
1475
1485
|
path: "M8 7h3l7 7-9 9-7-7v-5a4 4 0 014-4z",
|
|
1476
1486
|
customSvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <defs>\n <mask id=\"products-front-tag-mask\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"24\" height=\"24\">\n <rect width=\"24\" height=\"24\" fill=\"white\" />\n <path d=\"M8 7h3l7 7-9 9-7-7v-5a4 4 0 014-4z\" fill=\"black\" stroke=\"none\" />\n </mask>\n </defs>\n <path d=\"M12 2h3l7 7-9 9-8-8V6a4 4 0 014-4z\" mask=\"url(#products-front-tag-mask)\" />\n <path d=\"M8 7h3l7 7-9 9-7-7v-5a4 4 0 014-4z\" />\n <circle cx=\"7.5\" cy=\"11.5\" r=\"0.7\" />\n</svg>"
|
|
1477
1487
|
};
|
|
1478
|
-
s(
|
|
1488
|
+
s(Wt);
|
|
1479
1489
|
//#endregion
|
|
1480
1490
|
//#region src/components/icon/icons/loyalty-points.js
|
|
1481
|
-
var
|
|
1491
|
+
var Gt = {
|
|
1482
1492
|
name: "loyalty-points",
|
|
1483
1493
|
viewBox: "0 0 24 24",
|
|
1484
1494
|
path: "M12 3l2.4 4.8 5.3.8-3.8 3.7.9 5.2-4.8-2.5-4.8 2.5.9-5.2-3.8-3.7 5.3-.8L12 3zm-3 13v5l3-1.7 3 1.7v-5",
|
|
@@ -1486,10 +1496,10 @@ var Wt = {
|
|
|
1486
1496
|
strokeLinejoin: "round",
|
|
1487
1497
|
strokeWidth: "1.8"
|
|
1488
1498
|
};
|
|
1489
|
-
s(
|
|
1499
|
+
s(Gt);
|
|
1490
1500
|
//#endregion
|
|
1491
1501
|
//#region src/components/icon/icons/membership.js
|
|
1492
|
-
var
|
|
1502
|
+
var Kt = {
|
|
1493
1503
|
name: "membership",
|
|
1494
1504
|
viewBox: "0 0 24 24",
|
|
1495
1505
|
path: "M5 3.5h14a2 2 0 012 2v13a2 2 0 01-2 2H5a2 2 0 01-2-2v-13a2 2 0 012-2zm-2 4h12m2-4v6l1.5-1.2L20 9.5v-6M8.5 11.5a1.3 1.3 0 100 2.6 1.3 1.3 0 000-2.6zm-2.3 5.1c.5-.9 1.3-1.3 2.3-1.3s1.8.4 2.3 1.3M13.5 12.5h4.5m-4.5 3h4.5",
|
|
@@ -1497,10 +1507,10 @@ var Gt = {
|
|
|
1497
1507
|
strokeLinejoin: "round",
|
|
1498
1508
|
strokeWidth: "1.8"
|
|
1499
1509
|
};
|
|
1500
|
-
s(
|
|
1510
|
+
s(Kt);
|
|
1501
1511
|
//#endregion
|
|
1502
1512
|
//#region src/components/icon/icons/inventory.js
|
|
1503
|
-
var
|
|
1513
|
+
var qt = {
|
|
1504
1514
|
name: "inventory",
|
|
1505
1515
|
viewBox: "0 0 24 24",
|
|
1506
1516
|
path: "M8 4h8a2 2 0 012 2v1h2v14H4V7h2V6a2 2 0 012-2zm1 0V3h6v1M8 11h8m-8 4h8",
|
|
@@ -1508,10 +1518,10 @@ var Kt = {
|
|
|
1508
1518
|
strokeLinejoin: "round",
|
|
1509
1519
|
strokeWidth: "1.8"
|
|
1510
1520
|
};
|
|
1511
|
-
s(
|
|
1521
|
+
s(qt);
|
|
1512
1522
|
//#endregion
|
|
1513
1523
|
//#region src/components/icon/icons/out-of-stock.js
|
|
1514
|
-
var
|
|
1524
|
+
var Jt = {
|
|
1515
1525
|
name: "out-of-stock",
|
|
1516
1526
|
viewBox: "0 0 24 24",
|
|
1517
1527
|
path: "M4 5h16v14H4V5zm3 3l10 8m0-8L7 16m-3 5h16",
|
|
@@ -1519,10 +1529,10 @@ var qt = {
|
|
|
1519
1529
|
strokeLinejoin: "round",
|
|
1520
1530
|
strokeWidth: "1.8"
|
|
1521
1531
|
};
|
|
1522
|
-
s(
|
|
1532
|
+
s(Jt);
|
|
1523
1533
|
//#endregion
|
|
1524
1534
|
//#region src/components/icon/icons/pickup.js
|
|
1525
|
-
var
|
|
1535
|
+
var Yt = {
|
|
1526
1536
|
name: "pickup",
|
|
1527
1537
|
viewBox: "0 0 24 24",
|
|
1528
1538
|
path: "M5.5 2.8a1.6 1.6 0 100 3.2 1.6 1.6 0 000-3.2zm-.8 5.1-1 5.8 2.2 1.7 2.5 5.1m-4.7-6.8L2.5 20m2.2-12.1 3.8 2.8 3.2.1m-.2-5.1l4.5-2 4.5 2-4.5 2-4.5-2zm0 0v5l4.5 2 4.5-2v-5m-4.5 1v6.5",
|
|
@@ -1530,10 +1540,10 @@ var Jt = {
|
|
|
1530
1540
|
strokeLinejoin: "round",
|
|
1531
1541
|
strokeWidth: "1.8"
|
|
1532
1542
|
};
|
|
1533
|
-
s(
|
|
1543
|
+
s(Yt);
|
|
1534
1544
|
//#endregion
|
|
1535
1545
|
//#region src/components/icon/icons/secure-checkout.js
|
|
1536
|
-
var
|
|
1546
|
+
var Xt = {
|
|
1537
1547
|
name: "secure-checkout",
|
|
1538
1548
|
viewBox: "0 0 24 24",
|
|
1539
1549
|
path: "M12 3l7 3v5c0 5-3 8-7 10-4-2-7-5-7-10V6l7-3zm-3 9l2 2 4-4",
|
|
@@ -1541,10 +1551,10 @@ var Yt = {
|
|
|
1541
1551
|
strokeLinejoin: "round",
|
|
1542
1552
|
strokeWidth: "1.8"
|
|
1543
1553
|
};
|
|
1544
|
-
s(
|
|
1554
|
+
s(Xt);
|
|
1545
1555
|
//#endregion
|
|
1546
1556
|
//#region src/components/icon/icons/refund.js
|
|
1547
|
-
var
|
|
1557
|
+
var Zt = {
|
|
1548
1558
|
name: "refund",
|
|
1549
1559
|
viewBox: "0 0 24 24",
|
|
1550
1560
|
path: "M14 3.5a8.5 8.5 0 110 17 8.5 8.5 0 010-17zm0 2.5v12m2.7-9.3c-.5-1-1.5-1.5-2.7-1.5-1.5 0-2.5.8-2.5 1.9 0 2.5 5 1.2 5 3.8 0 1.2-1 2-2.5 2-1.2 0-2.2-.5-2.8-1.5M6.5 7H2.5m0 0l2-2M2.5 7l2 2",
|
|
@@ -1552,10 +1562,10 @@ var Xt = {
|
|
|
1552
1562
|
strokeLinejoin: "round",
|
|
1553
1563
|
strokeWidth: "1.5"
|
|
1554
1564
|
};
|
|
1555
|
-
s(
|
|
1565
|
+
s(Zt);
|
|
1556
1566
|
//#endregion
|
|
1557
1567
|
//#region src/components/icon/icons/variants.js
|
|
1558
|
-
var
|
|
1568
|
+
var Qt = {
|
|
1559
1569
|
name: "variants",
|
|
1560
1570
|
viewBox: "0 0 24 24",
|
|
1561
1571
|
path: "M6 15.5V12m12 3.5V12M6 12h12m-6 0V8.5M3 18.5a3 3 0 106 0 3 3 0 00-6 0zm12 0a3 3 0 106 0 3 3 0 00-6 0zm-6-13a3 3 0 106 0 3 3 0 00-6 0z",
|
|
@@ -1563,7 +1573,7 @@ var Zt = {
|
|
|
1563
1573
|
strokeLinejoin: "round",
|
|
1564
1574
|
strokeWidth: "2"
|
|
1565
1575
|
};
|
|
1566
|
-
s(
|
|
1576
|
+
s(Qt);
|
|
1567
1577
|
//#endregion
|
|
1568
1578
|
//#region src/components/icon/icons/toolbar-icons.ts
|
|
1569
1579
|
var z = (e, t) => ({
|
|
@@ -1571,7 +1581,7 @@ var z = (e, t) => ({
|
|
|
1571
1581
|
viewBox: "0 0 24 24",
|
|
1572
1582
|
path: "",
|
|
1573
1583
|
customSvg: t
|
|
1574
|
-
}),
|
|
1584
|
+
}), $t = z("minus", "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"><path d=\"M5 12h14\"/></svg>"), en = z("font-size", "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 19 8 5l5 14M5 14h6M15 8h6M18 8v11M15.5 19h5\"/></svg>"), tn = z("text-color", "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.9\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 20h16M7 16l5-12 5 12M9.2 11h5.6\"/></svg>"), nn = z("highlight", "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.9\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m14.8 4.2 5 5L10 19H5v-5zM12.2 6.8l5 5M4 21h16\"/><path d=\"m3 18 3 3\"/></svg>"), rn = z("font-family", "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><text x=\"1.8\" y=\"17.2\" font-family=\"Arial,sans-serif\" font-size=\"13\" font-weight=\"600\">Aa</text></svg>"), an = z("comment-plus", "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.9\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 11.5a7.5 7.5 0 0 1-7.5 7.5H6l-3 2v-6.5A7.5 7.5 0 0 1 10.5 7H12\"/><path d=\"M17 2v8M13 6h8\"/></svg>"), on = z("align-center", "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"><path d=\"M4 5h16M7 9h10M4 13h16M7 17h10M4 21h16\"/></svg>"), sn = z("align-right", "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"><path d=\"M4 5h16M10 9h10M4 13h16M10 17h10M4 21h16\"/></svg>"), cn = z("align-justify", "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"><path d=\"M4 5h16M4 9h16M4 13h16M4 17h16M4 21h16\"/></svg>"), ln = z("checklist", "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.9\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m3 6 1.5 1.5L7 5M10 6h11M3 13l1.5 1.5L7 12M10 13h11M3 20l1.5 1.5L7 19M10 20h11\"/></svg>"), un = z("palette", "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 3a9 9 0 1 0 0 18h1.2a2 2 0 0 0 1.4-3.4 1.8 1.8 0 0 1 1.3-3.1H18a3 3 0 0 0 3-3c0-4.7-4-8.5-9-8.5Z\"/><circle cx=\"7.5\" cy=\"11\" r=\".8\" fill=\"currentColor\"/><circle cx=\"10\" cy=\"7.5\" r=\".8\" fill=\"currentColor\"/><circle cx=\"14\" cy=\"7.8\" r=\".8\" fill=\"currentColor\"/><circle cx=\"17\" cy=\"10.5\" r=\".8\" fill=\"currentColor\"/></svg>");
|
|
1575
1585
|
s({
|
|
1576
1586
|
name: "ruler",
|
|
1577
1587
|
viewBox: "0 0 24 24",
|
|
@@ -1717,57 +1727,57 @@ s({
|
|
|
1717
1727
|
});
|
|
1718
1728
|
//#endregion
|
|
1719
1729
|
//#region src/components/icon/icons/bold.js
|
|
1720
|
-
var
|
|
1730
|
+
var dn = {
|
|
1721
1731
|
name: "bold",
|
|
1722
1732
|
viewBox: "0 0 24 24",
|
|
1723
1733
|
path: "M7 4h6a4 4 0 010 8H7zm0 8h7a4 4 0 010 8H7z",
|
|
1724
1734
|
strokeLinecap: "round",
|
|
1725
1735
|
strokeLinejoin: "round"
|
|
1726
1736
|
};
|
|
1727
|
-
s(
|
|
1737
|
+
s(dn);
|
|
1728
1738
|
//#endregion
|
|
1729
1739
|
//#region src/components/icon/icons/italic.js
|
|
1730
|
-
var
|
|
1740
|
+
var fn = {
|
|
1731
1741
|
name: "italic",
|
|
1732
1742
|
viewBox: "0 0 24 24",
|
|
1733
1743
|
path: "M8 5h12M14 5l-4 14M4 19h12",
|
|
1734
1744
|
strokeLinecap: "round",
|
|
1735
1745
|
strokeLinejoin: "round"
|
|
1736
1746
|
};
|
|
1737
|
-
s(
|
|
1747
|
+
s(fn);
|
|
1738
1748
|
//#endregion
|
|
1739
1749
|
//#region src/components/icon/icons/underline.js
|
|
1740
|
-
var
|
|
1750
|
+
var pn = {
|
|
1741
1751
|
name: "underline",
|
|
1742
1752
|
viewBox: "0 0 24 24",
|
|
1743
1753
|
path: "M6 4v6a6 6 0 0012 0V4M4 21h16",
|
|
1744
1754
|
strokeLinecap: "round",
|
|
1745
1755
|
strokeLinejoin: "round"
|
|
1746
1756
|
};
|
|
1747
|
-
s(
|
|
1757
|
+
s(pn);
|
|
1748
1758
|
//#endregion
|
|
1749
1759
|
//#region src/components/icon/icons/numbered-list.js
|
|
1750
|
-
var
|
|
1760
|
+
var mn = {
|
|
1751
1761
|
name: "numbered-list",
|
|
1752
1762
|
viewBox: "0 0 24 24",
|
|
1753
1763
|
path: "M10 6h11M10 12h11M10 18h11M4 5h2v3M4 11h2l-2 2h2M4 17h2v2H4",
|
|
1754
1764
|
strokeLinecap: "round",
|
|
1755
1765
|
strokeLinejoin: "round"
|
|
1756
1766
|
};
|
|
1757
|
-
s(
|
|
1767
|
+
s(mn);
|
|
1758
1768
|
//#endregion
|
|
1759
1769
|
//#region src/components/icon/icons/quote.js
|
|
1760
|
-
var
|
|
1770
|
+
var hn = {
|
|
1761
1771
|
name: "quote",
|
|
1762
1772
|
viewBox: "0 0 24 24",
|
|
1763
1773
|
path: "M10 11H5a2 2 0 00-2 2v5h7v-5a2 2 0 00-2-2zm11 0h-5a2 2 0 00-2 2v5h7v-5a2 2 0 00-2-2zM7 11V8a3 3 0 013-3m8 6V8a3 3 0 013-3",
|
|
1764
1774
|
strokeLinecap: "round",
|
|
1765
1775
|
strokeLinejoin: "round"
|
|
1766
1776
|
};
|
|
1767
|
-
s(
|
|
1777
|
+
s(hn), s(u), s(d), s(f), s(p), s(m), s(h), s(g), s(_), s(v), s(y), s(b), s(x), s(S), s(C), s(w), s(T), s(E), s(D), s(ee), s(O), s(k), s(A), s(j), s(M), s(te), s(N), s(P), s(ne), s(F), s(I), s(re), s(ie), s(ae), s(L), s(R), s(oe), s(se), s(ce), s(le), s(ue), s(de), s(fe), s(pe), s(me), s(he), s(ge), s(_e), s(ve), s(ye), s(be), s(xe), s(Se), s(Ce), s(we), s(Te), s(Ee), s(De), s(Oe), s(ke), s(Ae), s(je), s(Me), s(Ne), s(Pe), s(Fe), s(Ie), s(Le), s(Re), s(ze), s(Be), s(Ve), s(He), s(Ue), s(We), s(Ge), s(Ke), s(qe), s(Je), s(Ye), s(Xe), s(Ze), s(Qe), s($e), s(et), s(tt), s(nt), s(rt), s(it), s(at), s(ot), s(st), s(ct), s(lt), s(ut), s(dt), s(ft), s(pt), s(mt), s(ht), s(gt), s(_t), s(vt), s(yt), s(bt), s(xt), s(St), s(Ct), s(wt), s(Tt), s(Et), s(Dt), s(Ot), s(kt), s(At), s(jt), s(Mt), s(Nt), s(Pt), s(Ft), s(It), s(Lt), s(Rt), s(zt), s(Bt), s(Vt), s(Ht), s(Ut), s(Wt), s(Gt), s(Kt), s(qt), s(Jt), s(Yt), s(Xt), s(Zt), s(Qt), s($t), s(en), s(tn), s(nn), s(rn), s(an), s(on), s(sn), s(cn), s(ln), s(un), s(dn), s(fn), s(pn), s(mn), s(hn);
|
|
1768
1778
|
//#endregion
|
|
1769
1779
|
//#region src/components/spinner/Spinner.js
|
|
1770
|
-
var
|
|
1780
|
+
var gn = class extends HTMLElement {
|
|
1771
1781
|
static get observedAttributes() {
|
|
1772
1782
|
return [
|
|
1773
1783
|
"size",
|
|
@@ -1870,10 +1880,10 @@ var hn = class extends HTMLElement {
|
|
|
1870
1880
|
`.trim();
|
|
1871
1881
|
}
|
|
1872
1882
|
};
|
|
1873
|
-
typeof customElements < "u" && !customElements.get("mint-spinner") && a("mint-spinner",
|
|
1883
|
+
typeof customElements < "u" && !customElements.get("mint-spinner") && a("mint-spinner", gn);
|
|
1874
1884
|
//#endregion
|
|
1875
1885
|
//#region src/components/button/Button.ts
|
|
1876
|
-
var
|
|
1886
|
+
var _n = class extends HTMLElement {
|
|
1877
1887
|
static get observedAttributes() {
|
|
1878
1888
|
return [
|
|
1879
1889
|
"variant",
|
|
@@ -2262,10 +2272,10 @@ var gn = class extends HTMLElement {
|
|
|
2262
2272
|
});
|
|
2263
2273
|
}
|
|
2264
2274
|
};
|
|
2265
|
-
customElements.get("mint-button") || a("mint-button",
|
|
2275
|
+
customElements.get("mint-button") || a("mint-button", _n);
|
|
2266
2276
|
//#endregion
|
|
2267
2277
|
//#region src/components/switch/Switch.js
|
|
2268
|
-
var
|
|
2278
|
+
var vn = class extends HTMLElement {
|
|
2269
2279
|
static get observedAttributes() {
|
|
2270
2280
|
return [
|
|
2271
2281
|
"checked",
|
|
@@ -2446,10 +2456,10 @@ var _n = class extends HTMLElement {
|
|
|
2446
2456
|
n && (n.id = `${e}-info`, t.push(n.id)), r && (r.id = `${e}-error`, t.push(r.id)), t.length ? this._button.setAttribute("aria-describedby", Array.from(new Set(t)).join(" ")) : this._button.removeAttribute("aria-describedby");
|
|
2447
2457
|
}
|
|
2448
2458
|
};
|
|
2449
|
-
customElements.get("mint-switch") || a("mint-switch",
|
|
2459
|
+
customElements.get("mint-switch") || a("mint-switch", vn);
|
|
2450
2460
|
//#endregion
|
|
2451
2461
|
//#region src/components/text/Text.js
|
|
2452
|
-
var
|
|
2462
|
+
var yn = class extends HTMLElement {
|
|
2453
2463
|
static get observedAttributes() {
|
|
2454
2464
|
return [
|
|
2455
2465
|
"variant",
|
|
@@ -2511,10 +2521,10 @@ var vn = class extends HTMLElement {
|
|
|
2511
2521
|
}
|
|
2512
2522
|
render() {}
|
|
2513
2523
|
};
|
|
2514
|
-
typeof customElements < "u" && !customElements.get("mint-text") && a("mint-text",
|
|
2524
|
+
typeof customElements < "u" && !customElements.get("mint-text") && a("mint-text", yn);
|
|
2515
2525
|
//#endregion
|
|
2516
2526
|
//#region src/components/stack/Stack.js
|
|
2517
|
-
var
|
|
2527
|
+
var bn = class extends HTMLElement {
|
|
2518
2528
|
static get observedAttributes() {
|
|
2519
2529
|
return [
|
|
2520
2530
|
"direction",
|
|
@@ -2562,10 +2572,10 @@ var yn = class extends HTMLElement {
|
|
|
2562
2572
|
}[t] : "flex-start"), this.style.setProperty("--mint-stack-text-align", n || "initial");
|
|
2563
2573
|
}
|
|
2564
2574
|
};
|
|
2565
|
-
typeof customElements < "u" && !customElements.get("mint-stack") && a("mint-stack",
|
|
2575
|
+
typeof customElements < "u" && !customElements.get("mint-stack") && a("mint-stack", bn);
|
|
2566
2576
|
//#endregion
|
|
2567
2577
|
//#region src/components/card/Card.js
|
|
2568
|
-
var
|
|
2578
|
+
var xn = class extends HTMLElement {
|
|
2569
2579
|
static get observedAttributes() {
|
|
2570
2580
|
return ["heading", "flush"];
|
|
2571
2581
|
}
|
|
@@ -2595,10 +2605,10 @@ var bn = class extends HTMLElement {
|
|
|
2595
2605
|
e ? (this._headingElement || (this._headingElement = document.createElement("mint-text"), this._headingElement.setAttribute("size", "sub-heading"), this._headingElement.setAttribute("role", "heading"), this._headingElement.setAttribute("aria-level", "2"), this.insertBefore(this._headingElement, this.firstChild)), this._headingElement.textContent = e) : this._headingElement?.parentNode && (this._headingElement.remove(), this._headingElement = null);
|
|
2596
2606
|
}
|
|
2597
2607
|
};
|
|
2598
|
-
typeof customElements < "u" && !customElements.get("mint-card") && a("mint-card",
|
|
2608
|
+
typeof customElements < "u" && !customElements.get("mint-card") && a("mint-card", xn);
|
|
2599
2609
|
//#endregion
|
|
2600
2610
|
//#region src/components/link/Link.js
|
|
2601
|
-
var
|
|
2611
|
+
var Sn = class extends HTMLElement {
|
|
2602
2612
|
static get observedAttributes() {
|
|
2603
2613
|
return ["href", "target"];
|
|
2604
2614
|
}
|
|
@@ -2631,7 +2641,7 @@ var xn = class extends HTMLElement {
|
|
|
2631
2641
|
this._link.className = n.filter(Boolean).join(" ");
|
|
2632
2642
|
}
|
|
2633
2643
|
};
|
|
2634
|
-
typeof customElements < "u" && !customElements.get("mint-link") && a("mint-link",
|
|
2644
|
+
typeof customElements < "u" && !customElements.get("mint-link") && a("mint-link", Sn), s({
|
|
2635
2645
|
name: "arrow-left",
|
|
2636
2646
|
viewBox: "0 0 24 24",
|
|
2637
2647
|
path: "M19 12H5m7-7l-7 7 7 7",
|
|
@@ -2640,7 +2650,7 @@ typeof customElements < "u" && !customElements.get("mint-link") && a("mint-link"
|
|
|
2640
2650
|
});
|
|
2641
2651
|
//#endregion
|
|
2642
2652
|
//#region src/components/button/Button.js
|
|
2643
|
-
var
|
|
2653
|
+
var Cn = class extends HTMLElement {
|
|
2644
2654
|
static get observedAttributes() {
|
|
2645
2655
|
return [
|
|
2646
2656
|
"variant",
|
|
@@ -2816,10 +2826,10 @@ var Sn = class extends HTMLElement {
|
|
|
2816
2826
|
});
|
|
2817
2827
|
}
|
|
2818
2828
|
};
|
|
2819
|
-
typeof customElements < "u" && !customElements.get("mint-button") && a("mint-button",
|
|
2829
|
+
typeof customElements < "u" && !customElements.get("mint-button") && a("mint-button", Cn);
|
|
2820
2830
|
//#endregion
|
|
2821
2831
|
//#region src/components/back-button/BackButton.js
|
|
2822
|
-
var
|
|
2832
|
+
var wn = class extends HTMLElement {
|
|
2823
2833
|
static get observedAttributes() {
|
|
2824
2834
|
return ["href", "fallback-href"];
|
|
2825
2835
|
}
|
|
@@ -2863,11 +2873,83 @@ var Cn = class extends HTMLElement {
|
|
|
2863
2873
|
this._button || (this._button = document.createElement("mint-button"), this._button.setAttribute("variant", "solid"), this._button.setAttribute("tone", "neutral"), this._button.setAttribute("icon", "arrow-left"), this._button.setAttribute("aria-label", this.getAttribute("aria-label") || "Go back"), this._button.addEventListener("click", (e) => this.handleClick(e)), this.appendChild(this._button));
|
|
2864
2874
|
}
|
|
2865
2875
|
};
|
|
2866
|
-
typeof customElements < "u" && !customElements.get("mint-back-button") && a("mint-back-button",
|
|
2876
|
+
typeof customElements < "u" && !customElements.get("mint-back-button") && a("mint-back-button", wn);
|
|
2867
2877
|
//#endregion
|
|
2868
2878
|
//#region src/components/scroll-fade/ScrollFade.ts
|
|
2869
2879
|
function B(e, t = "vertical", n = "1.5rem", r = "mask") {
|
|
2870
|
-
let i = null, a = null, o = 0, s = () => {
|
|
2880
|
+
let i = null, a = null, o = 0, s = 0, c = null, l = null, u = null, d = 0, f = 0, p = 0, m = (t) => t === "top" ? e.scrollTop > 1 : t === "bottom" ? e.scrollTop + e.clientHeight < e.scrollHeight - 1 : t === "left" ? e.scrollLeft > 1 : e.scrollLeft + e.clientWidth < e.scrollWidth - 1, h = (t, n) => {
|
|
2881
|
+
let r = Number.parseFloat(t);
|
|
2882
|
+
if (!Number.isFinite(r) || r <= 0) return Math.min(24, n / 2);
|
|
2883
|
+
let i = t.trim().replace(String(r), "").toLowerCase(), a = Number.parseFloat(getComputedStyle(document.documentElement).fontSize) || 16, o = Number.parseFloat(getComputedStyle(e).fontSize) || a, s = i === "rem" ? r * a : i === "em" ? r * o : i === "vw" ? r * window.innerWidth / 100 : i === "vh" ? r * window.innerHeight / 100 : i === "%" ? r * n / 100 : r;
|
|
2884
|
+
return Math.max(1, Math.min(s, n / 2));
|
|
2885
|
+
}, g = (t, r) => {
|
|
2886
|
+
let i = e.getBoundingClientRect();
|
|
2887
|
+
if (!i.width || !i.height) return null;
|
|
2888
|
+
let a = getComputedStyle(e).getPropertyValue("--mint-scroll-fade-size").trim() || n, o = h(a, i.height), s = h(a, i.width), c = [];
|
|
2889
|
+
return r >= i.top && r <= i.top + o && m("top") && c.push({
|
|
2890
|
+
edge: "top",
|
|
2891
|
+
distance: r - i.top
|
|
2892
|
+
}), r <= i.bottom && r >= i.bottom - o && m("bottom") && c.push({
|
|
2893
|
+
edge: "bottom",
|
|
2894
|
+
distance: i.bottom - r
|
|
2895
|
+
}), t >= i.left && t <= i.left + s && m("left") && c.push({
|
|
2896
|
+
edge: "left",
|
|
2897
|
+
distance: t - i.left
|
|
2898
|
+
}), t <= i.right && t >= i.right - s && m("right") && c.push({
|
|
2899
|
+
edge: "right",
|
|
2900
|
+
distance: i.right - t
|
|
2901
|
+
}), c.sort((e, t) => e.distance - t.distance), c[0]?.edge ?? null;
|
|
2902
|
+
}, _ = (t) => {
|
|
2903
|
+
if (!c) return;
|
|
2904
|
+
let r = e.getBoundingClientRect(), i = Math.min(10, Math.max(4, h(n, Math.min(r.width, r.height)) / 2)), a = t === "left" ? r.left + i : t === "right" ? r.right - i : r.left + r.width / 2, o = t === "top" ? r.top + i : t === "bottom" ? r.bottom - i : r.top + r.height / 2;
|
|
2905
|
+
c.style.left = `${a}px`, c.style.top = `${o}px`;
|
|
2906
|
+
}, v = () => {
|
|
2907
|
+
s && cancelAnimationFrame(s), s = 0, u = null, delete e.dataset.mintScrollFadeHover, c && (c.hidden = !0);
|
|
2908
|
+
}, y = (t) => {
|
|
2909
|
+
if (s = 0, !l) {
|
|
2910
|
+
v();
|
|
2911
|
+
return;
|
|
2912
|
+
}
|
|
2913
|
+
let n = g(l.x, l.y);
|
|
2914
|
+
if (n !== u) {
|
|
2915
|
+
b(n);
|
|
2916
|
+
return;
|
|
2917
|
+
}
|
|
2918
|
+
if (!n) return;
|
|
2919
|
+
_(n);
|
|
2920
|
+
let r = Math.max(0, t - d), i = Math.min(50, Math.max(0, t - f));
|
|
2921
|
+
f = t;
|
|
2922
|
+
let a = Math.min(500, 32 + r * .14) * i / 1e3 + p, o = n === "top" || n === "bottom" ? e.scrollTop : e.scrollLeft;
|
|
2923
|
+
n === "top" ? e.scrollTop -= a : n === "bottom" ? e.scrollTop += a : n === "left" ? e.scrollLeft -= a : e.scrollLeft += a;
|
|
2924
|
+
let c = n === "top" || n === "bottom" ? e.scrollTop : e.scrollLeft;
|
|
2925
|
+
if (p = (n === "top" || n === "left" ? o - a : o + a) - c, o === c && !m(n)) {
|
|
2926
|
+
v();
|
|
2927
|
+
return;
|
|
2928
|
+
}
|
|
2929
|
+
C(), s = requestAnimationFrame(y);
|
|
2930
|
+
};
|
|
2931
|
+
function b(t) {
|
|
2932
|
+
if (s && cancelAnimationFrame(s), s = 0, u = t, p = 0, !t) {
|
|
2933
|
+
delete e.dataset.mintScrollFadeHover, c && (c.hidden = !0);
|
|
2934
|
+
return;
|
|
2935
|
+
}
|
|
2936
|
+
e.dataset.mintScrollFadeHover = t, c || (c = document.createElement("span"), c.className = "mint-scroll-fade-hover-caret", c.setAttribute("aria-hidden", "true"), document.body.append(c)), c.dataset.edge = t, c.textContent = "", c.hidden = !1, d = performance.now(), f = d, _(t), s = requestAnimationFrame(y);
|
|
2937
|
+
}
|
|
2938
|
+
let x = (t) => {
|
|
2939
|
+
if (t.pointerType && t.pointerType !== "mouse") return;
|
|
2940
|
+
if (t.target instanceof Node && !e.contains(t.target)) {
|
|
2941
|
+
l = null, v();
|
|
2942
|
+
return;
|
|
2943
|
+
}
|
|
2944
|
+
l = {
|
|
2945
|
+
x: t.clientX,
|
|
2946
|
+
y: t.clientY
|
|
2947
|
+
};
|
|
2948
|
+
let n = g(t.clientX, t.clientY);
|
|
2949
|
+
n === u ? n && _(n) : b(n);
|
|
2950
|
+
}, S = () => {
|
|
2951
|
+
l = null, v();
|
|
2952
|
+
}, C = () => {
|
|
2871
2953
|
cancelAnimationFrame(o), o = requestAnimationFrame(() => {
|
|
2872
2954
|
let i = t === "vertical" || t === "both", a = t === "horizontal" || t === "both", o = i && e.scrollTop > 1, s = i && e.scrollTop + e.clientHeight < e.scrollHeight - 1, c = a && e.scrollLeft > 1, l = a && e.scrollLeft + e.clientWidth < e.scrollWidth - 1, u = getComputedStyle(e), d = Number.parseFloat(u.borderTopWidth) || 0, f = Number.parseFloat(u.borderRightWidth) || 0, p = Number.parseFloat(u.borderBottomWidth) || 0, m = Number.parseFloat(u.borderLeftWidth) || 0;
|
|
2873
2955
|
e.dataset.mintScrollFadeTop = String(o), e.dataset.mintScrollFadeBottom = String(s), e.dataset.mintScrollFadeLeft = String(c), e.dataset.mintScrollFadeRight = String(l), e.style.setProperty("--mint-scroll-fade-size", n), e.style.setProperty("--mint-scroll-fade-top-size", o ? n : "0px"), e.style.setProperty("--mint-scroll-fade-bottom-size", s ? n : "0px"), e.style.setProperty("--mint-scroll-fade-left-size", c ? n : "0px"), e.style.setProperty("--mint-scroll-fade-right-size", l ? n : "0px");
|
|
@@ -2887,22 +2969,25 @@ function B(e, t = "vertical", n = "1.5rem", r = "mask") {
|
|
|
2887
2969
|
}
|
|
2888
2970
|
});
|
|
2889
2971
|
};
|
|
2890
|
-
return e.addEventListener("scroll",
|
|
2972
|
+
return e.addEventListener("scroll", C, { passive: !0 }), document.addEventListener("pointermove", x, {
|
|
2973
|
+
passive: !0,
|
|
2974
|
+
capture: !0
|
|
2975
|
+
}), document.addEventListener("pointerleave", S), window.addEventListener("blur", S), typeof ResizeObserver < "u" && (i = new ResizeObserver(C), i.observe(e), e.firstElementChild && i.observe(e.firstElementChild)), typeof MutationObserver < "u" && (a = new MutationObserver(C), a.observe(e, {
|
|
2891
2976
|
childList: !0,
|
|
2892
2977
|
subtree: !0,
|
|
2893
2978
|
characterData: !0
|
|
2894
|
-
})),
|
|
2895
|
-
e.removeEventListener("scroll",
|
|
2979
|
+
})), C(), () => {
|
|
2980
|
+
e.removeEventListener("scroll", C), document.removeEventListener("pointermove", x, !0), document.removeEventListener("pointerleave", S), window.removeEventListener("blur", S), i?.disconnect(), a?.disconnect(), cancelAnimationFrame(o);
|
|
2896
2981
|
for (let t of [
|
|
2897
2982
|
"mintScrollFadeTop",
|
|
2898
2983
|
"mintScrollFadeBottom",
|
|
2899
2984
|
"mintScrollFadeLeft",
|
|
2900
2985
|
"mintScrollFadeRight"
|
|
2901
2986
|
]) delete e.dataset[t];
|
|
2902
|
-
delete e.dataset.mintScrollFadeMode, e.style.maskImage = "", e.style.webkitMaskImage = "", e.style.maskClip = "", e.style.webkitMaskClip = "", e.style.removeProperty("--mint-scroll-fade-size"), e.style.removeProperty("--mint-scroll-fade-top-size"), e.style.removeProperty("--mint-scroll-fade-bottom-size"), e.style.removeProperty("--mint-scroll-fade-left-size"), e.style.removeProperty("--mint-scroll-fade-right-size"), e.style.removeProperty("mask-composite"), e.style.removeProperty("-webkit-mask-composite");
|
|
2987
|
+
delete e.dataset.mintScrollFadeMode, delete e.dataset.mintScrollFadeHover, l = null, v(), c?.remove(), c = null, e.style.maskImage = "", e.style.webkitMaskImage = "", e.style.maskClip = "", e.style.webkitMaskClip = "", e.style.removeProperty("--mint-scroll-fade-size"), e.style.removeProperty("--mint-scroll-fade-top-size"), e.style.removeProperty("--mint-scroll-fade-bottom-size"), e.style.removeProperty("--mint-scroll-fade-left-size"), e.style.removeProperty("--mint-scroll-fade-right-size"), e.style.removeProperty("mask-composite"), e.style.removeProperty("-webkit-mask-composite");
|
|
2903
2988
|
};
|
|
2904
2989
|
}
|
|
2905
|
-
var
|
|
2990
|
+
var Tn = class extends HTMLElement {
|
|
2906
2991
|
constructor(...e) {
|
|
2907
2992
|
super(...e), this._disposeFade = null, this._target = null, this._contentObserver = null;
|
|
2908
2993
|
}
|
|
@@ -2946,16 +3031,16 @@ var wn = class extends HTMLElement {
|
|
|
2946
3031
|
].includes(r) ? r : "vertical", this.getAttribute("fade-size") || "1.5rem");
|
|
2947
3032
|
}
|
|
2948
3033
|
};
|
|
2949
|
-
customElements.get("mint-scroll-fade") || a("mint-scroll-fade",
|
|
3034
|
+
customElements.get("mint-scroll-fade") || a("mint-scroll-fade", Tn);
|
|
2950
3035
|
//#endregion
|
|
2951
3036
|
//#region src/components/popover/Popover.js
|
|
2952
|
-
var
|
|
3037
|
+
var En = new Set([
|
|
2953
3038
|
"up",
|
|
2954
3039
|
"down",
|
|
2955
3040
|
"left",
|
|
2956
3041
|
"right"
|
|
2957
3042
|
]);
|
|
2958
|
-
function
|
|
3043
|
+
function Dn(e) {
|
|
2959
3044
|
let t = e.getBoundingClientRect(), n = Math.max(0, t.top), r = Math.min(window.innerWidth, t.right), i = Math.min(window.innerHeight, t.bottom), a = Math.max(0, t.left);
|
|
2960
3045
|
for (let t = e.parentElement; t && t !== document.body; t = t.parentElement) {
|
|
2961
3046
|
let e = getComputedStyle(t), o = t.getBoundingClientRect();
|
|
@@ -2963,7 +3048,7 @@ function En(e) {
|
|
|
2963
3048
|
}
|
|
2964
3049
|
return i > n && r > a;
|
|
2965
3050
|
}
|
|
2966
|
-
var
|
|
3051
|
+
var On = class extends HTMLElement {
|
|
2967
3052
|
static get observedAttributes() {
|
|
2968
3053
|
return [
|
|
2969
3054
|
"direction",
|
|
@@ -2993,7 +3078,7 @@ var Dn = class extends HTMLElement {
|
|
|
2993
3078
|
}
|
|
2994
3079
|
getDirection() {
|
|
2995
3080
|
let e = this.getAttribute("direction") || "down";
|
|
2996
|
-
return
|
|
3081
|
+
return En.has(e) ? e : "down";
|
|
2997
3082
|
}
|
|
2998
3083
|
getTriggerId() {
|
|
2999
3084
|
return this.getAttribute("trigger-id") || "";
|
|
@@ -3082,7 +3167,7 @@ var Dn = class extends HTMLElement {
|
|
|
3082
3167
|
let t = e.target;
|
|
3083
3168
|
if (!(t instanceof Node && (t === this || this.contains(t)))) {
|
|
3084
3169
|
if (this.classList.contains("mint-select-popover")) {
|
|
3085
|
-
!this._trigger || !
|
|
3170
|
+
!this._trigger || !Dn(this._trigger) ? this.close() : (this._position({
|
|
3086
3171
|
allowViewportFlip: !1,
|
|
3087
3172
|
clampToViewport: !1
|
|
3088
3173
|
}), this._alignSelectedOptionToTrigger());
|
|
@@ -3239,10 +3324,10 @@ var Dn = class extends HTMLElement {
|
|
|
3239
3324
|
} else this.dataset.state = "closed";
|
|
3240
3325
|
}
|
|
3241
3326
|
};
|
|
3242
|
-
typeof customElements < "u" && !customElements.get("mint-popover") && a("mint-popover",
|
|
3327
|
+
typeof customElements < "u" && !customElements.get("mint-popover") && a("mint-popover", On);
|
|
3243
3328
|
//#endregion
|
|
3244
3329
|
//#region src/components/page/Page.js
|
|
3245
|
-
var
|
|
3330
|
+
var kn = class extends HTMLElement {
|
|
3246
3331
|
static get observedAttributes() {
|
|
3247
3332
|
return [
|
|
3248
3333
|
"heading",
|
|
@@ -3366,19 +3451,19 @@ var On = class extends HTMLElement {
|
|
|
3366
3451
|
this.dispatchEvent(i) && (n && window.history.length > 1 ? window.history.back() : window.location.href = this.getFallbackHref());
|
|
3367
3452
|
}
|
|
3368
3453
|
};
|
|
3369
|
-
typeof customElements < "u" && !customElements.get("mint-page") && a("mint-page",
|
|
3454
|
+
typeof customElements < "u" && !customElements.get("mint-page") && a("mint-page", kn);
|
|
3370
3455
|
//#endregion
|
|
3371
3456
|
//#region src/components/grid/Grid.js
|
|
3372
|
-
var
|
|
3457
|
+
var An = class extends HTMLElement {
|
|
3373
3458
|
constructor() {
|
|
3374
3459
|
super();
|
|
3375
3460
|
}
|
|
3376
3461
|
};
|
|
3377
|
-
typeof customElements < "u" && !customElements.get("mint-grid") && a("mint-grid",
|
|
3462
|
+
typeof customElements < "u" && !customElements.get("mint-grid") && a("mint-grid", An);
|
|
3378
3463
|
//#endregion
|
|
3379
3464
|
//#region src/components/modal/Modal.js
|
|
3380
3465
|
var V = /* @__PURE__ */ new Set(), H = null;
|
|
3381
|
-
function
|
|
3466
|
+
function jn(e) {
|
|
3382
3467
|
if (!V.has(e)) {
|
|
3383
3468
|
if (V.size === 0) {
|
|
3384
3469
|
let e = document.documentElement;
|
|
@@ -3391,7 +3476,7 @@ function An(e) {
|
|
|
3391
3476
|
V.add(e);
|
|
3392
3477
|
}
|
|
3393
3478
|
}
|
|
3394
|
-
function
|
|
3479
|
+
function Mn(e) {
|
|
3395
3480
|
if (!V.delete(e) || V.size > 0 || !H) return;
|
|
3396
3481
|
let t = H;
|
|
3397
3482
|
H = null;
|
|
@@ -3402,7 +3487,7 @@ function jn(e) {
|
|
|
3402
3487
|
behavior: "instant"
|
|
3403
3488
|
});
|
|
3404
3489
|
}
|
|
3405
|
-
var
|
|
3490
|
+
var Nn = class extends HTMLElement {
|
|
3406
3491
|
static get observedAttributes() {
|
|
3407
3492
|
return [
|
|
3408
3493
|
"id",
|
|
@@ -3425,7 +3510,7 @@ var Mn = class extends HTMLElement {
|
|
|
3425
3510
|
}, document.addEventListener("pointerdown", this._pointerDownHandler, !0);
|
|
3426
3511
|
}
|
|
3427
3512
|
disconnectedCallback() {
|
|
3428
|
-
|
|
3513
|
+
Mn(this), this._pointerDownHandler &&= (document.removeEventListener("pointerdown", this._pointerDownHandler, !0), null), this._exitTimer &&= (clearTimeout(this._exitTimer), null), this._backdropTimer &&= (clearTimeout(this._backdropTimer), null), this._darkModeObserver &&= (this._darkModeObserver.disconnect(), null);
|
|
3429
3514
|
}
|
|
3430
3515
|
attributeChangedCallback(e, t, n) {
|
|
3431
3516
|
t !== n && (e === "open" && n !== null && !this._triggerElement && (this._triggerElement = this._findTriggerElement(), this._triggerPoint = this._findTriggerPoint(this._triggerElement)), this.render());
|
|
@@ -3453,7 +3538,7 @@ var Mn = class extends HTMLElement {
|
|
|
3453
3538
|
let e = this.getId(), t = this.getHeading(), n = this.isOpen(), r = this.getSize();
|
|
3454
3539
|
if (e && (this.id = e), this._overlay || (this._overlay = document.createElement("div"), this._overlay.className = "mint-modal-overlay", this._overlay.addEventListener("click", () => this.close()), this.appendChild(this._overlay)), this._modal || (this._modal = document.createElement("div"), this._modal.className = "mint-modal-shell", this.appendChild(this._modal)), n) {
|
|
3455
3540
|
let e = this._modal.querySelector(".modal-content");
|
|
3456
|
-
e || (e = document.createElement("div"), e.className = "modal-content", this._modal.appendChild(e)), this._renderedOpen || (this._renderedOpen = !0,
|
|
3541
|
+
e || (e = document.createElement("div"), e.className = "modal-content", this._modal.appendChild(e)), this._renderedOpen || (this._renderedOpen = !0, jn(this), this._animateEnter());
|
|
3457
3542
|
} else this._renderedOpen && (this._renderedOpen = !1, this._animateExit());
|
|
3458
3543
|
let i = this._modal.querySelector(".modal-content");
|
|
3459
3544
|
i || (i = document.createElement("div"), i.className = "modal-content", this._modal.appendChild(i)), i.classList.remove("modal-content--small", "modal-content--large"), r !== "default" && i.classList.add(`modal-content--${r}`), this._header || (this._header = document.createElement("div"), this._header.className = "mint-modal-header", i.appendChild(this._header)), this._headingSlot || (this._headingSlot = document.createElement("div"), this._headingSlot.className = "mint-modal-heading", this._headingSlot.setAttribute("slot", "heading"), this._header.appendChild(this._headingSlot));
|
|
@@ -3528,15 +3613,15 @@ var Mn = class extends HTMLElement {
|
|
|
3528
3613
|
this.classList.remove("mint-modal-open"), this._backdropTimer &&= (clearTimeout(this._backdropTimer), null);
|
|
3529
3614
|
let e = this._modal?.querySelector(".modal-content");
|
|
3530
3615
|
if (!e) {
|
|
3531
|
-
this.classList.add("mint-hidden"), this.classList.remove("mint-modal-closing"),
|
|
3616
|
+
this.classList.add("mint-hidden"), this.classList.remove("mint-modal-closing"), Mn(this);
|
|
3532
3617
|
return;
|
|
3533
3618
|
}
|
|
3534
3619
|
this._exitTimer && clearTimeout(this._exitTimer), this.classList.add("mint-modal-closing"), e.style.transition = "opacity 200ms ease-in", e.style.opacity = "0", this._exitTimer = setTimeout(() => {
|
|
3535
|
-
this._exitTimer = null, !this.isOpen() && (this.classList.add("mint-hidden"), this.classList.remove("mint-modal-closing"), e.style.transform = "", e.style.opacity = "", e.style.transition = "",
|
|
3620
|
+
this._exitTimer = null, !this.isOpen() && (this.classList.add("mint-hidden"), this.classList.remove("mint-modal-closing"), e.style.transform = "", e.style.opacity = "", e.style.transition = "", Mn(this));
|
|
3536
3621
|
}, 200);
|
|
3537
3622
|
}
|
|
3538
3623
|
};
|
|
3539
|
-
typeof customElements < "u" && !customElements.get("mint-modal") && a("mint-modal",
|
|
3624
|
+
typeof customElements < "u" && !customElements.get("mint-modal") && a("mint-modal", Nn), s({
|
|
3540
3625
|
name: "check",
|
|
3541
3626
|
viewBox: "0 0 24 24",
|
|
3542
3627
|
path: "M5 13l4 4L19 7",
|
|
@@ -3546,7 +3631,7 @@ typeof customElements < "u" && !customElements.get("mint-modal") && a("mint-moda
|
|
|
3546
3631
|
});
|
|
3547
3632
|
//#endregion
|
|
3548
3633
|
//#region src/components/checkbox/Checkbox.js
|
|
3549
|
-
var
|
|
3634
|
+
var Pn = class extends HTMLElement {
|
|
3550
3635
|
static get observedAttributes() {
|
|
3551
3636
|
return [
|
|
3552
3637
|
"checked",
|
|
@@ -3723,10 +3808,10 @@ var Nn = class extends HTMLElement {
|
|
|
3723
3808
|
}
|
|
3724
3809
|
}
|
|
3725
3810
|
};
|
|
3726
|
-
typeof customElements < "u" && !customElements.get("mint-checkbox") && a("mint-checkbox",
|
|
3811
|
+
typeof customElements < "u" && !customElements.get("mint-checkbox") && a("mint-checkbox", Pn);
|
|
3727
3812
|
//#endregion
|
|
3728
3813
|
//#region src/components/choice/Choice.js
|
|
3729
|
-
var
|
|
3814
|
+
var Fn = class extends HTMLElement {
|
|
3730
3815
|
static get observedAttributes() {
|
|
3731
3816
|
return [
|
|
3732
3817
|
"checked",
|
|
@@ -3996,7 +4081,7 @@ var Pn = class extends HTMLElement {
|
|
|
3996
4081
|
this.dispatchEvent(t);
|
|
3997
4082
|
}
|
|
3998
4083
|
}
|
|
3999
|
-
},
|
|
4084
|
+
}, In = class extends HTMLElement {
|
|
4000
4085
|
static get observedAttributes() {
|
|
4001
4086
|
return [
|
|
4002
4087
|
"value",
|
|
@@ -4031,10 +4116,10 @@ var Pn = class extends HTMLElement {
|
|
|
4031
4116
|
r || (r = document.createElement("span"), r.className = "mint-choice-option-label", n.appendChild(r)), r.textContent = this._labelText;
|
|
4032
4117
|
}
|
|
4033
4118
|
};
|
|
4034
|
-
typeof customElements < "u" && !customElements.get("mint-choice") && a("mint-choice",
|
|
4119
|
+
typeof customElements < "u" && !customElements.get("mint-choice") && a("mint-choice", Fn), typeof customElements < "u" && !customElements.get("mint-choice-option") && a("mint-choice-option", In);
|
|
4035
4120
|
//#endregion
|
|
4036
4121
|
//#region src/components/navigation/Navigation.js
|
|
4037
|
-
var
|
|
4122
|
+
var Ln = 0, Rn = class extends HTMLElement {
|
|
4038
4123
|
static get observedAttributes() {
|
|
4039
4124
|
return [
|
|
4040
4125
|
"brand",
|
|
@@ -4046,7 +4131,7 @@ var In = 0, Ln = class extends HTMLElement {
|
|
|
4046
4131
|
];
|
|
4047
4132
|
}
|
|
4048
4133
|
constructor() {
|
|
4049
|
-
super(), this._built = !1, this._brand = null, this._brandLink = null, this._leadingActions = null, this._items = null, this._toggle = null, this._toggleLabel = null, this._mobileActions = null, this._mobileActionNodes = [], this._instanceId = ++
|
|
4134
|
+
super(), this._built = !1, this._brand = null, this._brandLink = null, this._leadingActions = null, this._items = null, this._toggle = null, this._toggleLabel = null, this._mobileActions = null, this._mobileActionNodes = [], this._instanceId = ++Ln, this._dropdowns = [], this._content = null, this._actions = null, this._activeDropdown = null, this._layoutObserver = null;
|
|
4050
4135
|
}
|
|
4051
4136
|
connectedCallback() {
|
|
4052
4137
|
this._built || this._build(), this._observeDropdowns(), this._syncResponsiveDropdowns(), this._syncMobileActions(), typeof ResizeObserver < "u" && (this._layoutObserver = new ResizeObserver(() => {
|
|
@@ -4206,7 +4291,7 @@ var In = 0, Ln = class extends HTMLElement {
|
|
|
4206
4291
|
this.hasAttribute("open") ? this.closeMenu() : this.openMenu();
|
|
4207
4292
|
}
|
|
4208
4293
|
};
|
|
4209
|
-
typeof customElements < "u" && !customElements.get("mint-navigation") && a("mint-navigation",
|
|
4294
|
+
typeof customElements < "u" && !customElements.get("mint-navigation") && a("mint-navigation", Rn), s({
|
|
4210
4295
|
name: "info",
|
|
4211
4296
|
viewBox: "0 0 24 24",
|
|
4212
4297
|
path: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",
|
|
@@ -4240,7 +4325,7 @@ typeof customElements < "u" && !customElements.get("mint-navigation") && a("mint
|
|
|
4240
4325
|
});
|
|
4241
4326
|
//#endregion
|
|
4242
4327
|
//#region src/components/alert/Alert.ts
|
|
4243
|
-
var
|
|
4328
|
+
var zn = class extends HTMLElement {
|
|
4244
4329
|
static get observedAttributes() {
|
|
4245
4330
|
return [
|
|
4246
4331
|
"heading",
|
|
@@ -4350,10 +4435,10 @@ var Rn = class extends HTMLElement {
|
|
|
4350
4435
|
}
|
|
4351
4436
|
}
|
|
4352
4437
|
};
|
|
4353
|
-
customElements.get("mint-alert") || a("mint-alert",
|
|
4438
|
+
customElements.get("mint-alert") || a("mint-alert", zn);
|
|
4354
4439
|
//#endregion
|
|
4355
4440
|
//#region src/components/bottom-navigation/BottomNavigation.ts
|
|
4356
|
-
var
|
|
4441
|
+
var Bn = class extends HTMLElement {
|
|
4357
4442
|
constructor(...e) {
|
|
4358
4443
|
super(...e), this._lastScrollY = 0, this._scrollHandler = null;
|
|
4359
4444
|
}
|
|
@@ -4378,10 +4463,10 @@ var zn = class extends HTMLElement {
|
|
|
4378
4463
|
this._scrollHandler &&= (window.removeEventListener("scroll", this._scrollHandler), null);
|
|
4379
4464
|
}
|
|
4380
4465
|
};
|
|
4381
|
-
customElements.get("mint-bottom-navigation") || a("mint-bottom-navigation",
|
|
4466
|
+
customElements.get("mint-bottom-navigation") || a("mint-bottom-navigation", Bn);
|
|
4382
4467
|
//#endregion
|
|
4383
4468
|
//#region src/components/bottom-navigation/BottomNavItem.ts
|
|
4384
|
-
var
|
|
4469
|
+
var Vn = class extends HTMLElement {
|
|
4385
4470
|
constructor(...e) {
|
|
4386
4471
|
super(...e), this._root = null;
|
|
4387
4472
|
}
|
|
@@ -4425,10 +4510,10 @@ var Bn = class extends HTMLElement {
|
|
|
4425
4510
|
s.className = "mint-bottom-nav-label", s.textContent = t, i.appendChild(o), i.appendChild(s), this.replaceChildren(i), this._root = i;
|
|
4426
4511
|
}
|
|
4427
4512
|
};
|
|
4428
|
-
customElements.get("mint-bottom-nav-item") || a("mint-bottom-nav-item",
|
|
4513
|
+
customElements.get("mint-bottom-nav-item") || a("mint-bottom-nav-item", Vn);
|
|
4429
4514
|
//#endregion
|
|
4430
4515
|
//#region src/components/bottom-navigation/index.ts
|
|
4431
|
-
var
|
|
4516
|
+
var Hn = Bn, Un = class e extends HTMLElement {
|
|
4432
4517
|
static get observedAttributes() {
|
|
4433
4518
|
return [
|
|
4434
4519
|
"type",
|
|
@@ -5753,10 +5838,10 @@ var Vn = zn, Hn = class e extends HTMLElement {
|
|
|
5753
5838
|
});
|
|
5754
5839
|
}
|
|
5755
5840
|
};
|
|
5756
|
-
customElements.get("mint-chart") || a("mint-chart",
|
|
5841
|
+
customElements.get("mint-chart") || a("mint-chart", Un);
|
|
5757
5842
|
//#endregion
|
|
5758
5843
|
//#region src/components/chip/Chip.ts
|
|
5759
|
-
var
|
|
5844
|
+
var Wn = class extends HTMLElement {
|
|
5760
5845
|
constructor(...e) {
|
|
5761
5846
|
super(...e), this._root = null, this._label = null, this._dismissBtn = null, this._clickHandler = null;
|
|
5762
5847
|
}
|
|
@@ -5806,10 +5891,10 @@ var Un = class extends HTMLElement {
|
|
|
5806
5891
|
}, e.addEventListener("click", this._clickHandler), this._dismissBtn = e;
|
|
5807
5892
|
}
|
|
5808
5893
|
};
|
|
5809
|
-
customElements.get("mint-chip") || a("mint-chip",
|
|
5894
|
+
customElements.get("mint-chip") || a("mint-chip", Wn);
|
|
5810
5895
|
//#endregion
|
|
5811
5896
|
//#region src/components/clickable/Clickable.ts
|
|
5812
|
-
var
|
|
5897
|
+
var Gn = class extends HTMLElement {
|
|
5813
5898
|
constructor(...e) {
|
|
5814
5899
|
super(...e), this._clickHandler = null, this._keydownHandler = null, this._target = null, this._observer = null, this._managedRole = !1, this._managedTabindex = !1;
|
|
5815
5900
|
}
|
|
@@ -5864,10 +5949,10 @@ var Wn = class extends HTMLElement {
|
|
|
5864
5949
|
e === "disabled" && this.isConnected && this._syncTarget();
|
|
5865
5950
|
}
|
|
5866
5951
|
};
|
|
5867
|
-
customElements.get("mint-clickable") || a("mint-clickable",
|
|
5952
|
+
customElements.get("mint-clickable") || a("mint-clickable", Gn);
|
|
5868
5953
|
//#endregion
|
|
5869
5954
|
//#region src/components/collapsible/Collapsible.ts
|
|
5870
|
-
var
|
|
5955
|
+
var Kn = class extends HTMLElement {
|
|
5871
5956
|
static get observedAttributes() {
|
|
5872
5957
|
return [
|
|
5873
5958
|
"id",
|
|
@@ -6018,10 +6103,10 @@ var Gn = class extends HTMLElement {
|
|
|
6018
6103
|
}), this._contentAnimation.onfinish = o;
|
|
6019
6104
|
}
|
|
6020
6105
|
};
|
|
6021
|
-
customElements.get("mint-collapsible") || a("mint-collapsible",
|
|
6106
|
+
customElements.get("mint-collapsible") || a("mint-collapsible", Kn);
|
|
6022
6107
|
//#endregion
|
|
6023
6108
|
//#region src/components/confirm-action/ConfirmAction.ts
|
|
6024
|
-
var
|
|
6109
|
+
var qn = class extends HTMLElement {
|
|
6025
6110
|
constructor(...e) {
|
|
6026
6111
|
super(...e), this._modal = null, this._actionsFooter = null, this._confirmButton = null, this._cancelButton = null, this._pendingResolve = null, this._modalObserver = null, this._lastAction = null, this._onConfirmClick = null, this._onCancelClick = null;
|
|
6027
6112
|
}
|
|
@@ -6068,11 +6153,11 @@ var Kn = class extends HTMLElement {
|
|
|
6068
6153
|
}));
|
|
6069
6154
|
}
|
|
6070
6155
|
};
|
|
6071
|
-
customElements.get("mint-confirm-action") || a("mint-confirm-action",
|
|
6156
|
+
customElements.get("mint-confirm-action") || a("mint-confirm-action", qn);
|
|
6072
6157
|
//#endregion
|
|
6073
6158
|
//#region src/components/confirm-action/ConfirmActionApi.ts
|
|
6074
|
-
var
|
|
6075
|
-
function
|
|
6159
|
+
var Jn = [], Yn = !1;
|
|
6160
|
+
function Xn() {
|
|
6076
6161
|
return typeof document > "u" || document.body ? Promise.resolve() : new Promise((e) => {
|
|
6077
6162
|
if (typeof window > "u") {
|
|
6078
6163
|
e();
|
|
@@ -6081,48 +6166,48 @@ function Yn() {
|
|
|
6081
6166
|
window.addEventListener("DOMContentLoaded", () => e(), { once: !0 });
|
|
6082
6167
|
});
|
|
6083
6168
|
}
|
|
6084
|
-
async function
|
|
6085
|
-
if (await
|
|
6169
|
+
async function Zn() {
|
|
6170
|
+
if (await Xn(), typeof document > "u") throw Error("mintui.confirm is only available in browser environments.");
|
|
6086
6171
|
let e = document.querySelector("mint-confirm-action[data-mint-confirm-action-root=\"true\"]");
|
|
6087
6172
|
if (e) return e;
|
|
6088
6173
|
let t = document.createElement("mint-confirm-action");
|
|
6089
6174
|
return t.setAttribute("data-mint-confirm-action-root", "true"), document.body.appendChild(t), t;
|
|
6090
6175
|
}
|
|
6091
|
-
function
|
|
6176
|
+
function Qn(e) {
|
|
6092
6177
|
let t = (e || "action").toString().trim().toLowerCase().replace(/^tone:\s*/, "");
|
|
6093
6178
|
return t === "action" || t === "info" || t === "warning" || t === "danger" ? t : "action";
|
|
6094
6179
|
}
|
|
6095
|
-
async function
|
|
6096
|
-
if (!
|
|
6097
|
-
|
|
6180
|
+
async function $n() {
|
|
6181
|
+
if (!Yn) {
|
|
6182
|
+
Yn = !0;
|
|
6098
6183
|
try {
|
|
6099
|
-
for (;
|
|
6100
|
-
let e =
|
|
6101
|
-
e && (await (await
|
|
6184
|
+
for (; Jn.length > 0;) {
|
|
6185
|
+
let e = Jn.shift();
|
|
6186
|
+
e && (await (await Zn()).showConfirm({
|
|
6102
6187
|
question: e.question,
|
|
6103
|
-
tone:
|
|
6188
|
+
tone: Qn(e.tone),
|
|
6104
6189
|
confirmLabel: e.confirmLabel || "Confirm",
|
|
6105
6190
|
cancelLabel: e.cancelLabel || "Cancel"
|
|
6106
6191
|
}) ? e.confirmed?.() : e.cancelled?.());
|
|
6107
6192
|
}
|
|
6108
6193
|
} finally {
|
|
6109
|
-
|
|
6194
|
+
Yn = !1;
|
|
6110
6195
|
}
|
|
6111
6196
|
}
|
|
6112
6197
|
}
|
|
6113
|
-
function
|
|
6114
|
-
typeof window > "u" || (
|
|
6198
|
+
function er(e, t, n, r = "action", i = "Confirm", a = "Cancel") {
|
|
6199
|
+
typeof window > "u" || (Jn.push({
|
|
6115
6200
|
question: e,
|
|
6116
6201
|
confirmed: t,
|
|
6117
6202
|
cancelled: n,
|
|
6118
6203
|
tone: r,
|
|
6119
6204
|
confirmLabel: i,
|
|
6120
6205
|
cancelLabel: a
|
|
6121
|
-
}),
|
|
6206
|
+
}), $n());
|
|
6122
6207
|
}
|
|
6123
6208
|
if (typeof window < "u") {
|
|
6124
6209
|
let e = window.mintui || {};
|
|
6125
|
-
e.confirm =
|
|
6210
|
+
e.confirm = er, window.mintui = e;
|
|
6126
6211
|
}
|
|
6127
6212
|
s({
|
|
6128
6213
|
name: "calendar",
|
|
@@ -6157,7 +6242,7 @@ s({
|
|
|
6157
6242
|
});
|
|
6158
6243
|
//#endregion
|
|
6159
6244
|
//#region src/components/input/Input.ts
|
|
6160
|
-
var
|
|
6245
|
+
var tr = class extends HTMLElement {
|
|
6161
6246
|
static get observedAttributes() {
|
|
6162
6247
|
return [
|
|
6163
6248
|
"type",
|
|
@@ -6557,10 +6642,10 @@ var er = class extends HTMLElement {
|
|
|
6557
6642
|
}
|
|
6558
6643
|
}
|
|
6559
6644
|
};
|
|
6560
|
-
customElements.get("mint-input") || a("mint-input",
|
|
6645
|
+
customElements.get("mint-input") || a("mint-input", tr);
|
|
6561
6646
|
//#endregion
|
|
6562
6647
|
//#region src/components/date-picker/DatePicker.ts
|
|
6563
|
-
var
|
|
6648
|
+
var nr = class extends HTMLElement {
|
|
6564
6649
|
static get observedAttributes() {
|
|
6565
6650
|
return [
|
|
6566
6651
|
"value",
|
|
@@ -7358,7 +7443,7 @@ var tr = class extends HTMLElement {
|
|
|
7358
7443
|
x.className = "mint-date-calendar-grid", x.setAttribute("role", "group"), x.setAttribute("aria-label", `${n[this._currentMonth]} ${this._currentYear}`);
|
|
7359
7444
|
let S = this.getMin() ? this._parseDateString(this.getMin(), this.getFormat()) : null, C = this.getMax() ? this._parseDateString(this.getMax(), this.getFormat()) : null;
|
|
7360
7445
|
this.getDisabledDates();
|
|
7361
|
-
let w = this._currentMonth === 0 ? 11 : this._currentMonth - 1, T = this._currentMonth === 0 ? this._currentYear - 1 : this._currentYear, E = this._getDaysInMonth(w, T), D = this._currentMonth === 11 ? 0 : this._currentMonth + 1,
|
|
7446
|
+
let w = this._currentMonth === 0 ? 11 : this._currentMonth - 1, T = this._currentMonth === 0 ? this._currentYear - 1 : this._currentYear, E = this._getDaysInMonth(w, T), D = this._currentMonth === 11 ? 0 : this._currentMonth + 1, ee = this._currentMonth === 11 ? this._currentYear + 1 : this._currentYear, O = t + e, k = Math.ceil(O / 7) * 7 - O, A = (e, t, n) => {
|
|
7362
7447
|
let r = this._isToday(e), i = this._isDateSelected(e), a = this._isDateInRange(e), o = S && e < S || C && e > C || this._isDateDisabled(e), s = "is-fully-rounded", c = this._isRange && this._selectedStartDate && !this._selectedEndDate && this._hoveredDate, l = c && this._selectedStartDate && this._hoveredDate && this._selectedStartDate < this._hoveredDate ? this._selectedStartDate : c && this._hoveredDate ? this._hoveredDate : null, u = c && this._selectedStartDate && this._hoveredDate && this._selectedStartDate < this._hoveredDate ? this._hoveredDate : c && this._selectedStartDate ? this._selectedStartDate : null, d = l !== null && this._isSameDate(e, l), f = u !== null && this._isSameDate(e, u), p = this._hoveredDate !== null && this._isSameDate(e, this._hoveredDate), m = c && this._hoveredDate && this._selectedStartDate ? !this._rangeIncludesDisabledDates(this._selectedStartDate < this._hoveredDate ? this._selectedStartDate : this._hoveredDate, this._selectedStartDate < this._hoveredDate ? this._hoveredDate : this._selectedStartDate) : !1;
|
|
7363
7448
|
if (this._isRange && this._selectedStartDate && this._selectedEndDate) {
|
|
7364
7449
|
let t = this._isSameDate(e, this._selectedStartDate), n = this._isSameDate(e, this._selectedEndDate);
|
|
@@ -7396,15 +7481,15 @@ var tr = class extends HTMLElement {
|
|
|
7396
7481
|
}, { passive: !0 }))), h;
|
|
7397
7482
|
};
|
|
7398
7483
|
for (let e = t - 1; e >= 0; e--) {
|
|
7399
|
-
let t = E - e, n =
|
|
7484
|
+
let t = E - e, n = A(new Date(T, w, t), t, !1);
|
|
7400
7485
|
x.appendChild(n);
|
|
7401
7486
|
}
|
|
7402
7487
|
for (let t = 1; t <= e; t++) {
|
|
7403
|
-
let e =
|
|
7488
|
+
let e = A(new Date(this._currentYear, this._currentMonth, t), t, !0);
|
|
7404
7489
|
x.appendChild(e);
|
|
7405
7490
|
}
|
|
7406
|
-
for (let e = 1; e <=
|
|
7407
|
-
let t =
|
|
7491
|
+
for (let e = 1; e <= k; e++) {
|
|
7492
|
+
let t = A(new Date(ee, D, e), e, !1);
|
|
7408
7493
|
x.appendChild(t);
|
|
7409
7494
|
}
|
|
7410
7495
|
if (this._isRange && this._selectedStartDate && !this._selectedEndDate && (x.addEventListener("mouseleave", () => {
|
|
@@ -7836,10 +7921,10 @@ var tr = class extends HTMLElement {
|
|
|
7836
7921
|
this._focusTrapHandler &&= (document.removeEventListener("keydown", this._focusTrapHandler, !0), null), this._escapeHandler &&= (document.removeEventListener("keydown", this._escapeHandler, !0), null);
|
|
7837
7922
|
}
|
|
7838
7923
|
};
|
|
7839
|
-
customElements.get("mint-date-picker") || a("mint-date-picker",
|
|
7924
|
+
customElements.get("mint-date-picker") || a("mint-date-picker", nr);
|
|
7840
7925
|
//#endregion
|
|
7841
7926
|
//#region src/components/time-picker/TimePicker.ts
|
|
7842
|
-
var
|
|
7927
|
+
var rr = class extends HTMLElement {
|
|
7843
7928
|
constructor(...e) {
|
|
7844
7929
|
super(...e), this._triggerId = `mint-time-picker-trigger-${Math.random().toString(36).slice(2, 10)}`, this._popover = null, this._popoverObserver = null, this._triggerClickObserver = null, this._inputEl = null, this._hiddenInput = null, this._prependSlotNodes = [], this._appendSlotNodes = [], this._slotObserver = null, this._single = {
|
|
7845
7930
|
hour: 9,
|
|
@@ -8205,10 +8290,10 @@ var nr = class extends HTMLElement {
|
|
|
8205
8290
|
this._prependSlotNodes = e.filter((e) => e.getAttribute("slot") === "prepend"), this._appendSlotNodes = e.filter((e) => e.getAttribute("slot") === "append");
|
|
8206
8291
|
}
|
|
8207
8292
|
};
|
|
8208
|
-
customElements.get("mint-time-picker") || a("mint-time-picker",
|
|
8293
|
+
customElements.get("mint-time-picker") || a("mint-time-picker", rr);
|
|
8209
8294
|
//#endregion
|
|
8210
8295
|
//#region src/components/datetime-picker/DateTimePicker.ts
|
|
8211
|
-
var
|
|
8296
|
+
var ir = class extends HTMLElement {
|
|
8212
8297
|
constructor(...e) {
|
|
8213
8298
|
super(...e), this._datePicker = null, this._timePicker = null, this._content = null, this._popoverContent = null, this._popoverObserver = null, this._hiddenInput = null, this._dateValue = "", this._timeValue = "", this._dateStageComplete = !1, this._ready = !1, this._writingValue = !1, this._displayControlBound = !1, this._prependSlotNodes = [], this._appendSlotNodes = [], this._slotObserver = null;
|
|
8214
8299
|
}
|
|
@@ -8461,7 +8546,7 @@ var rr = class extends HTMLElement {
|
|
|
8461
8546
|
].filter(Boolean).join(":")} ${i >= 12 ? "pm" : "am"}`;
|
|
8462
8547
|
}
|
|
8463
8548
|
};
|
|
8464
|
-
customElements.get("mint-datetime-picker") || a("mint-datetime-picker",
|
|
8549
|
+
customElements.get("mint-datetime-picker") || a("mint-datetime-picker", ir), s({
|
|
8465
8550
|
name: "upload",
|
|
8466
8551
|
viewBox: "0 0 24 24",
|
|
8467
8552
|
path: "M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12",
|
|
@@ -8476,7 +8561,7 @@ customElements.get("mint-datetime-picker") || a("mint-datetime-picker", rr), s({
|
|
|
8476
8561
|
});
|
|
8477
8562
|
//#endregion
|
|
8478
8563
|
//#region src/components/dropzone/Dropzone.ts
|
|
8479
|
-
var
|
|
8564
|
+
var ar = class extends HTMLElement {
|
|
8480
8565
|
static get observedAttributes() {
|
|
8481
8566
|
return [
|
|
8482
8567
|
"label",
|
|
@@ -8891,10 +8976,10 @@ var ir = class extends HTMLElement {
|
|
|
8891
8976
|
return this._selectedFiles.some((t) => t.name === e.name && t.size === e.size && t.lastModified === e.lastModified);
|
|
8892
8977
|
}
|
|
8893
8978
|
};
|
|
8894
|
-
customElements.get("mint-dropzone") || a("mint-dropzone",
|
|
8979
|
+
customElements.get("mint-dropzone") || a("mint-dropzone", ar);
|
|
8895
8980
|
//#endregion
|
|
8896
8981
|
//#region src/components/form/Form.ts
|
|
8897
|
-
var
|
|
8982
|
+
var or = class extends HTMLElement {
|
|
8898
8983
|
static get observedAttributes() {
|
|
8899
8984
|
return [
|
|
8900
8985
|
"action",
|
|
@@ -8999,31 +9084,35 @@ var ar = class extends HTMLElement {
|
|
|
8999
9084
|
let e = this.getAttribute("action") || "", t = this.getAttribute("method") || "", n = this.getAttribute("enctype") || "application/x-www-form-urlencoded";
|
|
9000
9085
|
e && (this._form.action = e), t && (this._form.method = t), this._form.enctype = n;
|
|
9001
9086
|
}
|
|
9002
|
-
|
|
9003
|
-
if (
|
|
9087
|
+
validate() {
|
|
9088
|
+
if (!this._form) return !1;
|
|
9004
9089
|
this._clearErrors(), this._syncDropzoneFiles();
|
|
9005
|
-
let
|
|
9090
|
+
let e = new FormData(this._form), t = this._validate(this._collectCurrentValues(e), this._collectValidationRules());
|
|
9091
|
+
return t || this._dispatchInvalidEvent(), t;
|
|
9092
|
+
}
|
|
9093
|
+
_collectCurrentValues(e) {
|
|
9094
|
+
let t = this._formDataToValues(e);
|
|
9006
9095
|
if (this._formData) {
|
|
9007
9096
|
let e = this._getObjectValue(this._formData);
|
|
9008
|
-
e && typeof e == "object" && !Array.isArray(e) && (
|
|
9097
|
+
e && typeof e == "object" && !Array.isArray(e) && (t = {
|
|
9009
9098
|
...this._extractReactiveData(e),
|
|
9010
|
-
...
|
|
9099
|
+
...t
|
|
9011
9100
|
});
|
|
9012
9101
|
}
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
...
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9102
|
+
return {
|
|
9103
|
+
...t,
|
|
9104
|
+
...this._collectLiveControlValues()
|
|
9105
|
+
};
|
|
9106
|
+
}
|
|
9107
|
+
async _handleSubmit(e) {
|
|
9108
|
+
if (e.preventDefault(), !this._form) return;
|
|
9109
|
+
this._clearErrors(), this._syncDropzoneFiles();
|
|
9110
|
+
let t = this._collectValidationRules(), n = new FormData(this._form), r = this._collectCurrentValues(n);
|
|
9111
|
+
if (!this._validate(r, t)) {
|
|
9112
|
+
this._dispatchInvalidEvent();
|
|
9024
9113
|
return;
|
|
9025
9114
|
}
|
|
9026
|
-
let
|
|
9115
|
+
let i = new CustomEvent("submit", {
|
|
9027
9116
|
detail: {
|
|
9028
9117
|
formData: n,
|
|
9029
9118
|
values: r,
|
|
@@ -9033,8 +9122,8 @@ var ar = class extends HTMLElement {
|
|
|
9033
9122
|
cancelable: !0,
|
|
9034
9123
|
composed: !0
|
|
9035
9124
|
});
|
|
9036
|
-
this.dispatchEvent(
|
|
9037
|
-
let
|
|
9125
|
+
this.dispatchEvent(i), i.form = this;
|
|
9126
|
+
let a = new CustomEvent("mintFormSubmit", {
|
|
9038
9127
|
detail: {
|
|
9039
9128
|
formData: n,
|
|
9040
9129
|
values: r,
|
|
@@ -9044,9 +9133,9 @@ var ar = class extends HTMLElement {
|
|
|
9044
9133
|
cancelable: !0,
|
|
9045
9134
|
composed: !0
|
|
9046
9135
|
});
|
|
9047
|
-
if (
|
|
9048
|
-
let
|
|
9049
|
-
if (!(!
|
|
9136
|
+
if (a.form = this, this.dispatchEvent(a), i.defaultPrevented || a.defaultPrevented) return;
|
|
9137
|
+
let o = this.getAttribute("action"), s = this.getAttribute("method");
|
|
9138
|
+
if (!(!o || !s)) {
|
|
9050
9139
|
this._setButtonsSubmitting();
|
|
9051
9140
|
try {
|
|
9052
9141
|
let e = await this._submitData(n, r);
|
|
@@ -9257,7 +9346,8 @@ var ar = class extends HTMLElement {
|
|
|
9257
9346
|
"mint-checkbox[name]",
|
|
9258
9347
|
"mint-choice[name]",
|
|
9259
9348
|
"mint-switch[name]",
|
|
9260
|
-
"mint-tags[name]"
|
|
9349
|
+
"mint-tags[name]",
|
|
9350
|
+
"mint-editor[name]"
|
|
9261
9351
|
].join(",")));
|
|
9262
9352
|
for (let e of n) {
|
|
9263
9353
|
let n = e.getAttribute("name");
|
|
@@ -9299,7 +9389,7 @@ var ar = class extends HTMLElement {
|
|
|
9299
9389
|
return this._errors = {}, Object.entries(t || {}).forEach(([e, t]) => {
|
|
9300
9390
|
let r = Array.isArray(t) ? t : [t], i = this._getFieldElements(e), a = this._extractFieldValue(i), o = this._validateRules(a, r);
|
|
9301
9391
|
o ? (n = !1, this._errors[e] = o, this._flagFieldError(i, o)) : this._clearFieldError(i);
|
|
9302
|
-
}), n
|
|
9392
|
+
}), n;
|
|
9303
9393
|
}
|
|
9304
9394
|
_validateField(e) {
|
|
9305
9395
|
let t = this._collectValidationRules();
|
|
@@ -9476,23 +9566,27 @@ var ar = class extends HTMLElement {
|
|
|
9476
9566
|
this._clearErrors(), Object.entries(e).forEach(([e, t]) => {
|
|
9477
9567
|
let n = Array.isArray(t) ? t[0] || "Validation error" : t || "Validation error", r = this._getFieldElements(e);
|
|
9478
9568
|
r.length > 0 && (this._errors[e] = n, this._flagFieldError(r, n));
|
|
9479
|
-
}), this.
|
|
9569
|
+
}), Object.keys(this._errors).length > 0 && this._dispatchInvalidEvent();
|
|
9480
9570
|
}
|
|
9481
|
-
|
|
9482
|
-
let e =
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9571
|
+
_dispatchInvalidEvent() {
|
|
9572
|
+
let e = new CustomEvent("invalid", {
|
|
9573
|
+
detail: { errors: this._errors },
|
|
9574
|
+
bubbles: !0,
|
|
9575
|
+
cancelable: !0,
|
|
9576
|
+
composed: !0
|
|
9577
|
+
});
|
|
9578
|
+
this.dispatchEvent(e), e.defaultPrevented || this._scrollToFirstInvalid();
|
|
9579
|
+
}
|
|
9580
|
+
_scrollToFirstInvalid() {
|
|
9581
|
+
let e = this.querySelector("[data-mint-form-error=\"true\"]");
|
|
9582
|
+
if (!e) return;
|
|
9583
|
+
let t = e.closest("mint-input, mint-select, mint-date-picker, mint-datetime-picker, mint-time-picker, mint-dropzone, mint-checkbox, mint-choice, mint-switch, mint-tags, mint-editor") ?? e;
|
|
9584
|
+
requestAnimationFrame(() => {
|
|
9585
|
+
t.isConnected && t.scrollIntoView({
|
|
9486
9586
|
behavior: "smooth",
|
|
9487
9587
|
block: "center",
|
|
9488
9588
|
inline: "nearest"
|
|
9489
9589
|
});
|
|
9490
|
-
let n = t.matches("input,textarea,select,button,[tabindex]") ? t : t.querySelector("input,textarea,select,button,[tabindex]") || t;
|
|
9491
|
-
try {
|
|
9492
|
-
n.focus({ preventScroll: !0 });
|
|
9493
|
-
} catch {
|
|
9494
|
-
n.focus();
|
|
9495
|
-
}
|
|
9496
9590
|
});
|
|
9497
9591
|
}
|
|
9498
9592
|
_parseFormData(e) {
|
|
@@ -9568,7 +9662,7 @@ var ar = class extends HTMLElement {
|
|
|
9568
9662
|
e.forEach((e) => {
|
|
9569
9663
|
let r = e.tagName;
|
|
9570
9664
|
try {
|
|
9571
|
-
if (r === "MINT-INPUT") e.value !== void 0 && (e.value = n || "");
|
|
9665
|
+
if (r === "MINT-INPUT" || r === "MINT-EDITOR") e.value !== void 0 && (e.value = n || "");
|
|
9572
9666
|
else if (r === "MINT-DATE-PICKER") typeof e.setValue == "function" && e.setValue(n || "");
|
|
9573
9667
|
else if (r === "MINT-TIME-PICKER") typeof e.setValue == "function" ? e.setValue(n == null ? "" : String(n)) : e.value !== void 0 && (e.value = n == null ? "" : String(n));
|
|
9574
9668
|
else if (r === "MINT-SELECT" || r === "SELECT") if (r === "SELECT") {
|
|
@@ -9637,12 +9731,15 @@ var ar = class extends HTMLElement {
|
|
|
9637
9731
|
});
|
|
9638
9732
|
}
|
|
9639
9733
|
_resetCustomFields() {
|
|
9640
|
-
this.querySelectorAll("mint-input, mint-date-picker, mint-datetime-picker, mint-time-picker, mint-select, mint-dropzone, mint-checkbox, mint-choice, mint-switch, mint-tags").forEach((e) => {
|
|
9734
|
+
this.querySelectorAll("mint-input, mint-date-picker, mint-datetime-picker, mint-time-picker, mint-select, mint-dropzone, mint-checkbox, mint-choice, mint-switch, mint-tags, mint-editor").forEach((e) => {
|
|
9641
9735
|
e.removeAttribute("error"), e.removeAttribute("error-message");
|
|
9642
9736
|
let t = e.tagName;
|
|
9643
9737
|
if (t === "MINT-INPUT") try {
|
|
9644
9738
|
e.value = "";
|
|
9645
9739
|
} catch {}
|
|
9740
|
+
else if (t === "MINT-EDITOR") try {
|
|
9741
|
+
e.value = "";
|
|
9742
|
+
} catch {}
|
|
9646
9743
|
else if (t === "MINT-DATE-PICKER") try {
|
|
9647
9744
|
e.setValue?.("");
|
|
9648
9745
|
} catch {}
|
|
@@ -9675,7 +9772,7 @@ var ar = class extends HTMLElement {
|
|
|
9675
9772
|
let t = e.closest("mint-choice");
|
|
9676
9773
|
if (t) return t;
|
|
9677
9774
|
}
|
|
9678
|
-
return e.closest("mint-input, mint-date-picker, mint-datetime-picker, mint-select, mint-dropzone, mint-checkbox, mint-choice, mint-switch, mint-tags") || e;
|
|
9775
|
+
return e.closest("mint-input, mint-date-picker, mint-datetime-picker, mint-select, mint-dropzone, mint-checkbox, mint-choice, mint-switch, mint-tags, mint-editor") || e;
|
|
9679
9776
|
}
|
|
9680
9777
|
_setupBlurValidation() {
|
|
9681
9778
|
if (!this._form) return;
|
|
@@ -9745,7 +9842,7 @@ var ar = class extends HTMLElement {
|
|
|
9745
9842
|
this._form.addEventListener("change", t, !0), this._form.addEventListener("input", t, !0), this._form.addEventListener("tags-change", t, !0), this._form.addEventListener("choice-change", t, !0), this._fieldChangeHandlers.set(this._form, t);
|
|
9746
9843
|
}
|
|
9747
9844
|
_findFieldElement(e) {
|
|
9748
|
-
let t = e.closest("mint-input, mint-date-picker, mint-datetime-picker, mint-select, mint-dropzone, mint-checkbox, mint-choice, mint-switch, mint-tags");
|
|
9845
|
+
let t = e.closest("mint-input, mint-date-picker, mint-datetime-picker, mint-select, mint-dropzone, mint-checkbox, mint-choice, mint-switch, mint-tags, mint-editor");
|
|
9749
9846
|
if (t && t.hasAttribute("name")) return t;
|
|
9750
9847
|
if (e.hasAttribute("name") && (e.tagName.startsWith("MINT-") || e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement) || (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement) && e.hasAttribute("name")) return e;
|
|
9751
9848
|
let n = e;
|
|
@@ -9936,7 +10033,7 @@ var ar = class extends HTMLElement {
|
|
|
9936
10033
|
this._reactiveDataObserver !== null && (cancelAnimationFrame(this._reactiveDataObserver), this._reactiveDataObserver = null), this._reactiveDataProxy = null, this._lastDataSnapshot = null, this._lastAppliedDataSnapshot = null;
|
|
9937
10034
|
}
|
|
9938
10035
|
};
|
|
9939
|
-
customElements.get("mint-form") || a("mint-form",
|
|
10036
|
+
customElements.get("mint-form") || a("mint-form", or), typeof window < "u" && (window.mintForm = window.mintForm || {
|
|
9940
10037
|
defaults: { headers: { common: {} } },
|
|
9941
10038
|
interceptors: { response: { handlers: [] } }
|
|
9942
10039
|
}, window.mintForm.interceptors.response.use || (window.mintForm.interceptors.response.use = function(e, t) {
|
|
@@ -9947,7 +10044,7 @@ customElements.get("mint-form") || a("mint-form", ar), typeof window < "u" && (w
|
|
|
9947
10044
|
}));
|
|
9948
10045
|
//#endregion
|
|
9949
10046
|
//#region src/components/off-canvas/OffCanvas.ts
|
|
9950
|
-
var
|
|
10047
|
+
var sr = class extends HTMLElement {
|
|
9951
10048
|
static get observedAttributes() {
|
|
9952
10049
|
return [
|
|
9953
10050
|
"id",
|
|
@@ -10048,7 +10145,7 @@ var or = class extends HTMLElement {
|
|
|
10048
10145
|
!this._offCanvas || !this._overlay || (this._offCanvas.classList.toggle("mint-off-canvas-open", e), this._overlay.classList.toggle("mint-off-canvas-open", e), this._overlay.classList.toggle("mint-off-canvas-hidden", !e));
|
|
10049
10146
|
}
|
|
10050
10147
|
};
|
|
10051
|
-
customElements.get("mint-off-canvas") || a("mint-off-canvas",
|
|
10148
|
+
customElements.get("mint-off-canvas") || a("mint-off-canvas", sr), s({
|
|
10052
10149
|
name: "search",
|
|
10053
10150
|
viewBox: "0 0 24 24",
|
|
10054
10151
|
path: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z",
|
|
@@ -10057,7 +10154,7 @@ customElements.get("mint-off-canvas") || a("mint-off-canvas", or), s({
|
|
|
10057
10154
|
});
|
|
10058
10155
|
//#endregion
|
|
10059
10156
|
//#region src/components/resource-table/utility-aliases.js
|
|
10060
|
-
var
|
|
10157
|
+
var cr = {
|
|
10061
10158
|
"-mr-1": "rtu-8956a4275",
|
|
10062
10159
|
"-translate-y-1/2": "rtu-36b381be4",
|
|
10063
10160
|
"[&>*]:m-0": "rtu-7b41b3d11",
|
|
@@ -10216,7 +10313,7 @@ var sr = {
|
|
|
10216
10313
|
"z-10": "rtu-236812d64",
|
|
10217
10314
|
"z-20": "rtu-145745bf5",
|
|
10218
10315
|
"z-30": "rtu-0f2fff0ae"
|
|
10219
|
-
},
|
|
10316
|
+
}, lr = class extends HTMLElement {
|
|
10220
10317
|
constructor(...e) {
|
|
10221
10318
|
super(...e), this._observer = null, this._disposeScrollFade = null;
|
|
10222
10319
|
}
|
|
@@ -10278,10 +10375,10 @@ var sr = {
|
|
|
10278
10375
|
e.dataset.mtProcessed = "", e.innerHTML = n, Object.entries(t).forEach(([t, n]) => e.setAttribute(t, n));
|
|
10279
10376
|
}
|
|
10280
10377
|
};
|
|
10281
|
-
customElements.get("mint-table") || a("mint-table",
|
|
10378
|
+
customElements.get("mint-table") || a("mint-table", lr);
|
|
10282
10379
|
//#endregion
|
|
10283
10380
|
//#region src/components/select/NativeSelect.ts
|
|
10284
|
-
var U = "data-mint-native-select-part",
|
|
10381
|
+
var U = "data-mint-native-select-part", ur = class extends HTMLElement {
|
|
10285
10382
|
static get observedAttributes() {
|
|
10286
10383
|
return [
|
|
10287
10384
|
"name",
|
|
@@ -10562,10 +10659,10 @@ var U = "data-mint-native-select-part", lr = class extends HTMLElement {
|
|
|
10562
10659
|
n && (n.id = `${e}-info`, t.push(n.id)), r && (r.id = `${e}-error`, t.push(r.id)), t.length ? this._select.setAttribute("aria-describedby", Array.from(new Set(t)).join(" ")) : this._select.removeAttribute("aria-describedby");
|
|
10563
10660
|
}
|
|
10564
10661
|
};
|
|
10565
|
-
customElements.get("mint-native-select") || a("mint-native-select",
|
|
10662
|
+
customElements.get("mint-native-select") || a("mint-native-select", ur);
|
|
10566
10663
|
//#endregion
|
|
10567
10664
|
//#region src/components/select/Select.ts
|
|
10568
|
-
var W = "data-mint-select-part",
|
|
10665
|
+
var W = "data-mint-select-part", dr = class extends HTMLElement {
|
|
10569
10666
|
constructor(...e) {
|
|
10570
10667
|
super(...e), this._native = null, this._trigger = null, this._popover = null, this._list = null, this._prependNodes = [], this._appendNodes = [], this._observer = null, this._syncing = !1, this._typeahead = "", this._typeaheadTimer = null, this._pointerSelectedOption = null, this._id = `mint-select-${Math.random().toString(36).slice(2, 10)}`;
|
|
10571
10668
|
}
|
|
@@ -10888,10 +10985,10 @@ var W = "data-mint-select-part", ur = class extends HTMLElement {
|
|
|
10888
10985
|
t && (this._popover?.hasAttribute("open") || this.openPopover(), t.focus());
|
|
10889
10986
|
}
|
|
10890
10987
|
};
|
|
10891
|
-
customElements.get("mint-select") || a("mint-select",
|
|
10988
|
+
customElements.get("mint-select") || a("mint-select", dr);
|
|
10892
10989
|
//#endregion
|
|
10893
10990
|
//#region src/components/resource-table/ResourceTable.ts
|
|
10894
|
-
var
|
|
10991
|
+
var fr = class extends HTMLElement {
|
|
10895
10992
|
static get observedAttributes() {
|
|
10896
10993
|
return [
|
|
10897
10994
|
"configuration",
|
|
@@ -11950,7 +12047,7 @@ var dr = class extends HTMLElement {
|
|
|
11950
12047
|
return e.class && n.push(e.class.trim()), e.align === "center" ? n.push("text-center") : e.align === "right" && n.push("text-right"), e.sortable && !t && n.push("cursor-pointer"), e.stickLeft && n.push("sticky-left"), e.stickRight && n.push("sticky-right"), n.join(" ");
|
|
11951
12048
|
}
|
|
11952
12049
|
_replaceUtilityClasses() {
|
|
11953
|
-
let e =
|
|
12050
|
+
let e = cr, t = [this, ...Array.from(this.querySelectorAll("[class]"))];
|
|
11954
12051
|
for (let n of t) for (let t of Array.from(n.classList)) {
|
|
11955
12052
|
let r = e[t];
|
|
11956
12053
|
r && n.classList.replace(t, r);
|
|
@@ -12214,10 +12311,10 @@ var dr = class extends HTMLElement {
|
|
|
12214
12311
|
e !== null && (this._currentPage = e, this._offset = (this._currentPage - 1) * this._perPage);
|
|
12215
12312
|
}
|
|
12216
12313
|
};
|
|
12217
|
-
customElements.get("mint-resource-table") || a("mint-resource-table",
|
|
12314
|
+
customElements.get("mint-resource-table") || a("mint-resource-table", fr);
|
|
12218
12315
|
//#endregion
|
|
12219
12316
|
//#region src/components/resource-table/ResourceTableContextMenu.ts
|
|
12220
|
-
var
|
|
12317
|
+
var pr = 550, mr = 12, hr = { passive: !0 }, gr = class extends HTMLElement {
|
|
12221
12318
|
constructor(...e) {
|
|
12222
12319
|
super(...e), this._table = null, this._anchor = null, this._popover = null, this._menuRoot = null, this._baseId = "", this._touchTimer = null, this._touchStart = null, this._slotObserver = null, this._scrollCloseTargets = [], this._onScrollClose = () => {
|
|
12223
12320
|
this._closePopover();
|
|
@@ -12244,7 +12341,7 @@ var fr = 550, pr = 12, mr = { passive: !0 }, hr = class extends HTMLElement {
|
|
|
12244
12341
|
let t = e.touches[0];
|
|
12245
12342
|
if (!t) return;
|
|
12246
12343
|
let n = t.clientX - this._touchStart.x, r = t.clientY - this._touchStart.y;
|
|
12247
|
-
n * n + r * r >
|
|
12344
|
+
n * n + r * r > mr * mr && (this._clearTouchTimer(), this._touchStart = null);
|
|
12248
12345
|
}, this._onTouchEnd = () => {
|
|
12249
12346
|
this._clearTouchTimer(), this._touchStart = null;
|
|
12250
12347
|
};
|
|
@@ -12267,7 +12364,7 @@ var fr = 550, pr = 12, mr = { passive: !0 }, hr = class extends HTMLElement {
|
|
|
12267
12364
|
}
|
|
12268
12365
|
_longPressMs() {
|
|
12269
12366
|
let e = parseInt(this.getAttribute("long-press-ms") || "", 10);
|
|
12270
|
-
return !Number.isNaN(e) && e > 100 ? e :
|
|
12367
|
+
return !Number.isNaN(e) && e > 100 ? e : pr;
|
|
12271
12368
|
}
|
|
12272
12369
|
_resolveTable() {
|
|
12273
12370
|
let e = this.getAttribute("for")?.trim();
|
|
@@ -12321,12 +12418,12 @@ var fr = 550, pr = 12, mr = { passive: !0 }, hr = class extends HTMLElement {
|
|
|
12321
12418
|
return this._elementIsScrollContainer(e) && r(e), t;
|
|
12322
12419
|
}
|
|
12323
12420
|
_detachScrollCloseListeners() {
|
|
12324
|
-
for (let e of this._scrollCloseTargets) e.removeEventListener("scroll", this._onScrollClose,
|
|
12421
|
+
for (let e of this._scrollCloseTargets) e.removeEventListener("scroll", this._onScrollClose, hr);
|
|
12325
12422
|
this._scrollCloseTargets = [];
|
|
12326
12423
|
}
|
|
12327
12424
|
_attachScrollCloseListeners(e) {
|
|
12328
12425
|
this._detachScrollCloseListeners(), this._scrollCloseTargets = this._collectScrollCloseTargets(e);
|
|
12329
|
-
for (let e of this._scrollCloseTargets) e.addEventListener("scroll", this._onScrollClose,
|
|
12426
|
+
for (let e of this._scrollCloseTargets) e.addEventListener("scroll", this._onScrollClose, hr);
|
|
12330
12427
|
}
|
|
12331
12428
|
_closePopover() {
|
|
12332
12429
|
if (this._detachScrollCloseListeners(), !this._popover?.hasAttribute("open")) return;
|
|
@@ -12367,10 +12464,10 @@ var fr = 550, pr = 12, mr = { passive: !0 }, hr = class extends HTMLElement {
|
|
|
12367
12464
|
l && this._attachScrollCloseListeners(l);
|
|
12368
12465
|
}
|
|
12369
12466
|
};
|
|
12370
|
-
customElements.get("mint-resource-table-context-menu") || a("mint-resource-table-context-menu",
|
|
12467
|
+
customElements.get("mint-resource-table-context-menu") || a("mint-resource-table-context-menu", gr);
|
|
12371
12468
|
//#endregion
|
|
12372
12469
|
//#region src/components/search/Search.ts
|
|
12373
|
-
var
|
|
12470
|
+
var _r = class e extends HTMLElement {
|
|
12374
12471
|
constructor(...e) {
|
|
12375
12472
|
super(...e), this._shell = null, this._desktopInput = null, this._panel = null, this._panelInner = null, this._resultsId = "", this._panelInput = null, this._panelFiltersWrap = null, this._panelFiltersMainRow = null, this._panelFiltersChips = null, this._panelFiltersShowAllWrap = null, this._panelFiltersShowAllBtn = null, this._panelFiltersMorePanel = null, this._filtersMoreOpen = !1, this._filterOverflowObserver = null, this._filterOverflowZeroWidthRetries = 0, this._resultsWrap = null, this._stateWrap = null, this._customResultsWrap = null, this._query = "", this._searchOpen = !1, this._selectedFilters = [], this._debounceId = null, this._abortController = null, this._docPointerDownHandler = null, this._globalKeydownHandler = null, this._focusOutHandler = null, this._resizeHandler = null, this._scrollHandler = null, this._desktopShortcutHint = null, this._panelSearchBar = null, this._contentObserver = null, this._renderFrame = null;
|
|
12376
12473
|
}
|
|
@@ -12974,10 +13071,10 @@ var gr = class e extends HTMLElement {
|
|
|
12974
13071
|
this._shell && this._shell.classList.toggle("is-collapsed", e), this._panelSearchBar && (this._panelSearchBar.classList.toggle("is-hidden", !e), this._panelSearchBar.classList.toggle("is-collapsed", e));
|
|
12975
13072
|
}
|
|
12976
13073
|
};
|
|
12977
|
-
customElements.get("mint-search") || a("mint-search",
|
|
13074
|
+
customElements.get("mint-search") || a("mint-search", _r);
|
|
12978
13075
|
//#endregion
|
|
12979
13076
|
//#region src/components/side-navigation/SideNavigationLink.ts
|
|
12980
|
-
var
|
|
13077
|
+
var vr = class extends HTMLElement {
|
|
12981
13078
|
constructor(...e) {
|
|
12982
13079
|
super(...e), this._trigger = null, this._submenuContainer = null, this._contentObserver = null, this._renderFrame = null;
|
|
12983
13080
|
}
|
|
@@ -13111,10 +13208,10 @@ var _r = class extends HTMLElement {
|
|
|
13111
13208
|
this._hasSubmenu() && !this._isSubmenuItem() ? this._buildDropdownLink() : this._buildSimpleLink();
|
|
13112
13209
|
}
|
|
13113
13210
|
};
|
|
13114
|
-
customElements.get("mint-sidenav-link") || a("mint-sidenav-link",
|
|
13211
|
+
customElements.get("mint-sidenav-link") || a("mint-sidenav-link", vr);
|
|
13115
13212
|
//#endregion
|
|
13116
13213
|
//#region src/components/side-navigation/SideNavigationLinks.ts
|
|
13117
|
-
var
|
|
13214
|
+
var yr = class extends HTMLElement {
|
|
13118
13215
|
constructor(...e) {
|
|
13119
13216
|
super(...e), this._container = null, this._title = null, this._titleLabel = null, this._titleCaret = null, this._titleIsInteractive = null, this._list = null, this._titleClickHandler = null, this._listenerCounts = /* @__PURE__ */ new Map();
|
|
13120
13217
|
}
|
|
@@ -13177,10 +13274,10 @@ var vr = class extends HTMLElement {
|
|
|
13177
13274
|
});
|
|
13178
13275
|
}
|
|
13179
13276
|
};
|
|
13180
|
-
customElements.get("mint-sidenav-links") || a("mint-sidenav-links",
|
|
13277
|
+
customElements.get("mint-sidenav-links") || a("mint-sidenav-links", yr);
|
|
13181
13278
|
//#endregion
|
|
13182
13279
|
//#region src/components/side-navigation/SideNavigationActionLinks.ts
|
|
13183
|
-
var
|
|
13280
|
+
var br = class extends HTMLElement {
|
|
13184
13281
|
static get observedAttributes() {
|
|
13185
13282
|
return ["separated"];
|
|
13186
13283
|
}
|
|
@@ -13197,10 +13294,10 @@ var yr = class extends HTMLElement {
|
|
|
13197
13294
|
this.className = this._isSeparated() ? "mint-sidenav-action-links is-separated" : "mint-sidenav-action-links";
|
|
13198
13295
|
}
|
|
13199
13296
|
};
|
|
13200
|
-
customElements.get("mint-sidenav-action-links") || a("mint-sidenav-action-links",
|
|
13297
|
+
customElements.get("mint-sidenav-action-links") || a("mint-sidenav-action-links", br);
|
|
13201
13298
|
//#endregion
|
|
13202
13299
|
//#region src/components/side-navigation/SideNavigationActionMenu.ts
|
|
13203
|
-
var
|
|
13300
|
+
var xr = class extends HTMLElement {
|
|
13204
13301
|
constructor(...e) {
|
|
13205
13302
|
super(...e), this._wrapper = null, this._trigger = null, this._popover = null, this._triggerId = "", this._contentObserver = null, this._renderFrame = null;
|
|
13206
13303
|
}
|
|
@@ -13267,15 +13364,15 @@ var br = class extends HTMLElement {
|
|
|
13267
13364
|
}) : a.appendChild(this._createDefaultGroup()), this._popover.appendChild(a), this._wrapper.appendChild(this._trigger), this._wrapper.appendChild(this._popover);
|
|
13268
13365
|
}
|
|
13269
13366
|
};
|
|
13270
|
-
customElements.get("mint-sidenav-action-menu") || a("mint-sidenav-action-menu",
|
|
13367
|
+
customElements.get("mint-sidenav-action-menu") || a("mint-sidenav-action-menu", xr);
|
|
13271
13368
|
//#endregion
|
|
13272
13369
|
//#region src/components/side-navigation/SideNavigation.ts
|
|
13273
|
-
var
|
|
13274
|
-
function
|
|
13370
|
+
var Sr = "mint:url-change";
|
|
13371
|
+
function Cr() {
|
|
13275
13372
|
if (window.__mintUrlChangePatched) return;
|
|
13276
13373
|
window.__mintUrlChangePatched = !0;
|
|
13277
13374
|
let e = () => {
|
|
13278
|
-
window.dispatchEvent(new Event(
|
|
13375
|
+
window.dispatchEvent(new Event(Sr));
|
|
13279
13376
|
}, t = (t) => {
|
|
13280
13377
|
let n = history[t].bind(history);
|
|
13281
13378
|
history[t] = ((...t) => {
|
|
@@ -13285,7 +13382,7 @@ function Sr() {
|
|
|
13285
13382
|
};
|
|
13286
13383
|
t("pushState"), t("replaceState");
|
|
13287
13384
|
}
|
|
13288
|
-
var
|
|
13385
|
+
var wr = class extends HTMLElement {
|
|
13289
13386
|
constructor(...e) {
|
|
13290
13387
|
super(...e), this._backdrop = null, this._container = null, this._header = null, this._content = null, this._disposeContentFade = null, this._footer = null, this._escapeHandler = null, this._mediaQuery = null, this._mediaListener = null, this._accordionHandler = null, this._urlChangeHandler = null, this._contentObserver = null, this._renderFrame = null, this._preserveDrawerOnNextUrlChange = !1, this._resetPreserveDrawerTimer = null, this._onNavNavigateClick = (e) => {
|
|
13291
13388
|
let t = e.target;
|
|
@@ -13364,16 +13461,16 @@ var Cr = class extends HTMLElement {
|
|
|
13364
13461
|
this._accordionHandler &&= (this.removeEventListener("mint-sidenav-accordion", this._accordionHandler), null);
|
|
13365
13462
|
}
|
|
13366
13463
|
_attachUrlChangeListener() {
|
|
13367
|
-
this._urlChangeHandler || (
|
|
13464
|
+
this._urlChangeHandler || (Cr(), this._urlChangeHandler = () => {
|
|
13368
13465
|
if (this._collapseUnrelatedDropdownsToPath(window.location.pathname), this._preserveDrawerOnNextUrlChange) {
|
|
13369
13466
|
this._preserveDrawerOnNextUrlChange = !1, this._resetPreserveDrawerTimer !== null && (window.clearTimeout(this._resetPreserveDrawerTimer), this._resetPreserveDrawerTimer = null);
|
|
13370
13467
|
return;
|
|
13371
13468
|
}
|
|
13372
13469
|
!this._mediaQuery?.matches && this._isOpen() && this.removeAttribute("open");
|
|
13373
|
-
}, window.addEventListener("popstate", this._urlChangeHandler), window.addEventListener("hashchange", this._urlChangeHandler), window.addEventListener(
|
|
13470
|
+
}, window.addEventListener("popstate", this._urlChangeHandler), window.addEventListener("hashchange", this._urlChangeHandler), window.addEventListener(Sr, this._urlChangeHandler));
|
|
13374
13471
|
}
|
|
13375
13472
|
_detachUrlChangeListener() {
|
|
13376
|
-
this._urlChangeHandler &&= (window.removeEventListener("popstate", this._urlChangeHandler), window.removeEventListener("hashchange", this._urlChangeHandler), window.removeEventListener(
|
|
13473
|
+
this._urlChangeHandler &&= (window.removeEventListener("popstate", this._urlChangeHandler), window.removeEventListener("hashchange", this._urlChangeHandler), window.removeEventListener(Sr, this._urlChangeHandler), null);
|
|
13377
13474
|
}
|
|
13378
13475
|
_observeContentMutations() {
|
|
13379
13476
|
this._contentObserver ||= new MutationObserver(() => {
|
|
@@ -13443,10 +13540,10 @@ var Cr = class extends HTMLElement {
|
|
|
13443
13540
|
this._ensureBackdrop(), this._ensureContainer(), this._syncShell(), this._buildUserHeader(), this._buildContent(), this._buildFooter();
|
|
13444
13541
|
}
|
|
13445
13542
|
};
|
|
13446
|
-
customElements.get("mint-side-navigation") || a("mint-side-navigation",
|
|
13543
|
+
customElements.get("mint-side-navigation") || a("mint-side-navigation", wr);
|
|
13447
13544
|
//#endregion
|
|
13448
13545
|
//#region src/components/side-navigation/index.ts
|
|
13449
|
-
var
|
|
13546
|
+
var Tr = wr, G = "mint-sortable-placeholder", Er = "mint-sortable-dragging", Dr = class e extends HTMLElement {
|
|
13450
13547
|
static get observedAttributes() {
|
|
13451
13548
|
return [
|
|
13452
13549
|
"direction",
|
|
@@ -13456,6 +13553,7 @@ var wr = Cr, G = "mint-sortable-placeholder", Tr = "mint-sortable-dragging", Er
|
|
|
13456
13553
|
"scroll-max-height",
|
|
13457
13554
|
"disabled",
|
|
13458
13555
|
"handle-selector",
|
|
13556
|
+
"drag-threshold",
|
|
13459
13557
|
"scroll-sensitivity",
|
|
13460
13558
|
"scroll-speed",
|
|
13461
13559
|
"animation-duration",
|
|
@@ -13464,9 +13562,15 @@ var wr = Cr, G = "mint-sortable-placeholder", Tr = "mint-sortable-dragging", Er
|
|
|
13464
13562
|
];
|
|
13465
13563
|
}
|
|
13466
13564
|
constructor() {
|
|
13467
|
-
super(), this._pointerId = null, this._dragEl = null, this._dragOriginalStyle = "", this._placeholder = null, this._listRoot = this, this._startIndex = 0, this._pointerStartX = 0, this._pointerStartY = 0, this._pendingPointerEvent = null, this._moveRaf = null, this._gridSlots = [], this._scrollRaf = null, this._previewResizeRaf = null, this._childObserver = null, this._pointerBoundRoot = null, this._restoreAfter = null, this._originListRoot = null, this._originNextSibling = null, this._dropList = null, this._dropAtEnd = !1, this._dropRejected = !1, this._sortStatus = null, this._flipCleanupTimers = /* @__PURE__ */ new WeakMap(), this._lastPreviewRoot = null, this._lastPreviewIndex = -1, this._keyboardKeydownHandler = (e) => this._onKeyboardReorder(e), this.
|
|
13565
|
+
super(), this._pointerId = null, this._dragEl = null, this._dragOriginalStyle = "", this._placeholder = null, this._listRoot = this, this._startIndex = 0, this._pointerStartX = 0, this._pointerStartY = 0, this._pendingDragStart = null, this._pendingPointerEvent = null, this._moveRaf = null, this._gridSlots = [], this._scrollRaf = null, this._scrollRoot = null, this._lastDragPointer = null, this._previewResizeRaf = null, this._childObserver = null, this._pointerBoundRoot = null, this._restoreAfter = null, this._originListRoot = null, this._originNextSibling = null, this._dropList = null, this._dropAtEnd = !1, this._dropRejected = !1, this._sortStatus = null, this._flipCleanupTimers = /* @__PURE__ */ new WeakMap(), this._lastPreviewRoot = null, this._lastPreviewIndex = -1, this._keyboardKeydownHandler = (e) => this._onKeyboardReorder(e), this._onPendingPointerMove = (e) => {
|
|
13566
|
+
let t = e, n = this._pendingDragStart;
|
|
13567
|
+
!n || t.pointerId !== n.pointerId || Math.hypot(t.clientX - n.clientX, t.clientY - n.clientY) < this._getDragThreshold() || (this._clearPendingDragStart(), t.preventDefault(), this._startDrag(t, n.item));
|
|
13568
|
+
}, this._onPendingPointerEnd = (e) => {
|
|
13468
13569
|
let t = e;
|
|
13469
|
-
|
|
13570
|
+
this._pendingDragStart?.pointerId === t.pointerId && this._clearPendingDragStart();
|
|
13571
|
+
}, this._onListPointerDown = (e) => {
|
|
13572
|
+
let t = e;
|
|
13573
|
+
if (this._isDisabled() || this._pointerId !== null || this._pendingDragStart || t.button !== 0) return;
|
|
13470
13574
|
let n = t.target;
|
|
13471
13575
|
if (!n || !this.contains(n)) return;
|
|
13472
13576
|
let r = (n instanceof Element ? n : n.parentElement)?.closest("mint-sortable");
|
|
@@ -13478,7 +13582,24 @@ var wr = Cr, G = "mint-sortable-placeholder", Tr = "mint-sortable-dragging", Er
|
|
|
13478
13582
|
let e = t.target.closest(a);
|
|
13479
13583
|
if (!e || !i.contains(e)) return;
|
|
13480
13584
|
}
|
|
13585
|
+
if (this._getDragThreshold() > 0) {
|
|
13586
|
+
this._pendingDragStart = {
|
|
13587
|
+
pointerId: t.pointerId,
|
|
13588
|
+
item: i,
|
|
13589
|
+
clientX: t.clientX,
|
|
13590
|
+
clientY: t.clientY
|
|
13591
|
+
}, window.addEventListener("pointermove", this._onPendingPointerMove, { passive: !1 }), window.addEventListener("pointerup", this._onPendingPointerEnd), window.addEventListener("pointercancel", this._onPendingPointerEnd);
|
|
13592
|
+
return;
|
|
13593
|
+
}
|
|
13481
13594
|
t.preventDefault(), this._startDrag(t, i);
|
|
13595
|
+
}, this._runAutoScrollFrame = () => {
|
|
13596
|
+
this._scrollRaf = null;
|
|
13597
|
+
let e = this._scrollRoot, t = this._lastDragPointer;
|
|
13598
|
+
if (!e || !t || !this._dragEl || !this._placeholder) return;
|
|
13599
|
+
let n = this.getDirection(), r = getComputedStyle(e), i = /(auto|scroll)/.test(r.overflowX) && e.scrollWidth > e.clientWidth, a = /(auto|scroll)/.test(r.overflowY) && e.scrollHeight > e.clientHeight, o = e.getBoundingClientRect(), s = this._getScrollSensitivity(), c = this._getScrollSpeed(), l = 0, u = 0;
|
|
13600
|
+
if ((n === "horizontal" || n === "grid") && i && (t.clientX < o.left + s && e.scrollLeft > 0 ? l = -c : t.clientX > o.right - s && e.scrollLeft + e.clientWidth < e.scrollWidth && (l = c)), (n === "vertical" || n === "grid") && a && (t.clientY < o.top + s && e.scrollTop > 0 ? u = -c : t.clientY > o.bottom - s && e.scrollTop + e.clientHeight < e.scrollHeight && (u = c)), l === 0 && u === 0) return;
|
|
13601
|
+
let d = e.scrollLeft, f = e.scrollTop;
|
|
13602
|
+
e.scrollLeft += l, e.scrollTop += u, (e.scrollLeft !== d || e.scrollTop !== f) && (this._maybeMovePlaceholder(t), this._scrollRaf = requestAnimationFrame(this._runAutoScrollFrame));
|
|
13482
13603
|
}, this._boundPointerMove = this._onPointerMove.bind(this), this._boundPointerUp = this._onPointerUp.bind(this), this._boundPointerCancel = this._onPointerCancel.bind(this);
|
|
13483
13604
|
}
|
|
13484
13605
|
connectedCallback() {
|
|
@@ -13607,6 +13728,13 @@ var wr = Cr, G = "mint-sortable-placeholder", Tr = "mint-sortable-dragging", Er
|
|
|
13607
13728
|
let e = this.getAttribute("handle-selector");
|
|
13608
13729
|
return e && e.trim() ? e.trim() : null;
|
|
13609
13730
|
}
|
|
13731
|
+
_getDragThreshold() {
|
|
13732
|
+
let e = parseFloat(this.getAttribute("drag-threshold") || "0");
|
|
13733
|
+
return Number.isFinite(e) ? Math.max(0, e) : 0;
|
|
13734
|
+
}
|
|
13735
|
+
_clearPendingDragStart() {
|
|
13736
|
+
this._pendingDragStart &&= (window.removeEventListener("pointermove", this._onPendingPointerMove), window.removeEventListener("pointerup", this._onPendingPointerEnd), window.removeEventListener("pointercancel", this._onPendingPointerEnd), null);
|
|
13737
|
+
}
|
|
13610
13738
|
_getScrollSensitivity() {
|
|
13611
13739
|
let e = parseFloat(this.getAttribute("scroll-sensitivity") || "48");
|
|
13612
13740
|
return Number.isFinite(e) ? e : 48;
|
|
@@ -13628,7 +13756,7 @@ var wr = Cr, G = "mint-sortable-placeholder", Tr = "mint-sortable-dragging", Er
|
|
|
13628
13756
|
for (; t && t !== this._listRoot;) {
|
|
13629
13757
|
if (t.nodeType === Node.ELEMENT_NODE) {
|
|
13630
13758
|
let e = t;
|
|
13631
|
-
if (e.classList.contains(G) || e.classList.contains(
|
|
13759
|
+
if (e.classList.contains(G) || e.classList.contains(Er)) return null;
|
|
13632
13760
|
if (t.parentElement === this._listRoot) return e;
|
|
13633
13761
|
}
|
|
13634
13762
|
t = t.parentElement;
|
|
@@ -13642,16 +13770,19 @@ var wr = Cr, G = "mint-sortable-placeholder", Tr = "mint-sortable-dragging", Er
|
|
|
13642
13770
|
index: t
|
|
13643
13771
|
})) : [];
|
|
13644
13772
|
let n = t.getBoundingClientRect();
|
|
13645
|
-
this._pointerStartX = e.clientX, this._pointerStartY = e.clientY
|
|
13773
|
+
this._pointerStartX = e.clientX, this._pointerStartY = e.clientY, this._lastDragPointer = {
|
|
13774
|
+
clientX: e.clientX,
|
|
13775
|
+
clientY: e.clientY
|
|
13776
|
+
};
|
|
13646
13777
|
let r = document.createElement("div");
|
|
13647
13778
|
if (r.className = G, this.getDirection() !== "grid") r.style.minHeight = `${n.height}px`, r.style.minWidth = `${n.width}px`;
|
|
13648
13779
|
else {
|
|
13649
13780
|
let e = window.getComputedStyle(t);
|
|
13650
13781
|
e.gridArea === "auto" ? (r.style.gridColumn = e.gridColumn, r.style.gridRow = e.gridRow) : r.style.gridArea = e.gridArea, r.style.alignSelf = e.alignSelf, r.style.justifySelf = e.justifySelf;
|
|
13651
13782
|
}
|
|
13652
|
-
r.setAttribute("aria-hidden", "true"), this._placeholder = r, this._listRoot.insertBefore(r, t), t.classList.add(
|
|
13783
|
+
r.setAttribute("aria-hidden", "true"), this._placeholder = r, this._listRoot.insertBefore(r, t), t.classList.add(Er), t.style.position = "fixed";
|
|
13653
13784
|
let i = this.getDirection() === "grid";
|
|
13654
|
-
t.style.left = `${i ? e.clientX : n.left}px`, t.style.top = `${i ? e.clientY : n.top}px`, t.style.width = `${n.width}px`, t.style.height = `${n.height}px`, t.style.margin = "0", t.style.zIndex = "10000", t.style.boxSizing = "border-box", t.style.pointerEvents = "none", t.style.touchAction = "none", t.style.transform = i ? "translate3d(0, 0, 0) translate(-50%, -50%) scale(1.015)" : "translate3d(0, 0, 0) scale(1.015)", t.style.transformOrigin = i ? "center center" : "top left", t.style.willChange = "transform", t.setPointerCapture(e.pointerId);
|
|
13785
|
+
t.style.left = `${i ? e.clientX : n.left}px`, t.style.top = `${i ? e.clientY : n.top}px`, t.style.width = `${n.width}px`, t.style.height = `${n.height}px`, t.style.margin = "0", t.style.zIndex = "10000", t.style.boxSizing = "border-box", t.style.pointerEvents = "none", t.style.touchAction = "none", t.style.transform = i ? "translate3d(0, 0, 0) translate(-50%, -50%) scale(1.015)" : "translate3d(0, 0, 0) scale(1.015)", t.style.transformOrigin = i ? "center center" : "top left", t.style.willChange = "transform", document.body.appendChild(t), t.setPointerCapture(e.pointerId);
|
|
13655
13786
|
let a = this._collectOrderedKeys(), o = {
|
|
13656
13787
|
index: this._startIndex,
|
|
13657
13788
|
itemId: t.getAttribute(this._getItemKeyAttribute()) || "",
|
|
@@ -13723,19 +13854,21 @@ var wr = Cr, G = "mint-sortable-placeholder", Tr = "mint-sortable-dragging", Er
|
|
|
13723
13854
|
return this.dispatchEvent(f), this._dropRejected = !d || f.defaultPrevented, this._dropRejected ? this : s;
|
|
13724
13855
|
}
|
|
13725
13856
|
_autoScroll(e) {
|
|
13726
|
-
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
|
-
|
|
13730
|
-
|
|
13857
|
+
this._lastDragPointer = {
|
|
13858
|
+
clientX: e.clientX,
|
|
13859
|
+
clientY: e.clientY
|
|
13860
|
+
};
|
|
13861
|
+
let t = this.getDirection(), n = this;
|
|
13862
|
+
for (; n && n !== document.body;) {
|
|
13863
|
+
let e = getComputedStyle(n), r = /(auto|scroll)/.test(e.overflowX) && n.scrollWidth > n.clientWidth, i = /(auto|scroll)/.test(e.overflowY) && n.scrollHeight > n.clientHeight;
|
|
13864
|
+
if (t === "horizontal" && r || t === "vertical" && i || t === "grid" && (r || i)) break;
|
|
13865
|
+
n = n.parentElement;
|
|
13731
13866
|
}
|
|
13732
|
-
if (!
|
|
13733
|
-
|
|
13734
|
-
|
|
13735
|
-
|
|
13736
|
-
|
|
13737
|
-
e.clientY < i.top + n ? a = -r : e.clientY > i.bottom - n && (a = r), a !== 0 && (t.scrollTop += a, this._maybeMovePlaceholder(e));
|
|
13738
|
-
});
|
|
13867
|
+
if (!n || n === document.body) {
|
|
13868
|
+
this._scrollRoot = null, this._scrollRaf !== null && cancelAnimationFrame(this._scrollRaf), this._scrollRaf = null;
|
|
13869
|
+
return;
|
|
13870
|
+
}
|
|
13871
|
+
this._scrollRoot = n, this._scrollRaf === null && (this._scrollRaf = requestAnimationFrame(this._runAutoScrollFrame));
|
|
13739
13872
|
}
|
|
13740
13873
|
_maybeMovePlaceholder(e) {
|
|
13741
13874
|
let t = this._placeholder, n = this._dragEl;
|
|
@@ -13868,14 +14001,14 @@ var wr = Cr, G = "mint-sortable-placeholder", Tr = "mint-sortable-dragging", Er
|
|
|
13868
14001
|
this._teardownDrag();
|
|
13869
14002
|
return;
|
|
13870
14003
|
}
|
|
13871
|
-
this._previewResizeRaf !== null && (cancelAnimationFrame(this._previewResizeRaf), this._previewResizeRaf = null), this._moveRaf !== null && (cancelAnimationFrame(this._moveRaf), this._moveRaf = null), this._pendingPointerEvent = null;
|
|
14004
|
+
this._previewResizeRaf !== null && (cancelAnimationFrame(this._previewResizeRaf), this._previewResizeRaf = null), this._scrollRaf !== null && (cancelAnimationFrame(this._scrollRaf), this._scrollRaf = null), this._moveRaf !== null && (cancelAnimationFrame(this._moveRaf), this._moveRaf = null), this._pendingPointerEvent = null;
|
|
13872
14005
|
try {
|
|
13873
14006
|
t.releasePointerCapture(this._pointerId);
|
|
13874
14007
|
} catch {}
|
|
13875
14008
|
window.removeEventListener("pointermove", this._boundPointerMove), window.removeEventListener("pointerup", this._boundPointerUp), window.removeEventListener("pointercancel", this._boundPointerCancel);
|
|
13876
14009
|
let r = this._dropList ?? this, i = r._resolveListRoot();
|
|
13877
14010
|
!e && !this._dropRejected && this._dropAtEnd && r !== this && n?.parentNode === i && i.appendChild(n);
|
|
13878
|
-
let a = this.getAttribute("data-tree-parent-id") || null, o = r.getAttribute("data-tree-parent-id") || null, s = this.
|
|
14011
|
+
let a = this.getAttribute("data-tree-parent-id") || null, o = r.getAttribute("data-tree-parent-id") || null, s = this._startIndex, c = n?.parentNode === i ? Array.from(i.children).filter((e) => e.nodeType === Node.ELEMENT_NODE && e !== t && !e.hasAttribute("data-mint-sortable-status")).indexOf(n) : s, l = new CustomEvent("mint-sortable-before-drop", {
|
|
13879
14012
|
bubbles: !0,
|
|
13880
14013
|
composed: !0,
|
|
13881
14014
|
cancelable: !0,
|
|
@@ -13895,9 +14028,9 @@ var wr = Cr, G = "mint-sortable-placeholder", Tr = "mint-sortable-dragging", Er
|
|
|
13895
14028
|
let e = this._originListRoot ?? this._listRoot, n = this._originNextSibling ?? this._restoreAfter;
|
|
13896
14029
|
n && n.parentNode === e ? e.insertBefore(t, n) : e.appendChild(t);
|
|
13897
14030
|
} else n?.parentNode && n.parentNode.insertBefore(t, n);
|
|
13898
|
-
n?.remove(), this._placeholder = null, t.classList.remove(
|
|
14031
|
+
n?.remove(), this._placeholder = null, t.classList.remove(Er), t.style.cssText = this._dragOriginalStyle, this._dragOriginalStyle = "";
|
|
13899
14032
|
let d = u ? s : r._indexOfItem(t);
|
|
13900
|
-
this._pointerId = null, this._dragEl = null, this._restoreAfter = null, this._originListRoot = null, this._originNextSibling = null, this._dropList = null, this._dropAtEnd = !1, this._dropRejected = !1, this._lastPreviewRoot = null, this._lastPreviewIndex = -1, this._gridSlots = [];
|
|
14033
|
+
this._pointerId = null, this._scrollRoot = null, this._lastDragPointer = null, this._dragEl = null, this._restoreAfter = null, this._originListRoot = null, this._originNextSibling = null, this._dropList = null, this._dropAtEnd = !1, this._dropRejected = !1, this._lastPreviewRoot = null, this._lastPreviewIndex = -1, this._gridSlots = [];
|
|
13901
14034
|
let f = this._collectOrderedKeys(), p = r._collectOrderedKeys(), m = !u && (!u && a !== o || d !== s), h = t.getAttribute(this._getItemKeyAttribute()) || "", g = {
|
|
13902
14035
|
oldIndex: s,
|
|
13903
14036
|
newIndex: d,
|
|
@@ -13937,19 +14070,20 @@ var wr = Cr, G = "mint-sortable-placeholder", Tr = "mint-sortable-dragging", Er
|
|
|
13937
14070
|
})));
|
|
13938
14071
|
}
|
|
13939
14072
|
_teardownDrag() {
|
|
13940
|
-
if (this._previewResizeRaf !== null && (cancelAnimationFrame(this._previewResizeRaf), this._previewResizeRaf = null), this._scrollRaf !== null && (cancelAnimationFrame(this._scrollRaf), this._scrollRaf = null), this._moveRaf !== null && (cancelAnimationFrame(this._moveRaf), this._moveRaf = null), this._pendingPointerEvent = null, window.removeEventListener("pointermove", this._boundPointerMove), window.removeEventListener("pointerup", this._boundPointerUp), window.removeEventListener("pointercancel", this._boundPointerCancel), this._dragEl) {
|
|
14073
|
+
if (this._clearPendingDragStart(), this._previewResizeRaf !== null && (cancelAnimationFrame(this._previewResizeRaf), this._previewResizeRaf = null), this._scrollRaf !== null && (cancelAnimationFrame(this._scrollRaf), this._scrollRaf = null), this._moveRaf !== null && (cancelAnimationFrame(this._moveRaf), this._moveRaf = null), this._pendingPointerEvent = null, window.removeEventListener("pointermove", this._boundPointerMove), window.removeEventListener("pointerup", this._boundPointerUp), window.removeEventListener("pointercancel", this._boundPointerCancel), this._dragEl) {
|
|
13941
14074
|
try {
|
|
13942
14075
|
this._pointerId !== null && this._dragEl.releasePointerCapture(this._pointerId);
|
|
13943
14076
|
} catch {}
|
|
13944
|
-
this.
|
|
14077
|
+
let e = this._originListRoot ?? this._listRoot, t = this._originNextSibling ?? this._restoreAfter;
|
|
14078
|
+
this._dragEl.parentElement !== e && (t && t.parentNode === e ? e.insertBefore(this._dragEl, t) : e.appendChild(this._dragEl)), this._dragEl.classList.remove(Er), this._dragEl.style.cssText = this._dragOriginalStyle, this._dragOriginalStyle = "";
|
|
13945
14079
|
}
|
|
13946
|
-
this._placeholder?.remove(), this._placeholder = null, this._dragEl = null, this._pointerId = null, this._restoreAfter = null, this._originListRoot = null, this._originNextSibling = null, this._dropList = null, this._dropRejected = !1, this._lastPreviewRoot = null, this._lastPreviewIndex = -1, this._gridSlots = [];
|
|
14080
|
+
this._placeholder?.remove(), this._placeholder = null, this._scrollRoot = null, this._lastDragPointer = null, this._dragEl = null, this._pointerId = null, this._restoreAfter = null, this._originListRoot = null, this._originNextSibling = null, this._dropList = null, this._dropRejected = !1, this._lastPreviewRoot = null, this._lastPreviewIndex = -1, this._gridSlots = [];
|
|
13947
14081
|
}
|
|
13948
14082
|
};
|
|
13949
|
-
customElements.get("mint-sortable") || a("mint-sortable",
|
|
14083
|
+
customElements.get("mint-sortable") || a("mint-sortable", Dr);
|
|
13950
14084
|
//#endregion
|
|
13951
14085
|
//#region src/components/tabs/Tab.ts
|
|
13952
|
-
var
|
|
14086
|
+
var Or = class extends HTMLElement {
|
|
13953
14087
|
static get observedAttributes() {
|
|
13954
14088
|
return [
|
|
13955
14089
|
"active",
|
|
@@ -14030,10 +14164,10 @@ var Dr = class extends HTMLElement {
|
|
|
14030
14164
|
t.__mintTabsSynthetic = !0, this.dispatchEvent(t);
|
|
14031
14165
|
}
|
|
14032
14166
|
};
|
|
14033
|
-
customElements.get("mint-tab") || a("mint-tab",
|
|
14167
|
+
customElements.get("mint-tab") || a("mint-tab", Or);
|
|
14034
14168
|
//#endregion
|
|
14035
14169
|
//#region src/components/tabs/TabList.ts
|
|
14036
|
-
var
|
|
14170
|
+
var kr = class extends HTMLElement {
|
|
14037
14171
|
static get observedAttributes() {
|
|
14038
14172
|
return ["position", "full-width"];
|
|
14039
14173
|
}
|
|
@@ -14055,10 +14189,10 @@ var Or = class extends HTMLElement {
|
|
|
14055
14189
|
});
|
|
14056
14190
|
}
|
|
14057
14191
|
};
|
|
14058
|
-
customElements.get("mint-tab-list") || a("mint-tab-list",
|
|
14192
|
+
customElements.get("mint-tab-list") || a("mint-tab-list", kr);
|
|
14059
14193
|
//#endregion
|
|
14060
14194
|
//#region src/components/tabs/TabContent.ts
|
|
14061
|
-
var
|
|
14195
|
+
var Ar = class extends HTMLElement {
|
|
14062
14196
|
static get observedAttributes() {
|
|
14063
14197
|
return ["id"];
|
|
14064
14198
|
}
|
|
@@ -14096,10 +14230,10 @@ var kr = class extends HTMLElement {
|
|
|
14096
14230
|
this.setAttribute("role", "tabpanel"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0");
|
|
14097
14231
|
}
|
|
14098
14232
|
};
|
|
14099
|
-
customElements.get("mint-tab-content") || a("mint-tab-content",
|
|
14233
|
+
customElements.get("mint-tab-content") || a("mint-tab-content", Ar);
|
|
14100
14234
|
//#endregion
|
|
14101
14235
|
//#region src/components/tabs/Tabs.ts
|
|
14102
|
-
var
|
|
14236
|
+
var jr = class e extends HTMLElement {
|
|
14103
14237
|
static {
|
|
14104
14238
|
this._id = 0;
|
|
14105
14239
|
}
|
|
@@ -14205,10 +14339,10 @@ var Ar = class e extends HTMLElement {
|
|
|
14205
14339
|
});
|
|
14206
14340
|
}
|
|
14207
14341
|
};
|
|
14208
|
-
customElements.get("mint-tabs") || a("mint-tabs",
|
|
14342
|
+
customElements.get("mint-tabs") || a("mint-tabs", jr);
|
|
14209
14343
|
//#endregion
|
|
14210
14344
|
//#region src/components/tags/Tags.ts
|
|
14211
|
-
var
|
|
14345
|
+
var Mr = class extends HTMLElement {
|
|
14212
14346
|
constructor(...e) {
|
|
14213
14347
|
super(...e), this._container = null, this._chipsWrap = null, this._input = null, this._tags = [], this._predefinedTags = [], this._placeholder = "Add tag", this._predefinedPopoverOpenListenersAttached = !1, this._predefinedBlurCloseTimer = null, this._suppressNextPredefinedBlurClose = !1, this._dragIndex = null, this._dragChip = null, this._isPointerDragging = !1, this._pointerMoveHandler = null, this._pointerUpHandler = null, this._containerFocusRingListeners = !1, this._predefinedFieldResizeObserver = null, this._predefinedPopoverBodyEl = null;
|
|
14214
14348
|
}
|
|
@@ -14389,20 +14523,13 @@ var jr = class extends HTMLElement {
|
|
|
14389
14523
|
let r = e || document.createElement("mint-popover");
|
|
14390
14524
|
e || (r.setAttribute("trigger-id", n), r.setAttribute("trigger-toggle", "false"), r.setAttribute("trigger-align", "start"), r.setAttribute("direction", "down"), r.setAttribute("padding", "0"), r.setAttribute("distance", "6px"), r.dataset.mintTagsPredefined = "true");
|
|
14391
14525
|
let i = document.createElement("ul");
|
|
14392
|
-
i.dataset.mintTagsPredefinedBody = "true", i.className = "mint-tags-options", i.setAttribute("role", "list")
|
|
14393
|
-
let a = [];
|
|
14394
|
-
if (i.addEventListener("mousedown", (e) => {
|
|
14526
|
+
if (i.dataset.mintTagsPredefinedBody = "true", i.className = "mint-tags-options", i.setAttribute("role", "list"), i.addEventListener("mousedown", (e) => {
|
|
14395
14527
|
e.preventDefault();
|
|
14396
14528
|
}), t.length) t.forEach((e) => {
|
|
14397
14529
|
let t = document.createElement("li");
|
|
14398
14530
|
t.className = "mint-tags-option-item";
|
|
14399
|
-
let n = document.createElement("
|
|
14400
|
-
n.
|
|
14401
|
-
let r = e.label || e.value;
|
|
14402
|
-
a.push({
|
|
14403
|
-
option: n,
|
|
14404
|
-
label: r
|
|
14405
|
-
}), n.addEventListener("mousedown", (e) => {
|
|
14531
|
+
let n = document.createElement("button");
|
|
14532
|
+
n.type = "button", n.className = "mint-tags-option", n.textContent = e.label || e.value, n.addEventListener("mousedown", (e) => {
|
|
14406
14533
|
e.preventDefault();
|
|
14407
14534
|
}, !0), n.addEventListener("click", () => {
|
|
14408
14535
|
this._predefinedBlurCloseTimer !== null && (window.clearTimeout(this._predefinedBlurCloseTimer), this._predefinedBlurCloseTimer = null), this._suppressNextPredefinedBlurClose = !0, this._addTag(e), requestAnimationFrame(() => {
|
|
@@ -14420,9 +14547,7 @@ var jr = class extends HTMLElement {
|
|
|
14420
14547
|
let t = e.querySelector("[data-mint-tags-predefined-body]");
|
|
14421
14548
|
t ? t.replaceWith(i) : r.appendChild(i);
|
|
14422
14549
|
} else r.appendChild(i), this._container.appendChild(r);
|
|
14423
|
-
|
|
14424
|
-
e.textContent = t;
|
|
14425
|
-
}), this._attachPredefinedPopoverOpenOnInputFocus(), this._attachPredefinedFieldResizeObserver(i);
|
|
14550
|
+
this._attachPredefinedPopoverOpenOnInputFocus(), this._attachPredefinedFieldResizeObserver(i);
|
|
14426
14551
|
}
|
|
14427
14552
|
_getPredefinedPopoverEl() {
|
|
14428
14553
|
return this.querySelector("mint-popover[data-mint-tags-predefined=\"true\"]");
|
|
@@ -14621,10 +14746,10 @@ var jr = class extends HTMLElement {
|
|
|
14621
14746
|
}
|
|
14622
14747
|
}
|
|
14623
14748
|
};
|
|
14624
|
-
customElements.get("mint-tags") || a("mint-tags",
|
|
14749
|
+
customElements.get("mint-tags") || a("mint-tags", Mr);
|
|
14625
14750
|
//#endregion
|
|
14626
14751
|
//#region src/components/toast/Toast.ts
|
|
14627
|
-
var
|
|
14752
|
+
var Nr = class extends HTMLElement {
|
|
14628
14753
|
constructor(...e) {
|
|
14629
14754
|
super(...e), this._messageEl = null, this._hideTimer = null, this._hideResolve = null, this._bottomNavObserver = null, this._bodyObserver = null;
|
|
14630
14755
|
}
|
|
@@ -14701,11 +14826,11 @@ var Mr = class extends HTMLElement {
|
|
|
14701
14826
|
this.classList.toggle("mint-toast-is-open", e), this._messageEl ||= (this.innerHTML = "<div class=\"mint-toast-surface\">\n <span data-mint-toast-message></span>\n </div>", this.querySelector("[data-mint-toast-message]")), this._messageEl && (this._messageEl.textContent = t);
|
|
14702
14827
|
}
|
|
14703
14828
|
};
|
|
14704
|
-
customElements.get("mint-toast") || a("mint-toast",
|
|
14829
|
+
customElements.get("mint-toast") || a("mint-toast", Nr);
|
|
14705
14830
|
//#endregion
|
|
14706
14831
|
//#region src/components/toast/ToastApi.ts
|
|
14707
|
-
var
|
|
14708
|
-
function
|
|
14832
|
+
var Pr = 2200, Fr = [], Ir = !1, Lr = null;
|
|
14833
|
+
function Rr() {
|
|
14709
14834
|
return typeof document > "u" || document.body ? Promise.resolve() : new Promise((e) => {
|
|
14710
14835
|
if (typeof window > "u") {
|
|
14711
14836
|
e();
|
|
@@ -14716,47 +14841,47 @@ function Lr() {
|
|
|
14716
14841
|
}, { once: !0 });
|
|
14717
14842
|
});
|
|
14718
14843
|
}
|
|
14719
|
-
async function
|
|
14720
|
-
if (await
|
|
14844
|
+
async function zr() {
|
|
14845
|
+
if (await Rr(), typeof document > "u") throw Error("mintui.toast is only available in browser environments.");
|
|
14721
14846
|
let e = document.querySelector("mint-toast[data-mint-toast-root=\"true\"]");
|
|
14722
14847
|
if (e) return e;
|
|
14723
14848
|
let t = document.createElement("mint-toast");
|
|
14724
14849
|
return t.setAttribute("data-mint-toast-root", "true"), document.body.appendChild(t), t;
|
|
14725
14850
|
}
|
|
14726
|
-
async function
|
|
14727
|
-
if (!
|
|
14728
|
-
|
|
14851
|
+
async function Br() {
|
|
14852
|
+
if (!Ir) {
|
|
14853
|
+
Ir = !0;
|
|
14729
14854
|
try {
|
|
14730
|
-
for (;
|
|
14731
|
-
let e =
|
|
14855
|
+
for (; Fr.length > 0;) {
|
|
14856
|
+
let e = Fr.shift();
|
|
14732
14857
|
if (!e) continue;
|
|
14733
14858
|
let t = e.message.trim().slice(0, 120);
|
|
14734
14859
|
if (!t) continue;
|
|
14735
|
-
let n = await
|
|
14736
|
-
|
|
14737
|
-
let r = e.options?.duration ??
|
|
14860
|
+
let n = await zr();
|
|
14861
|
+
Lr = n;
|
|
14862
|
+
let r = e.options?.duration ?? Pr, i = e.options?.type ?? "neutral";
|
|
14738
14863
|
await n.showToast(t, r, i);
|
|
14739
14864
|
}
|
|
14740
14865
|
} finally {
|
|
14741
|
-
|
|
14866
|
+
Ir = !1, Lr = null;
|
|
14742
14867
|
}
|
|
14743
14868
|
}
|
|
14744
14869
|
}
|
|
14745
|
-
function
|
|
14746
|
-
typeof window > "u" || (
|
|
14870
|
+
function Vr(e, t) {
|
|
14871
|
+
typeof window > "u" || (Fr.push({
|
|
14747
14872
|
message: e,
|
|
14748
14873
|
options: t
|
|
14749
|
-
}),
|
|
14874
|
+
}), Ir && Lr && Lr.hideToast(), Br());
|
|
14750
14875
|
}
|
|
14751
|
-
var
|
|
14876
|
+
var Hr = { toast: Vr };
|
|
14752
14877
|
if (typeof window < "u") {
|
|
14753
14878
|
let e = window.mintui || {};
|
|
14754
|
-
e.toast =
|
|
14879
|
+
e.toast = Vr, window.mintui = e;
|
|
14755
14880
|
}
|
|
14756
14881
|
//#endregion
|
|
14757
14882
|
//#region src/components/tree/tree-utils.js
|
|
14758
14883
|
function K(e = []) {
|
|
14759
|
-
|
|
14884
|
+
Kr(e);
|
|
14760
14885
|
let t = (e) => e.map((e) => ({
|
|
14761
14886
|
...e,
|
|
14762
14887
|
children: Array.isArray(e.children) ? t(e.children) : []
|
|
@@ -14785,23 +14910,23 @@ function J(e, t, n = null) {
|
|
|
14785
14910
|
}
|
|
14786
14911
|
return null;
|
|
14787
14912
|
}
|
|
14788
|
-
function
|
|
14913
|
+
function Ur(e, t, n = 0) {
|
|
14789
14914
|
let r = String(t);
|
|
14790
14915
|
for (let t of e) {
|
|
14791
14916
|
if (String(t.id) === r) return n;
|
|
14792
|
-
let e =
|
|
14917
|
+
let e = Ur(t.children || [], r, n + 1);
|
|
14793
14918
|
if (e >= 0) return e;
|
|
14794
14919
|
}
|
|
14795
14920
|
return -1;
|
|
14796
14921
|
}
|
|
14797
|
-
function
|
|
14922
|
+
function Wr(e) {
|
|
14798
14923
|
let t = Array.isArray(e?.children) ? e.children : [];
|
|
14799
|
-
return t.length ? 1 + Math.max(...t.map(
|
|
14924
|
+
return t.length ? 1 + Math.max(...t.map(Wr)) : 1;
|
|
14800
14925
|
}
|
|
14801
|
-
function
|
|
14802
|
-
return String(e.id) === String(t) ? !0 : (e.children || []).some((e) =>
|
|
14926
|
+
function Gr(e, t) {
|
|
14927
|
+
return String(e.id) === String(t) ? !0 : (e.children || []).some((e) => Gr(e, t));
|
|
14803
14928
|
}
|
|
14804
|
-
function
|
|
14929
|
+
function Kr(e) {
|
|
14805
14930
|
let t = /* @__PURE__ */ new Set(), n = (e) => {
|
|
14806
14931
|
for (let r of e) {
|
|
14807
14932
|
if (r.id === null || r.id === void 0 || String(r.id) === "") throw Error("Every tree item must have a non-empty identifier.");
|
|
@@ -14812,13 +14937,13 @@ function Gr(e) {
|
|
|
14812
14937
|
};
|
|
14813
14938
|
n(e);
|
|
14814
14939
|
}
|
|
14815
|
-
function
|
|
14940
|
+
function qr(e, t, n, r, i = {}) {
|
|
14816
14941
|
let a = K(e), o = J(a, t);
|
|
14817
14942
|
if (!o) throw Error(`Tree item ${t} was not found.`);
|
|
14818
14943
|
if (o.item.disabled || o.item.draggable === !1) throw Error("Disabled tree items cannot be moved.");
|
|
14819
14944
|
let s = n == null || n === "" ? null : q(a, n);
|
|
14820
14945
|
if (n != null && n !== "" && !s) throw Error(`Target parent ${n} was not found.`);
|
|
14821
|
-
if (s &&
|
|
14946
|
+
if (s && Gr(o.item, s.id)) throw Error("A tree item cannot be moved inside itself or one of its descendants.");
|
|
14822
14947
|
if (s?.disabled) throw Error("Disabled tree items cannot contain children.");
|
|
14823
14948
|
if (i.allowNesting === !1 && s) throw Error("Nesting is disabled for this tree.");
|
|
14824
14949
|
if (s?.canHaveChildren === !1) throw Error("The target item cannot contain children.");
|
|
@@ -14826,7 +14951,7 @@ function Kr(e, t, n, r, i = {}) {
|
|
|
14826
14951
|
let c = s ? s.children : a, l = o.siblings.findIndex((e) => String(e.id) === String(t)), [u] = o.siblings.splice(l, 1), d = Math.min(Math.max(0, Number.isFinite(r) ? Math.trunc(r) : c.length), c.length);
|
|
14827
14952
|
c.splice(d, 0, u);
|
|
14828
14953
|
let f = Number.isFinite(i.maxDepth) ? Math.max(1, Math.trunc(i.maxDepth)) : Infinity;
|
|
14829
|
-
if ((s ?
|
|
14954
|
+
if ((s ? Ur(a, s.id) + 1 : 0) + Wr(u) > f) throw Error(`Moving this branch would exceed the maximum tree depth of ${f}.`);
|
|
14830
14955
|
return {
|
|
14831
14956
|
items: a,
|
|
14832
14957
|
item: u,
|
|
@@ -14838,7 +14963,7 @@ function Kr(e, t, n, r, i = {}) {
|
|
|
14838
14963
|
}
|
|
14839
14964
|
//#endregion
|
|
14840
14965
|
//#region src/components/tree/Tree.ts
|
|
14841
|
-
var
|
|
14966
|
+
var Jr = 0;
|
|
14842
14967
|
function Y(e, t, n) {
|
|
14843
14968
|
e.dispatchEvent(new CustomEvent(t, {
|
|
14844
14969
|
bubbles: !0,
|
|
@@ -14846,16 +14971,16 @@ function Y(e, t, n) {
|
|
|
14846
14971
|
detail: n
|
|
14847
14972
|
}));
|
|
14848
14973
|
}
|
|
14849
|
-
function
|
|
14974
|
+
function Yr(e, t) {
|
|
14850
14975
|
let n = e.getAttribute(t);
|
|
14851
14976
|
return n === "" || n === "true";
|
|
14852
14977
|
}
|
|
14853
14978
|
function X(e) {
|
|
14854
14979
|
return e == null || e === "" ? null : String(e);
|
|
14855
14980
|
}
|
|
14856
|
-
var
|
|
14981
|
+
var Xr = class extends HTMLElement {
|
|
14857
14982
|
constructor(...e) {
|
|
14858
|
-
super(...e), this._items = [], this._undoStack = [], this._redoStack = [], this._selectedId = null, this._expandedIds = /* @__PURE__ */ new Set(), this._root = null, this._confirm = null, this._treeId = `mint-tree-${++
|
|
14983
|
+
super(...e), this._items = [], this._undoStack = [], this._redoStack = [], this._selectedId = null, this._expandedIds = /* @__PURE__ */ new Set(), this._root = null, this._confirm = null, this._treeId = `mint-tree-${++Jr}`, this._liveRegion = null, this._dragExpansion = null, this._autoExpandedIds = /* @__PURE__ */ new Set(), this._dragHoverExpandedId = null, this._keyboardFocusRestore = null, this._suppressSelectionClick = !1, this._selectionClickSuppressionTimer = null, this._onClick = (e) => {
|
|
14859
14984
|
let t = e.target instanceof Element ? e.target.closest("[data-tree-command]") : null;
|
|
14860
14985
|
if (!t || !this.contains(t)) return;
|
|
14861
14986
|
let n = t.getAttribute("data-tree-command"), r = t.getAttribute("data-tree-id");
|
|
@@ -15159,13 +15284,13 @@ var Yr = class extends HTMLElement {
|
|
|
15159
15284
|
return Number.isFinite(e) && e > 0 ? e : Infinity;
|
|
15160
15285
|
}
|
|
15161
15286
|
_allowNesting() {
|
|
15162
|
-
return !this.hasAttribute("allow-nesting") ||
|
|
15287
|
+
return !this.hasAttribute("allow-nesting") || Yr(this, "allow-nesting");
|
|
15163
15288
|
}
|
|
15164
15289
|
_disabled() {
|
|
15165
|
-
return
|
|
15290
|
+
return Yr(this, "disabled");
|
|
15166
15291
|
}
|
|
15167
15292
|
_isLoading() {
|
|
15168
|
-
return
|
|
15293
|
+
return Yr(this, "loading");
|
|
15169
15294
|
}
|
|
15170
15295
|
_render() {
|
|
15171
15296
|
let e = document.activeElement instanceof HTMLElement ? document.activeElement.closest("[data-mint-tree-row]") : null, t = e && this.contains(e) ? e.getAttribute("data-tree-id") : null;
|
|
@@ -15227,7 +15352,7 @@ var Yr = class extends HTMLElement {
|
|
|
15227
15352
|
return r.appendChild(i), r;
|
|
15228
15353
|
}
|
|
15229
15354
|
_createNode(e, t) {
|
|
15230
|
-
let n = String(e.id), r = Array.isArray(e.children) ? e.children : [], i = e.canHaveChildren !== !1 && this._allowNesting() && t +
|
|
15355
|
+
let n = String(e.id), r = Array.isArray(e.children) ? e.children : [], i = e.canHaveChildren !== !1 && this._allowNesting() && t + Wr(e) < this._maxDepth(), a = document.createElement("div");
|
|
15231
15356
|
a.className = "mint-tree-node", a.setAttribute("data-tree-id", n), a.setAttribute("role", "treeitem"), a.setAttribute("data-mint-tree-row", ""), a.setAttribute("aria-level", String(t + 1)), a.setAttribute("aria-selected", String(this._selectedId === n)), a.setAttribute("tabindex", this._selectedId === n || this._selectedId === null && t === 0 && this._items[0]?.id === e.id ? "0" : "-1"), a.setAttribute("aria-label", e.label), r.length && a.setAttribute("aria-expanded", String(this._expandedIds.has(n))), (e.disabled || this._disabled()) && a.setAttribute("aria-disabled", "true"), (e.draggable === !1 || this._disabled()) && a.setAttribute("data-sortable-disabled", "");
|
|
15232
15357
|
let o = document.createElement("div");
|
|
15233
15358
|
o.className = "mint-tree-row", o.setAttribute("data-tree-id", n);
|
|
@@ -15316,7 +15441,7 @@ var Yr = class extends HTMLElement {
|
|
|
15316
15441
|
i = e.parentId, a = e.siblings.findIndex((e) => String(e.id) === n.parentId) + 1;
|
|
15317
15442
|
} else return;
|
|
15318
15443
|
try {
|
|
15319
|
-
let t =
|
|
15444
|
+
let t = qr(this._items, e, i, a, {
|
|
15320
15445
|
maxDepth: this._maxDepth(),
|
|
15321
15446
|
allowNesting: this._allowNesting()
|
|
15322
15447
|
});
|
|
@@ -15384,7 +15509,7 @@ var Yr = class extends HTMLElement {
|
|
|
15384
15509
|
let n = q(this._items, e);
|
|
15385
15510
|
if (!n) return !1;
|
|
15386
15511
|
let r = t === null ? null : q(this._items, t);
|
|
15387
|
-
return !(t !== null && !r || r?.disabled || r && (String(r.id) === e || this._isDescendant(n, r.id)) || !this._allowNesting() && r || r?.canHaveChildren === !1 || r?.acceptsTypes?.length && !r.acceptsTypes.includes(n.type || "") || (r ? this._depthOf(String(r.id)) : -1) + 1 +
|
|
15512
|
+
return !(t !== null && !r || r?.disabled || r && (String(r.id) === e || this._isDescendant(n, r.id)) || !this._allowNesting() && r || r?.canHaveChildren === !1 || r?.acceptsTypes?.length && !r.acceptsTypes.includes(n.type || "") || (r ? this._depthOf(String(r.id)) : -1) + 1 + Wr(n) > this._maxDepth());
|
|
15388
15513
|
}
|
|
15389
15514
|
_isDescendant(e, t) {
|
|
15390
15515
|
return (e.children || []).some((e) => String(e.id) === String(t) || this._isDescendant(e, t));
|
|
@@ -15479,7 +15604,7 @@ var Yr = class extends HTMLElement {
|
|
|
15479
15604
|
if (!t || t.siblings.indexOf(t.item) <= 0) return;
|
|
15480
15605
|
let n = t.siblings[t.siblings.indexOf(t.item) - 1];
|
|
15481
15606
|
try {
|
|
15482
|
-
let t =
|
|
15607
|
+
let t = qr(this._items, e, n.id, (n.children || []).length, {
|
|
15483
15608
|
maxDepth: this._maxDepth(),
|
|
15484
15609
|
allowNesting: this._allowNesting()
|
|
15485
15610
|
});
|
|
@@ -15501,7 +15626,7 @@ var Yr = class extends HTMLElement {
|
|
|
15501
15626
|
if (!n) return;
|
|
15502
15627
|
let r = n.siblings.findIndex((e) => String(e.id) === t.parentId) + 1;
|
|
15503
15628
|
try {
|
|
15504
|
-
let t =
|
|
15629
|
+
let t = qr(this._items, e, n.parentId, r, {
|
|
15505
15630
|
maxDepth: this._maxDepth(),
|
|
15506
15631
|
allowNesting: this._allowNesting()
|
|
15507
15632
|
});
|
|
@@ -15520,16 +15645,16 @@ var Yr = class extends HTMLElement {
|
|
|
15520
15645
|
[...this._root?.querySelectorAll("[data-mint-tree-row]") ?? []].find((t) => t.getAttribute("data-tree-id") === e)?.focus({ preventScroll: !0 });
|
|
15521
15646
|
}
|
|
15522
15647
|
};
|
|
15523
|
-
customElements.get("mint-tree") || a("mint-tree",
|
|
15648
|
+
customElements.get("mint-tree") || a("mint-tree", Xr);
|
|
15524
15649
|
//#endregion
|
|
15525
15650
|
//#region src/components/editor/Editor.ts
|
|
15526
15651
|
function Z(e) {
|
|
15527
15652
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\"/g, """);
|
|
15528
15653
|
}
|
|
15529
|
-
function
|
|
15654
|
+
function Zr(e) {
|
|
15530
15655
|
return e.replace(/\r\n?/g, "\n").split("\n").map((e) => e.replace(/[\t ]+$/g, "")).join("\n").trim().replace(/\n{3,}/g, "\n\n");
|
|
15531
15656
|
}
|
|
15532
|
-
function
|
|
15657
|
+
function Qr(e, t) {
|
|
15533
15658
|
let n = t.createElement("template");
|
|
15534
15659
|
n.innerHTML = e.trim();
|
|
15535
15660
|
let r = new Set(/* @__PURE__ */ "address.article.aside.blockquote.body.caption.dd.details.dialog.div.dl.dt.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hr.li.main.nav.ol.p.pre.section.summary.table.tbody.td.tfoot.th.thead.tr.ul".split(".")), i = new Set([
|
|
@@ -15598,7 +15723,7 @@ function Q(e) {
|
|
|
15598
15723
|
function $(e) {
|
|
15599
15724
|
return Z(e).replace(/`([^`]+)`/g, "<code>$1</code>").replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>").replace(/__(.+?)__/g, "<strong>$1</strong>").replace(/\*(.+?)\*/g, "<em>$1</em>").replace(/_(.+?)_/g, "<em>$1</em>").replace(/~~(.+?)~~/g, "<s>$1</s>").replace(/!\[([^\]]*)\]\(([^)]+)\)/g, "<img alt=\"$1\" src=\"$2\">").replace(/\[([^\]]+)\]\(([^)]+)\)/g, "<a href=\"$2\">$1</a>");
|
|
15600
15725
|
}
|
|
15601
|
-
function
|
|
15726
|
+
function $r(e) {
|
|
15602
15727
|
let t = (e) => {
|
|
15603
15728
|
if (e.nodeType === Node.TEXT_NODE) return e.textContent || "";
|
|
15604
15729
|
if (e.nodeType !== Node.ELEMENT_NODE) return "";
|
|
@@ -15629,7 +15754,7 @@ function Qr(e) {
|
|
|
15629
15754
|
};
|
|
15630
15755
|
return Array.from(e.childNodes).map(t).join("").trim();
|
|
15631
15756
|
}
|
|
15632
|
-
var
|
|
15757
|
+
var ei = class extends HTMLElement {
|
|
15633
15758
|
constructor(...e) {
|
|
15634
15759
|
super(...e), this.editor = null, this.editorFrame = null, this.pendingValue = null, this.preservedContent = null, this.history = [], this.historyIndex = -1, this.applyingHistory = !1, this.historyTransactionDepth = 0, this.historyTransactionPending = !1, this.undoButton = null, this.redoButton = null, this.source = null, this.toolbar = null, this.count = null, this.selectedImage = null, this.sourceMode = !1, this.observer = null, this.frameResizeObserver = null, this.resizeState = null, this.stageResizeState = null, this.editorHeight = null, this.sourceButton = null, this.blockButton = null, this.blockPopover = null, this.tablePopover = null, this.tableTrigger = null, this.selectedTableElement = null, this.inlineTableTools = null, this.tableResizeHandle = null, this.tableResizeState = null, this.gridResizeState = null, this.footerMode = null, this.inlineButtons = /* @__PURE__ */ new Map(), this.inlineOverrides = /* @__PURE__ */ new Map(), this.inlineStyleOverrides = /* @__PURE__ */ new Map(), this.preserveInlineOverridesOnNextEditorClick = !1, this.toolbarResizeObserver = null, this.overflowPopover = null, this.overflowTrigger = null, this.overflowGroups = [], this.tooltipPopup = null, this.fontSizeDisplay = null, this.lastTextColor = "#202833", this.lastBackgroundColor = "#fff2a8", this.colorTriggers = /* @__PURE__ */ new Map(), this.colorRecentSwatches = /* @__PURE__ */ new Map(), this.alignmentTrigger = null, this.onStageResizeStart = (e, t) => {
|
|
15635
15760
|
if (e.button !== 0) return;
|
|
@@ -15730,7 +15855,7 @@ var $r = class extends HTMLElement {
|
|
|
15730
15855
|
if (this.sourceMode && this.source) return this.source.value;
|
|
15731
15856
|
if (!this.editor) return "";
|
|
15732
15857
|
let e = this.cleanEditorCopy();
|
|
15733
|
-
return this.format === "markdown" ?
|
|
15858
|
+
return this.format === "markdown" ? $r(e) : e.innerHTML;
|
|
15734
15859
|
}
|
|
15735
15860
|
set value(e) {
|
|
15736
15861
|
this.setValue(e || "");
|
|
@@ -16018,7 +16143,9 @@ var $r = class extends HTMLElement {
|
|
|
16018
16143
|
l.textContent = "16px", c.append(l, this.icon("caret-down")), c.addEventListener("pointerdown", () => this.saveSelection()), s.append(c), t("Increase font size", "plus", () => this.applyFontSize(this.readFontSize() + 1), s), this.fontSizeDisplay = l;
|
|
16019
16144
|
let u = document.createElement("div");
|
|
16020
16145
|
u.className = "mint-editor-toolbar-actions", e.append(u), u.append(s);
|
|
16021
|
-
let d = n(c, "mint-editor-font-size-popover", u), f =
|
|
16146
|
+
let d = n(c, "mint-editor-font-size-popover", u), f = document.createElement("mint-scroll-fade");
|
|
16147
|
+
f.className = "mint-editor-font-size-options", f.setAttribute("axis", "vertical"), f.setAttribute("fade-size", "1rem"), d.append(f);
|
|
16148
|
+
let p = [[s, d]];
|
|
16022
16149
|
[
|
|
16023
16150
|
8,
|
|
16024
16151
|
9,
|
|
@@ -16039,44 +16166,44 @@ var $r = class extends HTMLElement {
|
|
|
16039
16166
|
let t = document.createElement("button");
|
|
16040
16167
|
t.type = "button", t.className = "mint-editor-menu-option mint-editor-font-size-option", t.textContent = `${e}px`, t.addEventListener("click", () => {
|
|
16041
16168
|
this.applyFontSize(e), d.close();
|
|
16042
|
-
}),
|
|
16169
|
+
}), f.append(t);
|
|
16043
16170
|
});
|
|
16044
|
-
let
|
|
16171
|
+
let m = (e, n, r) => {
|
|
16045
16172
|
let i = t(e, n, r, u);
|
|
16046
16173
|
return [
|
|
16047
16174
|
"bold",
|
|
16048
16175
|
"italic",
|
|
16049
16176
|
"underline"
|
|
16050
16177
|
].includes(n) && (i.setAttribute("aria-pressed", "false"), this.inlineButtons.set(n, i)), i;
|
|
16051
|
-
},
|
|
16178
|
+
}, h = (e) => {
|
|
16052
16179
|
let t = e.querySelector(":scope > mint-icon");
|
|
16053
16180
|
if (!t) return;
|
|
16054
16181
|
let n = document.createElement("span");
|
|
16055
16182
|
n.className = "mint-editor-color-icon", e.insertBefore(n, t), n.append(t);
|
|
16056
|
-
},
|
|
16183
|
+
}, g = () => {
|
|
16057
16184
|
let e = this.separator();
|
|
16058
|
-
return u.append(e),
|
|
16059
|
-
},
|
|
16060
|
-
|
|
16061
|
-
let
|
|
16062
|
-
u.append(
|
|
16063
|
-
let
|
|
16064
|
-
|
|
16065
|
-
let
|
|
16066
|
-
this.buildColorPopover(
|
|
16067
|
-
let
|
|
16068
|
-
|
|
16069
|
-
let
|
|
16070
|
-
this.buildColorPopover(
|
|
16071
|
-
y,
|
|
16185
|
+
return u.append(e), p.push([e]), e;
|
|
16186
|
+
}, _ = m("Bold", "bold", () => this.toggleInline("bold")), v = m("Italic", "italic", () => this.toggleInline("italic")), y = m("Underline", "underline", () => this.toggleInline("underline"));
|
|
16187
|
+
p.push([_], [v], [y]);
|
|
16188
|
+
let b = this.separator();
|
|
16189
|
+
u.append(b);
|
|
16190
|
+
let x = m("Text color", "text-color", () => {});
|
|
16191
|
+
x.id = `${this.id || `mint-editor-${Math.random().toString(36).slice(2)}`}-text-color-trigger`, x.append(this.icon("caret-down")), x.classList.add("mint-editor-color-trigger"), h(x), x.style.setProperty("--editor-color", this.lastTextColor);
|
|
16192
|
+
let S = n(x, "mint-editor-color-popover", u);
|
|
16193
|
+
this.buildColorPopover(S, "text", x), this.colorTriggers.set("text", x);
|
|
16194
|
+
let C = m("Highlight color", "highlight", () => {});
|
|
16195
|
+
C.id = `${this.id || `mint-editor-${Math.random().toString(36).slice(2)}`}-highlight-trigger`, C.append(this.icon("caret-down")), C.classList.add("mint-editor-color-trigger"), h(C), C.style.setProperty("--editor-color", this.lastBackgroundColor);
|
|
16196
|
+
let w = n(C, "mint-editor-color-popover", u);
|
|
16197
|
+
this.buildColorPopover(w, "background", C), this.colorTriggers.set("background", C), p.push([
|
|
16072
16198
|
b,
|
|
16073
16199
|
x,
|
|
16074
16200
|
S,
|
|
16075
|
-
C
|
|
16201
|
+
C,
|
|
16202
|
+
w
|
|
16076
16203
|
]);
|
|
16077
|
-
let
|
|
16078
|
-
|
|
16079
|
-
let
|
|
16204
|
+
let T = m("Font family", "font-family", () => {});
|
|
16205
|
+
T.id = `${this.id || `mint-editor-${Math.random().toString(36).slice(2)}`}-font-family-trigger`, T.append(this.icon("caret-down"));
|
|
16206
|
+
let E = n(T, "mint-editor-font-family-popover", u);
|
|
16080
16207
|
[
|
|
16081
16208
|
["Arial", "Arial, sans-serif"],
|
|
16082
16209
|
["Helvetica", "Helvetica, sans-serif"],
|
|
@@ -16085,11 +16212,11 @@ var $r = class extends HTMLElement {
|
|
|
16085
16212
|
["Courier New", "\"Courier New\", monospace"],
|
|
16086
16213
|
["System UI", "system-ui, sans-serif"]
|
|
16087
16214
|
].forEach(([e, t]) => {
|
|
16088
|
-
r(
|
|
16089
|
-
this.applyFontFamily(t),
|
|
16215
|
+
r(E, e, "font-family", () => {
|
|
16216
|
+
this.applyFontFamily(t), E.close();
|
|
16090
16217
|
});
|
|
16091
|
-
}),
|
|
16092
|
-
let
|
|
16218
|
+
}), p.push([T, E]), g();
|
|
16219
|
+
let D = m("Insert link", "link", () => this.openLinkModal()), ee = m("Insert image", "image", () => this.requestResource()), O = m("Insert table", "table", () => this.openTableModal()), k = document.createElement("button");
|
|
16093
16220
|
k.type = "button", k.className = "mint-editor-tool-button", this.setTooltip(k, "Table options"), k.id = `${this.id || `mint-editor-${Math.random().toString(36).slice(2)}`}-table-trigger`, k.append(this.icon("caret-down")), k.hidden = !0, u.append(k);
|
|
16094
16221
|
let A = n(k, "", u);
|
|
16095
16222
|
this.tablePopover = A, [
|
|
@@ -16103,12 +16230,12 @@ var $r = class extends HTMLElement {
|
|
|
16103
16230
|
n.addEventListener("click", () => {
|
|
16104
16231
|
this.applyTableAction(e), A.close();
|
|
16105
16232
|
}), A.append(n);
|
|
16106
|
-
}), k.addEventListener("pointerdown", () => this.saveSelection()), this.tableTrigger = k,
|
|
16233
|
+
}), k.addEventListener("pointerdown", () => this.saveSelection()), this.tableTrigger = k, p.push([D], [ee], [
|
|
16107
16234
|
O,
|
|
16108
16235
|
k,
|
|
16109
16236
|
A
|
|
16110
|
-
]),
|
|
16111
|
-
let j =
|
|
16237
|
+
]), g();
|
|
16238
|
+
let j = m("Text alignment", "align-left", () => {});
|
|
16112
16239
|
j.id = `${this.id || `mint-editor-${Math.random().toString(36).slice(2)}`}-alignment-trigger`, j.append(this.icon("caret-down")), this.alignmentTrigger = j;
|
|
16113
16240
|
let M = n(j, "mint-editor-alignment-popover", u);
|
|
16114
16241
|
[
|
|
@@ -16136,8 +16263,8 @@ var $r = class extends HTMLElement {
|
|
|
16136
16263
|
r(M, e, t, () => {
|
|
16137
16264
|
this.command(n), M.close(), this.updateTooltipLabel(j, `Text alignment: ${e}`);
|
|
16138
16265
|
});
|
|
16139
|
-
}),
|
|
16140
|
-
let
|
|
16266
|
+
}), p.push([j, M]), g();
|
|
16267
|
+
let te = m("Bulleted list", "list", () => this.command("insertUnorderedList")), N = document.createElement("button");
|
|
16141
16268
|
N.type = "button", N.className = "mint-editor-tool-button mint-editor-list-options-trigger", N.id = `${this.id || `mint-editor-${Math.random().toString(36).slice(2)}`}-bullet-options-trigger`, this.setTooltip(N, "Bulleted list style"), N.append(this.icon("caret-down")), N.addEventListener("pointerdown", () => this.saveSelection()), u.append(N);
|
|
16142
16269
|
let P = n(N, "mint-editor-list-popover", u);
|
|
16143
16270
|
[
|
|
@@ -16147,7 +16274,7 @@ var $r = class extends HTMLElement {
|
|
|
16147
16274
|
].forEach(([e, t]) => r(P, e, "list", () => {
|
|
16148
16275
|
this.applyListStyle("ul", t), P.close();
|
|
16149
16276
|
}));
|
|
16150
|
-
let
|
|
16277
|
+
let ne = m("Numbered list", "numbered-list", () => this.command("insertOrderedList")), F = document.createElement("button");
|
|
16151
16278
|
F.type = "button", F.className = "mint-editor-tool-button mint-editor-list-options-trigger", F.id = `${this.id || `mint-editor-${Math.random().toString(36).slice(2)}`}-numbered-options-trigger`, this.setTooltip(F, "Numbered list style"), F.append(this.icon("caret-down")), F.addEventListener("pointerdown", () => this.saveSelection()), u.append(F);
|
|
16152
16279
|
let I = n(F, "mint-editor-list-popover", u);
|
|
16153
16280
|
[
|
|
@@ -16159,24 +16286,24 @@ var $r = class extends HTMLElement {
|
|
|
16159
16286
|
].forEach(([e, t]) => r(I, e, "numbered-list", () => {
|
|
16160
16287
|
this.applyListStyle("ol", t), I.close();
|
|
16161
16288
|
}));
|
|
16162
|
-
let
|
|
16163
|
-
|
|
16164
|
-
|
|
16289
|
+
let re = m("Checklist", "checklist", () => this.toggleChecklist());
|
|
16290
|
+
p.push([
|
|
16291
|
+
te,
|
|
16165
16292
|
N,
|
|
16166
16293
|
P
|
|
16167
16294
|
], [
|
|
16168
|
-
|
|
16295
|
+
ne,
|
|
16169
16296
|
F,
|
|
16170
16297
|
I
|
|
16171
|
-
], [
|
|
16172
|
-
let
|
|
16173
|
-
|
|
16174
|
-
let
|
|
16175
|
-
|
|
16298
|
+
], [re]), g();
|
|
16299
|
+
let ie = m("HTML source", "code", () => this.toggleSource());
|
|
16300
|
+
p.push([ie]), this.sourceButton = e.querySelector(".mint-editor-toolbar-code");
|
|
16301
|
+
let ae = m("Clear formatting", "clear-formatting", () => this.clearFormatting());
|
|
16302
|
+
p.push([ae]);
|
|
16176
16303
|
let L = document.createElement("button");
|
|
16177
16304
|
L.type = "button", L.className = "mint-editor-tool-button mint-editor-overflow-trigger", this.setTooltip(L, "More formatting options"), L.id = `${this.id || `mint-editor-${Math.random().toString(36).slice(2)}`}-overflow-trigger`, L.append(this.icon("ellipsis"));
|
|
16178
16305
|
let R = document.createElement("mint-popover");
|
|
16179
|
-
R.setAttribute("trigger-id", L.id), R.setAttribute("padding", "0.25rem"), R.setAttribute("direction", "down"), R.className = "mint-editor-menu-popover mint-editor-overflow-popover", e.append(L, R), this.overflowTrigger = L, this.overflowPopover = R, this.overflowGroups =
|
|
16306
|
+
R.setAttribute("trigger-id", L.id), R.setAttribute("padding", "0.25rem"), R.setAttribute("direction", "down"), R.className = "mint-editor-menu-popover mint-editor-overflow-popover", e.append(L, R), this.overflowTrigger = L, this.overflowPopover = R, this.overflowGroups = p;
|
|
16180
16307
|
}
|
|
16181
16308
|
buildColorPopover(e, t, n) {
|
|
16182
16309
|
let r = [
|
|
@@ -16854,7 +16981,7 @@ var $r = class extends HTMLElement {
|
|
|
16854
16981
|
}
|
|
16855
16982
|
syncSource() {
|
|
16856
16983
|
if (this.source && this.editor) {
|
|
16857
|
-
let e = this.cleanEditorCopy(), t = this.format === "markdown" ?
|
|
16984
|
+
let e = this.cleanEditorCopy(), t = this.format === "markdown" ? $r(e) : e.innerHTML;
|
|
16858
16985
|
this.sourceMode || (this.source.value = t), this.preservedContent = this.sourceMode && this.source ? this.source.value : this.format === "markdown" ? t : this.editor.innerHTML;
|
|
16859
16986
|
}
|
|
16860
16987
|
this.updateWordCount();
|
|
@@ -16929,7 +17056,7 @@ var $r = class extends HTMLElement {
|
|
|
16929
17056
|
start: this.source.selectionStart,
|
|
16930
17057
|
end: this.source.selectionEnd,
|
|
16931
17058
|
direction: this.source.selectionDirection
|
|
16932
|
-
} : null, r = this.cleanEditorCopy(), i = this.sourceMode && this.source ? this.source.value : this.format === "markdown" ?
|
|
17059
|
+
} : null, r = this.cleanEditorCopy(), i = this.sourceMode && this.source ? this.source.value : this.format === "markdown" ? $r(r) : r.innerHTML;
|
|
16933
17060
|
return {
|
|
16934
17061
|
html: r.innerHTML,
|
|
16935
17062
|
source: i,
|
|
@@ -17354,8 +17481,8 @@ var $r = class extends HTMLElement {
|
|
|
17354
17481
|
toggleSource() {
|
|
17355
17482
|
if (!(!this.editor || !this.source)) {
|
|
17356
17483
|
if (this.sourceMode = !this.sourceMode, this.clearInlineTypingState(), this.source.hidden = !this.sourceMode, this.editor.hidden = this.sourceMode, this.sourceMode) {
|
|
17357
|
-
let e = this.cleanEditorCopy(), t = this.format === "markdown" ?
|
|
17358
|
-
this.source.value = this.format === "markdown" ?
|
|
17484
|
+
let e = this.cleanEditorCopy(), t = this.format === "markdown" ? $r(e) : e.innerHTML;
|
|
17485
|
+
this.source.value = this.format === "markdown" ? Zr(t) : Qr(t, this.editor.ownerDocument), this.refreshCurrentHistorySnapshot(), this.preservedContent = this.source.value, this.dispatchValueEvents();
|
|
17359
17486
|
} else this.editor.innerHTML = this.format === "markdown" ? Q(this.source.value) : this.source.value, this.syncSource(), this.emitChange();
|
|
17360
17487
|
this.toolbar?.classList.toggle("mint-editor-source-active", this.sourceMode), this.updateWordCount(), this.sourceMode ? this.selectTable(null) : this.updateSelectionUI();
|
|
17361
17488
|
}
|
|
@@ -17385,6 +17512,6 @@ var $r = class extends HTMLElement {
|
|
|
17385
17512
|
t && this.selectImage(t);
|
|
17386
17513
|
}
|
|
17387
17514
|
};
|
|
17388
|
-
customElements.get("mint-editor") || a("mint-editor",
|
|
17515
|
+
customElements.get("mint-editor") || a("mint-editor", ei);
|
|
17389
17516
|
//#endregion
|
|
17390
|
-
export {
|
|
17517
|
+
export { zn as Alert, wn as BackButton, Hn as BottomNavigation, _n as Button, _n as default, xn as Card, Un as Chart, Pn as Checkbox, Wn as Chip, Fn as Choice, Gn as Clickable, Kn as Collapsible, qn as ConfirmAction, nr as DatePicker, ir as DateTimePicker, ar as Dropzone, ei as Editor, or as Form, An as Grid, l as Icon, tr as Input, Sn as Link, Vn as MintBottomNavItem, Bn as MintBottomNavigation, br as MintSidenavActionLinks, xr as MintSidenavActionMenu, vr as MintSidenavLink, yr as MintSidenavLinks, Xr as MintTree, Xr as Tree, Nn as Modal, ur as NativeSelect, Rn as Navigation, sr as OffCanvas, kn as Page, On as Popover, fr as ResourceTable, Tn as ScrollFade, _r as Search, dr as Select, Tr as SideNavigation, Dr as Sortable, gn as Spinner, bn as Stack, vn as Switch, Or as Tab, Ar as TabContent, kr as TabList, lr as Table, jr as Tabs, Mr as Tags, yn as Text, rr as TimePicker, Nr as Toast, er as confirm, Hr as mintui, B as observeScrollFade, Vr as toast };
|