monobill-mintui 0.6.644 → 0.6.646
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/bin/component-dependencies.json +6 -1
- package/dist/back-button.css +1 -1
- package/dist/button.css +1 -1
- package/dist/components/alert/browser.js +3 -3
- package/dist/components/alert/index.cjs +1 -1
- package/dist/components/alert/index.js +3 -3
- package/dist/components/back-button/BackButton.d.ts.map +1 -1
- package/dist/components/back-button/browser.js +2 -224
- package/dist/components/back-button/index.cjs +1 -1
- package/dist/components/back-button/index.js +2 -224
- 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/Button.d.ts +3 -1
- package/dist/components/button/Button.d.ts.map +1 -1
- 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 +2 -2
- package/dist/components/checkbox/index.cjs +1 -1
- package/dist/components/checkbox/index.js +2 -2
- 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/back-button-CDyPYehm.js +224 -0
- package/dist/components/chunks/back-button-SmmB1OdQ.js +1 -0
- package/dist/components/chunks/{button-hmAnS0R0.js → button-BYkzR0uX.js} +14 -11
- package/dist/components/chunks/button-DfY2Sr3-.js +1 -0
- package/dist/components/chunks/caret-down-Ccvv5gwc.js +1 -0
- package/dist/components/chunks/{caret-down-DpiutKeA.js → caret-down-D1Qs39Av.js} +1 -1
- package/dist/components/chunks/{caret-right-CDPbeTEb.js → caret-right-C83pwBin.js} +1 -1
- package/dist/components/chunks/caret-right-IYvGg3-k.js +1 -0
- package/dist/components/chunks/caret-up-CqFNwOux.js +1 -0
- package/dist/components/chunks/{caret-up-BgQx7BXU.js → caret-up-CsT9c_xE.js} +1 -1
- package/dist/components/chunks/{chip-CVJdu4J8.js → chip-CLCBimJI.js} +3 -3
- package/dist/components/chunks/{chip-dr93YHC5.js → chip-Dfj3x__h.js} +1 -1
- package/dist/components/chunks/{close-3IqD6I8C.js → close-CKPCTitk.js} +1 -1
- package/dist/components/chunks/close-DWvh_05O.js +1 -0
- package/dist/components/chunks/{confirm-action-B1uUHkvF.js → confirm-action-CjXJmqh4.js} +1 -1
- package/dist/components/chunks/{confirm-action-Cf0A7PG_.js → confirm-action-Et6i603N.js} +2 -2
- package/dist/components/chunks/icon-BwaKFl4e.js +1 -0
- package/dist/components/chunks/icon-CkFfk0oc.js +1 -0
- package/dist/components/chunks/{icon-C-eV4VGF.js → icon-D9zLlMGu.js} +224 -204
- package/dist/components/chunks/{icon-FUJudEjA.js → icon-DgBiEDoy.js} +6 -6
- package/dist/components/chunks/{input--6oYmnY6.js → input-4DeekhBC.js} +4 -4
- package/dist/components/chunks/{input-xoRzxNGy.js → input-CF0QIi3N.js} +1 -1
- package/dist/components/chunks/{modal-aRP0z0wD.js → modal-CHLB5Td7.js} +1 -1
- package/dist/components/chunks/{modal-CAuR_w-x.js → modal-DXviLYW_.js} +3 -3
- package/dist/components/chunks/search-W2xBCOsc.js +1 -0
- package/dist/components/chunks/{search-Bb5GNX7M.js → search-oWslgsR8.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 +5 -5
- package/dist/components/date-picker/index.cjs +1 -1
- package/dist/components/date-picker/index.js +5 -5
- package/dist/components/dropzone/browser.js +3 -3
- package/dist/components/dropzone/index.cjs +1 -1
- package/dist/components/dropzone/index.js +3 -3
- package/dist/components/icon/browser.js +1 -1
- package/dist/components/icon/icons/collapse.d.ts +3 -0
- package/dist/components/icon/icons/collapse.d.ts.map +1 -0
- package/dist/components/icon/icons/expand.d.ts +3 -0
- package/dist/components/icon/icons/expand.d.ts.map +1 -0
- package/dist/components/icon/icons/index.d.ts +2 -0
- package/dist/components/icon/icons/index.d.ts.map +1 -1
- 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/link/browser.js +1 -1
- package/dist/components/link/index.cjs +1 -1
- package/dist/components/link/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 +4 -4
- package/dist/components/navigation/index.cjs +1 -1
- package/dist/components/navigation/index.js +4 -4
- package/dist/components/off-canvas/browser.js +3 -3
- package/dist/components/off-canvas/index.cjs +1 -1
- package/dist/components/off-canvas/index.js +3 -3
- package/dist/components/page/Page.d.ts.map +1 -1
- package/dist/components/page/browser.js +8 -3
- package/dist/components/page/index.cjs +41 -7
- package/dist/components/page/index.js +8 -3
- 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 +10 -10
- package/dist/components/resource-table/index.cjs +1 -1
- package/dist/components/resource-table/index.js +10 -10
- 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 +4 -4
- package/dist/components/select/index.cjs +1 -1
- package/dist/components/select/index.js +4 -4
- package/dist/components/side-navigation/browser.js +5 -5
- package/dist/components/side-navigation/index.cjs +1 -1
- package/dist/components/side-navigation/index.js +5 -5
- 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/spinner/browser.js +1 -1
- package/dist/components/spinner/index.cjs +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stack/browser.js +1 -1
- package/dist/components/stack/index.cjs +1 -1
- package/dist/components/stack/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/tags/browser.js +4 -4
- package/dist/components/tags/index.cjs +1 -1
- package/dist/components/tags/index.js +4 -4
- package/dist/components/time-picker/browser.js +3 -3
- package/dist/components/time-picker/index.cjs +1 -1
- package/dist/components/time-picker/index.js +3 -3
- package/dist/components/tree/Tree.d.ts +2 -0
- package/dist/components/tree/Tree.d.ts.map +1 -1
- package/dist/components/tree/browser.js +10 -8
- package/dist/components/tree/index.cjs +1 -1
- package/dist/components/tree/index.js +10 -8
- package/dist/confirm-action.css +1 -1
- package/dist/icon.css +1 -1
- package/dist/icons/collapse.svg +3 -0
- package/dist/icons/expand.svg +3 -0
- package/dist/index.cjs +50 -16
- package/dist/index.css +9 -9
- package/dist/index.js +639 -614
- package/dist/link.css +1 -1
- package/dist/modal.css +1 -1
- package/dist/navigation-search.json +14 -0
- package/dist/navigation.css +1 -1
- package/dist/page.css +1 -1
- package/dist/tree.css +1 -1
- package/package.json +1 -1
- package/dist/components/chunks/button-DMoaxqbf.js +0 -1
- package/dist/components/chunks/caret-down-ZX0Kvdb5.js +0 -1
- package/dist/components/chunks/caret-right-DzhujJ3u.js +0 -1
- package/dist/components/chunks/caret-up-bxudEL8g.js +0 -1
- package/dist/components/chunks/close-CwUdQlxT.js +0 -1
- package/dist/components/chunks/icon-DF1kvSw1.js +0 -1
- package/dist/components/chunks/icon-DiWej_T-.js +0 -1
- package/dist/components/chunks/search-Bfjmwor1.js +0 -1
- /package/dist/components/chunks/{link-4LblIyiP.js → link-BsC3zT_I.js} +0 -0
- /package/dist/components/chunks/{link-DYbrI89a.js → link-dTjSvr4E.js} +0 -0
- /package/dist/components/chunks/{popover-Db9ZGHd9.js → popover-CNZ5u-MA.js} +0 -0
- /package/dist/components/chunks/{popover-CV-QCPjW.js → popover-DB1OaYVe.js} +0 -0
- /package/dist/components/chunks/{sortable-CparUKN_.js → sortable-B1nMJBah.js} +0 -0
- /package/dist/components/chunks/{sortable-DX2PwFLN.js → sortable-CXM-7eyL.js} +0 -0
- /package/dist/components/chunks/{spinner-BsaFHuS6.js → spinner-BjC3nA-C.js} +0 -0
- /package/dist/components/chunks/{spinner-DbTohC6i.js → spinner-DfPbEa2d.js} +0 -0
- /package/dist/components/chunks/{stack-CpmqyaNX.js → stack-Bdl46AdO.js} +0 -0
- /package/dist/components/chunks/{stack-_7V0Fcu0.js → stack-nq3AmcMG.js} +0 -0
- /package/dist/components/chunks/{table-CI11Mff-.js → table-2-0iNQJy.js} +0 -0
- /package/dist/components/chunks/{table-EgbYUKL8.js → table-DRdsVUJL.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -380,88 +380,98 @@ var re = {
|
|
|
380
380
|
};
|
|
381
381
|
s(re);
|
|
382
382
|
//#endregion
|
|
383
|
-
//#region src/components/icon/icons/
|
|
383
|
+
//#region src/components/icon/icons/collapse.js
|
|
384
384
|
var ie = {
|
|
385
|
+
name: "collapse",
|
|
386
|
+
viewBox: "0 0 24 24",
|
|
387
|
+
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",
|
|
388
|
+
strokeLinecap: "round",
|
|
389
|
+
strokeLinejoin: "round"
|
|
390
|
+
};
|
|
391
|
+
s(ie);
|
|
392
|
+
//#endregion
|
|
393
|
+
//#region src/components/icon/icons/clock.js
|
|
394
|
+
var ae = {
|
|
385
395
|
name: "clock",
|
|
386
396
|
viewBox: "0 0 24 24",
|
|
387
397
|
path: "M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z",
|
|
388
398
|
strokeLinecap: "round",
|
|
389
399
|
strokeLinejoin: "round"
|
|
390
400
|
};
|
|
391
|
-
s(
|
|
401
|
+
s(ae);
|
|
392
402
|
//#endregion
|
|
393
403
|
//#region src/components/icon/icons/close.js
|
|
394
|
-
var
|
|
404
|
+
var oe = {
|
|
395
405
|
name: "close",
|
|
396
406
|
viewBox: "0 0 24 24",
|
|
397
407
|
path: "M6 18L18 6M6 6l12 12",
|
|
398
408
|
strokeLinecap: "round",
|
|
399
409
|
strokeLinejoin: "round"
|
|
400
410
|
};
|
|
401
|
-
s(
|
|
411
|
+
s(oe);
|
|
402
412
|
//#endregion
|
|
403
413
|
//#region src/components/icon/icons/copy.js
|
|
404
|
-
var
|
|
414
|
+
var se = {
|
|
405
415
|
name: "copy",
|
|
406
416
|
viewBox: "0 0 24 24",
|
|
407
417
|
path: "M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z",
|
|
408
418
|
strokeLinecap: "round",
|
|
409
419
|
strokeLinejoin: "round"
|
|
410
420
|
};
|
|
411
|
-
s(
|
|
421
|
+
s(se);
|
|
412
422
|
//#endregion
|
|
413
423
|
//#region src/components/icon/icons/credit-card.js
|
|
414
|
-
var
|
|
424
|
+
var ce = {
|
|
415
425
|
name: "credit-card",
|
|
416
426
|
viewBox: "0 0 24 24",
|
|
417
427
|
path: "M3 7.5A2.5 2.5 0 0 1 5.5 5h13A2.5 2.5 0 0 1 21 7.5v9A2.5 2.5 0 0 1 18.5 19h-13A2.5 2.5 0 0 1 3 16.5v-9zM3 10h18M7 15h3",
|
|
418
428
|
strokeLinecap: "round",
|
|
419
429
|
strokeLinejoin: "round"
|
|
420
430
|
};
|
|
421
|
-
s(
|
|
431
|
+
s(ce);
|
|
422
432
|
//#endregion
|
|
423
433
|
//#region src/components/icon/icons/delete.js
|
|
424
|
-
var
|
|
434
|
+
var le = {
|
|
425
435
|
name: "delete",
|
|
426
436
|
viewBox: "0 0 24 24",
|
|
427
437
|
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",
|
|
428
438
|
strokeLinecap: "round",
|
|
429
439
|
strokeLinejoin: "round"
|
|
430
440
|
};
|
|
431
|
-
s(
|
|
441
|
+
s(le);
|
|
432
442
|
//#endregion
|
|
433
443
|
//#region src/components/icon/icons/desktop.js
|
|
434
|
-
var
|
|
444
|
+
var ue = {
|
|
435
445
|
name: "desktop",
|
|
436
446
|
viewBox: "0 0 24 24",
|
|
437
447
|
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",
|
|
438
448
|
strokeLinecap: "round",
|
|
439
449
|
strokeLinejoin: "round"
|
|
440
450
|
};
|
|
441
|
-
s(
|
|
451
|
+
s(ue);
|
|
442
452
|
//#endregion
|
|
443
453
|
//#region src/components/icon/icons/desktop-screen.js
|
|
444
|
-
var
|
|
454
|
+
var de = {
|
|
445
455
|
name: "desktop-screen",
|
|
446
456
|
viewBox: "0 0 24 24",
|
|
447
457
|
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",
|
|
448
458
|
strokeLinecap: "round",
|
|
449
459
|
strokeLinejoin: "round"
|
|
450
460
|
};
|
|
451
|
-
s(
|
|
461
|
+
s(de);
|
|
452
462
|
//#endregion
|
|
453
463
|
//#region src/components/icon/icons/documentation.js
|
|
454
|
-
var
|
|
464
|
+
var fe = {
|
|
455
465
|
name: "documentation",
|
|
456
466
|
viewBox: "0 0 24 24",
|
|
457
467
|
path: "M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253",
|
|
458
468
|
strokeLinecap: "round",
|
|
459
469
|
strokeLinejoin: "round"
|
|
460
470
|
};
|
|
461
|
-
s(
|
|
471
|
+
s(fe);
|
|
462
472
|
//#endregion
|
|
463
473
|
//#region src/components/icon/icons/dollar-sign.js
|
|
464
|
-
var
|
|
474
|
+
var pe = {
|
|
465
475
|
name: "dollar-sign",
|
|
466
476
|
viewBox: "0 0 24 24",
|
|
467
477
|
path: "M12 3v18M17 7c0-1.2-1.3-2-3-2h-4c-1.7 0-3 1-3 2.2 0 1.5 1.4 2.2 3 2.6l4 1c1.6.4 3 1.1 3 2.6 0 1.2-1.3 2.2-3 2.2h-4c-1.7 0-3-1-3-2",
|
|
@@ -469,338 +479,348 @@ var fe = {
|
|
|
469
479
|
strokeLinecap: "butt",
|
|
470
480
|
strokeLinejoin: "miter"
|
|
471
481
|
};
|
|
472
|
-
s(
|
|
482
|
+
s(pe);
|
|
473
483
|
//#endregion
|
|
474
484
|
//#region src/components/icon/icons/download.js
|
|
475
|
-
var
|
|
485
|
+
var me = {
|
|
476
486
|
name: "download",
|
|
477
487
|
viewBox: "0 0 24 24",
|
|
478
488
|
path: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4",
|
|
479
489
|
strokeLinecap: "round",
|
|
480
490
|
strokeLinejoin: "round"
|
|
481
491
|
};
|
|
482
|
-
s(
|
|
492
|
+
s(me);
|
|
483
493
|
//#endregion
|
|
484
494
|
//#region src/components/icon/icons/duplicate.js
|
|
485
|
-
var
|
|
495
|
+
var he = {
|
|
486
496
|
name: "duplicate",
|
|
487
497
|
viewBox: "0 0 24 24",
|
|
488
498
|
path: "M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z",
|
|
489
499
|
strokeLinecap: "round",
|
|
490
500
|
strokeLinejoin: "round"
|
|
491
501
|
};
|
|
492
|
-
s(
|
|
502
|
+
s(he);
|
|
493
503
|
//#endregion
|
|
494
504
|
//#region src/components/icon/icons/edit.js
|
|
495
|
-
var
|
|
505
|
+
var ge = {
|
|
496
506
|
name: "edit",
|
|
497
507
|
viewBox: "0 0 24 24",
|
|
498
508
|
path: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z",
|
|
499
509
|
strokeLinecap: "round",
|
|
500
510
|
strokeLinejoin: "round"
|
|
501
511
|
};
|
|
502
|
-
s(
|
|
512
|
+
s(ge);
|
|
503
513
|
//#endregion
|
|
504
514
|
//#region src/components/icon/icons/ellipsis.js
|
|
505
|
-
var
|
|
515
|
+
var _e = {
|
|
506
516
|
name: "ellipsis",
|
|
507
517
|
viewBox: "0 0 24 24",
|
|
508
518
|
path: "M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z",
|
|
509
519
|
strokeLinecap: "round",
|
|
510
520
|
strokeLinejoin: "round"
|
|
511
521
|
};
|
|
512
|
-
s(
|
|
522
|
+
s(_e);
|
|
513
523
|
//#endregion
|
|
514
524
|
//#region src/components/icon/icons/error.js
|
|
515
|
-
var
|
|
525
|
+
var ve = {
|
|
516
526
|
name: "error",
|
|
517
527
|
viewBox: "0 0 24 24",
|
|
518
528
|
path: "M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z",
|
|
519
529
|
strokeLinecap: "round",
|
|
520
530
|
strokeLinejoin: "round"
|
|
521
531
|
};
|
|
522
|
-
s(
|
|
532
|
+
s(ve);
|
|
523
533
|
//#endregion
|
|
524
534
|
//#region src/components/icon/icons/external-link.js
|
|
525
|
-
var
|
|
535
|
+
var ye = {
|
|
526
536
|
name: "external-link",
|
|
527
537
|
viewBox: "0 0 24 24",
|
|
528
538
|
path: "M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14",
|
|
529
539
|
strokeLinecap: "round",
|
|
530
540
|
strokeLinejoin: "round"
|
|
531
541
|
};
|
|
532
|
-
s(
|
|
542
|
+
s(ye);
|
|
543
|
+
//#endregion
|
|
544
|
+
//#region src/components/icon/icons/expand.js
|
|
545
|
+
var be = {
|
|
546
|
+
name: "expand",
|
|
547
|
+
viewBox: "0 0 24 24",
|
|
548
|
+
path: "M8 3H5a2 2 0 00-2 2v3m13-5h3a2 2 0 012 2v3M3 16v3a2 2 0 002 2h3m13-5v3a2 2 0 01-2 2h-3",
|
|
549
|
+
strokeLinecap: "round",
|
|
550
|
+
strokeLinejoin: "round"
|
|
551
|
+
};
|
|
552
|
+
s(be);
|
|
533
553
|
//#endregion
|
|
534
554
|
//#region src/components/icon/icons/eye.js
|
|
535
|
-
var
|
|
555
|
+
var xe = {
|
|
536
556
|
name: "eye",
|
|
537
557
|
viewBox: "0 0 24 24",
|
|
538
558
|
path: "M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6zm10 3.5a3.5 3.5 0 100-7 3.5 3.5 0 000 7z",
|
|
539
559
|
strokeLinecap: "round",
|
|
540
560
|
strokeLinejoin: "round"
|
|
541
561
|
};
|
|
542
|
-
s(
|
|
562
|
+
s(xe);
|
|
543
563
|
//#endregion
|
|
544
564
|
//#region src/components/icon/icons/file.js
|
|
545
|
-
var
|
|
565
|
+
var Se = {
|
|
546
566
|
name: "file",
|
|
547
567
|
viewBox: "0 0 24 24",
|
|
548
568
|
path: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z",
|
|
549
569
|
strokeLinecap: "round",
|
|
550
570
|
strokeLinejoin: "round"
|
|
551
571
|
};
|
|
552
|
-
s(
|
|
572
|
+
s(Se);
|
|
553
573
|
//#endregion
|
|
554
574
|
//#region src/components/icon/icons/filter.js
|
|
555
|
-
var
|
|
575
|
+
var Ce = {
|
|
556
576
|
name: "filter",
|
|
557
577
|
viewBox: "0 0 24 24",
|
|
558
578
|
path: "M3 6h18M3 12h18M3 18h18M6 6a2 2 0 11-4 0 2 2 0 014 0zM12 12a2 2 0 11-4 0 2 2 0 014 0zM16 18a2 2 0 11-4 0 2 2 0 014 0z",
|
|
559
579
|
strokeLinecap: "round",
|
|
560
580
|
strokeLinejoin: "round"
|
|
561
581
|
};
|
|
562
|
-
s(
|
|
582
|
+
s(Ce);
|
|
563
583
|
//#endregion
|
|
564
584
|
//#region src/components/icon/icons/folder.js
|
|
565
|
-
var
|
|
585
|
+
var we = {
|
|
566
586
|
name: "folder",
|
|
567
587
|
viewBox: "0 0 24 24",
|
|
568
588
|
path: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z",
|
|
569
589
|
strokeLinecap: "round",
|
|
570
590
|
strokeLinejoin: "round"
|
|
571
591
|
};
|
|
572
|
-
s(
|
|
592
|
+
s(we);
|
|
573
593
|
//#endregion
|
|
574
594
|
//#region src/components/icon/icons/gavel.js
|
|
575
|
-
var
|
|
595
|
+
var Te = {
|
|
576
596
|
name: "gavel",
|
|
577
597
|
viewBox: "0 0 24 24",
|
|
578
598
|
path: "M12 12",
|
|
579
599
|
customSvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <g transform=\"translate(12 12) rotate(45)\">\n <rect x=\"-5.52\" y=\"-3.78\" width=\"1.78\" height=\"7.56\" rx=\"0.55\" ry=\"0.55\"/>\n <rect x=\"-3.74\" y=\"-3.12\" width=\"7.48\" height=\"6.24\" rx=\"0.46\" ry=\"0.46\"/>\n <rect x=\"3.74\" y=\"-3.78\" width=\"1.78\" height=\"7.56\" rx=\"0.55\" ry=\"0.55\"/>\n <rect x=\"-0.4\" y=\"3.78\" width=\"0.8\" height=\"8.45\" rx=\"0.4\" ry=\"0.4\"/>\n <rect x=\"-1.18\" y=\"12.21\" width=\"2.36\" height=\"2.55\" rx=\"0.92\" ry=\"0.92\"/>\n </g>\n</svg>"
|
|
580
600
|
};
|
|
581
|
-
s(
|
|
601
|
+
s(Te);
|
|
582
602
|
//#endregion
|
|
583
603
|
//#region src/components/icon/icons/globe.js
|
|
584
|
-
var
|
|
604
|
+
var Ee = {
|
|
585
605
|
name: "globe",
|
|
586
606
|
viewBox: "0 0 24 24",
|
|
587
607
|
path: "M12 2a10 10 0 100 20 10 10 0 000-20zm0 0c2.5 2.4 4 6.2 4 10s-1.5 7.6-4 10m0-20c-2.5 2.4-4 6.2-4 10s1.5 7.6 4 10M2 12h20M4.5 7h15M4.5 17h15",
|
|
588
608
|
strokeLinecap: "round",
|
|
589
609
|
strokeLinejoin: "round"
|
|
590
610
|
};
|
|
591
|
-
s(
|
|
611
|
+
s(Ee);
|
|
592
612
|
//#endregion
|
|
593
613
|
//#region src/components/icon/icons/grid.js
|
|
594
|
-
var
|
|
614
|
+
var De = {
|
|
595
615
|
name: "grid",
|
|
596
616
|
viewBox: "0 0 24 24",
|
|
597
617
|
path: "M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z",
|
|
598
618
|
strokeLinecap: "round",
|
|
599
619
|
strokeLinejoin: "round"
|
|
600
620
|
};
|
|
601
|
-
s(
|
|
621
|
+
s(De);
|
|
602
622
|
//#endregion
|
|
603
623
|
//#region src/components/icon/icons/grip-lines.js
|
|
604
|
-
var
|
|
624
|
+
var Oe = {
|
|
605
625
|
name: "grip-lines",
|
|
606
626
|
viewBox: "0 0 24 24",
|
|
607
627
|
path: "M12 12",
|
|
608
628
|
customSvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <rect x=\"2\" y=\"8\" width=\"18\" height=\"2\" rx=\"1\" />\n <rect x=\"2\" y=\"14\" width=\"18\" height=\"2\" rx=\"1\" />\n</svg>"
|
|
609
629
|
};
|
|
610
|
-
s(
|
|
630
|
+
s(Oe);
|
|
611
631
|
//#endregion
|
|
612
632
|
//#region src/components/icon/icons/help.js
|
|
613
|
-
var
|
|
633
|
+
var ke = {
|
|
614
634
|
name: "help",
|
|
615
635
|
viewBox: "0 0 24 24",
|
|
616
636
|
path: "M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",
|
|
617
637
|
strokeLinecap: "round",
|
|
618
638
|
strokeLinejoin: "round"
|
|
619
639
|
};
|
|
620
|
-
s(
|
|
640
|
+
s(ke);
|
|
621
641
|
//#endregion
|
|
622
642
|
//#region src/components/icon/icons/home.js
|
|
623
|
-
var
|
|
643
|
+
var Ae = {
|
|
624
644
|
name: "home",
|
|
625
645
|
viewBox: "0 0 24 24",
|
|
626
646
|
path: "M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6",
|
|
627
647
|
strokeLinecap: "round",
|
|
628
648
|
strokeLinejoin: "round"
|
|
629
649
|
};
|
|
630
|
-
s(
|
|
650
|
+
s(Ae);
|
|
631
651
|
//#endregion
|
|
632
652
|
//#region src/components/icon/icons/image.js
|
|
633
|
-
var
|
|
653
|
+
var je = {
|
|
634
654
|
name: "image",
|
|
635
655
|
viewBox: "0 0 24 24",
|
|
636
656
|
path: "M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z",
|
|
637
657
|
strokeLinecap: "round",
|
|
638
658
|
strokeLinejoin: "round"
|
|
639
659
|
};
|
|
640
|
-
s(
|
|
660
|
+
s(je);
|
|
641
661
|
//#endregion
|
|
642
662
|
//#region src/components/icon/icons/info.js
|
|
643
|
-
var
|
|
663
|
+
var Me = {
|
|
644
664
|
name: "info",
|
|
645
665
|
viewBox: "0 0 24 24",
|
|
646
666
|
path: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",
|
|
647
667
|
strokeLinecap: "round",
|
|
648
668
|
strokeLinejoin: "round"
|
|
649
669
|
};
|
|
650
|
-
s(
|
|
670
|
+
s(Me);
|
|
651
671
|
//#endregion
|
|
652
672
|
//#region src/components/icon/icons/language.js
|
|
653
|
-
var
|
|
673
|
+
var Ne = {
|
|
654
674
|
name: "language",
|
|
655
675
|
viewBox: "0 0 24 24",
|
|
656
676
|
path: "M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129",
|
|
657
677
|
strokeLinecap: "round",
|
|
658
678
|
strokeLinejoin: "round"
|
|
659
679
|
};
|
|
660
|
-
s(
|
|
680
|
+
s(Ne);
|
|
661
681
|
//#endregion
|
|
662
682
|
//#region src/components/icon/icons/line-chart.js
|
|
663
|
-
var
|
|
683
|
+
var Pe = {
|
|
664
684
|
name: "line-chart",
|
|
665
685
|
viewBox: "0 0 24 24",
|
|
666
686
|
path: "M3 20h18M4 18V4m2 11l4-4 3 3 5-6m0 0h-4m4 0v4",
|
|
667
687
|
strokeLinecap: "round",
|
|
668
688
|
strokeLinejoin: "round"
|
|
669
689
|
};
|
|
670
|
-
s(
|
|
690
|
+
s(Pe);
|
|
671
691
|
//#endregion
|
|
672
692
|
//#region src/components/icon/icons/link.js
|
|
673
|
-
var
|
|
693
|
+
var Fe = {
|
|
674
694
|
name: "link",
|
|
675
695
|
viewBox: "0 0 24 24",
|
|
676
696
|
path: "M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1",
|
|
677
697
|
strokeLinecap: "round",
|
|
678
698
|
strokeLinejoin: "round"
|
|
679
699
|
};
|
|
680
|
-
s(
|
|
700
|
+
s(Fe);
|
|
681
701
|
//#endregion
|
|
682
702
|
//#region src/components/icon/icons/list.js
|
|
683
|
-
var
|
|
703
|
+
var Ie = {
|
|
684
704
|
name: "list",
|
|
685
705
|
viewBox: "0 0 24 24",
|
|
686
706
|
path: "M8 6h13M5 6h.01M8 12h13M5 12h.01M8 18h13M5 18h.01",
|
|
687
707
|
strokeLinecap: "round",
|
|
688
708
|
strokeLinejoin: "round"
|
|
689
709
|
};
|
|
690
|
-
s(
|
|
710
|
+
s(Ie);
|
|
691
711
|
//#endregion
|
|
692
712
|
//#region src/components/icon/icons/location.js
|
|
693
|
-
var
|
|
713
|
+
var Le = {
|
|
694
714
|
name: "location",
|
|
695
715
|
viewBox: "0 0 24 24",
|
|
696
716
|
path: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z M15 11a3 3 0 11-6 0 3 3 0 016 0z",
|
|
697
717
|
strokeLinecap: "round",
|
|
698
718
|
strokeLinejoin: "round"
|
|
699
719
|
};
|
|
700
|
-
s(
|
|
720
|
+
s(Le);
|
|
701
721
|
//#endregion
|
|
702
722
|
//#region src/components/icon/icons/lock.js
|
|
703
|
-
var
|
|
723
|
+
var Re = {
|
|
704
724
|
name: "lock",
|
|
705
725
|
viewBox: "0 0 24 24",
|
|
706
726
|
path: "M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z",
|
|
707
727
|
strokeLinecap: "round",
|
|
708
728
|
strokeLinejoin: "round"
|
|
709
729
|
};
|
|
710
|
-
s(
|
|
730
|
+
s(Re);
|
|
711
731
|
//#endregion
|
|
712
732
|
//#region src/components/icon/icons/login.js
|
|
713
|
-
var
|
|
733
|
+
var ze = {
|
|
714
734
|
name: "login",
|
|
715
735
|
viewBox: "0 0 24 24",
|
|
716
736
|
path: "M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1",
|
|
717
737
|
strokeLinecap: "round",
|
|
718
738
|
strokeLinejoin: "round"
|
|
719
739
|
};
|
|
720
|
-
s(
|
|
740
|
+
s(ze);
|
|
721
741
|
//#endregion
|
|
722
742
|
//#region src/components/icon/icons/logout.js
|
|
723
|
-
var
|
|
743
|
+
var Be = {
|
|
724
744
|
name: "logout",
|
|
725
745
|
viewBox: "0 0 24 24",
|
|
726
746
|
path: "M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1",
|
|
727
747
|
strokeLinecap: "round",
|
|
728
748
|
strokeLinejoin: "round"
|
|
729
749
|
};
|
|
730
|
-
s(
|
|
750
|
+
s(Be);
|
|
731
751
|
//#endregion
|
|
732
752
|
//#region src/components/icon/icons/mail.js
|
|
733
|
-
var
|
|
753
|
+
var Ve = {
|
|
734
754
|
name: "mail",
|
|
735
755
|
viewBox: "0 0 24 24",
|
|
736
756
|
path: "M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z",
|
|
737
757
|
strokeLinecap: "round",
|
|
738
758
|
strokeLinejoin: "round"
|
|
739
759
|
};
|
|
740
|
-
s(
|
|
760
|
+
s(Ve);
|
|
741
761
|
//#endregion
|
|
742
762
|
//#region src/components/icon/icons/map.js
|
|
743
|
-
var
|
|
763
|
+
var He = {
|
|
744
764
|
name: "map",
|
|
745
765
|
viewBox: "0 0 24 24",
|
|
746
766
|
path: "M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7",
|
|
747
767
|
strokeLinecap: "round",
|
|
748
768
|
strokeLinejoin: "round"
|
|
749
769
|
};
|
|
750
|
-
s(
|
|
770
|
+
s(He);
|
|
751
771
|
//#endregion
|
|
752
772
|
//#region src/components/icon/icons/menu.js
|
|
753
|
-
var
|
|
773
|
+
var Ue = {
|
|
754
774
|
name: "menu",
|
|
755
775
|
viewBox: "0 0 24 24",
|
|
756
776
|
path: "M4 6h16M4 12h16M4 18h16",
|
|
757
777
|
strokeLinecap: "round",
|
|
758
778
|
strokeLinejoin: "round"
|
|
759
779
|
};
|
|
760
|
-
s(
|
|
780
|
+
s(Ue);
|
|
761
781
|
//#endregion
|
|
762
782
|
//#region src/components/icon/icons/mobile.js
|
|
763
|
-
var
|
|
783
|
+
var We = {
|
|
764
784
|
name: "mobile",
|
|
765
785
|
viewBox: "0 0 24 24",
|
|
766
786
|
path: "M8 2h8a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Zm3 16h2",
|
|
767
787
|
strokeLinecap: "round",
|
|
768
788
|
strokeLinejoin: "round"
|
|
769
789
|
};
|
|
770
|
-
s(
|
|
790
|
+
s(We);
|
|
771
791
|
//#endregion
|
|
772
792
|
//#region src/components/icon/icons/moon.js
|
|
773
|
-
var
|
|
793
|
+
var Ge = {
|
|
774
794
|
name: "moon",
|
|
775
795
|
viewBox: "0 0 24 24",
|
|
776
796
|
path: "M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z",
|
|
777
797
|
strokeLinecap: "round",
|
|
778
798
|
strokeLinejoin: "round"
|
|
779
799
|
};
|
|
780
|
-
s(
|
|
800
|
+
s(Ge);
|
|
781
801
|
//#endregion
|
|
782
802
|
//#region src/components/icon/icons/notifications.js
|
|
783
|
-
var
|
|
803
|
+
var Ke = {
|
|
784
804
|
name: "notifications",
|
|
785
805
|
viewBox: "0 0 24 24",
|
|
786
806
|
path: "M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9",
|
|
787
807
|
strokeLinecap: "round",
|
|
788
808
|
strokeLinejoin: "round"
|
|
789
809
|
};
|
|
790
|
-
s(
|
|
810
|
+
s(Ke);
|
|
791
811
|
//#endregion
|
|
792
812
|
//#region src/components/icon/icons/paste.js
|
|
793
|
-
var
|
|
813
|
+
var qe = {
|
|
794
814
|
name: "paste",
|
|
795
815
|
viewBox: "0 0 24 24",
|
|
796
816
|
path: "M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2",
|
|
797
817
|
strokeLinecap: "round",
|
|
798
818
|
strokeLinejoin: "round"
|
|
799
819
|
};
|
|
800
|
-
s(
|
|
820
|
+
s(qe);
|
|
801
821
|
//#endregion
|
|
802
822
|
//#region src/components/icon/icons/pin.js
|
|
803
|
-
var
|
|
823
|
+
var Je = {
|
|
804
824
|
name: "pin",
|
|
805
825
|
viewBox: "0 0 16 16",
|
|
806
826
|
path: "M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a5.927 5.927 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707-.195-.195.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a5.922 5.922 0 0 1 1.013.16l3.134-3.133a2.772 2.772 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146z",
|
|
@@ -808,270 +828,270 @@ var Ke = {
|
|
|
808
828
|
strokeLinejoin: "round",
|
|
809
829
|
customSvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.25\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a5.927 5.927 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707-.195-.195.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a5.922 5.922 0 0 1 1.013.16l3.134-3.133a2.772 2.772 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146z\" /></svg>"
|
|
810
830
|
};
|
|
811
|
-
s(
|
|
831
|
+
s(Je);
|
|
812
832
|
//#endregion
|
|
813
833
|
//#region src/components/icon/icons/plus.js
|
|
814
|
-
var
|
|
834
|
+
var Ye = {
|
|
815
835
|
name: "plus",
|
|
816
836
|
viewBox: "0 0 24 24",
|
|
817
837
|
path: "M12 4v16m8-8H4",
|
|
818
838
|
strokeLinecap: "round",
|
|
819
839
|
strokeLinejoin: "round"
|
|
820
840
|
};
|
|
821
|
-
s(
|
|
841
|
+
s(Ye);
|
|
822
842
|
//#endregion
|
|
823
843
|
//#region src/components/icon/icons/print.js
|
|
824
|
-
var
|
|
844
|
+
var Xe = {
|
|
825
845
|
name: "print",
|
|
826
846
|
viewBox: "0 0 24 24",
|
|
827
847
|
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",
|
|
828
848
|
strokeLinecap: "round",
|
|
829
849
|
strokeLinejoin: "round"
|
|
830
850
|
};
|
|
831
|
-
s(
|
|
851
|
+
s(Xe);
|
|
832
852
|
//#endregion
|
|
833
853
|
//#region src/components/icon/icons/qr-code.js
|
|
834
|
-
var
|
|
854
|
+
var Ze = {
|
|
835
855
|
name: "qr-code",
|
|
836
856
|
viewBox: "0 0 24 24",
|
|
837
857
|
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",
|
|
838
858
|
strokeLinecap: "round",
|
|
839
859
|
strokeLinejoin: "round"
|
|
840
860
|
};
|
|
841
|
-
s(
|
|
861
|
+
s(Ze);
|
|
842
862
|
//#endregion
|
|
843
863
|
//#region src/components/icon/icons/refresh.js
|
|
844
|
-
var
|
|
864
|
+
var Qe = {
|
|
845
865
|
name: "refresh",
|
|
846
866
|
viewBox: "0 0 24 24",
|
|
847
867
|
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",
|
|
848
868
|
strokeLinecap: "round",
|
|
849
869
|
strokeLinejoin: "round"
|
|
850
870
|
};
|
|
851
|
-
s(
|
|
871
|
+
s(Qe);
|
|
852
872
|
//#endregion
|
|
853
873
|
//#region src/components/icon/icons/remove.js
|
|
854
|
-
var
|
|
874
|
+
var $e = {
|
|
855
875
|
name: "remove",
|
|
856
876
|
viewBox: "0 0 24 24",
|
|
857
877
|
path: "M20 12H4",
|
|
858
878
|
strokeLinecap: "round",
|
|
859
879
|
strokeLinejoin: "round"
|
|
860
880
|
};
|
|
861
|
-
s(
|
|
881
|
+
s($e);
|
|
862
882
|
//#endregion
|
|
863
883
|
//#region src/components/icon/icons/save.js
|
|
864
|
-
var
|
|
884
|
+
var et = {
|
|
865
885
|
name: "save",
|
|
866
886
|
viewBox: "0 0 24 24",
|
|
867
887
|
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",
|
|
868
888
|
strokeLinecap: "round",
|
|
869
889
|
strokeLinejoin: "round"
|
|
870
890
|
};
|
|
871
|
-
s(
|
|
891
|
+
s(et);
|
|
872
892
|
//#endregion
|
|
873
893
|
//#region src/components/icon/icons/save-alt.js
|
|
874
|
-
var
|
|
894
|
+
var tt = {
|
|
875
895
|
name: "save-alt",
|
|
876
896
|
viewBox: "0 0 24 24",
|
|
877
897
|
path: "M5 3h12l4 4v14H3V3h2zm2 0v6h10V3M7 21v-8h10v8",
|
|
878
898
|
strokeLinecap: "round",
|
|
879
899
|
strokeLinejoin: "round"
|
|
880
900
|
};
|
|
881
|
-
s(
|
|
901
|
+
s(tt);
|
|
882
902
|
//#endregion
|
|
883
903
|
//#region src/components/icon/icons/search.js
|
|
884
|
-
var
|
|
904
|
+
var nt = {
|
|
885
905
|
name: "search",
|
|
886
906
|
viewBox: "0 0 24 24",
|
|
887
907
|
path: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z",
|
|
888
908
|
strokeLinecap: "round",
|
|
889
909
|
strokeLinejoin: "round"
|
|
890
910
|
};
|
|
891
|
-
s(
|
|
911
|
+
s(nt);
|
|
892
912
|
//#endregion
|
|
893
913
|
//#region src/components/icon/icons/settings.js
|
|
894
|
-
var
|
|
914
|
+
var rt = {
|
|
895
915
|
name: "settings",
|
|
896
916
|
viewBox: "0 0 24 24",
|
|
897
917
|
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",
|
|
898
918
|
strokeLinecap: "round",
|
|
899
919
|
strokeLinejoin: "round"
|
|
900
920
|
};
|
|
901
|
-
s(
|
|
921
|
+
s(rt);
|
|
902
922
|
//#endregion
|
|
903
923
|
//#region src/components/icon/icons/share.js
|
|
904
|
-
var
|
|
924
|
+
var it = {
|
|
905
925
|
name: "share",
|
|
906
926
|
viewBox: "0 0 24 24",
|
|
907
927
|
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",
|
|
908
928
|
strokeLinecap: "round",
|
|
909
929
|
strokeLinejoin: "round"
|
|
910
930
|
};
|
|
911
|
-
s(
|
|
931
|
+
s(it);
|
|
912
932
|
//#endregion
|
|
913
933
|
//#region src/components/icon/icons/sort.js
|
|
914
|
-
var
|
|
934
|
+
var at = {
|
|
915
935
|
name: "sort",
|
|
916
936
|
viewBox: "0 0 24 24",
|
|
917
937
|
path: "M3 6h18M7 12h10m-7 6h4",
|
|
918
938
|
strokeLinecap: "round",
|
|
919
939
|
strokeLinejoin: "round"
|
|
920
940
|
};
|
|
921
|
-
s(
|
|
941
|
+
s(at);
|
|
922
942
|
//#endregion
|
|
923
943
|
//#region src/components/icon/icons/sort-arrows.js
|
|
924
|
-
var
|
|
944
|
+
var ot = {
|
|
925
945
|
name: "sort-arrows",
|
|
926
946
|
viewBox: "0 0 24 24",
|
|
927
947
|
path: "M1 5l5-4m0 0l5 4m-5-4v22 M13 19l5 4m0 0l5-4m-5 4V1",
|
|
928
948
|
strokeLinecap: "round",
|
|
929
949
|
strokeLinejoin: "round"
|
|
930
950
|
};
|
|
931
|
-
s(
|
|
951
|
+
s(ot);
|
|
932
952
|
//#endregion
|
|
933
953
|
//#region src/components/icon/icons/star.js
|
|
934
|
-
var
|
|
954
|
+
var st = {
|
|
935
955
|
name: "star",
|
|
936
956
|
viewBox: "0 0 24 24",
|
|
937
957
|
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",
|
|
938
958
|
strokeLinecap: "round",
|
|
939
959
|
strokeLinejoin: "round"
|
|
940
960
|
};
|
|
941
|
-
s(
|
|
961
|
+
s(st);
|
|
942
962
|
//#endregion
|
|
943
963
|
//#region src/components/icon/icons/success.js
|
|
944
|
-
var
|
|
964
|
+
var ct = {
|
|
945
965
|
name: "success",
|
|
946
966
|
viewBox: "0 0 24 24",
|
|
947
967
|
path: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z",
|
|
948
968
|
strokeLinecap: "round",
|
|
949
969
|
strokeLinejoin: "round"
|
|
950
970
|
};
|
|
951
|
-
s(
|
|
971
|
+
s(ct);
|
|
952
972
|
//#endregion
|
|
953
973
|
//#region src/components/icon/icons/sun.js
|
|
954
|
-
var
|
|
974
|
+
var lt = {
|
|
955
975
|
name: "sun",
|
|
956
976
|
viewBox: "0 0 24 24",
|
|
957
977
|
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",
|
|
958
978
|
strokeLinecap: "round",
|
|
959
979
|
strokeLinejoin: "round"
|
|
960
980
|
};
|
|
961
|
-
s(
|
|
981
|
+
s(lt);
|
|
962
982
|
//#endregion
|
|
963
983
|
//#region src/components/icon/icons/table.js
|
|
964
|
-
var
|
|
984
|
+
var ut = {
|
|
965
985
|
name: "table",
|
|
966
986
|
viewBox: "0 0 24 24",
|
|
967
987
|
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",
|
|
968
988
|
strokeLinecap: "round",
|
|
969
989
|
strokeLinejoin: "round"
|
|
970
990
|
};
|
|
971
|
-
s(
|
|
991
|
+
s(ut);
|
|
972
992
|
//#endregion
|
|
973
993
|
//#region src/components/icon/icons/tablet.js
|
|
974
|
-
var
|
|
994
|
+
var dt = {
|
|
975
995
|
name: "tablet",
|
|
976
996
|
viewBox: "0 0 24 24",
|
|
977
997
|
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",
|
|
978
998
|
strokeLinecap: "round",
|
|
979
999
|
strokeLinejoin: "round"
|
|
980
1000
|
};
|
|
981
|
-
s(
|
|
1001
|
+
s(dt);
|
|
982
1002
|
//#endregion
|
|
983
1003
|
//#region src/components/icon/icons/tag.js
|
|
984
|
-
var
|
|
1004
|
+
var ft = {
|
|
985
1005
|
name: "tag",
|
|
986
1006
|
viewBox: "0 0 24 24",
|
|
987
1007
|
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",
|
|
988
1008
|
strokeLinecap: "round",
|
|
989
1009
|
strokeLinejoin: "round"
|
|
990
1010
|
};
|
|
991
|
-
s(
|
|
1011
|
+
s(ft);
|
|
992
1012
|
//#endregion
|
|
993
1013
|
//#region src/components/icon/icons/trash.js
|
|
994
|
-
var
|
|
1014
|
+
var pt = {
|
|
995
1015
|
name: "trash",
|
|
996
1016
|
viewBox: "0 0 24 24",
|
|
997
1017
|
path: "M3 6h18m-2 0v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2",
|
|
998
1018
|
strokeLinecap: "round",
|
|
999
1019
|
strokeLinejoin: "round"
|
|
1000
1020
|
};
|
|
1001
|
-
s(
|
|
1021
|
+
s(pt);
|
|
1002
1022
|
//#endregion
|
|
1003
1023
|
//#region src/components/icon/icons/unlock.js
|
|
1004
|
-
var
|
|
1024
|
+
var mt = {
|
|
1005
1025
|
name: "unlock",
|
|
1006
1026
|
viewBox: "0 0 24 24",
|
|
1007
1027
|
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",
|
|
1008
1028
|
strokeLinecap: "round",
|
|
1009
1029
|
strokeLinejoin: "round"
|
|
1010
1030
|
};
|
|
1011
|
-
s(
|
|
1031
|
+
s(mt);
|
|
1012
1032
|
//#endregion
|
|
1013
1033
|
//#region src/components/icon/icons/upload.js
|
|
1014
|
-
var
|
|
1034
|
+
var ht = {
|
|
1015
1035
|
name: "upload",
|
|
1016
1036
|
viewBox: "0 0 24 24",
|
|
1017
1037
|
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",
|
|
1018
1038
|
strokeLinecap: "round",
|
|
1019
1039
|
strokeLinejoin: "round"
|
|
1020
1040
|
};
|
|
1021
|
-
s(
|
|
1041
|
+
s(ht);
|
|
1022
1042
|
//#endregion
|
|
1023
1043
|
//#region src/components/icon/icons/user.js
|
|
1024
|
-
var
|
|
1044
|
+
var gt = {
|
|
1025
1045
|
name: "user",
|
|
1026
1046
|
viewBox: "0 0 24 24",
|
|
1027
1047
|
path: "M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z",
|
|
1028
1048
|
strokeLinecap: "round",
|
|
1029
1049
|
strokeLinejoin: "round"
|
|
1030
1050
|
};
|
|
1031
|
-
s(
|
|
1051
|
+
s(gt);
|
|
1032
1052
|
//#endregion
|
|
1033
1053
|
//#region src/components/icon/icons/user-add.js
|
|
1034
|
-
var
|
|
1054
|
+
var _t = {
|
|
1035
1055
|
name: "user-add",
|
|
1036
1056
|
viewBox: "0 0 24 24",
|
|
1037
1057
|
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",
|
|
1038
1058
|
strokeLinecap: "round",
|
|
1039
1059
|
strokeLinejoin: "round"
|
|
1040
1060
|
};
|
|
1041
|
-
s(
|
|
1061
|
+
s(_t);
|
|
1042
1062
|
//#endregion
|
|
1043
1063
|
//#region src/components/icon/icons/users.js
|
|
1044
|
-
var
|
|
1064
|
+
var vt = {
|
|
1045
1065
|
name: "users",
|
|
1046
1066
|
viewBox: "0 0 24 24",
|
|
1047
1067
|
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",
|
|
1048
1068
|
strokeLinecap: "round",
|
|
1049
1069
|
strokeLinejoin: "round"
|
|
1050
1070
|
};
|
|
1051
|
-
s(
|
|
1071
|
+
s(vt);
|
|
1052
1072
|
//#endregion
|
|
1053
1073
|
//#region src/components/icon/icons/video.js
|
|
1054
|
-
var
|
|
1074
|
+
var yt = {
|
|
1055
1075
|
name: "video",
|
|
1056
1076
|
viewBox: "0 0 24 24",
|
|
1057
1077
|
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",
|
|
1058
1078
|
strokeLinecap: "round",
|
|
1059
1079
|
strokeLinejoin: "round"
|
|
1060
1080
|
};
|
|
1061
|
-
s(
|
|
1081
|
+
s(yt);
|
|
1062
1082
|
//#endregion
|
|
1063
1083
|
//#region src/components/icon/icons/warning.js
|
|
1064
|
-
var
|
|
1084
|
+
var bt = {
|
|
1065
1085
|
name: "warning",
|
|
1066
1086
|
viewBox: "0 0 24 24",
|
|
1067
1087
|
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",
|
|
1068
1088
|
strokeLinecap: "round",
|
|
1069
1089
|
strokeLinejoin: "round"
|
|
1070
1090
|
};
|
|
1071
|
-
s(
|
|
1091
|
+
s(bt);
|
|
1072
1092
|
//#endregion
|
|
1073
1093
|
//#region src/components/icon/icons/shopping-cart.js
|
|
1074
|
-
var
|
|
1094
|
+
var xt = {
|
|
1075
1095
|
name: "shopping-cart",
|
|
1076
1096
|
viewBox: "0 0 24 24",
|
|
1077
1097
|
path: "M3 4h2l2.2 11h10.9l2-7H6m3.2 7-.9 3h10.2M9 21h.01M17 21h.01",
|
|
@@ -1079,10 +1099,10 @@ var yt = {
|
|
|
1079
1099
|
strokeLinejoin: "round",
|
|
1080
1100
|
strokeWidth: "1.8"
|
|
1081
1101
|
};
|
|
1082
|
-
s(
|
|
1102
|
+
s(xt);
|
|
1083
1103
|
//#endregion
|
|
1084
1104
|
//#region src/components/icon/icons/package.js
|
|
1085
|
-
var
|
|
1105
|
+
var St = {
|
|
1086
1106
|
name: "package",
|
|
1087
1107
|
viewBox: "0 0 24 24",
|
|
1088
1108
|
path: "M3 7l9-4 9 4-9 4-9-4zm0 0v10l9 4 9-4V7M12 11v10M7.5 5l9 4",
|
|
@@ -1090,10 +1110,10 @@ var bt = {
|
|
|
1090
1110
|
strokeLinejoin: "round",
|
|
1091
1111
|
strokeWidth: "1.8"
|
|
1092
1112
|
};
|
|
1093
|
-
s(
|
|
1113
|
+
s(St);
|
|
1094
1114
|
//#endregion
|
|
1095
1115
|
//#region src/components/icon/icons/storefront.js
|
|
1096
|
-
var
|
|
1116
|
+
var Ct = {
|
|
1097
1117
|
name: "storefront",
|
|
1098
1118
|
viewBox: "0 0 24 24",
|
|
1099
1119
|
path: "M3 10l2-6h14l2 6M4 10v10h16V10M3 10a3 3 0 006 0 3 3 0 006 0 3 3 0 006 0M10 15v5m4-5v5",
|
|
@@ -1101,10 +1121,10 @@ var xt = {
|
|
|
1101
1121
|
strokeLinejoin: "round",
|
|
1102
1122
|
strokeWidth: "1.8"
|
|
1103
1123
|
};
|
|
1104
|
-
s(
|
|
1124
|
+
s(Ct);
|
|
1105
1125
|
//#endregion
|
|
1106
1126
|
//#region src/components/icon/icons/receipt.js
|
|
1107
|
-
var
|
|
1127
|
+
var wt = {
|
|
1108
1128
|
name: "receipt",
|
|
1109
1129
|
viewBox: "0 0 24 24",
|
|
1110
1130
|
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",
|
|
@@ -1112,10 +1132,10 @@ var St = {
|
|
|
1112
1132
|
strokeLinejoin: "round",
|
|
1113
1133
|
strokeWidth: "1.8"
|
|
1114
1134
|
};
|
|
1115
|
-
s(
|
|
1135
|
+
s(wt);
|
|
1116
1136
|
//#endregion
|
|
1117
1137
|
//#region src/components/icon/icons/coupon.js
|
|
1118
|
-
var
|
|
1138
|
+
var Tt = {
|
|
1119
1139
|
name: "coupon",
|
|
1120
1140
|
viewBox: "0 0 24 24",
|
|
1121
1141
|
path: "M4 5h16v4a3 3 0 000 6v4H4v-4a3 3 0 000-6V5zm8 1v2m0 2v2m0 2v2",
|
|
@@ -1123,10 +1143,10 @@ var Ct = {
|
|
|
1123
1143
|
strokeLinejoin: "round",
|
|
1124
1144
|
strokeWidth: "1.8"
|
|
1125
1145
|
};
|
|
1126
|
-
s(
|
|
1146
|
+
s(Tt);
|
|
1127
1147
|
//#endregion
|
|
1128
1148
|
//#region src/components/icon/icons/heart.js
|
|
1129
|
-
var
|
|
1149
|
+
var Et = {
|
|
1130
1150
|
name: "heart",
|
|
1131
1151
|
viewBox: "0 0 24 24",
|
|
1132
1152
|
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",
|
|
@@ -1134,10 +1154,10 @@ var wt = {
|
|
|
1134
1154
|
strokeLinejoin: "round",
|
|
1135
1155
|
strokeWidth: "1.8"
|
|
1136
1156
|
};
|
|
1137
|
-
s(
|
|
1157
|
+
s(Et);
|
|
1138
1158
|
//#endregion
|
|
1139
1159
|
//#region src/components/icon/icons/return.js
|
|
1140
|
-
var
|
|
1160
|
+
var Dt = {
|
|
1141
1161
|
name: "return",
|
|
1142
1162
|
viewBox: "0 0 24 24",
|
|
1143
1163
|
path: "M9 14l-5-5 5-5M4 9h10a6 6 0 010 12h-3",
|
|
@@ -1145,7 +1165,7 @@ var Tt = {
|
|
|
1145
1165
|
strokeLinejoin: "round",
|
|
1146
1166
|
strokeWidth: "1.8"
|
|
1147
1167
|
};
|
|
1148
|
-
s(
|
|
1168
|
+
s(Dt), s({
|
|
1149
1169
|
name: "undo",
|
|
1150
1170
|
viewBox: "0 0 24 24",
|
|
1151
1171
|
path: "M9 14 4 9l5-5M4 9h10a6 6 0 0 1 0 12h-2",
|
|
@@ -1160,7 +1180,7 @@ s(Tt), s({
|
|
|
1160
1180
|
});
|
|
1161
1181
|
//#endregion
|
|
1162
1182
|
//#region src/components/icon/icons/shirt.js
|
|
1163
|
-
var
|
|
1183
|
+
var Ot = {
|
|
1164
1184
|
name: "shirt",
|
|
1165
1185
|
viewBox: "0 0 24 24",
|
|
1166
1186
|
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",
|
|
@@ -1168,10 +1188,10 @@ var Et = {
|
|
|
1168
1188
|
strokeLinejoin: "round",
|
|
1169
1189
|
strokeWidth: "1.8"
|
|
1170
1190
|
};
|
|
1171
|
-
s(
|
|
1191
|
+
s(Ot);
|
|
1172
1192
|
//#endregion
|
|
1173
1193
|
//#region src/components/icon/icons/jacket.js
|
|
1174
|
-
var
|
|
1194
|
+
var kt = {
|
|
1175
1195
|
name: "jacket",
|
|
1176
1196
|
viewBox: "0 0 24 24",
|
|
1177
1197
|
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",
|
|
@@ -1179,10 +1199,10 @@ var Dt = {
|
|
|
1179
1199
|
strokeLinejoin: "round",
|
|
1180
1200
|
strokeWidth: "1.8"
|
|
1181
1201
|
};
|
|
1182
|
-
s(
|
|
1202
|
+
s(kt);
|
|
1183
1203
|
//#endregion
|
|
1184
1204
|
//#region src/components/icon/icons/dress.js
|
|
1185
|
-
var
|
|
1205
|
+
var At = {
|
|
1186
1206
|
name: "dress",
|
|
1187
1207
|
viewBox: "0 0 24 24",
|
|
1188
1208
|
path: "M9 4a3 3 0 006 0l2 2-2 4 5 10H4l5-10-2-4 2-2z M9 10h6",
|
|
@@ -1190,10 +1210,10 @@ var Ot = {
|
|
|
1190
1210
|
strokeLinejoin: "round",
|
|
1191
1211
|
strokeWidth: "1.8"
|
|
1192
1212
|
};
|
|
1193
|
-
s(
|
|
1213
|
+
s(At);
|
|
1194
1214
|
//#endregion
|
|
1195
1215
|
//#region src/components/icon/icons/shoe.js
|
|
1196
|
-
var
|
|
1216
|
+
var jt = {
|
|
1197
1217
|
name: "shoe",
|
|
1198
1218
|
viewBox: "0 0 24 24",
|
|
1199
1219
|
path: "M3 15l4-1 4-7 3 2-1 3 4 2 4 1v4H3v-4z M11 10l2 1 M9 12l2 1 M7 14l2 1",
|
|
@@ -1201,7 +1221,7 @@ var kt = {
|
|
|
1201
1221
|
strokeLinejoin: "round",
|
|
1202
1222
|
strokeWidth: "1.8"
|
|
1203
1223
|
};
|
|
1204
|
-
s(
|
|
1224
|
+
s(jt), s({
|
|
1205
1225
|
name: "grip-dots",
|
|
1206
1226
|
viewBox: "0 0 24 24",
|
|
1207
1227
|
path: "M12 12",
|
|
@@ -1209,7 +1229,7 @@ s(kt), s({
|
|
|
1209
1229
|
});
|
|
1210
1230
|
//#endregion
|
|
1211
1231
|
//#region src/components/icon/icons/wallet.js
|
|
1212
|
-
var
|
|
1232
|
+
var Mt = {
|
|
1213
1233
|
name: "wallet",
|
|
1214
1234
|
viewBox: "0 0 24 24",
|
|
1215
1235
|
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",
|
|
@@ -1217,10 +1237,10 @@ var At = {
|
|
|
1217
1237
|
strokeLinejoin: "round",
|
|
1218
1238
|
strokeWidth: "1.8"
|
|
1219
1239
|
};
|
|
1220
|
-
s(
|
|
1240
|
+
s(Mt);
|
|
1221
1241
|
//#endregion
|
|
1222
1242
|
//#region src/components/icon/icons/gift.js
|
|
1223
|
-
var
|
|
1243
|
+
var Nt = {
|
|
1224
1244
|
name: "gift",
|
|
1225
1245
|
viewBox: "0 0 24 24",
|
|
1226
1246
|
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",
|
|
@@ -1228,10 +1248,10 @@ var jt = {
|
|
|
1228
1248
|
strokeLinejoin: "round",
|
|
1229
1249
|
strokeWidth: "1.8"
|
|
1230
1250
|
};
|
|
1231
|
-
s(
|
|
1251
|
+
s(Nt);
|
|
1232
1252
|
//#endregion
|
|
1233
1253
|
//#region src/components/icon/icons/support.js
|
|
1234
|
-
var
|
|
1254
|
+
var Pt = {
|
|
1235
1255
|
name: "support",
|
|
1236
1256
|
viewBox: "0 0 24 24",
|
|
1237
1257
|
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",
|
|
@@ -1239,10 +1259,10 @@ var Mt = {
|
|
|
1239
1259
|
strokeLinejoin: "round",
|
|
1240
1260
|
strokeWidth: "1.8"
|
|
1241
1261
|
};
|
|
1242
|
-
s(
|
|
1262
|
+
s(Pt);
|
|
1243
1263
|
//#endregion
|
|
1244
1264
|
//#region src/components/icon/icons/shopping-bag.js
|
|
1245
|
-
var
|
|
1265
|
+
var Ft = {
|
|
1246
1266
|
name: "shopping-bag",
|
|
1247
1267
|
viewBox: "0 0 24 24",
|
|
1248
1268
|
path: "M5 8h14l1 13H4L5 8zm4 0V6a3 3 0 016 0v2",
|
|
@@ -1250,10 +1270,10 @@ var Nt = {
|
|
|
1250
1270
|
strokeLinejoin: "round",
|
|
1251
1271
|
strokeWidth: "1.8"
|
|
1252
1272
|
};
|
|
1253
|
-
s(
|
|
1273
|
+
s(Ft);
|
|
1254
1274
|
//#endregion
|
|
1255
1275
|
//#region src/components/icon/icons/warehouse.js
|
|
1256
|
-
var
|
|
1276
|
+
var It = {
|
|
1257
1277
|
name: "warehouse",
|
|
1258
1278
|
viewBox: "0 0 24 24",
|
|
1259
1279
|
path: "M3 10l9-6 9 6v10H3V10zm4 10v-7h10v7m-7-7v7m4-7v7",
|
|
@@ -1261,10 +1281,10 @@ var Pt = {
|
|
|
1261
1281
|
strokeLinejoin: "round",
|
|
1262
1282
|
strokeWidth: "1.8"
|
|
1263
1283
|
};
|
|
1264
|
-
s(
|
|
1284
|
+
s(It);
|
|
1265
1285
|
//#endregion
|
|
1266
1286
|
//#region src/components/icon/icons/delivery-location.js
|
|
1267
|
-
var
|
|
1287
|
+
var Lt = {
|
|
1268
1288
|
name: "delivery-location",
|
|
1269
1289
|
viewBox: "0 0 24 24",
|
|
1270
1290
|
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",
|
|
@@ -1272,10 +1292,10 @@ var Ft = {
|
|
|
1272
1292
|
strokeLinejoin: "round",
|
|
1273
1293
|
strokeWidth: "1.8"
|
|
1274
1294
|
};
|
|
1275
|
-
s(
|
|
1295
|
+
s(Lt);
|
|
1276
1296
|
//#endregion
|
|
1277
1297
|
//#region src/components/icon/icons/order-tracking.js
|
|
1278
|
-
var
|
|
1298
|
+
var Rt = {
|
|
1279
1299
|
name: "order-tracking",
|
|
1280
1300
|
viewBox: "0 0 24 24",
|
|
1281
1301
|
path: "M2.5 6.5H14v11H2.5v-11zm11.5 2.5h4l3.5 4v4.5H14V9zm-7 9a2 2 0 100 4 2 2 0 000-4zm9 0a2 2 0 100 4 2 2 0 000-4zM5 10h7m-7 3h5",
|
|
@@ -1284,10 +1304,10 @@ var It = {
|
|
|
1284
1304
|
strokeLinejoin: "round",
|
|
1285
1305
|
strokeWidth: "1.8"
|
|
1286
1306
|
};
|
|
1287
|
-
s(
|
|
1307
|
+
s(Rt);
|
|
1288
1308
|
//#endregion
|
|
1289
1309
|
//#region src/components/icon/icons/cash.js
|
|
1290
|
-
var
|
|
1310
|
+
var zt = {
|
|
1291
1311
|
name: "cash",
|
|
1292
1312
|
viewBox: "0 0 24 24",
|
|
1293
1313
|
path: "M3 6h18v12H3V6zm4 3h.01M17 9h.01M7 15h.01M17 15h.01M12 15a3 3 0 100-6 3 3 0 000 6z",
|
|
@@ -1295,10 +1315,10 @@ var Lt = {
|
|
|
1295
1315
|
strokeLinejoin: "round",
|
|
1296
1316
|
strokeWidth: "1.8"
|
|
1297
1317
|
};
|
|
1298
|
-
s(
|
|
1318
|
+
s(zt);
|
|
1299
1319
|
//#endregion
|
|
1300
1320
|
//#region src/components/icon/icons/installments.js
|
|
1301
|
-
var
|
|
1321
|
+
var Bt = {
|
|
1302
1322
|
name: "installments",
|
|
1303
1323
|
viewBox: "0 0 24 24",
|
|
1304
1324
|
path: "M4 4h16v16H4V4zm0 4h16m-12 4h2m4 0h2m-8 4h2m4 0h2",
|
|
@@ -1306,10 +1326,10 @@ var Rt = {
|
|
|
1306
1326
|
strokeLinejoin: "round",
|
|
1307
1327
|
strokeWidth: "1.8"
|
|
1308
1328
|
};
|
|
1309
|
-
s(
|
|
1329
|
+
s(Bt);
|
|
1310
1330
|
//#endregion
|
|
1311
1331
|
//#region src/components/icon/icons/invoice.js
|
|
1312
|
-
var
|
|
1332
|
+
var Vt = {
|
|
1313
1333
|
name: "invoice",
|
|
1314
1334
|
viewBox: "0 0 24 24",
|
|
1315
1335
|
path: "M6 3h12v18l-3-2-3 2-3-2-3 2V3zm3 5h6m-6 4h6m-6 4h3",
|
|
@@ -1317,10 +1337,10 @@ var zt = {
|
|
|
1317
1337
|
strokeLinejoin: "round",
|
|
1318
1338
|
strokeWidth: "1.8"
|
|
1319
1339
|
};
|
|
1320
|
-
s(
|
|
1340
|
+
s(Vt);
|
|
1321
1341
|
//#endregion
|
|
1322
1342
|
//#region src/components/icon/icons/price-label.js
|
|
1323
|
-
var
|
|
1343
|
+
var Ht = {
|
|
1324
1344
|
name: "price-label",
|
|
1325
1345
|
viewBox: "0 0 24 24",
|
|
1326
1346
|
path: "M3 5h10l8 8-8 8-10-10V5zm5 5h.01",
|
|
@@ -1328,10 +1348,10 @@ var Bt = {
|
|
|
1328
1348
|
strokeLinejoin: "round",
|
|
1329
1349
|
strokeWidth: "1.8"
|
|
1330
1350
|
};
|
|
1331
|
-
s(
|
|
1351
|
+
s(Ht);
|
|
1332
1352
|
//#endregion
|
|
1333
1353
|
//#region src/components/icon/icons/sale-burst.js
|
|
1334
|
-
var
|
|
1354
|
+
var Ut = {
|
|
1335
1355
|
name: "sale-burst",
|
|
1336
1356
|
viewBox: "0 0 24 24",
|
|
1337
1357
|
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",
|
|
@@ -1339,10 +1359,10 @@ var Vt = {
|
|
|
1339
1359
|
strokeLinejoin: "miter",
|
|
1340
1360
|
strokeWidth: "1.8"
|
|
1341
1361
|
};
|
|
1342
|
-
s(
|
|
1362
|
+
s(Ut);
|
|
1343
1363
|
//#endregion
|
|
1344
1364
|
//#region src/components/icon/icons/percent-discount.js
|
|
1345
|
-
var
|
|
1365
|
+
var Wt = {
|
|
1346
1366
|
name: "percent-discount",
|
|
1347
1367
|
viewBox: "0 0 24 24",
|
|
1348
1368
|
path: "M19 5L5 19M7 8a2 2 0 110-4 2 2 0 010 4zm10 12a2 2 0 110-4 2 2 0 010 4z",
|
|
@@ -1350,10 +1370,10 @@ var Ht = {
|
|
|
1350
1370
|
strokeLinejoin: "round",
|
|
1351
1371
|
strokeWidth: "1.8"
|
|
1352
1372
|
};
|
|
1353
|
-
s(
|
|
1373
|
+
s(Wt);
|
|
1354
1374
|
//#endregion
|
|
1355
1375
|
//#region src/components/icon/icons/product-review.js
|
|
1356
|
-
var
|
|
1376
|
+
var Gt = {
|
|
1357
1377
|
name: "product-review",
|
|
1358
1378
|
viewBox: "0 0 24 24",
|
|
1359
1379
|
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",
|
|
@@ -1361,17 +1381,17 @@ var Ut = {
|
|
|
1361
1381
|
strokeLinejoin: "round",
|
|
1362
1382
|
strokeWidth: "1.8"
|
|
1363
1383
|
};
|
|
1364
|
-
s(
|
|
1365
|
-
var
|
|
1384
|
+
s(Gt);
|
|
1385
|
+
var Kt = {
|
|
1366
1386
|
name: "products",
|
|
1367
1387
|
viewBox: "0 0 24 24",
|
|
1368
1388
|
path: "M8 7h3l7 7-9 9-7-7v-5a4 4 0 014-4z",
|
|
1369
1389
|
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>"
|
|
1370
1390
|
};
|
|
1371
|
-
s(
|
|
1391
|
+
s(Kt);
|
|
1372
1392
|
//#endregion
|
|
1373
1393
|
//#region src/components/icon/icons/loyalty-points.js
|
|
1374
|
-
var
|
|
1394
|
+
var qt = {
|
|
1375
1395
|
name: "loyalty-points",
|
|
1376
1396
|
viewBox: "0 0 24 24",
|
|
1377
1397
|
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",
|
|
@@ -1379,10 +1399,10 @@ var Gt = {
|
|
|
1379
1399
|
strokeLinejoin: "round",
|
|
1380
1400
|
strokeWidth: "1.8"
|
|
1381
1401
|
};
|
|
1382
|
-
s(
|
|
1402
|
+
s(qt);
|
|
1383
1403
|
//#endregion
|
|
1384
1404
|
//#region src/components/icon/icons/membership.js
|
|
1385
|
-
var
|
|
1405
|
+
var Jt = {
|
|
1386
1406
|
name: "membership",
|
|
1387
1407
|
viewBox: "0 0 24 24",
|
|
1388
1408
|
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",
|
|
@@ -1390,10 +1410,10 @@ var Kt = {
|
|
|
1390
1410
|
strokeLinejoin: "round",
|
|
1391
1411
|
strokeWidth: "1.8"
|
|
1392
1412
|
};
|
|
1393
|
-
s(
|
|
1413
|
+
s(Jt);
|
|
1394
1414
|
//#endregion
|
|
1395
1415
|
//#region src/components/icon/icons/inventory.js
|
|
1396
|
-
var
|
|
1416
|
+
var Yt = {
|
|
1397
1417
|
name: "inventory",
|
|
1398
1418
|
viewBox: "0 0 24 24",
|
|
1399
1419
|
path: "M8 4h8a2 2 0 012 2v1h2v14H4V7h2V6a2 2 0 012-2zm1 0V3h6v1M8 11h8m-8 4h8",
|
|
@@ -1401,10 +1421,10 @@ var qt = {
|
|
|
1401
1421
|
strokeLinejoin: "round",
|
|
1402
1422
|
strokeWidth: "1.8"
|
|
1403
1423
|
};
|
|
1404
|
-
s(
|
|
1424
|
+
s(Yt);
|
|
1405
1425
|
//#endregion
|
|
1406
1426
|
//#region src/components/icon/icons/out-of-stock.js
|
|
1407
|
-
var
|
|
1427
|
+
var Xt = {
|
|
1408
1428
|
name: "out-of-stock",
|
|
1409
1429
|
viewBox: "0 0 24 24",
|
|
1410
1430
|
path: "M4 5h16v14H4V5zm3 3l10 8m0-8L7 16m-3 5h16",
|
|
@@ -1412,10 +1432,10 @@ var Jt = {
|
|
|
1412
1432
|
strokeLinejoin: "round",
|
|
1413
1433
|
strokeWidth: "1.8"
|
|
1414
1434
|
};
|
|
1415
|
-
s(
|
|
1435
|
+
s(Xt);
|
|
1416
1436
|
//#endregion
|
|
1417
1437
|
//#region src/components/icon/icons/pickup.js
|
|
1418
|
-
var
|
|
1438
|
+
var Zt = {
|
|
1419
1439
|
name: "pickup",
|
|
1420
1440
|
viewBox: "0 0 24 24",
|
|
1421
1441
|
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",
|
|
@@ -1423,10 +1443,10 @@ var Yt = {
|
|
|
1423
1443
|
strokeLinejoin: "round",
|
|
1424
1444
|
strokeWidth: "1.8"
|
|
1425
1445
|
};
|
|
1426
|
-
s(
|
|
1446
|
+
s(Zt);
|
|
1427
1447
|
//#endregion
|
|
1428
1448
|
//#region src/components/icon/icons/secure-checkout.js
|
|
1429
|
-
var
|
|
1449
|
+
var Qt = {
|
|
1430
1450
|
name: "secure-checkout",
|
|
1431
1451
|
viewBox: "0 0 24 24",
|
|
1432
1452
|
path: "M12 3l7 3v5c0 5-3 8-7 10-4-2-7-5-7-10V6l7-3zm-3 9l2 2 4-4",
|
|
@@ -1434,10 +1454,10 @@ var Xt = {
|
|
|
1434
1454
|
strokeLinejoin: "round",
|
|
1435
1455
|
strokeWidth: "1.8"
|
|
1436
1456
|
};
|
|
1437
|
-
s(
|
|
1457
|
+
s(Qt);
|
|
1438
1458
|
//#endregion
|
|
1439
1459
|
//#region src/components/icon/icons/refund.js
|
|
1440
|
-
var
|
|
1460
|
+
var $t = {
|
|
1441
1461
|
name: "refund",
|
|
1442
1462
|
viewBox: "0 0 24 24",
|
|
1443
1463
|
path: "M14 5.5a6.5 6.5 0 110 13 6.5 6.5 0 010-13zm0 2.5v8m2-6.2c-.4-.8-1.1-1.2-2-1.2-1.2 0-2 .6-2 1.5 0 2 4 1 4 3s-.8 1.6-2 1.6c-.9 0-1.7-.4-2.1-1.2M6.5 7H3m0 0l2-2M3 7l2 2",
|
|
@@ -1445,10 +1465,10 @@ var Zt = {
|
|
|
1445
1465
|
strokeLinejoin: "round",
|
|
1446
1466
|
strokeWidth: "1.5"
|
|
1447
1467
|
};
|
|
1448
|
-
s(
|
|
1468
|
+
s($t), 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(O), s(k), s(A), s(j), s(ee), s(te), s(ne), s(re), s(ie), s(ae), 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);
|
|
1449
1469
|
//#endregion
|
|
1450
1470
|
//#region src/components/spinner/Spinner.js
|
|
1451
|
-
var
|
|
1471
|
+
var en = class extends HTMLElement {
|
|
1452
1472
|
static get observedAttributes() {
|
|
1453
1473
|
return [
|
|
1454
1474
|
"size",
|
|
@@ -1551,7 +1571,7 @@ var Qt = class extends HTMLElement {
|
|
|
1551
1571
|
`.trim();
|
|
1552
1572
|
}
|
|
1553
1573
|
};
|
|
1554
|
-
typeof customElements < "u" && !customElements.get("mint-spinner") && a("mint-spinner",
|
|
1574
|
+
typeof customElements < "u" && !customElements.get("mint-spinner") && a("mint-spinner", en);
|
|
1555
1575
|
//#endregion
|
|
1556
1576
|
//#region src/components/button/Button.ts
|
|
1557
1577
|
var M = class extends HTMLElement {
|
|
@@ -1572,12 +1592,12 @@ var M = class extends HTMLElement {
|
|
|
1572
1592
|
];
|
|
1573
1593
|
}
|
|
1574
1594
|
constructor() {
|
|
1575
|
-
super(), this._button = null, this._clickHandler = null, this._isHandlingClick = !1, this._hostChildObserver = null, this._hostRenderFromObserverRaf = null, this._handleMouseDown = () => {
|
|
1576
|
-
this._button && !this.isDisabled() && !this.isLoading() && this._button.classList.add("mint-button-active");
|
|
1595
|
+
super(), this._button = null, this._clickHandler = null, this._isHandlingClick = !1, this._mousePressed = !1, this._hostChildObserver = null, this._hostRenderFromObserverRaf = null, this._handleMouseDown = () => {
|
|
1596
|
+
this._button && !this.isDisabled() && !this.isLoading() && (this._button.classList.add("mint-button-active"), this._mousePressed || (this._mousePressed = !0, document.addEventListener("mouseup", this._handleMouseUp), window.addEventListener("blur", this._handleMouseCancel)));
|
|
1577
1597
|
}, this._handleMouseUp = () => {
|
|
1578
|
-
this.
|
|
1579
|
-
}, this.
|
|
1580
|
-
this.
|
|
1598
|
+
this._clearMousePressedState();
|
|
1599
|
+
}, this._handleMouseCancel = () => {
|
|
1600
|
+
this._clearMousePressedState();
|
|
1581
1601
|
}, this._handleTouchStart = () => {
|
|
1582
1602
|
this._button && !this.isDisabled() && !this.isLoading() && this._button.classList.add("mint-button-active");
|
|
1583
1603
|
}, this._handleTouchEnd = () => {
|
|
@@ -1596,7 +1616,7 @@ var M = class extends HTMLElement {
|
|
|
1596
1616
|
this.render(), this._button && this.setupEventListeners();
|
|
1597
1617
|
}
|
|
1598
1618
|
disconnectedCallback() {
|
|
1599
|
-
this._disconnectHostChildObserver(), this._hostRenderFromObserverRaf !== null && (cancelAnimationFrame(this._hostRenderFromObserverRaf), this._hostRenderFromObserverRaf = null), this.removeEventListeners();
|
|
1619
|
+
this._disconnectHostChildObserver(), this._hostRenderFromObserverRaf !== null && (cancelAnimationFrame(this._hostRenderFromObserverRaf), this._hostRenderFromObserverRaf = null), this.removeEventListeners(), this._clearMousePressedState();
|
|
1600
1620
|
}
|
|
1601
1621
|
attributeChangedCallback(e, t, n) {
|
|
1602
1622
|
t !== n && this.render();
|
|
@@ -1892,10 +1912,13 @@ var M = class extends HTMLElement {
|
|
|
1892
1912
|
}
|
|
1893
1913
|
}
|
|
1894
1914
|
setupEventListeners() {
|
|
1895
|
-
this._button && !this._clickHandler && (this._clickHandler = this.handleClick.bind(this), this._clickHandler && this._button.addEventListener("click", this._clickHandler, !0), this._button.addEventListener("mousedown", this._handleMouseDown), this._button.addEventListener("
|
|
1915
|
+
this._button && !this._clickHandler && (this._clickHandler = this.handleClick.bind(this), this._clickHandler && this._button.addEventListener("click", this._clickHandler, !0), this._button.addEventListener("mousedown", this._handleMouseDown), this._button.addEventListener("touchstart", this._handleTouchStart), this._button.addEventListener("touchend", this._handleTouchEnd), this._button.addEventListener("touchcancel", this._handleTouchCancel));
|
|
1896
1916
|
}
|
|
1897
1917
|
removeEventListeners() {
|
|
1898
|
-
this._button && (this._clickHandler &&= (this._button.removeEventListener("click", this._clickHandler, !0), null), this._button.removeEventListener("mousedown", this._handleMouseDown), this._button.removeEventListener("
|
|
1918
|
+
this._button && (this._clickHandler &&= (this._button.removeEventListener("click", this._clickHandler, !0), null), this._button.removeEventListener("mousedown", this._handleMouseDown), this._button.removeEventListener("touchstart", this._handleTouchStart), this._button.removeEventListener("touchend", this._handleTouchEnd), this._button.removeEventListener("touchcancel", this._handleTouchCancel));
|
|
1919
|
+
}
|
|
1920
|
+
_clearMousePressedState() {
|
|
1921
|
+
this._mousePressed && (this._mousePressed = !1, document.removeEventListener("mouseup", this._handleMouseUp), window.removeEventListener("blur", this._handleMouseCancel)), this._button && (this.isActive() || this._button.classList.remove("mint-button-active"));
|
|
1899
1922
|
}
|
|
1900
1923
|
handleClick(e) {
|
|
1901
1924
|
if (this.isDisabled() || this.isLoading()) {
|
|
@@ -1928,7 +1951,7 @@ var M = class extends HTMLElement {
|
|
|
1928
1951
|
customElements.get("mint-button") || a("mint-button", M);
|
|
1929
1952
|
//#endregion
|
|
1930
1953
|
//#region src/components/switch/Switch.js
|
|
1931
|
-
var
|
|
1954
|
+
var tn = class extends HTMLElement {
|
|
1932
1955
|
static get observedAttributes() {
|
|
1933
1956
|
return [
|
|
1934
1957
|
"checked",
|
|
@@ -2109,10 +2132,10 @@ var $t = class extends HTMLElement {
|
|
|
2109
2132
|
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");
|
|
2110
2133
|
}
|
|
2111
2134
|
};
|
|
2112
|
-
customElements.get("mint-switch") || a("mint-switch",
|
|
2135
|
+
customElements.get("mint-switch") || a("mint-switch", tn);
|
|
2113
2136
|
//#endregion
|
|
2114
2137
|
//#region src/components/text/Text.js
|
|
2115
|
-
var
|
|
2138
|
+
var nn = class extends HTMLElement {
|
|
2116
2139
|
static get observedAttributes() {
|
|
2117
2140
|
return [
|
|
2118
2141
|
"variant",
|
|
@@ -2174,10 +2197,10 @@ var en = class extends HTMLElement {
|
|
|
2174
2197
|
}
|
|
2175
2198
|
render() {}
|
|
2176
2199
|
};
|
|
2177
|
-
typeof customElements < "u" && !customElements.get("mint-text") && a("mint-text",
|
|
2200
|
+
typeof customElements < "u" && !customElements.get("mint-text") && a("mint-text", nn);
|
|
2178
2201
|
//#endregion
|
|
2179
2202
|
//#region src/components/stack/Stack.js
|
|
2180
|
-
var
|
|
2203
|
+
var rn = class extends HTMLElement {
|
|
2181
2204
|
static get observedAttributes() {
|
|
2182
2205
|
return [
|
|
2183
2206
|
"direction",
|
|
@@ -2225,10 +2248,10 @@ var tn = class extends HTMLElement {
|
|
|
2225
2248
|
}[t] : "flex-start"), this.style.setProperty("--mint-stack-text-align", n || "initial");
|
|
2226
2249
|
}
|
|
2227
2250
|
};
|
|
2228
|
-
typeof customElements < "u" && !customElements.get("mint-stack") && a("mint-stack",
|
|
2251
|
+
typeof customElements < "u" && !customElements.get("mint-stack") && a("mint-stack", rn);
|
|
2229
2252
|
//#endregion
|
|
2230
2253
|
//#region src/components/card/Card.js
|
|
2231
|
-
var
|
|
2254
|
+
var an = class extends HTMLElement {
|
|
2232
2255
|
static get observedAttributes() {
|
|
2233
2256
|
return ["heading", "flush"];
|
|
2234
2257
|
}
|
|
@@ -2258,10 +2281,10 @@ var nn = class extends HTMLElement {
|
|
|
2258
2281
|
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);
|
|
2259
2282
|
}
|
|
2260
2283
|
};
|
|
2261
|
-
typeof customElements < "u" && !customElements.get("mint-card") && a("mint-card",
|
|
2284
|
+
typeof customElements < "u" && !customElements.get("mint-card") && a("mint-card", an);
|
|
2262
2285
|
//#endregion
|
|
2263
2286
|
//#region src/components/link/Link.js
|
|
2264
|
-
var
|
|
2287
|
+
var on = class extends HTMLElement {
|
|
2265
2288
|
static get observedAttributes() {
|
|
2266
2289
|
return ["href", "target"];
|
|
2267
2290
|
}
|
|
@@ -2284,20 +2307,236 @@ var rn = class extends HTMLElement {
|
|
|
2284
2307
|
return !!this.querySelector("mint-icon") || !!this._link?.querySelector("mint-icon");
|
|
2285
2308
|
}
|
|
2286
2309
|
render() {
|
|
2287
|
-
let e = this.getHref(), t = this.getTarget();
|
|
2288
|
-
if (!this._link) {
|
|
2289
|
-
for (this._link = document.createElement("a"); this.firstChild;) this._link.appendChild(this.firstChild);
|
|
2290
|
-
this.appendChild(this._link);
|
|
2291
|
-
}
|
|
2292
|
-
this._link.href = e, t ? (this._link.target = t, t === "_blank" && (this._link.rel = "noopener noreferrer")) : (this._link.removeAttribute("target"), this._link.removeAttribute("rel"));
|
|
2293
|
-
let n = ["mint-link-anchor", this.hasIcon() ? "mint-link-with-icon" : ""];
|
|
2294
|
-
this._link.className = n.filter(Boolean).join(" ");
|
|
2310
|
+
let e = this.getHref(), t = this.getTarget();
|
|
2311
|
+
if (!this._link) {
|
|
2312
|
+
for (this._link = document.createElement("a"); this.firstChild;) this._link.appendChild(this.firstChild);
|
|
2313
|
+
this.appendChild(this._link);
|
|
2314
|
+
}
|
|
2315
|
+
this._link.href = e, t ? (this._link.target = t, t === "_blank" && (this._link.rel = "noopener noreferrer")) : (this._link.removeAttribute("target"), this._link.removeAttribute("rel"));
|
|
2316
|
+
let n = ["mint-link-anchor", this.hasIcon() ? "mint-link-with-icon" : ""];
|
|
2317
|
+
this._link.className = n.filter(Boolean).join(" ");
|
|
2318
|
+
}
|
|
2319
|
+
};
|
|
2320
|
+
typeof customElements < "u" && !customElements.get("mint-link") && a("mint-link", on), s({
|
|
2321
|
+
name: "arrow-left",
|
|
2322
|
+
viewBox: "0 0 24 24",
|
|
2323
|
+
path: "M19 12H5m7-7l-7 7 7 7",
|
|
2324
|
+
strokeLinecap: "round",
|
|
2325
|
+
strokeLinejoin: "round"
|
|
2326
|
+
});
|
|
2327
|
+
//#endregion
|
|
2328
|
+
//#region src/components/button/Button.js
|
|
2329
|
+
var sn = class extends HTMLElement {
|
|
2330
|
+
static get observedAttributes() {
|
|
2331
|
+
return [
|
|
2332
|
+
"variant",
|
|
2333
|
+
"tone",
|
|
2334
|
+
"disabled",
|
|
2335
|
+
"loading",
|
|
2336
|
+
"button-type",
|
|
2337
|
+
"type",
|
|
2338
|
+
"full-width",
|
|
2339
|
+
"icon-position",
|
|
2340
|
+
"icon"
|
|
2341
|
+
];
|
|
2342
|
+
}
|
|
2343
|
+
constructor() {
|
|
2344
|
+
super(), this._button = null, this._clickHandler = null, this._isHandlingClick = !1;
|
|
2345
|
+
}
|
|
2346
|
+
connectedCallback() {
|
|
2347
|
+
this.render(), this._button && this.setupEventListeners();
|
|
2348
|
+
}
|
|
2349
|
+
disconnectedCallback() {
|
|
2350
|
+
this.removeEventListeners();
|
|
2351
|
+
}
|
|
2352
|
+
attributeChangedCallback(e, t, n) {
|
|
2353
|
+
t !== n && this.render();
|
|
2354
|
+
}
|
|
2355
|
+
getVariant() {
|
|
2356
|
+
return this.getAttribute("variant") || "solid";
|
|
2357
|
+
}
|
|
2358
|
+
getTone() {
|
|
2359
|
+
return this.getAttribute("tone") || "neutral";
|
|
2360
|
+
}
|
|
2361
|
+
isDisabled() {
|
|
2362
|
+
return this.hasAttribute("disabled");
|
|
2363
|
+
}
|
|
2364
|
+
isLoading() {
|
|
2365
|
+
return this.hasAttribute("loading");
|
|
2366
|
+
}
|
|
2367
|
+
getType() {
|
|
2368
|
+
return (this.getAttribute("type") || this.getAttribute("button-type") || "default") === "submit" ? "submit" : "button";
|
|
2369
|
+
}
|
|
2370
|
+
isFullWidth() {
|
|
2371
|
+
return this.hasAttribute("full-width");
|
|
2372
|
+
}
|
|
2373
|
+
getIconPosition() {
|
|
2374
|
+
return this.getAttribute("icon-position") || "left";
|
|
2375
|
+
}
|
|
2376
|
+
getIcon() {
|
|
2377
|
+
return this.getAttribute("icon") || "";
|
|
2378
|
+
}
|
|
2379
|
+
isIconOnly() {
|
|
2380
|
+
if (!(this.getIcon() || this._button?.querySelector("[slot=\"icon\"], .mint-button-icon, mint-icon"))) return !1;
|
|
2381
|
+
let e = this._button?.querySelector(".mint-button-content");
|
|
2382
|
+
if (e && e.textContent.trim()) return !1;
|
|
2383
|
+
if (this._button) {
|
|
2384
|
+
for (let e = this._button.firstChild; e; e = e.nextSibling) if (e.nodeType === Node.TEXT_NODE && e.textContent.trim() || e.nodeType === Node.ELEMENT_NODE && e.tagName !== "MINT-ICON" && e.tagName !== "MINT-SPINNER" && !e.querySelector?.("mint-spinner") && !e.hasAttribute?.("slot") && e.className !== "mint-button-icon" && !(e.className === "mr-2" && e.querySelector("mint-spinner")) && e.textContent.trim()) return !1;
|
|
2385
|
+
}
|
|
2386
|
+
return !0;
|
|
2387
|
+
}
|
|
2388
|
+
getButtonClasses() {
|
|
2389
|
+
return [
|
|
2390
|
+
"mint-button-core",
|
|
2391
|
+
"mint-button-" + this.getVariant(),
|
|
2392
|
+
"mint-button-tone-" + this.getTone(),
|
|
2393
|
+
this.isIconOnly() ? "mint-button-icon-only" : "",
|
|
2394
|
+
this.isFullWidth() ? "mint-button-full-width" : ""
|
|
2395
|
+
].filter(Boolean).join(" ");
|
|
2396
|
+
}
|
|
2397
|
+
render() {
|
|
2398
|
+
let e = this.isDisabled() || this.isLoading(), t = this.getType();
|
|
2399
|
+
if (!this._button) {
|
|
2400
|
+
for (this._button = document.createElement("button"); this.firstChild;) this._button.appendChild(this.firstChild);
|
|
2401
|
+
this.appendChild(this._button), this.setupEventListeners();
|
|
2402
|
+
}
|
|
2403
|
+
this._button.type = t, this._button.disabled = e;
|
|
2404
|
+
let n = this._button.querySelector("mint-spinner");
|
|
2405
|
+
if (this.isLoading()) if (n) n.setAttribute("data-button-variant", this.getVariant()), n.setAttribute("data-button-tone", this.getTone()), n.render();
|
|
2406
|
+
else {
|
|
2407
|
+
let e = document.createElement("span");
|
|
2408
|
+
e.className = "mint-spinner-wrap";
|
|
2409
|
+
let t = document.createElement("mint-spinner");
|
|
2410
|
+
t.setAttribute("size", "default"), t.setAttribute("data-button-variant", this.getVariant()), t.setAttribute("data-button-tone", this.getTone()), t.style.width = "0.875rem", t.style.height = "0.875rem", e.appendChild(t), this._button.insertBefore(e, this._button.firstChild);
|
|
2411
|
+
}
|
|
2412
|
+
else n && n.parentElement?.remove();
|
|
2413
|
+
for (; this.firstChild && this.firstChild !== this._button;) this._button.appendChild(this.firstChild);
|
|
2414
|
+
let r = this.getIcon(), i = this._button.querySelector("[slot=\"icon\"], .mint-button-icon, mint-icon");
|
|
2415
|
+
r ? (i && i.tagName !== "MINT-ICON" && (i.remove(), i = null), !i || i.tagName !== "MINT-ICON" ? (i = document.createElement("mint-icon"), i.setAttribute("name", r), i.className = "mint-button-icon") : i.setAttribute("name", r)) : i && i.tagName === "MINT-ICON" && (i.remove(), i = null), i ||= this._button.querySelector("[slot=\"icon\"], .mint-button-icon");
|
|
2416
|
+
let a = this.getIconPosition(), o = this._button.querySelector(".mint-button-content");
|
|
2417
|
+
if (o) {
|
|
2418
|
+
let e = i && i.tagName === "MINT-ICON";
|
|
2419
|
+
if (i && !i.parentElement) {
|
|
2420
|
+
let t = this._button.querySelector("mint-spinner")?.parentElement;
|
|
2421
|
+
e || a === "left" ? t ? t.insertAdjacentElement("afterend", i) : this._button.insertBefore(i, o) : o.insertAdjacentElement("afterend", i);
|
|
2422
|
+
} else if (i && (e || a === "left") && i.nextSibling !== o) {
|
|
2423
|
+
i.remove();
|
|
2424
|
+
let e = this._button.querySelector("mint-spinner")?.parentElement;
|
|
2425
|
+
e ? e.insertAdjacentElement("afterend", i) : this._button.insertBefore(i, o);
|
|
2426
|
+
} else i && !e && a === "right" && i.previousSibling !== o && (i.remove(), o.insertAdjacentElement("afterend", i));
|
|
2427
|
+
} else {
|
|
2428
|
+
let e = [];
|
|
2429
|
+
for (let t = this._button.firstChild; t; t = t.nextSibling) t.tagName !== "MINT-SPINNER" && !t.querySelector?.("mint-spinner") && t !== i && !t.hasAttribute?.("slot") && !(t.className === "mr-2" && t.querySelector("mint-spinner")) && e.push(t);
|
|
2430
|
+
if (e.length > 0) {
|
|
2431
|
+
o = document.createElement("span"), o.className = "mint-button-content", e.forEach((e) => {
|
|
2432
|
+
o.appendChild(e);
|
|
2433
|
+
});
|
|
2434
|
+
let t = this._button.querySelector("mint-spinner")?.parentElement;
|
|
2435
|
+
i && a === "left" ? t ? (t.insertAdjacentElement("afterend", i), i.insertAdjacentElement("afterend", o)) : (this._button.insertBefore(i, this._button.firstChild), i.insertAdjacentElement("afterend", o)) : i && a === "right" ? t ? (t.insertAdjacentElement("afterend", o), o.insertAdjacentElement("afterend", i)) : (this._button.insertBefore(o, this._button.firstChild), o.insertAdjacentElement("afterend", i)) : t ? t.insertAdjacentElement("afterend", o) : this._button.insertBefore(o, this._button.firstChild);
|
|
2436
|
+
} else if (i && i.tagName === "MINT-ICON" && !i.parentElement) {
|
|
2437
|
+
let e = this._button.querySelector("mint-spinner")?.parentElement;
|
|
2438
|
+
e ? e.insertAdjacentElement("afterend", i) : this._button.insertBefore(i, this._button.firstChild);
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
let s = this.isIconOnly();
|
|
2442
|
+
i && (i.classList.contains("mint-button-icon") || i.classList.add("mint-button-icon"), i.classList.remove("mint-icon-leading", "mint-icon-trailing"), s ? i.tagName === "MINT-ICON" ? (i.style.width = "1rem", i.style.height = "1rem", i.style.maxWidth = "1rem", i.style.maxHeight = "1rem", i.style.flexShrink = "0") : (i.style.maxWidth = "1rem", i.style.maxHeight = "1rem", i.style.flexShrink = "0", i.tagName === "svg" && (i.style.width = "1rem", i.style.height = "1rem")) : a === "left" ? i.classList.add("mint-icon-leading") : i.classList.add("mint-icon-trailing"));
|
|
2443
|
+
let c = this.getButtonClasses();
|
|
2444
|
+
this._button.className = c;
|
|
2445
|
+
}
|
|
2446
|
+
setupEventListeners() {
|
|
2447
|
+
this._button && !this._clickHandler && (this._clickHandler = this.handleClick.bind(this), this._button.addEventListener("click", this._clickHandler, !0), this._button.addEventListener("mousedown", this._handleMouseDown), this._button.addEventListener("mouseup", this._handleMouseUp), this._button.addEventListener("mouseleave", this._handleMouseLeave), this._button.addEventListener("touchstart", this._handleTouchStart), this._button.addEventListener("touchend", this._handleTouchEnd), this._button.addEventListener("touchcancel", this._handleTouchCancel));
|
|
2448
|
+
}
|
|
2449
|
+
removeEventListeners() {
|
|
2450
|
+
this._button && (this._clickHandler &&= (this._button.removeEventListener("click", this._clickHandler, !0), null), this._button.removeEventListener("mousedown", this._handleMouseDown), this._button.removeEventListener("mouseup", this._handleMouseUp), this._button.removeEventListener("mouseleave", this._handleMouseLeave), this._button.removeEventListener("touchstart", this._handleTouchStart), this._button.removeEventListener("touchend", this._handleTouchEnd), this._button.removeEventListener("touchcancel", this._handleTouchCancel));
|
|
2451
|
+
}
|
|
2452
|
+
_handleMouseDown = () => {
|
|
2453
|
+
this._button && !this.isDisabled() && !this.isLoading() && this._button.classList.add("mint-button-active");
|
|
2454
|
+
};
|
|
2455
|
+
_handleMouseUp = () => {
|
|
2456
|
+
this._button && this._button.classList.remove("mint-button-active");
|
|
2457
|
+
};
|
|
2458
|
+
_handleMouseLeave = () => {
|
|
2459
|
+
this._button && this._button.classList.remove("mint-button-active");
|
|
2460
|
+
};
|
|
2461
|
+
_handleTouchStart = () => {
|
|
2462
|
+
this._button && !this.isDisabled() && !this.isLoading() && this._button.classList.add("mint-button-active");
|
|
2463
|
+
};
|
|
2464
|
+
_handleTouchEnd = () => {
|
|
2465
|
+
this._button && this._button.classList.remove("mint-button-active");
|
|
2466
|
+
};
|
|
2467
|
+
_handleTouchCancel = () => {
|
|
2468
|
+
this._button && this._button.classList.remove("mint-button-active");
|
|
2469
|
+
};
|
|
2470
|
+
handleClick(e) {
|
|
2471
|
+
if (this.isDisabled() || this.isLoading()) {
|
|
2472
|
+
e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation();
|
|
2473
|
+
return;
|
|
2474
|
+
}
|
|
2475
|
+
if (e.stopPropagation(), e.stopImmediatePropagation(), this._isHandlingClick) {
|
|
2476
|
+
e.preventDefault();
|
|
2477
|
+
return;
|
|
2478
|
+
}
|
|
2479
|
+
this._isHandlingClick = !0, e.preventDefault(), this.dispatchEvent(new CustomEvent("click", {
|
|
2480
|
+
detail: { originalEvent: e },
|
|
2481
|
+
bubbles: !0,
|
|
2482
|
+
cancelable: !0,
|
|
2483
|
+
composed: !0
|
|
2484
|
+
})), requestAnimationFrame(() => {
|
|
2485
|
+
this._isHandlingClick = !1;
|
|
2486
|
+
});
|
|
2487
|
+
}
|
|
2488
|
+
};
|
|
2489
|
+
typeof customElements < "u" && !customElements.get("mint-button") && a("mint-button", sn);
|
|
2490
|
+
//#endregion
|
|
2491
|
+
//#region src/components/back-button/BackButton.js
|
|
2492
|
+
var cn = class extends HTMLElement {
|
|
2493
|
+
static get observedAttributes() {
|
|
2494
|
+
return ["href", "fallback-href"];
|
|
2495
|
+
}
|
|
2496
|
+
constructor() {
|
|
2497
|
+
super(), this._historyDepth = 0, this._maxBackAttempts = 10, this._backAttempts = 0;
|
|
2498
|
+
}
|
|
2499
|
+
connectedCallback() {
|
|
2500
|
+
this.render(), this._setupHistoryTracking();
|
|
2501
|
+
}
|
|
2502
|
+
attributeChangedCallback(e, t, n) {
|
|
2503
|
+
t !== n && this.render();
|
|
2504
|
+
}
|
|
2505
|
+
_setupHistoryTracking() {
|
|
2506
|
+
window.addEventListener("popstate", () => {
|
|
2507
|
+
this._backAttempts = 0;
|
|
2508
|
+
}), this._historyDepth = window.history.length;
|
|
2509
|
+
}
|
|
2510
|
+
getFallbackHref() {
|
|
2511
|
+
return this.getAttribute("fallback-href") || this.getAttribute("href") || "/";
|
|
2512
|
+
}
|
|
2513
|
+
handleClick(e) {
|
|
2514
|
+
if (e.preventDefault(), e.stopPropagation(), window.history.length > 1 && this._backAttempts < this._maxBackAttempts && this._backAttempts === 0) {
|
|
2515
|
+
this._backAttempts++;
|
|
2516
|
+
let e = window.location.href, t = Date.now();
|
|
2517
|
+
window.history.back(), setTimeout(() => {
|
|
2518
|
+
Date.now() - t, window.location.href === e ? this._navigateToFallback() : setTimeout(() => {
|
|
2519
|
+
this._backAttempts = 0;
|
|
2520
|
+
}, 500);
|
|
2521
|
+
}, 200);
|
|
2522
|
+
} else this._navigateToFallback();
|
|
2523
|
+
}
|
|
2524
|
+
_navigateToFallback() {
|
|
2525
|
+
let e = this.getFallbackHref();
|
|
2526
|
+
if (this._backAttempts = 0, e.startsWith("/") && !e.startsWith("//")) try {
|
|
2527
|
+
window.history.pushState({}, "", e), window.dispatchEvent(new PopStateEvent("popstate"));
|
|
2528
|
+
return;
|
|
2529
|
+
} catch {}
|
|
2530
|
+
window.location.href = e;
|
|
2531
|
+
}
|
|
2532
|
+
render() {
|
|
2533
|
+
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));
|
|
2295
2534
|
}
|
|
2296
2535
|
};
|
|
2297
|
-
typeof customElements < "u" && !customElements.get("mint-
|
|
2536
|
+
typeof customElements < "u" && !customElements.get("mint-back-button") && a("mint-back-button", cn);
|
|
2298
2537
|
//#endregion
|
|
2299
2538
|
//#region src/components/page/Page.js
|
|
2300
|
-
var
|
|
2539
|
+
var ln = class extends HTMLElement {
|
|
2301
2540
|
static get observedAttributes() {
|
|
2302
2541
|
return [
|
|
2303
2542
|
"heading",
|
|
@@ -2307,7 +2546,7 @@ var an = class extends HTMLElement {
|
|
|
2307
2546
|
];
|
|
2308
2547
|
}
|
|
2309
2548
|
constructor() {
|
|
2310
|
-
super(), this._root = this.attachShadow({ mode: "open" }), this._root.innerHTML = "\n <div part=\"container\" class=\"mint-page-container\">\n <header part=\"header\" class=\"mint-page-header\">\n <div part=\"title\" class=\"mint-page-title\">\n <button part=\"back-button\" class=\"mint-page-back\"
|
|
2549
|
+
super(), this._root = this.attachShadow({ mode: "open" }), this._root.innerHTML = "\n <style>\n /* The built-in back button lives inside this component's shadow root,\n so document-level button.css cannot reach its light-DOM button. */\n .mint-page-back mint-button { display: inline-block; vertical-align: middle; }\n .mint-page-back mint-button .mint-button-core {\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 2.25rem;\n height: 2.25rem;\n min-width: 2.25rem;\n min-height: 2.25rem;\n padding: .375rem;\n border: 2px solid var(--mint-color-border, #dfe6e0);\n border-top-color: color-mix(in srgb, var(--mint-color-border-strong, #b9c5bc) 72%, white);\n border-left-color: color-mix(in srgb, var(--mint-color-border-strong, #b9c5bc) 72%, white);\n border-right-color: var(--mint-color-border, #dfe6e0);\n border-bottom-color: var(--mint-color-border, #dfe6e0);\n border-radius: .5rem;\n background: var(--mint-color-surface, #fff);\n color: var(--mint-color-text, #28372d);\n font: inherit;\n box-shadow: 0 1px 2px rgb(21 36 26 / 8%);\n cursor: pointer;\n transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease, filter .12s ease;\n }\n .mint-page-back mint-button .mint-button-core:hover:not(:disabled) { filter: brightness(.98); }\n .mint-page-back mint-button .mint-button-core:active:not(:disabled) {\n border-color: var(--mint-color-border, #dfe6e0);\n box-shadow: inset 0 2px 4px rgb(16 32 21 / 26%), inset 0 1px 2px rgb(6 25 15 / 14%);\n filter: brightness(.97);\n }\n .mint-page-back mint-button .mint-button-core:focus-visible {\n outline: 3px solid var(--mint-color-focus, #6eaa86);\n outline-offset: 2px;\n }\n </style>\n <div part=\"container\" class=\"mint-page-container\">\n <header part=\"header\" class=\"mint-page-header\">\n <div part=\"title\" class=\"mint-page-title\">\n <mint-back-button part=\"back-button\" class=\"mint-page-back\" aria-label=\"Go back\" hidden></mint-back-button>\n <h1 part=\"heading\" class=\"mint-page-heading\"></h1>\n </div>\n <div part=\"actions\" class=\"mint-page-actions\"><slot name=\"actions\"></slot></div>\n </header>\n <main part=\"body\" class=\"mint-page-body\"><slot></slot></main>\n </div>\n ", this._headingElement = this._root.querySelector(".mint-page-heading"), this._backButton = this._root.querySelector(".mint-page-back"), this._backButton.addEventListener("click", (e) => this._handleBack(e), !0);
|
|
2311
2550
|
}
|
|
2312
2551
|
connectedCallback() {
|
|
2313
2552
|
this.render();
|
|
@@ -2328,10 +2567,10 @@ var an = class extends HTMLElement {
|
|
|
2328
2567
|
return this.hasAttribute("containered") && this.getAttribute("containered") !== "false";
|
|
2329
2568
|
}
|
|
2330
2569
|
render() {
|
|
2331
|
-
this._headingElement.textContent = this.getHeading(), this._backButton.hidden = !this.shouldShowBackButton();
|
|
2570
|
+
this._headingElement.textContent = this.getHeading(), this._backButton.setAttribute("fallback-href", this.getFallbackHref()), this._backButton.hidden = !this.shouldShowBackButton();
|
|
2332
2571
|
}
|
|
2333
2572
|
_handleBack(e) {
|
|
2334
|
-
e.preventDefault();
|
|
2573
|
+
e.preventDefault(), e.stopPropagation();
|
|
2335
2574
|
let t = document.referrer, n = !!(t && (() => {
|
|
2336
2575
|
try {
|
|
2337
2576
|
return new URL(t).origin === window.location.origin;
|
|
@@ -2352,19 +2591,19 @@ var an = class extends HTMLElement {
|
|
|
2352
2591
|
this.dispatchEvent(i) && (n && window.history.length > 1 ? window.history.back() : window.location.href = this.getFallbackHref());
|
|
2353
2592
|
}
|
|
2354
2593
|
};
|
|
2355
|
-
typeof customElements < "u" && !customElements.get("mint-page") && a("mint-page",
|
|
2594
|
+
typeof customElements < "u" && !customElements.get("mint-page") && a("mint-page", ln);
|
|
2356
2595
|
//#endregion
|
|
2357
2596
|
//#region src/components/grid/Grid.js
|
|
2358
|
-
var
|
|
2597
|
+
var un = class extends HTMLElement {
|
|
2359
2598
|
constructor() {
|
|
2360
2599
|
super();
|
|
2361
2600
|
}
|
|
2362
2601
|
};
|
|
2363
|
-
typeof customElements < "u" && !customElements.get("mint-grid") && a("mint-grid",
|
|
2602
|
+
typeof customElements < "u" && !customElements.get("mint-grid") && a("mint-grid", un);
|
|
2364
2603
|
//#endregion
|
|
2365
2604
|
//#region src/components/modal/Modal.js
|
|
2366
2605
|
var N = /* @__PURE__ */ new Set(), P = null;
|
|
2367
|
-
function
|
|
2606
|
+
function dn(e) {
|
|
2368
2607
|
if (!N.has(e)) {
|
|
2369
2608
|
if (N.size === 0) {
|
|
2370
2609
|
let e = document.documentElement;
|
|
@@ -2388,7 +2627,7 @@ function F(e) {
|
|
|
2388
2627
|
behavior: "instant"
|
|
2389
2628
|
});
|
|
2390
2629
|
}
|
|
2391
|
-
var
|
|
2630
|
+
var fn = class extends HTMLElement {
|
|
2392
2631
|
static get observedAttributes() {
|
|
2393
2632
|
return [
|
|
2394
2633
|
"id",
|
|
@@ -2434,7 +2673,7 @@ var cn = class extends HTMLElement {
|
|
|
2434
2673
|
let e = this.getId(), t = this.getHeading(), n = this.isOpen();
|
|
2435
2674
|
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) {
|
|
2436
2675
|
let e = this._modal.querySelector(".modal-content");
|
|
2437
|
-
e || (e = document.createElement("div"), e.className = "modal-content", this._modal.appendChild(e)), this._renderedOpen || (this._renderedOpen = !0,
|
|
2676
|
+
e || (e = document.createElement("div"), e.className = "modal-content", this._modal.appendChild(e)), this._renderedOpen || (this._renderedOpen = !0, dn(this), this._animateEnter());
|
|
2438
2677
|
} else this._renderedOpen && (this._renderedOpen = !1, this._animateExit());
|
|
2439
2678
|
let r = this._modal.querySelector(".modal-content");
|
|
2440
2679
|
r || (r = document.createElement("div"), r.className = "modal-content", this._modal.appendChild(r)), this._header || (this._header = document.createElement("div"), this._header.className = "mint-modal-header", r.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));
|
|
@@ -2534,15 +2773,15 @@ var cn = class extends HTMLElement {
|
|
|
2534
2773
|
}, 280);
|
|
2535
2774
|
}
|
|
2536
2775
|
};
|
|
2537
|
-
typeof customElements < "u" && !customElements.get("mint-modal") && a("mint-modal",
|
|
2776
|
+
typeof customElements < "u" && !customElements.get("mint-modal") && a("mint-modal", fn);
|
|
2538
2777
|
//#endregion
|
|
2539
2778
|
//#region src/components/popover/Popover.js
|
|
2540
|
-
var
|
|
2779
|
+
var pn = new Set([
|
|
2541
2780
|
"up",
|
|
2542
2781
|
"down",
|
|
2543
2782
|
"left",
|
|
2544
2783
|
"right"
|
|
2545
|
-
]),
|
|
2784
|
+
]), mn = class extends HTMLElement {
|
|
2546
2785
|
static get observedAttributes() {
|
|
2547
2786
|
return [
|
|
2548
2787
|
"direction",
|
|
@@ -2569,7 +2808,7 @@ var ln = new Set([
|
|
|
2569
2808
|
}
|
|
2570
2809
|
getDirection() {
|
|
2571
2810
|
let e = this.getAttribute("direction") || "down";
|
|
2572
|
-
return
|
|
2811
|
+
return pn.has(e) ? e : "down";
|
|
2573
2812
|
}
|
|
2574
2813
|
getTriggerId() {
|
|
2575
2814
|
return this.getAttribute("trigger-id") || "";
|
|
@@ -2722,7 +2961,7 @@ var ln = new Set([
|
|
|
2722
2961
|
} else this.dataset.state = "closed";
|
|
2723
2962
|
}
|
|
2724
2963
|
};
|
|
2725
|
-
typeof customElements < "u" && !customElements.get("mint-popover") && a("mint-popover",
|
|
2964
|
+
typeof customElements < "u" && !customElements.get("mint-popover") && a("mint-popover", mn), s({
|
|
2726
2965
|
name: "check",
|
|
2727
2966
|
viewBox: "0 0 24 24",
|
|
2728
2967
|
path: "M5 13l4 4L19 7",
|
|
@@ -2732,7 +2971,7 @@ typeof customElements < "u" && !customElements.get("mint-popover") && a("mint-po
|
|
|
2732
2971
|
});
|
|
2733
2972
|
//#endregion
|
|
2734
2973
|
//#region src/components/checkbox/Checkbox.js
|
|
2735
|
-
var
|
|
2974
|
+
var hn = class extends HTMLElement {
|
|
2736
2975
|
static get observedAttributes() {
|
|
2737
2976
|
return [
|
|
2738
2977
|
"checked",
|
|
@@ -2863,10 +3102,10 @@ var dn = class extends HTMLElement {
|
|
|
2863
3102
|
}
|
|
2864
3103
|
}
|
|
2865
3104
|
};
|
|
2866
|
-
typeof customElements < "u" && !customElements.get("mint-checkbox") && a("mint-checkbox",
|
|
3105
|
+
typeof customElements < "u" && !customElements.get("mint-checkbox") && a("mint-checkbox", hn);
|
|
2867
3106
|
//#endregion
|
|
2868
3107
|
//#region src/components/choice/Choice.js
|
|
2869
|
-
var
|
|
3108
|
+
var gn = class extends HTMLElement {
|
|
2870
3109
|
static get observedAttributes() {
|
|
2871
3110
|
return [
|
|
2872
3111
|
"checked",
|
|
@@ -3085,7 +3324,7 @@ var fn = class extends HTMLElement {
|
|
|
3085
3324
|
this.dispatchEvent(t);
|
|
3086
3325
|
}
|
|
3087
3326
|
}
|
|
3088
|
-
},
|
|
3327
|
+
}, _n = class extends HTMLElement {
|
|
3089
3328
|
static get observedAttributes() {
|
|
3090
3329
|
return [
|
|
3091
3330
|
"value",
|
|
@@ -3119,226 +3358,10 @@ var fn = class extends HTMLElement {
|
|
|
3119
3358
|
r || (r = document.createElement("span"), r.className = "mint-choice-option-label", n.appendChild(r)), r.textContent = this._labelText;
|
|
3120
3359
|
}
|
|
3121
3360
|
};
|
|
3122
|
-
typeof customElements < "u" && !customElements.get("mint-choice") && a("mint-choice",
|
|
3123
|
-
name: "arrow-left",
|
|
3124
|
-
viewBox: "0 0 24 24",
|
|
3125
|
-
path: "M19 12H5m7-7l-7 7 7 7",
|
|
3126
|
-
strokeLinecap: "round",
|
|
3127
|
-
strokeLinejoin: "round"
|
|
3128
|
-
});
|
|
3129
|
-
//#endregion
|
|
3130
|
-
//#region src/components/button/Button.js
|
|
3131
|
-
var mn = class extends HTMLElement {
|
|
3132
|
-
static get observedAttributes() {
|
|
3133
|
-
return [
|
|
3134
|
-
"variant",
|
|
3135
|
-
"tone",
|
|
3136
|
-
"disabled",
|
|
3137
|
-
"loading",
|
|
3138
|
-
"button-type",
|
|
3139
|
-
"type",
|
|
3140
|
-
"full-width",
|
|
3141
|
-
"icon-position",
|
|
3142
|
-
"icon"
|
|
3143
|
-
];
|
|
3144
|
-
}
|
|
3145
|
-
constructor() {
|
|
3146
|
-
super(), this._button = null, this._clickHandler = null, this._isHandlingClick = !1;
|
|
3147
|
-
}
|
|
3148
|
-
connectedCallback() {
|
|
3149
|
-
this.render(), this._button && this.setupEventListeners();
|
|
3150
|
-
}
|
|
3151
|
-
disconnectedCallback() {
|
|
3152
|
-
this.removeEventListeners();
|
|
3153
|
-
}
|
|
3154
|
-
attributeChangedCallback(e, t, n) {
|
|
3155
|
-
t !== n && this.render();
|
|
3156
|
-
}
|
|
3157
|
-
getVariant() {
|
|
3158
|
-
return this.getAttribute("variant") || "solid";
|
|
3159
|
-
}
|
|
3160
|
-
getTone() {
|
|
3161
|
-
return this.getAttribute("tone") || "neutral";
|
|
3162
|
-
}
|
|
3163
|
-
isDisabled() {
|
|
3164
|
-
return this.hasAttribute("disabled");
|
|
3165
|
-
}
|
|
3166
|
-
isLoading() {
|
|
3167
|
-
return this.hasAttribute("loading");
|
|
3168
|
-
}
|
|
3169
|
-
getType() {
|
|
3170
|
-
return (this.getAttribute("type") || this.getAttribute("button-type") || "default") === "submit" ? "submit" : "button";
|
|
3171
|
-
}
|
|
3172
|
-
isFullWidth() {
|
|
3173
|
-
return this.hasAttribute("full-width");
|
|
3174
|
-
}
|
|
3175
|
-
getIconPosition() {
|
|
3176
|
-
return this.getAttribute("icon-position") || "left";
|
|
3177
|
-
}
|
|
3178
|
-
getIcon() {
|
|
3179
|
-
return this.getAttribute("icon") || "";
|
|
3180
|
-
}
|
|
3181
|
-
isIconOnly() {
|
|
3182
|
-
if (!(this.getIcon() || this._button?.querySelector("[slot=\"icon\"], .mint-button-icon, mint-icon"))) return !1;
|
|
3183
|
-
let e = this._button?.querySelector(".mint-button-content");
|
|
3184
|
-
if (e && e.textContent.trim()) return !1;
|
|
3185
|
-
if (this._button) {
|
|
3186
|
-
for (let e = this._button.firstChild; e; e = e.nextSibling) if (e.nodeType === Node.TEXT_NODE && e.textContent.trim() || e.nodeType === Node.ELEMENT_NODE && e.tagName !== "MINT-ICON" && e.tagName !== "MINT-SPINNER" && !e.querySelector?.("mint-spinner") && !e.hasAttribute?.("slot") && e.className !== "mint-button-icon" && !(e.className === "mr-2" && e.querySelector("mint-spinner")) && e.textContent.trim()) return !1;
|
|
3187
|
-
}
|
|
3188
|
-
return !0;
|
|
3189
|
-
}
|
|
3190
|
-
getButtonClasses() {
|
|
3191
|
-
return [
|
|
3192
|
-
"mint-button-core",
|
|
3193
|
-
"mint-button-" + this.getVariant(),
|
|
3194
|
-
"mint-button-tone-" + this.getTone(),
|
|
3195
|
-
this.isIconOnly() ? "mint-button-icon-only" : "",
|
|
3196
|
-
this.isFullWidth() ? "mint-button-full-width" : ""
|
|
3197
|
-
].filter(Boolean).join(" ");
|
|
3198
|
-
}
|
|
3199
|
-
render() {
|
|
3200
|
-
let e = this.isDisabled() || this.isLoading(), t = this.getType();
|
|
3201
|
-
if (!this._button) {
|
|
3202
|
-
for (this._button = document.createElement("button"); this.firstChild;) this._button.appendChild(this.firstChild);
|
|
3203
|
-
this.appendChild(this._button), this.setupEventListeners();
|
|
3204
|
-
}
|
|
3205
|
-
this._button.type = t, this._button.disabled = e;
|
|
3206
|
-
let n = this._button.querySelector("mint-spinner");
|
|
3207
|
-
if (this.isLoading()) if (n) n.setAttribute("data-button-variant", this.getVariant()), n.setAttribute("data-button-tone", this.getTone()), n.render();
|
|
3208
|
-
else {
|
|
3209
|
-
let e = document.createElement("span");
|
|
3210
|
-
e.className = "mint-spinner-wrap";
|
|
3211
|
-
let t = document.createElement("mint-spinner");
|
|
3212
|
-
t.setAttribute("size", "default"), t.setAttribute("data-button-variant", this.getVariant()), t.setAttribute("data-button-tone", this.getTone()), t.style.width = "0.875rem", t.style.height = "0.875rem", e.appendChild(t), this._button.insertBefore(e, this._button.firstChild);
|
|
3213
|
-
}
|
|
3214
|
-
else n && n.parentElement?.remove();
|
|
3215
|
-
for (; this.firstChild && this.firstChild !== this._button;) this._button.appendChild(this.firstChild);
|
|
3216
|
-
let r = this.getIcon(), i = this._button.querySelector("[slot=\"icon\"], .mint-button-icon, mint-icon");
|
|
3217
|
-
r ? (i && i.tagName !== "MINT-ICON" && (i.remove(), i = null), !i || i.tagName !== "MINT-ICON" ? (i = document.createElement("mint-icon"), i.setAttribute("name", r), i.className = "mint-button-icon") : i.setAttribute("name", r)) : i && i.tagName === "MINT-ICON" && (i.remove(), i = null), i ||= this._button.querySelector("[slot=\"icon\"], .mint-button-icon");
|
|
3218
|
-
let a = this.getIconPosition(), o = this._button.querySelector(".mint-button-content");
|
|
3219
|
-
if (o) {
|
|
3220
|
-
let e = i && i.tagName === "MINT-ICON";
|
|
3221
|
-
if (i && !i.parentElement) {
|
|
3222
|
-
let t = this._button.querySelector("mint-spinner")?.parentElement;
|
|
3223
|
-
e || a === "left" ? t ? t.insertAdjacentElement("afterend", i) : this._button.insertBefore(i, o) : o.insertAdjacentElement("afterend", i);
|
|
3224
|
-
} else if (i && (e || a === "left") && i.nextSibling !== o) {
|
|
3225
|
-
i.remove();
|
|
3226
|
-
let e = this._button.querySelector("mint-spinner")?.parentElement;
|
|
3227
|
-
e ? e.insertAdjacentElement("afterend", i) : this._button.insertBefore(i, o);
|
|
3228
|
-
} else i && !e && a === "right" && i.previousSibling !== o && (i.remove(), o.insertAdjacentElement("afterend", i));
|
|
3229
|
-
} else {
|
|
3230
|
-
let e = [];
|
|
3231
|
-
for (let t = this._button.firstChild; t; t = t.nextSibling) t.tagName !== "MINT-SPINNER" && !t.querySelector?.("mint-spinner") && t !== i && !t.hasAttribute?.("slot") && !(t.className === "mr-2" && t.querySelector("mint-spinner")) && e.push(t);
|
|
3232
|
-
if (e.length > 0) {
|
|
3233
|
-
o = document.createElement("span"), o.className = "mint-button-content", e.forEach((e) => {
|
|
3234
|
-
o.appendChild(e);
|
|
3235
|
-
});
|
|
3236
|
-
let t = this._button.querySelector("mint-spinner")?.parentElement;
|
|
3237
|
-
i && a === "left" ? t ? (t.insertAdjacentElement("afterend", i), i.insertAdjacentElement("afterend", o)) : (this._button.insertBefore(i, this._button.firstChild), i.insertAdjacentElement("afterend", o)) : i && a === "right" ? t ? (t.insertAdjacentElement("afterend", o), o.insertAdjacentElement("afterend", i)) : (this._button.insertBefore(o, this._button.firstChild), o.insertAdjacentElement("afterend", i)) : t ? t.insertAdjacentElement("afterend", o) : this._button.insertBefore(o, this._button.firstChild);
|
|
3238
|
-
} else if (i && i.tagName === "MINT-ICON" && !i.parentElement) {
|
|
3239
|
-
let e = this._button.querySelector("mint-spinner")?.parentElement;
|
|
3240
|
-
e ? e.insertAdjacentElement("afterend", i) : this._button.insertBefore(i, this._button.firstChild);
|
|
3241
|
-
}
|
|
3242
|
-
}
|
|
3243
|
-
let s = this.isIconOnly();
|
|
3244
|
-
i && (i.classList.contains("mint-button-icon") || i.classList.add("mint-button-icon"), i.classList.remove("mint-icon-leading", "mint-icon-trailing"), s ? i.tagName === "MINT-ICON" ? (i.style.width = "1rem", i.style.height = "1rem", i.style.maxWidth = "1rem", i.style.maxHeight = "1rem", i.style.flexShrink = "0") : (i.style.maxWidth = "1rem", i.style.maxHeight = "1rem", i.style.flexShrink = "0", i.tagName === "svg" && (i.style.width = "1rem", i.style.height = "1rem")) : a === "left" ? i.classList.add("mint-icon-leading") : i.classList.add("mint-icon-trailing"));
|
|
3245
|
-
let c = this.getButtonClasses();
|
|
3246
|
-
this._button.className = c;
|
|
3247
|
-
}
|
|
3248
|
-
setupEventListeners() {
|
|
3249
|
-
this._button && !this._clickHandler && (this._clickHandler = this.handleClick.bind(this), this._button.addEventListener("click", this._clickHandler, !0), this._button.addEventListener("mousedown", this._handleMouseDown), this._button.addEventListener("mouseup", this._handleMouseUp), this._button.addEventListener("mouseleave", this._handleMouseLeave), this._button.addEventListener("touchstart", this._handleTouchStart), this._button.addEventListener("touchend", this._handleTouchEnd), this._button.addEventListener("touchcancel", this._handleTouchCancel));
|
|
3250
|
-
}
|
|
3251
|
-
removeEventListeners() {
|
|
3252
|
-
this._button && (this._clickHandler &&= (this._button.removeEventListener("click", this._clickHandler, !0), null), this._button.removeEventListener("mousedown", this._handleMouseDown), this._button.removeEventListener("mouseup", this._handleMouseUp), this._button.removeEventListener("mouseleave", this._handleMouseLeave), this._button.removeEventListener("touchstart", this._handleTouchStart), this._button.removeEventListener("touchend", this._handleTouchEnd), this._button.removeEventListener("touchcancel", this._handleTouchCancel));
|
|
3253
|
-
}
|
|
3254
|
-
_handleMouseDown = () => {
|
|
3255
|
-
this._button && !this.isDisabled() && !this.isLoading() && this._button.classList.add("mint-button-active");
|
|
3256
|
-
};
|
|
3257
|
-
_handleMouseUp = () => {
|
|
3258
|
-
this._button && this._button.classList.remove("mint-button-active");
|
|
3259
|
-
};
|
|
3260
|
-
_handleMouseLeave = () => {
|
|
3261
|
-
this._button && this._button.classList.remove("mint-button-active");
|
|
3262
|
-
};
|
|
3263
|
-
_handleTouchStart = () => {
|
|
3264
|
-
this._button && !this.isDisabled() && !this.isLoading() && this._button.classList.add("mint-button-active");
|
|
3265
|
-
};
|
|
3266
|
-
_handleTouchEnd = () => {
|
|
3267
|
-
this._button && this._button.classList.remove("mint-button-active");
|
|
3268
|
-
};
|
|
3269
|
-
_handleTouchCancel = () => {
|
|
3270
|
-
this._button && this._button.classList.remove("mint-button-active");
|
|
3271
|
-
};
|
|
3272
|
-
handleClick(e) {
|
|
3273
|
-
if (this.isDisabled() || this.isLoading()) {
|
|
3274
|
-
e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation();
|
|
3275
|
-
return;
|
|
3276
|
-
}
|
|
3277
|
-
if (e.stopPropagation(), e.stopImmediatePropagation(), this._isHandlingClick) {
|
|
3278
|
-
e.preventDefault();
|
|
3279
|
-
return;
|
|
3280
|
-
}
|
|
3281
|
-
this._isHandlingClick = !0, e.preventDefault(), this.dispatchEvent(new CustomEvent("click", {
|
|
3282
|
-
detail: { originalEvent: e },
|
|
3283
|
-
bubbles: !0,
|
|
3284
|
-
cancelable: !0,
|
|
3285
|
-
composed: !0
|
|
3286
|
-
})), requestAnimationFrame(() => {
|
|
3287
|
-
this._isHandlingClick = !1;
|
|
3288
|
-
});
|
|
3289
|
-
}
|
|
3290
|
-
};
|
|
3291
|
-
typeof customElements < "u" && !customElements.get("mint-button") && a("mint-button", mn);
|
|
3292
|
-
//#endregion
|
|
3293
|
-
//#region src/components/back-button/BackButton.js
|
|
3294
|
-
var hn = class extends HTMLElement {
|
|
3295
|
-
static get observedAttributes() {
|
|
3296
|
-
return ["href", "fallback-href"];
|
|
3297
|
-
}
|
|
3298
|
-
constructor() {
|
|
3299
|
-
super(), this._historyDepth = 0, this._maxBackAttempts = 10, this._backAttempts = 0;
|
|
3300
|
-
}
|
|
3301
|
-
connectedCallback() {
|
|
3302
|
-
this.render(), this._setupHistoryTracking();
|
|
3303
|
-
}
|
|
3304
|
-
attributeChangedCallback(e, t, n) {
|
|
3305
|
-
t !== n && this.render();
|
|
3306
|
-
}
|
|
3307
|
-
_setupHistoryTracking() {
|
|
3308
|
-
window.addEventListener("popstate", () => {
|
|
3309
|
-
this._backAttempts = 0;
|
|
3310
|
-
}), this._historyDepth = window.history.length;
|
|
3311
|
-
}
|
|
3312
|
-
getFallbackHref() {
|
|
3313
|
-
return this.getAttribute("fallback-href") || this.getAttribute("href") || "/";
|
|
3314
|
-
}
|
|
3315
|
-
handleClick(e) {
|
|
3316
|
-
if (e.preventDefault(), e.stopPropagation(), window.history.length > 1 && this._backAttempts < this._maxBackAttempts && this._backAttempts === 0) {
|
|
3317
|
-
this._backAttempts++;
|
|
3318
|
-
let e = window.location.href, t = Date.now();
|
|
3319
|
-
window.history.back(), setTimeout(() => {
|
|
3320
|
-
Date.now() - t, window.location.href === e ? this._navigateToFallback() : setTimeout(() => {
|
|
3321
|
-
this._backAttempts = 0;
|
|
3322
|
-
}, 500);
|
|
3323
|
-
}, 200);
|
|
3324
|
-
} else this._navigateToFallback();
|
|
3325
|
-
}
|
|
3326
|
-
_navigateToFallback() {
|
|
3327
|
-
let e = this.getFallbackHref();
|
|
3328
|
-
if (this._backAttempts = 0, e.startsWith("/") && !e.startsWith("//")) try {
|
|
3329
|
-
window.history.pushState({}, "", e), window.dispatchEvent(new PopStateEvent("popstate"));
|
|
3330
|
-
return;
|
|
3331
|
-
} catch {}
|
|
3332
|
-
window.location.href = e;
|
|
3333
|
-
}
|
|
3334
|
-
render() {
|
|
3335
|
-
this._button || (this._button = document.createElement("mint-button"), this._button.setAttribute("variant", "neutral"), this._button.setAttribute("icon", "arrow-left"), this._button.addEventListener("click", (e) => this.handleClick(e)), this.appendChild(this._button));
|
|
3336
|
-
}
|
|
3337
|
-
};
|
|
3338
|
-
typeof customElements < "u" && !customElements.get("mint-back-button") && a("mint-back-button", hn);
|
|
3361
|
+
typeof customElements < "u" && !customElements.get("mint-choice") && a("mint-choice", gn), typeof customElements < "u" && !customElements.get("mint-choice-option") && a("mint-choice-option", _n);
|
|
3339
3362
|
//#endregion
|
|
3340
3363
|
//#region src/components/navigation/Navigation.js
|
|
3341
|
-
var
|
|
3364
|
+
var vn = 0, yn = class extends HTMLElement {
|
|
3342
3365
|
static get observedAttributes() {
|
|
3343
3366
|
return [
|
|
3344
3367
|
"brand",
|
|
@@ -3350,7 +3373,7 @@ var gn = 0, _n = class extends HTMLElement {
|
|
|
3350
3373
|
];
|
|
3351
3374
|
}
|
|
3352
3375
|
constructor() {
|
|
3353
|
-
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 = ++
|
|
3376
|
+
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 = ++vn, this._dropdowns = [], this._content = null, this._actions = null, this._activeDropdown = null, this._layoutObserver = null;
|
|
3354
3377
|
}
|
|
3355
3378
|
connectedCallback() {
|
|
3356
3379
|
this._built || this._build(), this._observeDropdowns(), this._syncResponsiveDropdowns(), this._syncMobileActions(), typeof ResizeObserver < "u" && (this._layoutObserver = new ResizeObserver(() => {
|
|
@@ -3510,7 +3533,7 @@ var gn = 0, _n = class extends HTMLElement {
|
|
|
3510
3533
|
this.hasAttribute("open") ? this.closeMenu() : this.openMenu();
|
|
3511
3534
|
}
|
|
3512
3535
|
};
|
|
3513
|
-
typeof customElements < "u" && !customElements.get("mint-navigation") && a("mint-navigation",
|
|
3536
|
+
typeof customElements < "u" && !customElements.get("mint-navigation") && a("mint-navigation", yn), s({
|
|
3514
3537
|
name: "info",
|
|
3515
3538
|
viewBox: "0 0 24 24",
|
|
3516
3539
|
path: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",
|
|
@@ -3544,7 +3567,7 @@ typeof customElements < "u" && !customElements.get("mint-navigation") && a("mint
|
|
|
3544
3567
|
});
|
|
3545
3568
|
//#endregion
|
|
3546
3569
|
//#region src/components/alert/Alert.ts
|
|
3547
|
-
var
|
|
3570
|
+
var bn = class extends HTMLElement {
|
|
3548
3571
|
static get observedAttributes() {
|
|
3549
3572
|
return [
|
|
3550
3573
|
"heading",
|
|
@@ -3660,7 +3683,7 @@ var vn = class extends HTMLElement {
|
|
|
3660
3683
|
}
|
|
3661
3684
|
}
|
|
3662
3685
|
};
|
|
3663
|
-
customElements.get("mint-alert") || a("mint-alert",
|
|
3686
|
+
customElements.get("mint-alert") || a("mint-alert", bn);
|
|
3664
3687
|
//#endregion
|
|
3665
3688
|
//#region src/components/bottom-navigation/BottomNavigation.ts
|
|
3666
3689
|
var I = class extends HTMLElement {
|
|
@@ -3691,7 +3714,7 @@ var I = class extends HTMLElement {
|
|
|
3691
3714
|
customElements.get("mint-bottom-navigation") || a("mint-bottom-navigation", I);
|
|
3692
3715
|
//#endregion
|
|
3693
3716
|
//#region src/components/bottom-navigation/BottomNavItem.ts
|
|
3694
|
-
var
|
|
3717
|
+
var xn = class extends HTMLElement {
|
|
3695
3718
|
constructor(...e) {
|
|
3696
3719
|
super(...e), this._root = null;
|
|
3697
3720
|
}
|
|
@@ -3735,10 +3758,10 @@ var yn = class extends HTMLElement {
|
|
|
3735
3758
|
s.className = "mint-bottom-nav-label", s.textContent = t, i.appendChild(o), i.appendChild(s), this.replaceChildren(i), this._root = i;
|
|
3736
3759
|
}
|
|
3737
3760
|
};
|
|
3738
|
-
customElements.get("mint-bottom-nav-item") || a("mint-bottom-nav-item",
|
|
3761
|
+
customElements.get("mint-bottom-nav-item") || a("mint-bottom-nav-item", xn);
|
|
3739
3762
|
//#endregion
|
|
3740
3763
|
//#region src/components/bottom-navigation/index.ts
|
|
3741
|
-
var
|
|
3764
|
+
var Sn = I, Cn = class e extends HTMLElement {
|
|
3742
3765
|
static get observedAttributes() {
|
|
3743
3766
|
return [
|
|
3744
3767
|
"type",
|
|
@@ -5063,10 +5086,10 @@ var bn = I, xn = class e extends HTMLElement {
|
|
|
5063
5086
|
});
|
|
5064
5087
|
}
|
|
5065
5088
|
};
|
|
5066
|
-
customElements.get("mint-chart") || a("mint-chart",
|
|
5089
|
+
customElements.get("mint-chart") || a("mint-chart", Cn);
|
|
5067
5090
|
//#endregion
|
|
5068
5091
|
//#region src/components/chip/Chip.ts
|
|
5069
|
-
var
|
|
5092
|
+
var wn = class extends HTMLElement {
|
|
5070
5093
|
constructor(...e) {
|
|
5071
5094
|
super(...e), this._root = null, this._label = null, this._dismissBtn = null, this._clickHandler = null;
|
|
5072
5095
|
}
|
|
@@ -5116,10 +5139,10 @@ var Sn = class extends HTMLElement {
|
|
|
5116
5139
|
}, e.addEventListener("click", this._clickHandler), this._dismissBtn = e;
|
|
5117
5140
|
}
|
|
5118
5141
|
};
|
|
5119
|
-
customElements.get("mint-chip") || a("mint-chip",
|
|
5142
|
+
customElements.get("mint-chip") || a("mint-chip", wn);
|
|
5120
5143
|
//#endregion
|
|
5121
5144
|
//#region src/components/clickable/Clickable.ts
|
|
5122
|
-
var
|
|
5145
|
+
var Tn = class extends HTMLElement {
|
|
5123
5146
|
constructor(...e) {
|
|
5124
5147
|
super(...e), this._clickHandler = null, this._keydownHandler = null, this._target = null, this._observer = null, this._managedRole = !1, this._managedTabindex = !1;
|
|
5125
5148
|
}
|
|
@@ -5178,10 +5201,10 @@ var Cn = class extends HTMLElement {
|
|
|
5178
5201
|
e === "disabled" && this.isConnected && this._syncTarget();
|
|
5179
5202
|
}
|
|
5180
5203
|
};
|
|
5181
|
-
customElements.get("mint-clickable") || a("mint-clickable",
|
|
5204
|
+
customElements.get("mint-clickable") || a("mint-clickable", Tn);
|
|
5182
5205
|
//#endregion
|
|
5183
5206
|
//#region src/components/collapsible/Collapsible.ts
|
|
5184
|
-
var
|
|
5207
|
+
var En = class extends HTMLElement {
|
|
5185
5208
|
static get observedAttributes() {
|
|
5186
5209
|
return [
|
|
5187
5210
|
"id",
|
|
@@ -5332,10 +5355,10 @@ var wn = class extends HTMLElement {
|
|
|
5332
5355
|
}), this._contentAnimation.onfinish = o;
|
|
5333
5356
|
}
|
|
5334
5357
|
};
|
|
5335
|
-
customElements.get("mint-collapsible") || a("mint-collapsible",
|
|
5358
|
+
customElements.get("mint-collapsible") || a("mint-collapsible", En);
|
|
5336
5359
|
//#endregion
|
|
5337
5360
|
//#region src/components/confirm-action/ConfirmAction.ts
|
|
5338
|
-
var
|
|
5361
|
+
var Dn = class extends HTMLElement {
|
|
5339
5362
|
constructor(...e) {
|
|
5340
5363
|
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;
|
|
5341
5364
|
}
|
|
@@ -5382,11 +5405,11 @@ var Tn = class extends HTMLElement {
|
|
|
5382
5405
|
}));
|
|
5383
5406
|
}
|
|
5384
5407
|
};
|
|
5385
|
-
customElements.get("mint-confirm-action") || a("mint-confirm-action",
|
|
5408
|
+
customElements.get("mint-confirm-action") || a("mint-confirm-action", Dn);
|
|
5386
5409
|
//#endregion
|
|
5387
5410
|
//#region src/components/confirm-action/ConfirmActionApi.ts
|
|
5388
5411
|
var L = [], R = !1;
|
|
5389
|
-
function
|
|
5412
|
+
function On() {
|
|
5390
5413
|
return typeof document > "u" || document.body ? Promise.resolve() : new Promise((e) => {
|
|
5391
5414
|
if (typeof window > "u") {
|
|
5392
5415
|
e();
|
|
@@ -5395,26 +5418,26 @@ function En() {
|
|
|
5395
5418
|
window.addEventListener("DOMContentLoaded", () => e(), { once: !0 });
|
|
5396
5419
|
});
|
|
5397
5420
|
}
|
|
5398
|
-
async function
|
|
5399
|
-
if (await
|
|
5421
|
+
async function kn() {
|
|
5422
|
+
if (await On(), typeof document > "u") throw Error("mintui.confirm is only available in browser environments.");
|
|
5400
5423
|
let e = document.querySelector("mint-confirm-action[data-mint-confirm-action-root=\"true\"]");
|
|
5401
5424
|
if (e) return e;
|
|
5402
5425
|
let t = document.createElement("mint-confirm-action");
|
|
5403
5426
|
return t.setAttribute("data-mint-confirm-action-root", "true"), document.body.appendChild(t), t;
|
|
5404
5427
|
}
|
|
5405
|
-
function
|
|
5428
|
+
function An(e) {
|
|
5406
5429
|
let t = (e || "action").toString().trim().toLowerCase().replace(/^tone:\s*/, "");
|
|
5407
5430
|
return t === "action" || t === "info" || t === "warning" || t === "danger" ? t : "action";
|
|
5408
5431
|
}
|
|
5409
|
-
async function
|
|
5432
|
+
async function jn() {
|
|
5410
5433
|
if (!R) {
|
|
5411
5434
|
R = !0;
|
|
5412
5435
|
try {
|
|
5413
5436
|
for (; L.length > 0;) {
|
|
5414
5437
|
let e = L.shift();
|
|
5415
|
-
e && (await (await
|
|
5438
|
+
e && (await (await kn()).showConfirm({
|
|
5416
5439
|
question: e.question,
|
|
5417
|
-
tone:
|
|
5440
|
+
tone: An(e.tone),
|
|
5418
5441
|
confirmLabel: e.confirmLabel || "Confirm",
|
|
5419
5442
|
cancelLabel: e.cancelLabel || "Cancel"
|
|
5420
5443
|
}) ? e.confirmed?.() : e.cancelled?.());
|
|
@@ -5424,7 +5447,7 @@ async function kn() {
|
|
|
5424
5447
|
}
|
|
5425
5448
|
}
|
|
5426
5449
|
}
|
|
5427
|
-
function
|
|
5450
|
+
function Mn(e, t, n, r = "action", i = "Confirm", a = "Cancel") {
|
|
5428
5451
|
typeof window > "u" || (L.push({
|
|
5429
5452
|
question: e,
|
|
5430
5453
|
confirmed: t,
|
|
@@ -5432,11 +5455,11 @@ function An(e, t, n, r = "action", i = "Confirm", a = "Cancel") {
|
|
|
5432
5455
|
tone: r,
|
|
5433
5456
|
confirmLabel: i,
|
|
5434
5457
|
cancelLabel: a
|
|
5435
|
-
}),
|
|
5458
|
+
}), jn());
|
|
5436
5459
|
}
|
|
5437
5460
|
if (typeof window < "u") {
|
|
5438
5461
|
let e = window.mintui || {};
|
|
5439
|
-
e.confirm =
|
|
5462
|
+
e.confirm = Mn, window.mintui = e;
|
|
5440
5463
|
}
|
|
5441
5464
|
s({
|
|
5442
5465
|
name: "calendar",
|
|
@@ -5471,7 +5494,7 @@ s({
|
|
|
5471
5494
|
});
|
|
5472
5495
|
//#endregion
|
|
5473
5496
|
//#region src/components/input/Input.ts
|
|
5474
|
-
var
|
|
5497
|
+
var Nn = class extends HTMLElement {
|
|
5475
5498
|
static get observedAttributes() {
|
|
5476
5499
|
return [
|
|
5477
5500
|
"type",
|
|
@@ -5796,10 +5819,10 @@ var jn = class extends HTMLElement {
|
|
|
5796
5819
|
}
|
|
5797
5820
|
}
|
|
5798
5821
|
};
|
|
5799
|
-
customElements.get("mint-input") || a("mint-input",
|
|
5822
|
+
customElements.get("mint-input") || a("mint-input", Nn);
|
|
5800
5823
|
//#endregion
|
|
5801
5824
|
//#region src/components/date-picker/DatePicker.ts
|
|
5802
|
-
var
|
|
5825
|
+
var Pn = class extends HTMLElement {
|
|
5803
5826
|
static get observedAttributes() {
|
|
5804
5827
|
return [
|
|
5805
5828
|
"value",
|
|
@@ -7045,7 +7068,7 @@ var Mn = class extends HTMLElement {
|
|
|
7045
7068
|
this._focusTrapHandler &&= (document.removeEventListener("keydown", this._focusTrapHandler, !0), null), this._escapeHandler &&= (document.removeEventListener("keydown", this._escapeHandler, !0), null);
|
|
7046
7069
|
}
|
|
7047
7070
|
};
|
|
7048
|
-
customElements.get("mint-date-picker") || a("mint-date-picker",
|
|
7071
|
+
customElements.get("mint-date-picker") || a("mint-date-picker", Pn), s({
|
|
7049
7072
|
name: "upload",
|
|
7050
7073
|
viewBox: "0 0 24 24",
|
|
7051
7074
|
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",
|
|
@@ -7060,7 +7083,7 @@ customElements.get("mint-date-picker") || a("mint-date-picker", Mn), s({
|
|
|
7060
7083
|
});
|
|
7061
7084
|
//#endregion
|
|
7062
7085
|
//#region src/components/dropzone/Dropzone.ts
|
|
7063
|
-
var
|
|
7086
|
+
var Fn = class extends HTMLElement {
|
|
7064
7087
|
static get observedAttributes() {
|
|
7065
7088
|
return [
|
|
7066
7089
|
"label",
|
|
@@ -7378,10 +7401,10 @@ var Nn = class extends HTMLElement {
|
|
|
7378
7401
|
return this._selectedFiles.some((t) => t.name === e.name && t.size === e.size && t.lastModified === e.lastModified);
|
|
7379
7402
|
}
|
|
7380
7403
|
};
|
|
7381
|
-
customElements.get("mint-dropzone") || a("mint-dropzone",
|
|
7404
|
+
customElements.get("mint-dropzone") || a("mint-dropzone", Fn);
|
|
7382
7405
|
//#endregion
|
|
7383
7406
|
//#region src/components/form/Form.ts
|
|
7384
|
-
var
|
|
7407
|
+
var In = class extends HTMLElement {
|
|
7385
7408
|
static get observedAttributes() {
|
|
7386
7409
|
return [
|
|
7387
7410
|
"action",
|
|
@@ -8356,7 +8379,7 @@ var Pn = class extends HTMLElement {
|
|
|
8356
8379
|
this._reactiveDataObserver !== null && (cancelAnimationFrame(this._reactiveDataObserver), this._reactiveDataObserver = null), this._reactiveDataProxy = null, this._lastDataSnapshot = null, this._lastAppliedDataSnapshot = null;
|
|
8357
8380
|
}
|
|
8358
8381
|
};
|
|
8359
|
-
customElements.get("mint-form") || a("mint-form",
|
|
8382
|
+
customElements.get("mint-form") || a("mint-form", In), typeof window < "u" && (window.mintForm = window.mintForm || {
|
|
8360
8383
|
defaults: { headers: { common: {} } },
|
|
8361
8384
|
interceptors: { response: { handlers: [] } }
|
|
8362
8385
|
}, window.mintForm.interceptors.response.use || (window.mintForm.interceptors.response.use = function(e, t) {
|
|
@@ -8367,7 +8390,7 @@ customElements.get("mint-form") || a("mint-form", Pn), typeof window < "u" && (w
|
|
|
8367
8390
|
}));
|
|
8368
8391
|
//#endregion
|
|
8369
8392
|
//#region src/components/off-canvas/OffCanvas.ts
|
|
8370
|
-
var
|
|
8393
|
+
var Ln = class extends HTMLElement {
|
|
8371
8394
|
static get observedAttributes() {
|
|
8372
8395
|
return [
|
|
8373
8396
|
"id",
|
|
@@ -8531,7 +8554,7 @@ var Fn = class extends HTMLElement {
|
|
|
8531
8554
|
}, 300);
|
|
8532
8555
|
}
|
|
8533
8556
|
};
|
|
8534
|
-
customElements.get("mint-off-canvas") || a("mint-off-canvas",
|
|
8557
|
+
customElements.get("mint-off-canvas") || a("mint-off-canvas", Ln), s({
|
|
8535
8558
|
name: "search",
|
|
8536
8559
|
viewBox: "0 0 24 24",
|
|
8537
8560
|
path: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z",
|
|
@@ -8540,7 +8563,7 @@ customElements.get("mint-off-canvas") || a("mint-off-canvas", Fn), s({
|
|
|
8540
8563
|
});
|
|
8541
8564
|
//#endregion
|
|
8542
8565
|
//#region src/components/resource-table/utility-aliases.js
|
|
8543
|
-
var
|
|
8566
|
+
var Rn = {
|
|
8544
8567
|
"-mr-1": "rtu-8956a4275",
|
|
8545
8568
|
"-translate-y-1/2": "rtu-36b381be4",
|
|
8546
8569
|
"[&>*]:m-0": "rtu-7b41b3d11",
|
|
@@ -8702,7 +8725,7 @@ var In = {
|
|
|
8702
8725
|
"z-10": "rtu-236812d64",
|
|
8703
8726
|
"z-20": "rtu-145745bf5",
|
|
8704
8727
|
"z-30": "rtu-0f2fff0ae"
|
|
8705
|
-
},
|
|
8728
|
+
}, zn = class extends HTMLElement {
|
|
8706
8729
|
constructor(...e) {
|
|
8707
8730
|
super(...e), this._observer = null;
|
|
8708
8731
|
}
|
|
@@ -8762,10 +8785,10 @@ var In = {
|
|
|
8762
8785
|
e.dataset.mtProcessed = "", e.innerHTML = n, Object.entries(t).forEach(([t, n]) => e.setAttribute(t, n));
|
|
8763
8786
|
}
|
|
8764
8787
|
};
|
|
8765
|
-
customElements.get("mint-table") || a("mint-table",
|
|
8788
|
+
customElements.get("mint-table") || a("mint-table", zn);
|
|
8766
8789
|
//#endregion
|
|
8767
8790
|
//#region src/components/resource-table/ResourceTable.ts
|
|
8768
|
-
var
|
|
8791
|
+
var Bn = class extends HTMLElement {
|
|
8769
8792
|
static get observedAttributes() {
|
|
8770
8793
|
return [
|
|
8771
8794
|
"configuration",
|
|
@@ -9675,7 +9698,7 @@ var Rn = class extends HTMLElement {
|
|
|
9675
9698
|
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(" ");
|
|
9676
9699
|
}
|
|
9677
9700
|
_replaceUtilityClasses() {
|
|
9678
|
-
let e =
|
|
9701
|
+
let e = Rn, t = [this, ...Array.from(this.querySelectorAll("[class]"))];
|
|
9679
9702
|
for (let n of t) for (let t of Array.from(n.classList)) {
|
|
9680
9703
|
let r = e[t];
|
|
9681
9704
|
r && n.classList.replace(t, r);
|
|
@@ -9875,10 +9898,10 @@ var Rn = class extends HTMLElement {
|
|
|
9875
9898
|
e !== null && (this._currentPage = e, this._offset = (this._currentPage - 1) * this._perPage);
|
|
9876
9899
|
}
|
|
9877
9900
|
};
|
|
9878
|
-
customElements.get("mint-resource-table") || a("mint-resource-table",
|
|
9901
|
+
customElements.get("mint-resource-table") || a("mint-resource-table", Bn);
|
|
9879
9902
|
//#endregion
|
|
9880
9903
|
//#region src/components/resource-table/ResourceTableContextMenu.ts
|
|
9881
|
-
var
|
|
9904
|
+
var Vn = 550, Hn = 12, Un = { passive: !0 }, Wn = class extends HTMLElement {
|
|
9882
9905
|
constructor(...e) {
|
|
9883
9906
|
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 = () => {
|
|
9884
9907
|
this._closePopover();
|
|
@@ -9905,7 +9928,7 @@ var zn = 550, Bn = 12, Vn = { passive: !0 }, Hn = class extends HTMLElement {
|
|
|
9905
9928
|
let t = e.touches[0];
|
|
9906
9929
|
if (!t) return;
|
|
9907
9930
|
let n = t.clientX - this._touchStart.x, r = t.clientY - this._touchStart.y;
|
|
9908
|
-
n * n + r * r >
|
|
9931
|
+
n * n + r * r > Hn * Hn && (this._clearTouchTimer(), this._touchStart = null);
|
|
9909
9932
|
}, this._onTouchEnd = () => {
|
|
9910
9933
|
this._clearTouchTimer(), this._touchStart = null;
|
|
9911
9934
|
};
|
|
@@ -9928,7 +9951,7 @@ var zn = 550, Bn = 12, Vn = { passive: !0 }, Hn = class extends HTMLElement {
|
|
|
9928
9951
|
}
|
|
9929
9952
|
_longPressMs() {
|
|
9930
9953
|
let e = parseInt(this.getAttribute("long-press-ms") || "", 10);
|
|
9931
|
-
return !Number.isNaN(e) && e > 100 ? e :
|
|
9954
|
+
return !Number.isNaN(e) && e > 100 ? e : Vn;
|
|
9932
9955
|
}
|
|
9933
9956
|
_resolveTable() {
|
|
9934
9957
|
let e = this.getAttribute("for")?.trim();
|
|
@@ -9982,12 +10005,12 @@ var zn = 550, Bn = 12, Vn = { passive: !0 }, Hn = class extends HTMLElement {
|
|
|
9982
10005
|
return this._elementIsScrollContainer(e) && r(e), t;
|
|
9983
10006
|
}
|
|
9984
10007
|
_detachScrollCloseListeners() {
|
|
9985
|
-
for (let e of this._scrollCloseTargets) e.removeEventListener("scroll", this._onScrollClose,
|
|
10008
|
+
for (let e of this._scrollCloseTargets) e.removeEventListener("scroll", this._onScrollClose, Un);
|
|
9986
10009
|
this._scrollCloseTargets = [];
|
|
9987
10010
|
}
|
|
9988
10011
|
_attachScrollCloseListeners(e) {
|
|
9989
10012
|
this._detachScrollCloseListeners(), this._scrollCloseTargets = this._collectScrollCloseTargets(e);
|
|
9990
|
-
for (let e of this._scrollCloseTargets) e.addEventListener("scroll", this._onScrollClose,
|
|
10013
|
+
for (let e of this._scrollCloseTargets) e.addEventListener("scroll", this._onScrollClose, Un);
|
|
9991
10014
|
}
|
|
9992
10015
|
_closePopover() {
|
|
9993
10016
|
if (this._detachScrollCloseListeners(), !this._popover?.hasAttribute("open")) return;
|
|
@@ -10028,10 +10051,10 @@ var zn = 550, Bn = 12, Vn = { passive: !0 }, Hn = class extends HTMLElement {
|
|
|
10028
10051
|
l && this._attachScrollCloseListeners(l);
|
|
10029
10052
|
}
|
|
10030
10053
|
};
|
|
10031
|
-
customElements.get("mint-resource-table-context-menu") || a("mint-resource-table-context-menu",
|
|
10054
|
+
customElements.get("mint-resource-table-context-menu") || a("mint-resource-table-context-menu", Wn);
|
|
10032
10055
|
//#endregion
|
|
10033
10056
|
//#region src/components/search/Search.ts
|
|
10034
|
-
var
|
|
10057
|
+
var Gn = class e extends HTMLElement {
|
|
10035
10058
|
constructor(...e) {
|
|
10036
10059
|
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._desktopFilterWrap = null, this._mobileFilterWrap = null, this._resultsWrap = null, this._stateWrap = null, this._customResultsWrap = null, this._query = "", this._searchOpen = !1, this._selectedFilters = [], this._selectedFilterBackspaceArmed = !1, 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;
|
|
10037
10060
|
}
|
|
@@ -10681,10 +10704,10 @@ var Un = class e extends HTMLElement {
|
|
|
10681
10704
|
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));
|
|
10682
10705
|
}
|
|
10683
10706
|
};
|
|
10684
|
-
customElements.get("mint-search") || a("mint-search",
|
|
10707
|
+
customElements.get("mint-search") || a("mint-search", Gn);
|
|
10685
10708
|
//#endregion
|
|
10686
10709
|
//#region src/components/select/Select.ts
|
|
10687
|
-
var z = "data-mint-select-part",
|
|
10710
|
+
var z = "data-mint-select-part", Kn = class extends HTMLElement {
|
|
10688
10711
|
static get observedAttributes() {
|
|
10689
10712
|
return [
|
|
10690
10713
|
"name",
|
|
@@ -10945,10 +10968,10 @@ var z = "data-mint-select-part", Wn = class extends HTMLElement {
|
|
|
10945
10968
|
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");
|
|
10946
10969
|
}
|
|
10947
10970
|
};
|
|
10948
|
-
customElements.get("mint-select") || a("mint-select",
|
|
10971
|
+
customElements.get("mint-select") || a("mint-select", Kn);
|
|
10949
10972
|
//#endregion
|
|
10950
10973
|
//#region src/components/side-navigation/SideNavigationLink.ts
|
|
10951
|
-
var
|
|
10974
|
+
var qn = class extends HTMLElement {
|
|
10952
10975
|
constructor(...e) {
|
|
10953
10976
|
super(...e), this._trigger = null, this._submenuContainer = null, this._contentObserver = null, this._renderFrame = null;
|
|
10954
10977
|
}
|
|
@@ -11082,10 +11105,10 @@ var Gn = class extends HTMLElement {
|
|
|
11082
11105
|
this._hasSubmenu() && !this._isSubmenuItem() ? this._buildDropdownLink() : this._buildSimpleLink();
|
|
11083
11106
|
}
|
|
11084
11107
|
};
|
|
11085
|
-
customElements.get("mint-sidenav-link") || a("mint-sidenav-link",
|
|
11108
|
+
customElements.get("mint-sidenav-link") || a("mint-sidenav-link", qn);
|
|
11086
11109
|
//#endregion
|
|
11087
11110
|
//#region src/components/side-navigation/SideNavigationLinks.ts
|
|
11088
|
-
var
|
|
11111
|
+
var Jn = class extends HTMLElement {
|
|
11089
11112
|
constructor(...e) {
|
|
11090
11113
|
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();
|
|
11091
11114
|
}
|
|
@@ -11148,10 +11171,10 @@ var Kn = class extends HTMLElement {
|
|
|
11148
11171
|
});
|
|
11149
11172
|
}
|
|
11150
11173
|
};
|
|
11151
|
-
customElements.get("mint-sidenav-links") || a("mint-sidenav-links",
|
|
11174
|
+
customElements.get("mint-sidenav-links") || a("mint-sidenav-links", Jn);
|
|
11152
11175
|
//#endregion
|
|
11153
11176
|
//#region src/components/side-navigation/SideNavigationActionLinks.ts
|
|
11154
|
-
var
|
|
11177
|
+
var Yn = class extends HTMLElement {
|
|
11155
11178
|
static get observedAttributes() {
|
|
11156
11179
|
return ["separated"];
|
|
11157
11180
|
}
|
|
@@ -11168,10 +11191,10 @@ var qn = class extends HTMLElement {
|
|
|
11168
11191
|
this.className = this._isSeparated() ? "mint-sidenav-action-links is-separated" : "mint-sidenav-action-links";
|
|
11169
11192
|
}
|
|
11170
11193
|
};
|
|
11171
|
-
customElements.get("mint-sidenav-action-links") || a("mint-sidenav-action-links",
|
|
11194
|
+
customElements.get("mint-sidenav-action-links") || a("mint-sidenav-action-links", Yn);
|
|
11172
11195
|
//#endregion
|
|
11173
11196
|
//#region src/components/side-navigation/SideNavigationActionMenu.ts
|
|
11174
|
-
var
|
|
11197
|
+
var Xn = class extends HTMLElement {
|
|
11175
11198
|
constructor(...e) {
|
|
11176
11199
|
super(...e), this._wrapper = null, this._trigger = null, this._popover = null, this._triggerId = "", this._contentObserver = null, this._renderFrame = null;
|
|
11177
11200
|
}
|
|
@@ -11238,11 +11261,11 @@ var Jn = class extends HTMLElement {
|
|
|
11238
11261
|
}) : a.appendChild(this._createDefaultGroup()), this._popover.appendChild(a), this._wrapper.appendChild(this._trigger), this._wrapper.appendChild(this._popover);
|
|
11239
11262
|
}
|
|
11240
11263
|
};
|
|
11241
|
-
customElements.get("mint-sidenav-action-menu") || a("mint-sidenav-action-menu",
|
|
11264
|
+
customElements.get("mint-sidenav-action-menu") || a("mint-sidenav-action-menu", Xn);
|
|
11242
11265
|
//#endregion
|
|
11243
11266
|
//#region src/components/side-navigation/SideNavigation.ts
|
|
11244
11267
|
var B = "mint:url-change";
|
|
11245
|
-
function
|
|
11268
|
+
function Zn() {
|
|
11246
11269
|
if (window.__mintUrlChangePatched) return;
|
|
11247
11270
|
window.__mintUrlChangePatched = !0;
|
|
11248
11271
|
let e = () => {
|
|
@@ -11256,7 +11279,7 @@ function Yn() {
|
|
|
11256
11279
|
};
|
|
11257
11280
|
t("pushState"), t("replaceState");
|
|
11258
11281
|
}
|
|
11259
|
-
var
|
|
11282
|
+
var Qn = class extends HTMLElement {
|
|
11260
11283
|
constructor(...e) {
|
|
11261
11284
|
super(...e), this._backdrop = null, this._container = null, this._header = null, this._content = 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._onMobileNavNavigateClick = (e) => {
|
|
11262
11285
|
if (this._mediaQuery?.matches) return;
|
|
@@ -11319,7 +11342,7 @@ var Xn = class extends HTMLElement {
|
|
|
11319
11342
|
this._accordionHandler &&= (this.removeEventListener("mint-sidenav-accordion", this._accordionHandler), null);
|
|
11320
11343
|
}
|
|
11321
11344
|
_attachUrlChangeListener() {
|
|
11322
|
-
this._urlChangeHandler || (
|
|
11345
|
+
this._urlChangeHandler || (Zn(), this._urlChangeHandler = () => {
|
|
11323
11346
|
this._mediaQuery?.matches || this._isOpen() && this.removeAttribute("open");
|
|
11324
11347
|
}, window.addEventListener("popstate", this._urlChangeHandler), window.addEventListener("hashchange", this._urlChangeHandler), window.addEventListener(B, this._urlChangeHandler));
|
|
11325
11348
|
}
|
|
@@ -11382,10 +11405,10 @@ var Xn = class extends HTMLElement {
|
|
|
11382
11405
|
this._ensureBackdrop(), this._ensureContainer(), this._syncShell(), this._buildUserHeader(), this._buildContent(), this._buildFooter();
|
|
11383
11406
|
}
|
|
11384
11407
|
};
|
|
11385
|
-
customElements.get("mint-side-navigation") || a("mint-side-navigation",
|
|
11408
|
+
customElements.get("mint-side-navigation") || a("mint-side-navigation", Qn);
|
|
11386
11409
|
//#endregion
|
|
11387
11410
|
//#region src/components/side-navigation/index.ts
|
|
11388
|
-
var
|
|
11411
|
+
var $n = Qn, V = "mint-sortable-placeholder", H = "mint-sortable-dragging", er = class e extends HTMLElement {
|
|
11389
11412
|
static get observedAttributes() {
|
|
11390
11413
|
return [
|
|
11391
11414
|
"direction",
|
|
@@ -11802,10 +11825,10 @@ var Zn = Xn, V = "mint-sortable-placeholder", H = "mint-sortable-dragging", Qn =
|
|
|
11802
11825
|
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;
|
|
11803
11826
|
}
|
|
11804
11827
|
};
|
|
11805
|
-
customElements.get("mint-sortable") || a("mint-sortable",
|
|
11828
|
+
customElements.get("mint-sortable") || a("mint-sortable", er);
|
|
11806
11829
|
//#endregion
|
|
11807
11830
|
//#region src/components/tabs/Tab.ts
|
|
11808
|
-
var
|
|
11831
|
+
var tr = class extends HTMLElement {
|
|
11809
11832
|
static get observedAttributes() {
|
|
11810
11833
|
return [
|
|
11811
11834
|
"active",
|
|
@@ -11864,10 +11887,10 @@ var $n = class extends HTMLElement {
|
|
|
11864
11887
|
})));
|
|
11865
11888
|
}
|
|
11866
11889
|
};
|
|
11867
|
-
customElements.get("mint-tab") || a("mint-tab",
|
|
11890
|
+
customElements.get("mint-tab") || a("mint-tab", tr);
|
|
11868
11891
|
//#endregion
|
|
11869
11892
|
//#region src/components/tabs/TabList.ts
|
|
11870
|
-
var
|
|
11893
|
+
var nr = class extends HTMLElement {
|
|
11871
11894
|
static get observedAttributes() {
|
|
11872
11895
|
return ["position"];
|
|
11873
11896
|
}
|
|
@@ -11887,10 +11910,10 @@ var er = class extends HTMLElement {
|
|
|
11887
11910
|
this.setAttribute("role", "tablist"), !this.hasAttribute("aria-label") && !this.hasAttribute("aria-labelledby") && this.setAttribute("aria-label", "Tabs"), this.setAttribute("aria-orientation", this.getPosition() === "top" ? "horizontal" : "vertical");
|
|
11888
11911
|
}
|
|
11889
11912
|
};
|
|
11890
|
-
customElements.get("mint-tab-list") || a("mint-tab-list",
|
|
11913
|
+
customElements.get("mint-tab-list") || a("mint-tab-list", nr);
|
|
11891
11914
|
//#endregion
|
|
11892
11915
|
//#region src/components/tabs/TabContent.ts
|
|
11893
|
-
var
|
|
11916
|
+
var rr = class extends HTMLElement {
|
|
11894
11917
|
static get observedAttributes() {
|
|
11895
11918
|
return ["id"];
|
|
11896
11919
|
}
|
|
@@ -11928,10 +11951,10 @@ var tr = class extends HTMLElement {
|
|
|
11928
11951
|
this.setAttribute("role", "tabpanel"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0");
|
|
11929
11952
|
}
|
|
11930
11953
|
};
|
|
11931
|
-
customElements.get("mint-tab-content") || a("mint-tab-content",
|
|
11954
|
+
customElements.get("mint-tab-content") || a("mint-tab-content", rr);
|
|
11932
11955
|
//#endregion
|
|
11933
11956
|
//#region src/components/tabs/Tabs.ts
|
|
11934
|
-
var
|
|
11957
|
+
var ir = class e extends HTMLElement {
|
|
11935
11958
|
static {
|
|
11936
11959
|
this._id = 0;
|
|
11937
11960
|
}
|
|
@@ -12037,10 +12060,10 @@ var nr = class e extends HTMLElement {
|
|
|
12037
12060
|
});
|
|
12038
12061
|
}
|
|
12039
12062
|
};
|
|
12040
|
-
customElements.get("mint-tabs") || a("mint-tabs",
|
|
12063
|
+
customElements.get("mint-tabs") || a("mint-tabs", ir);
|
|
12041
12064
|
//#endregion
|
|
12042
12065
|
//#region src/components/tags/Tags.ts
|
|
12043
|
-
var
|
|
12066
|
+
var ar = class extends HTMLElement {
|
|
12044
12067
|
constructor(...e) {
|
|
12045
12068
|
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;
|
|
12046
12069
|
}
|
|
@@ -12453,10 +12476,10 @@ var rr = class extends HTMLElement {
|
|
|
12453
12476
|
}
|
|
12454
12477
|
}
|
|
12455
12478
|
};
|
|
12456
|
-
customElements.get("mint-tags") || a("mint-tags",
|
|
12479
|
+
customElements.get("mint-tags") || a("mint-tags", ar);
|
|
12457
12480
|
//#endregion
|
|
12458
12481
|
//#region src/components/time-picker/TimePicker.ts
|
|
12459
|
-
var
|
|
12482
|
+
var or = class extends HTMLElement {
|
|
12460
12483
|
constructor(...e) {
|
|
12461
12484
|
super(...e), this._triggerId = `mint-time-picker-trigger-${Math.random().toString(36).slice(2, 10)}`, this._popover = null, this._popoverObserver = null, this._inputEl = null, this._hiddenInput = null, this._single = {
|
|
12462
12485
|
hour: 9,
|
|
@@ -12794,10 +12817,10 @@ var ir = class extends HTMLElement {
|
|
|
12794
12817
|
i.setAttribute("data-mint-time-picker-body", "true"), i.className = "mint-time-picker-popover", this._buildPopoverContent(i), this._popover.appendChild(i), r.appendChild(this._popover), this._setupPopoverOpenObserver(), this.appendChild(r);
|
|
12795
12818
|
}
|
|
12796
12819
|
};
|
|
12797
|
-
customElements.get("mint-time-picker") || a("mint-time-picker",
|
|
12820
|
+
customElements.get("mint-time-picker") || a("mint-time-picker", or);
|
|
12798
12821
|
//#endregion
|
|
12799
12822
|
//#region src/components/toast/Toast.ts
|
|
12800
|
-
var
|
|
12823
|
+
var sr = class extends HTMLElement {
|
|
12801
12824
|
constructor(...e) {
|
|
12802
12825
|
super(...e), this._messageEl = null, this._hideTimer = null, this._hideResolve = null, this._bottomNavObserver = null, this._bodyObserver = null;
|
|
12803
12826
|
}
|
|
@@ -12874,11 +12897,11 @@ var ar = class extends HTMLElement {
|
|
|
12874
12897
|
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);
|
|
12875
12898
|
}
|
|
12876
12899
|
};
|
|
12877
|
-
customElements.get("mint-toast") || a("mint-toast",
|
|
12900
|
+
customElements.get("mint-toast") || a("mint-toast", sr);
|
|
12878
12901
|
//#endregion
|
|
12879
12902
|
//#region src/components/toast/ToastApi.ts
|
|
12880
|
-
var
|
|
12881
|
-
function
|
|
12903
|
+
var cr = 2200, U = [], W = !1, G = null;
|
|
12904
|
+
function lr() {
|
|
12882
12905
|
return typeof document > "u" || document.body ? Promise.resolve() : new Promise((e) => {
|
|
12883
12906
|
if (typeof window > "u") {
|
|
12884
12907
|
e();
|
|
@@ -12889,14 +12912,14 @@ function sr() {
|
|
|
12889
12912
|
}, { once: !0 });
|
|
12890
12913
|
});
|
|
12891
12914
|
}
|
|
12892
|
-
async function
|
|
12893
|
-
if (await
|
|
12915
|
+
async function ur() {
|
|
12916
|
+
if (await lr(), typeof document > "u") throw Error("mintui.toast is only available in browser environments.");
|
|
12894
12917
|
let e = document.querySelector("mint-toast[data-mint-toast-root=\"true\"]");
|
|
12895
12918
|
if (e) return e;
|
|
12896
12919
|
let t = document.createElement("mint-toast");
|
|
12897
12920
|
return t.setAttribute("data-mint-toast-root", "true"), document.body.appendChild(t), t;
|
|
12898
12921
|
}
|
|
12899
|
-
async function
|
|
12922
|
+
async function dr() {
|
|
12900
12923
|
if (!W) {
|
|
12901
12924
|
W = !0;
|
|
12902
12925
|
try {
|
|
@@ -12905,9 +12928,9 @@ async function lr() {
|
|
|
12905
12928
|
if (!e) continue;
|
|
12906
12929
|
let t = e.message.trim().slice(0, 120);
|
|
12907
12930
|
if (!t) continue;
|
|
12908
|
-
let n = await
|
|
12931
|
+
let n = await ur();
|
|
12909
12932
|
G = n;
|
|
12910
|
-
let r = e.options?.duration ??
|
|
12933
|
+
let r = e.options?.duration ?? cr, i = e.options?.type ?? "neutral";
|
|
12911
12934
|
await n.showToast(t, r, i);
|
|
12912
12935
|
}
|
|
12913
12936
|
} finally {
|
|
@@ -12919,9 +12942,9 @@ function K(e, t) {
|
|
|
12919
12942
|
typeof window > "u" || (U.push({
|
|
12920
12943
|
message: e,
|
|
12921
12944
|
options: t
|
|
12922
|
-
}), W && G && G.hideToast(),
|
|
12945
|
+
}), W && G && G.hideToast(), dr());
|
|
12923
12946
|
}
|
|
12924
|
-
var
|
|
12947
|
+
var fr = { toast: K };
|
|
12925
12948
|
if (typeof window < "u") {
|
|
12926
12949
|
let e = window.mintui || {};
|
|
12927
12950
|
e.toast = K, window.mintui = e;
|
|
@@ -12929,7 +12952,7 @@ if (typeof window < "u") {
|
|
|
12929
12952
|
//#endregion
|
|
12930
12953
|
//#region src/components/tree/tree-utils.js
|
|
12931
12954
|
function q(e = []) {
|
|
12932
|
-
|
|
12955
|
+
hr(e);
|
|
12933
12956
|
let t = (e) => e.map((e) => ({
|
|
12934
12957
|
...e,
|
|
12935
12958
|
children: Array.isArray(e.children) ? t(e.children) : []
|
|
@@ -12958,11 +12981,11 @@ function Y(e, t, n = null) {
|
|
|
12958
12981
|
}
|
|
12959
12982
|
return null;
|
|
12960
12983
|
}
|
|
12961
|
-
function
|
|
12984
|
+
function pr(e, t, n = 0) {
|
|
12962
12985
|
let r = String(t);
|
|
12963
12986
|
for (let t of e) {
|
|
12964
12987
|
if (String(t.id) === r) return n;
|
|
12965
|
-
let e =
|
|
12988
|
+
let e = pr(t.children || [], r, n + 1);
|
|
12966
12989
|
if (e >= 0) return e;
|
|
12967
12990
|
}
|
|
12968
12991
|
return -1;
|
|
@@ -12971,10 +12994,10 @@ function X(e) {
|
|
|
12971
12994
|
let t = Array.isArray(e?.children) ? e.children : [];
|
|
12972
12995
|
return t.length ? 1 + Math.max(...t.map(X)) : 1;
|
|
12973
12996
|
}
|
|
12974
|
-
function
|
|
12975
|
-
return String(e.id) === String(t) ? !0 : (e.children || []).some((e) =>
|
|
12997
|
+
function mr(e, t) {
|
|
12998
|
+
return String(e.id) === String(t) ? !0 : (e.children || []).some((e) => mr(e, t));
|
|
12976
12999
|
}
|
|
12977
|
-
function
|
|
13000
|
+
function hr(e) {
|
|
12978
13001
|
let t = /* @__PURE__ */ new Set(), n = (e) => {
|
|
12979
13002
|
for (let r of e) {
|
|
12980
13003
|
if (r.id === null || r.id === void 0 || String(r.id) === "") throw Error("Every tree item must have a non-empty identifier.");
|
|
@@ -12985,13 +13008,13 @@ function pr(e) {
|
|
|
12985
13008
|
};
|
|
12986
13009
|
n(e);
|
|
12987
13010
|
}
|
|
12988
|
-
function
|
|
13011
|
+
function gr(e, t, n, r, i = {}) {
|
|
12989
13012
|
let a = q(e), o = Y(a, t);
|
|
12990
13013
|
if (!o) throw Error(`Tree item ${t} was not found.`);
|
|
12991
13014
|
if (o.item.disabled || o.item.draggable === !1) throw Error("Disabled tree items cannot be moved.");
|
|
12992
13015
|
let s = n == null || n === "" ? null : J(a, n);
|
|
12993
13016
|
if (n != null && n !== "" && !s) throw Error(`Target parent ${n} was not found.`);
|
|
12994
|
-
if (s &&
|
|
13017
|
+
if (s && mr(o.item, s.id)) throw Error("A tree item cannot be moved inside itself or one of its descendants.");
|
|
12995
13018
|
if (s?.disabled) throw Error("Disabled tree items cannot contain children.");
|
|
12996
13019
|
if (i.allowNesting === !1 && s) throw Error("Nesting is disabled for this tree.");
|
|
12997
13020
|
if (s?.canHaveChildren === !1) throw Error("The target item cannot contain children.");
|
|
@@ -12999,7 +13022,7 @@ function Z(e, t, n, r, i = {}) {
|
|
|
12999
13022
|
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);
|
|
13000
13023
|
c.splice(d, 0, u);
|
|
13001
13024
|
let f = Number.isFinite(i.maxDepth) ? Math.max(1, Math.trunc(i.maxDepth)) : Infinity;
|
|
13002
|
-
if ((s ?
|
|
13025
|
+
if ((s ? pr(a, s.id) + 1 : 0) + X(u) > f) throw Error(`Moving this branch would exceed the maximum tree depth of ${f}.`);
|
|
13003
13026
|
return {
|
|
13004
13027
|
items: a,
|
|
13005
13028
|
item: u,
|
|
@@ -13011,36 +13034,36 @@ function Z(e, t, n, r, i = {}) {
|
|
|
13011
13034
|
}
|
|
13012
13035
|
//#endregion
|
|
13013
13036
|
//#region src/components/tree/Tree.ts
|
|
13014
|
-
var
|
|
13015
|
-
function
|
|
13037
|
+
var _r = 0;
|
|
13038
|
+
function Z(e, t, n) {
|
|
13016
13039
|
e.dispatchEvent(new CustomEvent(t, {
|
|
13017
13040
|
bubbles: !0,
|
|
13018
13041
|
composed: !0,
|
|
13019
13042
|
detail: n
|
|
13020
13043
|
}));
|
|
13021
13044
|
}
|
|
13022
|
-
function
|
|
13045
|
+
function vr(e, t) {
|
|
13023
13046
|
let n = e.getAttribute(t);
|
|
13024
13047
|
return n === "" || n === "true";
|
|
13025
13048
|
}
|
|
13026
|
-
function
|
|
13049
|
+
function Q(e) {
|
|
13027
13050
|
return e == null || e === "" ? null : String(e);
|
|
13028
13051
|
}
|
|
13029
|
-
var
|
|
13052
|
+
var $ = class extends HTMLElement {
|
|
13030
13053
|
constructor(...e) {
|
|
13031
|
-
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-${++
|
|
13054
|
+
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-${++_r}`, this._liveRegion = null, this._dragExpansion = null, this._autoExpandedIds = /* @__PURE__ */ new Set(), this._dragHoverExpandedId = null, this._keyboardFocusRestore = null, this._onClick = (e) => {
|
|
13032
13055
|
let t = e.target instanceof Element ? e.target.closest("[data-tree-command]") : null;
|
|
13033
13056
|
if (!t || !this.contains(t)) return;
|
|
13034
13057
|
let n = t.getAttribute("data-tree-command"), r = t.getAttribute("data-tree-id");
|
|
13035
|
-
if (n === "create-root")
|
|
13058
|
+
if (n === "create-root") Z(this, "mint-tree-create", {
|
|
13036
13059
|
parentId: null,
|
|
13037
13060
|
items: this.items
|
|
13038
13061
|
});
|
|
13039
|
-
else if (n === "expand-all") this._expandedIds = this._defaultExpandedIds(this._items), this._syncExpandedDOM(),
|
|
13062
|
+
else if (n === "expand-all") this._expandedIds = this._defaultExpandedIds(this._items), this._syncExpandedDOM(), Z(this, "mint-tree-expand", {
|
|
13040
13063
|
all: !0,
|
|
13041
13064
|
expandedIds: this.expandedIds
|
|
13042
13065
|
});
|
|
13043
|
-
else if (n === "collapse-all") this._expandedIds.clear(), this._syncExpandedDOM(),
|
|
13066
|
+
else if (n === "collapse-all") this._expandedIds.clear(), this._syncExpandedDOM(), Z(this, "mint-tree-collapse", {
|
|
13044
13067
|
all: !0,
|
|
13045
13068
|
expandedIds: []
|
|
13046
13069
|
});
|
|
@@ -13050,14 +13073,14 @@ var gr = class extends HTMLElement {
|
|
|
13050
13073
|
let e = !this._expandedIds.has(r);
|
|
13051
13074
|
this._setExpanded(r, e, !0);
|
|
13052
13075
|
} else if (n === "select" && r) this._select(r);
|
|
13053
|
-
else if (n === "create-child" && r) this._closeItemPopover(t),
|
|
13076
|
+
else if (n === "create-child" && r) this._closeItemPopover(t), Z(this, "mint-tree-create", {
|
|
13054
13077
|
parentId: r,
|
|
13055
13078
|
items: this.items
|
|
13056
13079
|
});
|
|
13057
13080
|
else if (n === "edit" && r) {
|
|
13058
13081
|
this._closeItemPopover(t);
|
|
13059
13082
|
let e = J(this._items, r);
|
|
13060
|
-
e &&
|
|
13083
|
+
e && Z(this, "mint-tree-edit", {
|
|
13061
13084
|
item: { ...e },
|
|
13062
13085
|
itemId: r,
|
|
13063
13086
|
items: this.items
|
|
@@ -13082,7 +13105,7 @@ var gr = class extends HTMLElement {
|
|
|
13082
13105
|
},
|
|
13083
13106
|
items: this.items
|
|
13084
13107
|
};
|
|
13085
|
-
|
|
13108
|
+
Z(this, "mint-tree-action", t), i.onSelect?.({
|
|
13086
13109
|
item: { ...e },
|
|
13087
13110
|
itemId: r,
|
|
13088
13111
|
action: i,
|
|
@@ -13109,7 +13132,7 @@ var gr = class extends HTMLElement {
|
|
|
13109
13132
|
let e = this._dragHoverExpandedId;
|
|
13110
13133
|
this._dragHoverExpandedId = null, this._autoExpandedIds.delete(e), this._expandedIds.delete(e), this._syncNodeExpanded(e);
|
|
13111
13134
|
let t = J(this._items, e);
|
|
13112
|
-
t &&
|
|
13135
|
+
t && Z(this, "mint-tree-collapse", {
|
|
13113
13136
|
itemId: e,
|
|
13114
13137
|
item: { ...t },
|
|
13115
13138
|
expandedIds: this.expandedIds,
|
|
@@ -13118,7 +13141,7 @@ var gr = class extends HTMLElement {
|
|
|
13118
13141
|
}
|
|
13119
13142
|
if (a) {
|
|
13120
13143
|
let e = J(this._items, a);
|
|
13121
|
-
e && !this._expandedIds.has(a) && (this._expandedIds.add(a), this._autoExpandedIds.add(a), this._dragHoverExpandedId = a, this._syncNodeExpanded(a),
|
|
13144
|
+
e && !this._expandedIds.has(a) && (this._expandedIds.add(a), this._autoExpandedIds.add(a), this._dragHoverExpandedId = a, this._syncNodeExpanded(a), Z(this, "mint-tree-expand", {
|
|
13122
13145
|
itemId: a,
|
|
13123
13146
|
item: { ...e },
|
|
13124
13147
|
expandedIds: this.expandedIds,
|
|
@@ -13140,12 +13163,12 @@ var gr = class extends HTMLElement {
|
|
|
13140
13163
|
});
|
|
13141
13164
|
}, this._onSortableEnd = (e) => {
|
|
13142
13165
|
this.classList.remove("mint-tree-drag-active");
|
|
13143
|
-
let t = e.detail, n = t && !t.cancelled ?
|
|
13166
|
+
let t = e.detail, n = t && !t.cancelled ? Q(t.newParentId) : null;
|
|
13144
13167
|
for (let e of this._autoExpandedIds) {
|
|
13145
13168
|
if (e === n) continue;
|
|
13146
13169
|
this._expandedIds.delete(e), this._syncNodeExpanded(e);
|
|
13147
13170
|
let t = J(this._items, e);
|
|
13148
|
-
t &&
|
|
13171
|
+
t && Z(this, "mint-tree-collapse", {
|
|
13149
13172
|
itemId: e,
|
|
13150
13173
|
item: { ...t },
|
|
13151
13174
|
expandedIds: this.expandedIds,
|
|
@@ -13168,19 +13191,19 @@ var gr = class extends HTMLElement {
|
|
|
13168
13191
|
let t = e, { item: n, target: r } = t.detail || {};
|
|
13169
13192
|
if (!n || !r) return;
|
|
13170
13193
|
this._root?.querySelectorAll(".mint-tree-drop-invalid").forEach((e) => e.classList.remove("mint-tree-drop-invalid"));
|
|
13171
|
-
let i = this._root?.querySelector(".mint-sortable-placeholder"), a = n.getAttribute("data-tree-id") || "", o =
|
|
13194
|
+
let i = this._root?.querySelector(".mint-sortable-placeholder"), a = n.getAttribute("data-tree-id") || "", o = Q(r.getAttribute("data-tree-parent-id")), s = r === t.detail.source || this._isValidDrop(a, o), c = o ? J(this._items, o) : null;
|
|
13172
13195
|
s && r !== t.detail.source && c ? i?.setAttribute("data-drop-label", `Drop here to nest under ${c.label}`) : s && r === this._root?.querySelector(":scope > mint-sortable") ? i?.setAttribute("data-drop-label", "Drop here to move to the top level") : i?.removeAttribute("data-drop-label");
|
|
13173
13196
|
let l = (Number.isFinite(t.detail.clientX) && Number.isFinite(t.detail.clientY) ? document.elementFromPoint(t.detail.clientX, t.detail.clientY) : null)?.closest("[data-mint-tree-row]");
|
|
13174
13197
|
l && l.getAttribute("data-tree-id") !== a && !s && l.classList.add("mint-tree-drop-invalid"), s || t.preventDefault();
|
|
13175
13198
|
}, this._onSortableBeforeDrop = (e) => {
|
|
13176
13199
|
let t = e, n = t.detail;
|
|
13177
13200
|
if (!n?.item || !n.target) return;
|
|
13178
|
-
let r = n.item.getAttribute("data-tree-id") || "", i =
|
|
13201
|
+
let r = n.item.getAttribute("data-tree-id") || "", i = Q(n.target.getAttribute("data-tree-parent-id"));
|
|
13179
13202
|
n.target !== n.source && !this._isValidDrop(r, i) && t.preventDefault();
|
|
13180
13203
|
}, this._onSortableChange = (e) => {
|
|
13181
13204
|
let t = e.detail;
|
|
13182
13205
|
if (!t || t.cancelled) return;
|
|
13183
|
-
let n = t.itemId || "", r =
|
|
13206
|
+
let n = t.itemId || "", r = Q(t.oldParentId), i = Q(t.newParentId), a = this._root?.querySelector(":scope > mint-sortable");
|
|
13184
13207
|
if (!a) return;
|
|
13185
13208
|
let o = J(this._items, n);
|
|
13186
13209
|
this._recordHistory(), this._items = this._readItemsFromDOM(a), this._collapseEmptyExpandedNodes();
|
|
@@ -13195,10 +13218,10 @@ var gr = class extends HTMLElement {
|
|
|
13195
13218
|
oldIndex: Number(t.oldIndex ?? -1),
|
|
13196
13219
|
newIndex: Number(t.newIndex ?? -1)
|
|
13197
13220
|
};
|
|
13198
|
-
this._clearDropState(),
|
|
13221
|
+
this._clearDropState(), Z(this, "mint-tree-change", {
|
|
13199
13222
|
items: c.items,
|
|
13200
13223
|
itemId: n
|
|
13201
|
-
}), r === i ?
|
|
13224
|
+
}), r === i ? Z(this, "mint-tree-reorder", c) : Z(this, "mint-tree-reparent", c);
|
|
13202
13225
|
let l = `${s.label} moved${i ? ` into ${J(this._items, i)?.label || "a group"}` : " to the top level"}.`;
|
|
13203
13226
|
this._dragExpansion?.itemId === n ? window.setTimeout(() => {
|
|
13204
13227
|
this.isConnected && (this._render(), this._focusRow(n), this._announce(l));
|
|
@@ -13261,7 +13284,7 @@ var gr = class extends HTMLElement {
|
|
|
13261
13284
|
];
|
|
13262
13285
|
}
|
|
13263
13286
|
connectedCallback() {
|
|
13264
|
-
this._root || (this._selectedId =
|
|
13287
|
+
this._root || (this._selectedId = Q(this.getAttribute("selected-id")), this._expandedIds = this.hasAttribute("expanded-ids") ? this._readExpandedIds(this.getAttribute("expanded-ids")) : this._defaultExpandedIds(this._items), this.addEventListener("click", this._onClick), this.addEventListener("keydown", this._onKeydown, !0), this.addEventListener("mint-sortable-start", this._onSortableStart), this.addEventListener("mint-sortable-end", this._onSortableEnd), this.addEventListener("mint-sortable-drag", this._onSortableDrag), this.addEventListener("mint-sortable-drag-over", this._onSortableDragOver), this.addEventListener("mint-sortable-before-drop", this._onSortableBeforeDrop), this.addEventListener("mint-sortable-change", this._onSortableChange), this._render());
|
|
13265
13288
|
}
|
|
13266
13289
|
disconnectedCallback() {
|
|
13267
13290
|
this._dragExpansion?.timer !== null && this._dragExpansion?.timer !== void 0 && window.clearTimeout(this._dragExpansion.timer), this._keyboardFocusRestore && window.clearTimeout(this._keyboardFocusRestore.timer), this._keyboardFocusRestore = null, this._dragExpansion = null, this._autoExpandedIds.clear(), this._dragHoverExpandedId = null, this.classList.remove("mint-tree-drag-active"), this.removeEventListener("click", this._onClick), this.removeEventListener("keydown", this._onKeydown, !0), this.removeEventListener("mint-sortable-start", this._onSortableStart), this.removeEventListener("mint-sortable-end", this._onSortableEnd), this.removeEventListener("mint-sortable-drag", this._onSortableDrag), this.removeEventListener("mint-sortable-drag-over", this._onSortableDragOver), this.removeEventListener("mint-sortable-before-drop", this._onSortableBeforeDrop), this.removeEventListener("mint-sortable-change", this._onSortableChange), this._root = null;
|
|
@@ -13269,7 +13292,7 @@ var gr = class extends HTMLElement {
|
|
|
13269
13292
|
attributeChangedCallback(e, t, n) {
|
|
13270
13293
|
if (!(t === n || !this.isConnected)) {
|
|
13271
13294
|
if (e === "selected-id") {
|
|
13272
|
-
this._selectedId =
|
|
13295
|
+
this._selectedId = Q(n), this._syncSelectionDOM();
|
|
13273
13296
|
return;
|
|
13274
13297
|
}
|
|
13275
13298
|
e === "expanded-ids" && (this._expandedIds = this._readExpandedIds(n)), this._render();
|
|
@@ -13285,7 +13308,7 @@ var gr = class extends HTMLElement {
|
|
|
13285
13308
|
return this._selectedId;
|
|
13286
13309
|
}
|
|
13287
13310
|
set selectedId(e) {
|
|
13288
|
-
this._selectedId =
|
|
13311
|
+
this._selectedId = Q(e), this._selectedId === null ? this.removeAttribute("selected-id") : this.setAttribute("selected-id", this._selectedId);
|
|
13289
13312
|
}
|
|
13290
13313
|
get expandedIds() {
|
|
13291
13314
|
return [...this._expandedIds];
|
|
@@ -13294,7 +13317,7 @@ var gr = class extends HTMLElement {
|
|
|
13294
13317
|
this._expandedIds = new Set((Array.isArray(e) ? e : []).map(String)), this.isConnected && this._render();
|
|
13295
13318
|
}
|
|
13296
13319
|
save() {
|
|
13297
|
-
|
|
13320
|
+
Z(this, "mint-tree-save", { items: this.items });
|
|
13298
13321
|
}
|
|
13299
13322
|
select(e) {
|
|
13300
13323
|
this._select(String(e));
|
|
@@ -13325,13 +13348,13 @@ var gr = class extends HTMLElement {
|
|
|
13325
13348
|
return Number.isFinite(e) && e > 0 ? e : Infinity;
|
|
13326
13349
|
}
|
|
13327
13350
|
_allowNesting() {
|
|
13328
|
-
return !this.hasAttribute("allow-nesting") ||
|
|
13351
|
+
return !this.hasAttribute("allow-nesting") || vr(this, "allow-nesting");
|
|
13329
13352
|
}
|
|
13330
13353
|
_disabled() {
|
|
13331
|
-
return
|
|
13354
|
+
return vr(this, "disabled");
|
|
13332
13355
|
}
|
|
13333
13356
|
_isLoading() {
|
|
13334
|
-
return
|
|
13357
|
+
return vr(this, "loading");
|
|
13335
13358
|
}
|
|
13336
13359
|
_render() {
|
|
13337
13360
|
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;
|
|
@@ -13348,8 +13371,10 @@ var gr = class extends HTMLElement {
|
|
|
13348
13371
|
o.setAttribute("icon", "undo"), o.setAttribute("aria-label", "Undo last change"), o.setAttribute("title", "Undo"), (!this._undoStack.length || this._disabled()) && o.setAttribute("disabled", "true");
|
|
13349
13372
|
let s = this._createButton("", "ghost", "redo");
|
|
13350
13373
|
s.setAttribute("icon", "redo"), s.setAttribute("aria-label", "Redo last undone change"), s.setAttribute("title", "Redo"), (!this._redoStack.length || this._disabled()) && s.setAttribute("disabled", "true");
|
|
13351
|
-
let c = this._createButton("
|
|
13352
|
-
|
|
13374
|
+
let c = this._createButton("", "ghost", "expand-all");
|
|
13375
|
+
c.setAttribute("icon", "expand"), c.setAttribute("aria-label", "Expand all"), c.setAttribute("title", "Expand all");
|
|
13376
|
+
let l = this._createButton("", "ghost", "collapse-all");
|
|
13377
|
+
if (l.setAttribute("icon", "collapse"), l.setAttribute("aria-label", "Collapse all"), l.setAttribute("title", "Collapse all"), a.append(o, s, c, l), r.appendChild(a), n.appendChild(r), this._isLoading()) {
|
|
13353
13378
|
let e = document.createElement("div");
|
|
13354
13379
|
e.className = "mint-tree-loading", e.setAttribute("aria-label", "Loading items");
|
|
13355
13380
|
let t = document.createElement("mint-spinner");
|
|
@@ -13457,7 +13482,7 @@ var gr = class extends HTMLElement {
|
|
|
13457
13482
|
tone: "danger",
|
|
13458
13483
|
confirmLabel: "Delete",
|
|
13459
13484
|
cancelLabel: "Cancel"
|
|
13460
|
-
}) &&
|
|
13485
|
+
}) && Z(this, "mint-tree-delete", {
|
|
13461
13486
|
item: { ...t },
|
|
13462
13487
|
itemId: e,
|
|
13463
13488
|
items: this.items
|
|
@@ -13480,7 +13505,7 @@ var gr = class extends HTMLElement {
|
|
|
13480
13505
|
i = e.parentId, a = e.siblings.findIndex((e) => String(e.id) === n.parentId) + 1;
|
|
13481
13506
|
} else return;
|
|
13482
13507
|
try {
|
|
13483
|
-
let t =
|
|
13508
|
+
let t = gr(this._items, e, i, a, {
|
|
13484
13509
|
maxDepth: this._maxDepth(),
|
|
13485
13510
|
allowNesting: this._allowNesting()
|
|
13486
13511
|
});
|
|
@@ -13498,14 +13523,14 @@ var gr = class extends HTMLElement {
|
|
|
13498
13523
|
oldIndex: e.oldIndex,
|
|
13499
13524
|
newIndex: e.newIndex
|
|
13500
13525
|
};
|
|
13501
|
-
|
|
13526
|
+
Z(this, "mint-tree-change", {
|
|
13502
13527
|
items: t.items,
|
|
13503
13528
|
itemId: t.itemId
|
|
13504
|
-
}),
|
|
13529
|
+
}), Z(this, t.oldParentId === t.newParentId ? "mint-tree-reorder" : "mint-tree-reparent", t), this._announce(`${t.item.label} moved${t.newParentId ? ` into ${J(this._items, t.newParentId)?.label || "a group"}` : " to the top level"}.`);
|
|
13505
13530
|
}
|
|
13506
13531
|
_select(e) {
|
|
13507
13532
|
let t = J(this._items, e);
|
|
13508
|
-
!t || t.disabled || this._disabled() || (this._selectedId = e, this.setAttribute("selected-id", e), this._syncSelectionDOM(),
|
|
13533
|
+
!t || t.disabled || this._disabled() || (this._selectedId = e, this.setAttribute("selected-id", e), this._syncSelectionDOM(), Z(this, "mint-tree-select", {
|
|
13509
13534
|
item: { ...t },
|
|
13510
13535
|
itemId: e,
|
|
13511
13536
|
items: this.items
|
|
@@ -13519,7 +13544,7 @@ var gr = class extends HTMLElement {
|
|
|
13519
13544
|
}
|
|
13520
13545
|
_setExpanded(e, t, n) {
|
|
13521
13546
|
let r = J(this._items, e);
|
|
13522
|
-
!r || r.disabled || this._disabled() || (t ? this._expandedIds.add(e) : this._expandedIds.delete(e), this._syncNodeExpanded(e), n &&
|
|
13547
|
+
!r || r.disabled || this._disabled() || (t ? this._expandedIds.add(e) : this._expandedIds.delete(e), this._syncNodeExpanded(e), n && Z(this, t ? "mint-tree-expand" : "mint-tree-collapse", {
|
|
13523
13548
|
itemId: e,
|
|
13524
13549
|
item: { ...r },
|
|
13525
13550
|
expandedIds: this.expandedIds
|
|
@@ -13580,7 +13605,7 @@ var gr = class extends HTMLElement {
|
|
|
13580
13605
|
_collapseEmptyExpandedNodes() {
|
|
13581
13606
|
for (let e of [...this._expandedIds]) {
|
|
13582
13607
|
let t = J(this._items, e);
|
|
13583
|
-
!t || t.children?.length || (this._expandedIds.delete(e), this._syncNodeExpanded(e),
|
|
13608
|
+
!t || t.children?.length || (this._expandedIds.delete(e), this._syncNodeExpanded(e), Z(this, "mint-tree-collapse", {
|
|
13584
13609
|
itemId: e,
|
|
13585
13610
|
item: { ...t },
|
|
13586
13611
|
expandedIds: this.expandedIds,
|
|
@@ -13597,28 +13622,28 @@ var gr = class extends HTMLElement {
|
|
|
13597
13622
|
}
|
|
13598
13623
|
_undo() {
|
|
13599
13624
|
let e = this._undoStack.pop();
|
|
13600
|
-
e && (this._redoStack.push(q(this._items)), this._items = e, this._render(),
|
|
13625
|
+
e && (this._redoStack.push(q(this._items)), this._items = e, this._render(), Z(this, "mint-tree-change", {
|
|
13601
13626
|
items: this.items,
|
|
13602
13627
|
itemId: this._selectedId
|
|
13603
|
-
}),
|
|
13628
|
+
}), Z(this, "mint-tree-undo", { items: this.items }));
|
|
13604
13629
|
}
|
|
13605
13630
|
_redo() {
|
|
13606
13631
|
let e = this._redoStack.pop();
|
|
13607
|
-
e && (this._undoStack.push(q(this._items)), this._items = e, this._render(),
|
|
13632
|
+
e && (this._undoStack.push(q(this._items)), this._items = e, this._render(), Z(this, "mint-tree-change", {
|
|
13608
13633
|
items: this.items,
|
|
13609
13634
|
itemId: this._selectedId
|
|
13610
|
-
}),
|
|
13635
|
+
}), Z(this, "mint-tree-redo", { items: this.items }));
|
|
13611
13636
|
}
|
|
13612
13637
|
_keyboardIndent(e) {
|
|
13613
13638
|
let t = Y(this._items, e);
|
|
13614
13639
|
if (!t || t.siblings.indexOf(t.item) <= 0) return;
|
|
13615
13640
|
let n = t.siblings[t.siblings.indexOf(t.item) - 1];
|
|
13616
13641
|
try {
|
|
13617
|
-
let t =
|
|
13642
|
+
let t = gr(this._items, e, n.id, (n.children || []).length, {
|
|
13618
13643
|
maxDepth: this._maxDepth(),
|
|
13619
13644
|
allowNesting: this._allowNesting()
|
|
13620
13645
|
});
|
|
13621
|
-
this._recordHistory(), this._items = t.items, this._expandedIds.add(String(n.id)), this._render(), this._focusRow(e),
|
|
13646
|
+
this._recordHistory(), this._items = t.items, this._expandedIds.add(String(n.id)), this._render(), this._focusRow(e), Z(this, "mint-tree-reparent", {
|
|
13622
13647
|
itemId: e,
|
|
13623
13648
|
item: { ...t.item },
|
|
13624
13649
|
items: this.items,
|
|
@@ -13636,11 +13661,11 @@ var gr = class extends HTMLElement {
|
|
|
13636
13661
|
if (!n) return;
|
|
13637
13662
|
let r = n.siblings.findIndex((e) => String(e.id) === t.parentId) + 1;
|
|
13638
13663
|
try {
|
|
13639
|
-
let t =
|
|
13664
|
+
let t = gr(this._items, e, n.parentId, r, {
|
|
13640
13665
|
maxDepth: this._maxDepth(),
|
|
13641
13666
|
allowNesting: this._allowNesting()
|
|
13642
13667
|
});
|
|
13643
|
-
this._recordHistory(), this._items = t.items, this._render(), this._focusRow(e),
|
|
13668
|
+
this._recordHistory(), this._items = t.items, this._render(), this._focusRow(e), Z(this, "mint-tree-reparent", {
|
|
13644
13669
|
itemId: e,
|
|
13645
13670
|
item: { ...t.item },
|
|
13646
13671
|
items: this.items,
|
|
@@ -13655,6 +13680,6 @@ var gr = class extends HTMLElement {
|
|
|
13655
13680
|
[...this._root?.querySelectorAll("[data-mint-tree-row]") ?? []].find((t) => t.getAttribute("data-tree-id") === e)?.focus({ preventScroll: !0 });
|
|
13656
13681
|
}
|
|
13657
13682
|
};
|
|
13658
|
-
customElements.get("mint-tree") || a("mint-tree",
|
|
13683
|
+
customElements.get("mint-tree") || a("mint-tree", $);
|
|
13659
13684
|
//#endregion
|
|
13660
|
-
export {
|
|
13685
|
+
export { bn as Alert, cn as BackButton, Sn as BottomNavigation, M as Button, M as default, an as Card, Cn as Chart, hn as Checkbox, wn as Chip, gn as Choice, Tn as Clickable, En as Collapsible, Dn as ConfirmAction, Pn as DatePicker, Fn as Dropzone, In as Form, un as Grid, l as Icon, Nn as Input, on as Link, xn as MintBottomNavItem, I as MintBottomNavigation, Yn as MintSidenavActionLinks, Xn as MintSidenavActionMenu, qn as MintSidenavLink, Jn as MintSidenavLinks, $ as MintTree, $ as Tree, fn as Modal, yn as Navigation, Ln as OffCanvas, ln as Page, mn as Popover, Bn as ResourceTable, Gn as Search, Kn as Select, $n as SideNavigation, er as Sortable, en as Spinner, rn as Stack, tn as Switch, tr as Tab, rr as TabContent, nr as TabList, zn as Table, ir as Tabs, ar as Tags, nn as Text, or as TimePicker, sr as Toast, Mn as confirm, fr as mintui, K as toast };
|