infinity-forge 0.47.5 → 0.47.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fonts.css +1 -1
- package/dist/infinity-forge.css +1 -1
- package/dist/sites/fixed-components/effect/component.d.ts +2 -0
- package/dist/sites/fixed-components/effect/component.js +35 -0
- package/dist/sites/fixed-components/effect/component.js.map +1 -0
- package/dist/sites/fixed-components/effect/index.d.ts +2 -0
- package/dist/sites/fixed-components/effect/index.js +19 -0
- package/dist/sites/fixed-components/effect/index.js.map +1 -0
- package/dist/sites/fixed-components/effect/interfaces.d.ts +6 -0
- package/dist/sites/fixed-components/effect/interfaces.js +3 -0
- package/dist/sites/fixed-components/effect/interfaces.js.map +1 -0
- package/dist/sites/fixed-components/effect/styles.d.ts +19 -0
- package/dist/sites/fixed-components/effect/styles.js +40 -0
- package/dist/sites/fixed-components/effect/styles.js.map +1 -0
- package/dist/sites/fixed-components/index.d.ts +1 -0
- package/dist/sites/fixed-components/index.js +1 -0
- package/dist/sites/fixed-components/index.js.map +1 -1
- package/dist/sites/public/fonts/fonts.css +101 -80
- package/dist/system/data/use-cases/notifications/remote-notifications.js +1 -1
- package/dist/system/data/use-cases/notifications/remote-notifications.js.map +1 -1
- package/dist/system/domain/use-cases/notifications/load-all.d.ts +1 -0
- package/dist/system/presentation/components/data/notifications/card/index.js +0 -3
- package/dist/system/presentation/components/data/notifications/card/index.js.map +1 -1
- package/dist/system/presentation/components/data/notifications/index.js +24 -6
- package/dist/system/presentation/components/data/notifications/index.js.map +1 -1
- package/dist/system/presentation/components/data/notifications/styles.js +1 -1
- package/dist/system/presentation/components/data/notifications/styles.js.map +1 -1
- package/dist/system/presentation/components/layout/component.js +0 -1
- package/dist/system/presentation/components/layout/component.js.map +1 -1
- package/dist/system/presentation/components/layout/header/version-01/index.js.map +1 -1
- package/dist/system/presentation/components/layout/sidebar-menu/index.js +2 -2
- package/dist/system/presentation/components/layout/sidebar-menu/styles.js +1 -1
- package/dist/system/presentation/context/auth/private-page/index.d.ts +1 -1
- package/dist/system/presentation/context/auth/private-page/index.js +2 -2
- package/dist/system/presentation/context/auth/private-page/index.js.map +1 -1
- package/dist/system/presentation/context/auth/private-page/interfaces.d.ts +0 -1
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js +1 -12
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js.map +1 -1
- package/dist/ui/components/button/component.d.ts +1 -1
- package/dist/ui/components/button/component.js +5 -3
- package/dist/ui/components/button/component.js.map +1 -1
- package/dist/ui/components/button/interfaces.d.ts +2 -0
- package/dist/ui/components/button/styles.d.ts +3 -1
- package/dist/ui/components/button/styles.js +1 -1
- package/dist/ui/components/button/styles.js.map +1 -1
- package/dist/ui/components/carousel/styles.js +1 -1
- package/dist/ui/components/carousel/styles.js.map +1 -1
- package/dist/ui/icons/index.d.ts +1 -0
- package/dist/ui/icons/index.js +1 -0
- package/dist/ui/icons/index.js.map +1 -1
- package/dist/ui/icons/render/basic-bottom-arrow.d.ts +2 -0
- package/dist/ui/icons/render/basic-bottom-arrow.js +10 -0
- package/dist/ui/icons/render/basic-bottom-arrow.js.map +1 -0
- package/package.json +1 -1
|
@@ -97,8 +97,8 @@ td {
|
|
|
97
97
|
[class*='font-14'] {
|
|
98
98
|
font-size: 1.4rem;
|
|
99
99
|
}
|
|
100
|
-
[class*='font-
|
|
101
|
-
font-size: 1.
|
|
100
|
+
[class*='font-13'] {
|
|
101
|
+
font-size: 1.3rem;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
[class*='font-12'] {
|
|
@@ -181,6 +181,9 @@ td {
|
|
|
181
181
|
[class*='font-16'] {
|
|
182
182
|
font-size: 1.5rem;
|
|
183
183
|
}
|
|
184
|
+
[class*='font-13'] {
|
|
185
|
+
font-size: 1.2rem;
|
|
186
|
+
}
|
|
184
187
|
}
|
|
185
188
|
|
|
186
189
|
@media only screen and (max-width: 1200px) {
|
|
@@ -325,6 +328,9 @@ td {
|
|
|
325
328
|
[class*='font-16'] {
|
|
326
329
|
font-size: 1.35rem;
|
|
327
330
|
}
|
|
331
|
+
[class*='font-13'] {
|
|
332
|
+
font-size: 1.15rem;
|
|
333
|
+
}
|
|
328
334
|
}
|
|
329
335
|
|
|
330
336
|
@media only screen and (max-width: 650px) {
|
|
@@ -417,55 +423,70 @@ td {
|
|
|
417
423
|
}
|
|
418
424
|
}
|
|
419
425
|
|
|
420
|
-
|
|
421
426
|
/* reset */
|
|
422
427
|
|
|
423
428
|
*,
|
|
424
429
|
*::before,
|
|
425
430
|
*::after {
|
|
426
|
-
box-sizing: border-box;
|
|
431
|
+
box-sizing: border-box;
|
|
427
432
|
}
|
|
428
433
|
html {
|
|
429
|
-
font-family: 'Roboto', sans-serif;
|
|
430
|
-
line-height: 1.15;
|
|
431
|
-
-webkit-text-size-adjust: 100%;
|
|
432
|
-
-ms-text-size-adjust: 100%;
|
|
433
|
-
-ms-overflow-style: scrollbar;
|
|
434
|
-
-webkit-tap-highlight-color: transparent;
|
|
434
|
+
font-family: 'Roboto', sans-serif;
|
|
435
|
+
line-height: 1.15;
|
|
436
|
+
-webkit-text-size-adjust: 100%;
|
|
437
|
+
-ms-text-size-adjust: 100%;
|
|
438
|
+
-ms-overflow-style: scrollbar;
|
|
439
|
+
-webkit-tap-highlight-color: transparent;
|
|
435
440
|
}
|
|
436
441
|
|
|
437
442
|
@-ms-viewport {
|
|
438
443
|
width: device-width;
|
|
439
444
|
}
|
|
440
445
|
|
|
441
|
-
article,
|
|
446
|
+
article,
|
|
447
|
+
aside,
|
|
448
|
+
dialog,
|
|
449
|
+
figcaption,
|
|
450
|
+
figure,
|
|
451
|
+
footer,
|
|
452
|
+
header,
|
|
453
|
+
hgroup,
|
|
454
|
+
main,
|
|
455
|
+
nav,
|
|
456
|
+
section {
|
|
442
457
|
display: block;
|
|
443
458
|
}
|
|
444
459
|
|
|
445
460
|
body {
|
|
446
|
-
margin: 0;
|
|
447
|
-
font-family: 'Roboto', sans-serif, -apple-system, BlinkMacSystemFont,
|
|
461
|
+
margin: 0;
|
|
462
|
+
font-family: 'Roboto', sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
463
|
+
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
448
464
|
font-size: 1rem;
|
|
449
465
|
font-weight: normal;
|
|
450
466
|
line-height: 1.5;
|
|
451
467
|
color: #212529;
|
|
452
|
-
text-align: left;
|
|
453
|
-
background-color: #fff;
|
|
468
|
+
text-align: left;
|
|
469
|
+
background-color: #fff;
|
|
454
470
|
}
|
|
455
471
|
|
|
456
|
-
[tabindex=
|
|
472
|
+
[tabindex='-1']:focus {
|
|
457
473
|
outline: none !important;
|
|
458
474
|
}
|
|
459
475
|
|
|
460
476
|
hr {
|
|
461
|
-
box-sizing: content-box;
|
|
462
|
-
height: 0;
|
|
463
|
-
overflow: visible;
|
|
477
|
+
box-sizing: content-box;
|
|
478
|
+
height: 0;
|
|
479
|
+
overflow: visible;
|
|
464
480
|
}
|
|
465
481
|
|
|
466
|
-
h1,
|
|
482
|
+
h1,
|
|
483
|
+
h2,
|
|
484
|
+
h3,
|
|
485
|
+
h4,
|
|
486
|
+
h5,
|
|
487
|
+
h6 {
|
|
467
488
|
margin-top: 0;
|
|
468
|
-
margin-bottom: .5rem;
|
|
489
|
+
margin-bottom: 0.5rem;
|
|
469
490
|
}
|
|
470
491
|
|
|
471
492
|
p {
|
|
@@ -474,11 +495,11 @@ p {
|
|
|
474
495
|
}
|
|
475
496
|
|
|
476
497
|
abbr[title],
|
|
477
|
-
abbr[data-original-title] {
|
|
498
|
+
abbr[data-original-title] {
|
|
478
499
|
text-decoration: underline;
|
|
479
|
-
-webkit-text-decoration: underline dotted;
|
|
480
|
-
|
|
481
|
-
cursor: help;
|
|
500
|
+
-webkit-text-decoration: underline dotted;
|
|
501
|
+
text-decoration: underline dotted;
|
|
502
|
+
cursor: help;
|
|
482
503
|
border-bottom: 0;
|
|
483
504
|
}
|
|
484
505
|
address {
|
|
@@ -502,21 +523,21 @@ dt {
|
|
|
502
523
|
font-weight: bold;
|
|
503
524
|
}
|
|
504
525
|
dd {
|
|
505
|
-
margin-bottom: .5rem;
|
|
506
|
-
margin-left: 0;
|
|
526
|
+
margin-bottom: 0.5rem;
|
|
527
|
+
margin-left: 0;
|
|
507
528
|
}
|
|
508
529
|
blockquote {
|
|
509
530
|
margin: 0 0 1rem;
|
|
510
531
|
}
|
|
511
532
|
dfn {
|
|
512
|
-
font-style: italic;
|
|
533
|
+
font-style: italic;
|
|
513
534
|
}
|
|
514
535
|
b,
|
|
515
536
|
strong {
|
|
516
|
-
font-weight: bolder;
|
|
537
|
+
font-weight: bolder;
|
|
517
538
|
}
|
|
518
539
|
small {
|
|
519
|
-
font-size: 80%;
|
|
540
|
+
font-size: 80%;
|
|
520
541
|
}
|
|
521
542
|
sub,
|
|
522
543
|
sup {
|
|
@@ -526,17 +547,17 @@ sup {
|
|
|
526
547
|
vertical-align: baseline;
|
|
527
548
|
}
|
|
528
549
|
sub {
|
|
529
|
-
bottom:
|
|
550
|
+
bottom: -0.25em;
|
|
530
551
|
}
|
|
531
552
|
sup {
|
|
532
|
-
top:
|
|
553
|
+
top: -0.5em;
|
|
533
554
|
}
|
|
534
555
|
|
|
535
556
|
a {
|
|
536
557
|
color: #007bff;
|
|
537
558
|
text-decoration: none;
|
|
538
|
-
background-color: transparent;
|
|
539
|
-
-webkit-text-decoration-skip: objects;
|
|
559
|
+
background-color: transparent;
|
|
560
|
+
-webkit-text-decoration-skip: objects;
|
|
540
561
|
}
|
|
541
562
|
a:hover {
|
|
542
563
|
color: #0056b3;
|
|
@@ -546,7 +567,8 @@ a:hover {
|
|
|
546
567
|
a:not([href]):not([tabindex]) {
|
|
547
568
|
text-decoration: none;
|
|
548
569
|
}
|
|
549
|
-
a:not([href]):not([tabindex]):focus,
|
|
570
|
+
a:not([href]):not([tabindex]):focus,
|
|
571
|
+
a:not([href]):not([tabindex]):hover {
|
|
550
572
|
text-decoration: none;
|
|
551
573
|
}
|
|
552
574
|
a:not([href]):not([tabindex]):focus {
|
|
@@ -558,13 +580,12 @@ code,
|
|
|
558
580
|
kbd,
|
|
559
581
|
samp {
|
|
560
582
|
font-family: monospace, monospace;
|
|
561
|
-
font-size: 1em;
|
|
583
|
+
font-size: 1em;
|
|
562
584
|
}
|
|
563
585
|
pre {
|
|
564
|
-
|
|
565
586
|
margin-top: 0;
|
|
566
|
-
|
|
567
|
-
margin-bottom: 1rem;
|
|
587
|
+
|
|
588
|
+
margin-bottom: 1rem;
|
|
568
589
|
overflow: auto;
|
|
569
590
|
-ms-overflow-style: scrollbar;
|
|
570
591
|
}
|
|
@@ -575,27 +596,27 @@ figure {
|
|
|
575
596
|
|
|
576
597
|
img {
|
|
577
598
|
vertical-align: middle;
|
|
578
|
-
border-style: none;
|
|
599
|
+
border-style: none;
|
|
579
600
|
}
|
|
580
601
|
svg:not(:root) {
|
|
581
|
-
overflow: hidden;
|
|
602
|
+
overflow: hidden;
|
|
582
603
|
}
|
|
583
604
|
|
|
584
605
|
a,
|
|
585
606
|
area,
|
|
586
607
|
button,
|
|
587
|
-
[role=
|
|
588
|
-
input:not([type=range]),
|
|
608
|
+
[role='button'],
|
|
609
|
+
input:not([type='range']),
|
|
589
610
|
label,
|
|
590
611
|
select,
|
|
591
612
|
summary,
|
|
592
613
|
textarea {
|
|
593
614
|
-ms-touch-action: manipulation;
|
|
594
|
-
|
|
615
|
+
touch-action: manipulation;
|
|
595
616
|
}
|
|
596
617
|
|
|
597
618
|
table {
|
|
598
|
-
border-collapse: collapse;
|
|
619
|
+
border-collapse: collapse;
|
|
599
620
|
}
|
|
600
621
|
caption {
|
|
601
622
|
padding-top: 0.75rem;
|
|
@@ -610,7 +631,7 @@ th {
|
|
|
610
631
|
|
|
611
632
|
label {
|
|
612
633
|
display: inline-block;
|
|
613
|
-
margin-bottom: .5rem;
|
|
634
|
+
margin-bottom: 0.5rem;
|
|
614
635
|
font-size: 1.1rem !important;
|
|
615
636
|
}
|
|
616
637
|
|
|
@@ -627,47 +648,47 @@ button,
|
|
|
627
648
|
select,
|
|
628
649
|
optgroup,
|
|
629
650
|
textarea {
|
|
630
|
-
margin: 0;
|
|
651
|
+
margin: 0;
|
|
631
652
|
font-family: inherit;
|
|
632
653
|
font-size: inherit;
|
|
633
654
|
line-height: inherit;
|
|
634
655
|
}
|
|
635
656
|
button,
|
|
636
657
|
input {
|
|
637
|
-
overflow: visible;
|
|
658
|
+
overflow: visible;
|
|
638
659
|
}
|
|
639
660
|
button,
|
|
640
661
|
select {
|
|
641
|
-
text-transform: none;
|
|
662
|
+
text-transform: none;
|
|
642
663
|
}
|
|
643
664
|
|
|
644
665
|
button,
|
|
645
|
-
html [type=
|
|
646
|
-
[type=
|
|
647
|
-
[type=
|
|
666
|
+
html [type='button'],
|
|
667
|
+
[type='reset'],
|
|
668
|
+
[type='submit'] {
|
|
648
669
|
-webkit-appearance: button;
|
|
649
670
|
}
|
|
650
671
|
|
|
651
672
|
button::-moz-focus-inner,
|
|
652
|
-
[type=
|
|
653
|
-
[type=
|
|
654
|
-
[type=
|
|
673
|
+
[type='button']::-moz-focus-inner,
|
|
674
|
+
[type='reset']::-moz-focus-inner,
|
|
675
|
+
[type='submit']::-moz-focus-inner {
|
|
655
676
|
padding: 0;
|
|
656
677
|
border-style: none;
|
|
657
678
|
}
|
|
658
|
-
input[type=
|
|
659
|
-
input[type=
|
|
660
|
-
box-sizing: border-box;
|
|
661
|
-
padding: 0;
|
|
679
|
+
input[type='radio'],
|
|
680
|
+
input[type='checkbox'] {
|
|
681
|
+
box-sizing: border-box;
|
|
682
|
+
padding: 0;
|
|
662
683
|
}
|
|
663
|
-
input[type=
|
|
664
|
-
input[type=
|
|
665
|
-
input[type=
|
|
666
|
-
input[type=
|
|
684
|
+
input[type='date'],
|
|
685
|
+
input[type='time'],
|
|
686
|
+
input[type='datetime-local'],
|
|
687
|
+
input[type='month'] {
|
|
667
688
|
-webkit-appearance: listbox;
|
|
668
689
|
}
|
|
669
690
|
textarea {
|
|
670
|
-
overflow: auto;
|
|
691
|
+
overflow: auto;
|
|
671
692
|
resize: vertical;
|
|
672
693
|
}
|
|
673
694
|
fieldset {
|
|
@@ -680,29 +701,29 @@ fieldset {
|
|
|
680
701
|
legend {
|
|
681
702
|
display: block;
|
|
682
703
|
width: 100%;
|
|
683
|
-
max-width: 100%;
|
|
704
|
+
max-width: 100%;
|
|
684
705
|
padding: 0;
|
|
685
|
-
margin-bottom: .5rem;
|
|
706
|
+
margin-bottom: 0.5rem;
|
|
686
707
|
font-size: 1.5rem;
|
|
687
708
|
line-height: inherit;
|
|
688
|
-
color: inherit;
|
|
689
|
-
white-space: normal;
|
|
709
|
+
color: inherit;
|
|
710
|
+
white-space: normal;
|
|
690
711
|
}
|
|
691
712
|
progress {
|
|
692
|
-
vertical-align: baseline;
|
|
713
|
+
vertical-align: baseline;
|
|
693
714
|
}
|
|
694
715
|
|
|
695
|
-
[type=
|
|
696
|
-
[type=
|
|
716
|
+
[type='number']::-webkit-inner-spin-button,
|
|
717
|
+
[type='number']::-webkit-outer-spin-button {
|
|
697
718
|
height: auto;
|
|
698
719
|
}
|
|
699
|
-
[type=
|
|
720
|
+
[type='search'] {
|
|
700
721
|
outline-offset: -2px;
|
|
701
722
|
-webkit-appearance: none;
|
|
702
723
|
}
|
|
703
724
|
|
|
704
|
-
[type=
|
|
705
|
-
[type=
|
|
725
|
+
[type='search']::-webkit-search-cancel-button,
|
|
726
|
+
[type='search']::-webkit-search-decoration {
|
|
706
727
|
-webkit-appearance: none;
|
|
707
728
|
}
|
|
708
729
|
|
|
@@ -715,19 +736,20 @@ output {
|
|
|
715
736
|
display: inline-block;
|
|
716
737
|
}
|
|
717
738
|
summary {
|
|
718
|
-
display: list-item;
|
|
739
|
+
display: list-item;
|
|
719
740
|
}
|
|
720
741
|
template {
|
|
721
|
-
display: none;
|
|
742
|
+
display: none;
|
|
722
743
|
}
|
|
723
744
|
|
|
724
745
|
[hidden] {
|
|
725
746
|
display: none !important;
|
|
726
747
|
}
|
|
727
748
|
|
|
728
|
-
ul,
|
|
729
|
-
|
|
730
|
-
|
|
749
|
+
ul,
|
|
750
|
+
ul li {
|
|
751
|
+
list-style-type: none;
|
|
752
|
+
padding-left: 0;
|
|
731
753
|
}
|
|
732
754
|
|
|
733
755
|
@keyframes placeHolderShimmer {
|
|
@@ -738,4 +760,3 @@ ul, ul li {
|
|
|
738
760
|
background-position: 100vw 0;
|
|
739
761
|
}
|
|
740
762
|
}
|
|
741
|
-
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-notifications.js","sourceRoot":"","sources":["../../../../../src/system/data/use-cases/notifications/remote-notifications.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA8C;AAE9C,sDAAyC;AACzC,wDAA2D;AAC3D,sEAAkE;AAGlE;IAOE,6BACkD,UAAsB,EACd,UAA6B;QADrC,eAAU,GAAV,UAAU,CAAY;QACd,eAAU,GAAV,UAAU,CAAmB;IACpF,CAAC;IAEE,qCAAO,GAAb,UAAc,MAA0C;;;;;4BACrC,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,eAAe,CAAC;4BAC1C,MAAM,EAAE,KAAK;4BACb,IAAI,EAAE,MAAM;yBACb,CAAC,EAAA;;wBAJI,QAAQ,GAAG,SAIf;wBAEF,sBAAO,
|
|
1
|
+
{"version":3,"file":"remote-notifications.js","sourceRoot":"","sources":["../../../../../src/system/data/use-cases/notifications/remote-notifications.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA8C;AAE9C,sDAAyC;AACzC,wDAA2D;AAC3D,sEAAkE;AAGlE;IAOE,6BACkD,UAAsB,EACd,UAA6B;QADrC,eAAU,GAAV,UAAU,CAAY;QACd,eAAU,GAAV,UAAU,CAAmB;IACpF,CAAC;IAEE,qCAAO,GAAb,UAAc,MAA0C;;;;;4BACrC,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,eAAe,CAAC;4BAC1C,MAAM,EAAE,KAAK;4BACb,IAAI,EAAE,MAAM;yBACb,CAAC,EAAA;;wBAJI,QAAQ,GAAG,SAIf;wBAEF,sBAAO,QAA6C,EAAA;;;;KACrD;IAEK,oCAAM,GAAZ,UAAa,MAAwC;;;;;4BAClC,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,eAAe,CAAC;4BAC1C,MAAM,EAAE,MAAM;4BACd,IAAI,EAAE,MAAM;yBACb,CAAC,EAAA;;wBAJI,QAAQ,GAAG,SAIf;wBAEF,sBAAO,QAAQ,CAAC,IAAuC,EAAA;;;;KACxD;IAEK,wCAAU,GAAhB;;;;;4BACmB,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,0BAA0B,CAAC;4BACrD,MAAM,EAAE,KAAK;yBACd,CAAC,EAAA;;wBAHI,QAAQ,GAAG,SAGf;wBAEF,sBAAO,QAAQ,CAAC,IAA4C,EAAA;;;;KAC7D;IAEK,qCAAO,GAAb,UAAc,MAAuC;;;;;4BAClC,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,2BAA2B,CAAC;4BACtD,MAAM,EAAE,MAAM;4BACd,IAAI,EAAE,MAAM;yBACb,CAAC,EAAA;;wBAJI,QAAQ,GAAG,SAIf;wBAEF,sBAAO,QAAQ,CAAC,IAAsC,EAAA;;;;KACvD;IAjDU,mBAAmB;QAD/B,IAAA,sBAAU,GAAE;QASR,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,UAAU,CAAC,CAAA;QAC7B,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,kBAAkB,CAAC,CAAA;yCADsB,yBAAU;OAR7D,mBAAmB,CAkD/B;IAAD,0BAAC;CAAA,AAnDD,IAmDC;AAlDY,kDAAmB"}
|
|
@@ -28,9 +28,6 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
28
28
|
var ui_1 = require("../../../../../../ui/index.js");
|
|
29
29
|
var S = __importStar(require("./styles.js"));
|
|
30
30
|
function NotificationCard(_a) {
|
|
31
|
-
// function renderStatus() {
|
|
32
|
-
// // if (status === "")
|
|
33
|
-
// // }
|
|
34
31
|
var title = _a.title, createdAtText = _a.createdAtText, message = _a.message;
|
|
35
32
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'NotificationCard', children: (0, jsx_runtime_1.jsxs)(S.NotificationCard, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'top', children: [title && (0, jsx_runtime_1.jsx)("h4", { className: 'font-16-bold', children: title }), createdAtText && (0, jsx_runtime_1.jsx)("span", { className: 'font-12-regular', children: createdAtText })] }), message && (0, jsx_runtime_1.jsx)("div", { className: 'description font-16-regular', dangerouslySetInnerHTML: { __html: message } })] }) }));
|
|
36
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/data/notifications/card/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAI5B,0CAA6B;AAE7B,SAAgB,gBAAgB,CAAC,EAAgD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/data/notifications/card/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAI5B,0CAA6B;AAE7B,SAAgB,gBAAgB,CAAC,EAAgD;QAA9C,KAAK,WAAA,EAAE,aAAa,mBAAA,EAAE,OAAO,aAAA;IAC9D,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,kBAAkB,YAC5B,wBAAC,CAAC,CAAC,gBAAgB,eACjB,iCAAK,SAAS,EAAC,KAAK,aACjB,KAAK,IAAI,+BAAI,SAAS,EAAC,cAAc,YAAE,KAAK,GAAM,EAClD,aAAa,IAAI,iCAAM,SAAS,EAAC,iBAAiB,YAAE,aAAa,GAAQ,IACtE,EAEL,OAAO,IAAI,gCAAK,SAAS,EAAC,6BAA6B,EAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAAI,IACtF,GACf,CACT,CAAA;AACH,CAAC;AAbD,4CAaC"}
|
|
@@ -88,6 +88,7 @@ function ReadNotifications(_a) {
|
|
|
88
88
|
return __generator(this, function (_a) {
|
|
89
89
|
switch (_a.label) {
|
|
90
90
|
case 0:
|
|
91
|
+
if (!(readNotifications.data.number > 0)) return [3 /*break*/, 2];
|
|
91
92
|
noReadNotifications = notifications === null || notifications === void 0 ? void 0 : notifications.filter(function (notification) { return !notification.isRead; }).map(function (noRead) { return noRead.id; });
|
|
92
93
|
return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteNotifications).readAll({ ids: noReadNotifications })];
|
|
93
94
|
case 1:
|
|
@@ -95,6 +96,7 @@ function ReadNotifications(_a) {
|
|
|
95
96
|
(0, swr_1.mutate)('LoadAllNotifications');
|
|
96
97
|
(0, swr_1.mutate)('LoadNoReadNotifications');
|
|
97
98
|
return [2 /*return*/];
|
|
99
|
+
case 2: return [2 /*return*/];
|
|
98
100
|
}
|
|
99
101
|
});
|
|
100
102
|
});
|
|
@@ -102,16 +104,32 @@ function ReadNotifications(_a) {
|
|
|
102
104
|
return ((0, jsx_runtime_1.jsxs)(styles_1.ActionBox, { type: 'button', onClick: handleOnOpen, children: [((_b = readNotifications.data) === null || _b === void 0 ? void 0 : _b.number) > 0 && (0, jsx_runtime_1.jsx)("div", { className: 'circle' }), (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconFullFieldBell' })] }));
|
|
103
105
|
}
|
|
104
106
|
function Notifications(props) {
|
|
105
|
-
var _a;
|
|
106
107
|
var Configurations = (0, system_1.useInfraInjection)().Configurations;
|
|
108
|
+
var notifications = (0, system_1.useLoadAllNotifications)();
|
|
107
109
|
if (!Configurations.notification) {
|
|
108
110
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
109
111
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
function ContentNotification(_a) {
|
|
113
|
+
var notifications = _a.notifications;
|
|
114
|
+
if (!notifications || (notifications === null || notifications === void 0 ? void 0 : notifications.length) === 0) {
|
|
115
|
+
return (0, jsx_runtime_1.jsx)("p", { className: 'font-16-regular', children: "Nenhuma notifica\u00E7\u00E3o no momento." });
|
|
116
|
+
}
|
|
117
|
+
return notifications.map(function (notification) {
|
|
118
|
+
return (props === null || props === void 0 ? void 0 : props.CustomComponent) ? (props.CustomComponent) : ((0, jsx_runtime_1.jsx)(card_1.NotificationCard, __assign({}, notification), 'notification-card' + notification.id));
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Notifications', children: (0, jsx_runtime_1.jsx)(S.Notifications, { children: (0, jsx_runtime_1.jsx)(ui_1.Tooltip, { enableArrow: true, bgColor: '#fff', trigger: (0, jsx_runtime_1.jsx)(ReadNotifications, { notifications: notifications.data }), content: (0, jsx_runtime_1.jsx)(S.Content, { children: (0, jsx_runtime_1.jsx)(system_1.Tab, { tabs: [
|
|
122
|
+
{
|
|
123
|
+
key: 'not_read',
|
|
124
|
+
title: 'Não lido',
|
|
125
|
+
content: function () { return (0, jsx_runtime_1.jsx)(ContentNotification, { notifications: notifications === null || notifications === void 0 ? void 0 : notifications.data.filter(function (item) { return !item.isRead; }) }); },
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
key: 'read',
|
|
129
|
+
title: 'Lidos',
|
|
130
|
+
content: function () { return (0, jsx_runtime_1.jsx)(ContentNotification, { notifications: notifications === null || notifications === void 0 ? void 0 : notifications.data.filter(function (item) { return item.isRead; }) }); },
|
|
131
|
+
},
|
|
132
|
+
] }) }) }) }) }));
|
|
115
133
|
}
|
|
116
134
|
exports.Notifications = Notifications;
|
|
117
135
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/notifications/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA4B;AAE5B,2BAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/notifications/index.tsx"],"names":[],"mappings":"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"}
|
|
@@ -10,6 +10,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.Content = exports.Notifications = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
exports.Notifications = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n\n .circle {\n width: 10px;\n height: 10px;\n border-radius: 100rem;\n background: #f5a623;\n position: absolute;\n top: 15%;\n right: 20%;\n border: 1px solid transparent;\n }\n"], ["\n position: relative;\n\n .circle {\n width: 10px;\n height: 10px;\n border-radius: 100rem;\n background: #f5a623;\n position: absolute;\n top: 15%;\n right: 20%;\n border: 1px solid transparent;\n }\n"])));
|
|
13
|
-
exports.Content = (0, styled_components_1.default)('div')(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n max-height: 400px;\n overflow-y: auto;\n width: 100%;\n
|
|
13
|
+
exports.Content = (0, styled_components_1.default)('div')(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n max-height: 400px;\n overflow-y: auto;\n width: 100%;\n width: 450px;\n text-align: left;\n\n .tabs {\n background: transparent;\n .background {\n background-color: transparent;\n border-radius: unset;\n border-bottom: 2px solid ", ";\n opacity: 0.5;\n height: 30px;\n }\n\n button {\n height: 30px;\n padding: 0 6px;\n font-size: 13px;\n }\n }\n\n &::-webkit-scrollbar {\n width: 5px;\n border-radius: 10px;\n }\n\n &::-webkit-scrollbar-track {\n background: #ccc;\n border-radius: 10px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #000;\n border-radius: 10px;\n }\n"], ["\n max-height: 400px;\n overflow-y: auto;\n width: 100%;\n width: 450px;\n text-align: left;\n\n .tabs {\n background: transparent;\n .background {\n background-color: transparent;\n border-radius: unset;\n border-bottom: 2px solid ", ";\n opacity: 0.5;\n height: 30px;\n }\n\n button {\n height: 30px;\n padding: 0 6px;\n font-size: 13px;\n }\n }\n\n &::-webkit-scrollbar {\n width: 5px;\n border-radius: 10px;\n }\n\n &::-webkit-scrollbar-track {\n background: #ccc;\n border-radius: 10px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #000;\n border-radius: 10px;\n }\n"])), function (props) { return props.theme.primaryColor; });
|
|
14
14
|
var templateObject_1, templateObject_2;
|
|
15
15
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/notifications/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,aAAa,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,0SAAA,uOAazC,KAAA;AACY,QAAA,OAAO,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/system/presentation/components/data/notifications/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,aAAa,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,0SAAA,uOAazC,KAAA;AACY,QAAA,OAAO,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,4tBAAA,qQAYH,EAAmC,kZA0BnE,KA1BgC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,YAAY,EAAxB,CAAwB,EA0BnE"}
|
|
@@ -42,7 +42,6 @@ var ui_1 = require("../../../../ui/index.js");
|
|
|
42
42
|
var S = __importStar(require("./styles.js"));
|
|
43
43
|
function Layout(props) {
|
|
44
44
|
var sideBar = (0, ui_1.useElementId)({ id: 'sidebar' });
|
|
45
|
-
console.log(sideBar);
|
|
46
45
|
return ((0, jsx_runtime_1.jsxs)(S.Layout, { "$sideBarWidth": sideBar === null || sideBar === void 0 ? void 0 : sideBar.offsetWidth, children: [(0, jsx_runtime_1.jsx)(header_1.Header, __assign({}, props)), (0, jsx_runtime_1.jsxs)("div", { className: 'content_layout', children: [(0, jsx_runtime_1.jsx)(sidebar_menu_1.SidebarMenu, __assign({}, props === null || props === void 0 ? void 0 : props.sidebar)), props.children && (0, jsx_runtime_1.jsx)("main", { className: 'hasMenu', children: props.children })] })] }));
|
|
47
46
|
}
|
|
48
47
|
exports.Layout = Layout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/layout/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAiC;AACjC,+CAA4C;AAG5C,2BAAmC;AAEnC,0CAA6B;AAE7B,SAAgB,MAAM,CAAC,KAAc;IACnC,IAAM,OAAO,GAAG,IAAA,iBAAY,EAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,CAAA;IAE/C,OAAO,
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/layout/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAiC;AACjC,+CAA4C;AAG5C,2BAAmC;AAEnC,0CAA6B;AAE7B,SAAgB,MAAM,CAAC,KAAc;IACnC,IAAM,OAAO,GAAG,IAAA,iBAAY,EAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,CAAA;IAE/C,OAAO,CACL,wBAAC,CAAC,CAAC,MAAM,qBAAgB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,aAC3C,uBAAC,eAAM,eAAK,KAAK,EAAI,EAErB,iCAAK,SAAS,EAAC,gBAAgB,aAC7B,uBAAC,0BAAW,eAAK,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,EAAI,EAElC,KAAK,CAAC,QAAQ,IAAI,iCAAM,SAAS,EAAC,SAAS,YAAE,KAAK,CAAC,QAAQ,GAAQ,IAChE,IACG,CACZ,CAAA;AACH,CAAC;AAdD,wBAcC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/layout/header/version-01/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA4B;AAE5B,2BAAuC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/components/layout/header/version-01/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA4B;AAE5B,2BAAuC;AAEvC,4CAAsD;AAItD,0CAA6B;AAE7B,SAAgB,eAAe,CAAC,EAA6B;QAA3B,UAAU,gBAAA,EAAE,IAAI,UAAA;IAChD,OAAO,CACL,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YACxB,uBAAC,CAAC,CAAC,eAAe,IAAC,EAAE,EAAC,QAAQ,YAC5B,wBAAC,cAAS,eACR,gCAAK,SAAS,EAAC,MAAM,YACnB,gCAAK,SAAS,EAAC,cAAc,YAC3B,uBAAC,UAAK,IAAC,IAAI,EAAC,MAAM,YAChB,uBAAC,cAAI,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAE,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,KAAI,GAAG,YAC5C,gCAAK,GAAG,EAAE,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,GAAG,KAAI,kBAAkB,EAAE,GAAG,EAAC,aAAa,GAAG,GAC1D,GACD,GACJ,GACF,EAEN,iCAAK,SAAS,EAAC,OAAO,aACpB,uBAAC,UAAK,IAAC,IAAI,EAAC,cAAc,YACxB,uBAAC,wBAAW,KAAG,GACT,EAER,uBAAC,UAAK,IAAC,IAAI,EAAC,YAAY,YACtB,uBAAC,sBAAS,IAAC,UAAU,EAAE,UAAU,GAAI,GAC/B,IACJ,IACI,GACM,GACd,CACT,CAAA;AACH,CAAC;AA5BD,0CA4BC"}
|
|
@@ -42,11 +42,11 @@ function MenuItem(_a) {
|
|
|
42
42
|
var hasMenuItems = (item === null || item === void 0 ? void 0 : item.items) && ((_b = item.items) === null || _b === void 0 ? void 0 : _b.length) > 0;
|
|
43
43
|
function ItemContent() {
|
|
44
44
|
var _a;
|
|
45
|
-
return ((0, jsx_runtime_1.jsxs)("span", { className: 'font-
|
|
45
|
+
return ((0, jsx_runtime_1.jsxs)("span", { className: 'font-13-regular', children: [(item === null || item === void 0 ? void 0 : item.icon) && (0, jsx_runtime_1.jsx)("div", { className: 'icon', dangerouslySetInnerHTML: { __html: item.icon } }), (0, jsx_runtime_1.jsx)("span", { className: 'content-title', children: item === null || item === void 0 ? void 0 : item.title }), ((_a = item === null || item === void 0 ? void 0 : item.items) === null || _a === void 0 ? void 0 : _a.length) > 0 && ((0, jsx_runtime_1.jsx)("div", { className: 'arrow', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconKeyboardRightArrow' }) }))] }));
|
|
46
46
|
}
|
|
47
47
|
var isFatherActive = hasMenuItems && item.route && path.includes(item.route.replaceAll('/', ''));
|
|
48
48
|
var isActive = path.substring(0, path.length - 1) === item.route || isFatherActive;
|
|
49
|
-
return ((0, jsx_runtime_1.jsxs)("li", { className: isActive ? 'active' : '', children: [item.route ? ((0, jsx_runtime_1.jsx)(link_1.default, { href: item.route, className: "item-title font-
|
|
49
|
+
return ((0, jsx_runtime_1.jsxs)("li", { className: isActive ? 'active' : '', children: [item.route ? ((0, jsx_runtime_1.jsx)(link_1.default, { href: item.route, className: "item-title font-13-regular ".concat(isActive ? 'active' : ''), children: (0, jsx_runtime_1.jsx)(ItemContent, {}) })) : ((0, jsx_runtime_1.jsx)("div", { className: "item-title ".concat(isActive ? 'active' : ''), children: (0, jsx_runtime_1.jsx)(ItemContent, {}) })), hasMenuItems && (0, jsx_runtime_1.jsx)(SubMenu, { index: index, item: item === null || item === void 0 ? void 0 : item.items }, 'submenu' + item.title)] }));
|
|
50
50
|
}
|
|
51
51
|
function SubMenu(_a) {
|
|
52
52
|
var item = _a.item, index = _a.index;
|
|
@@ -9,7 +9,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.SubMenu = exports.Menu = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.Menu = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n position: relative;\n padding-right: clamp(5px, 0.78vw, 15px);\n width: 285px;\n padding: 0 0 15px 0;\n border-right: 1px solid #e1e1e1;\n display: flex;\n flex-direction: column;\n left: 0;\n top: 0;\n height: 100%;\n min-height: 100vh;\n z-index: 999;\n background: #fff;\n padding-top: 25px;\n\n &::-webkit-scrollbar {\n width: 5px;\n border-radius: 10px;\n }\n\n &::-webkit-scrollbar-track {\n background: #ccc;\n border-radius: 10px;\n }\n\n a {\n text-decoration: none;\n }\n\n ul {\n list-style-type: none;\n padding: 0;\n margin-top: 0;\n margin-bottom: clamp(10px, 0.75vw, 15px);\n\n li + li {\n margin-top: 4px;\n }\n\n ul {\n display: none;\n padding: 4px;\n\n * {\n color: ", " !important;\n }\n\n li {\n padding: 0;\n\n &.active {\n background: none;\n }\n\n ul {\n display: none;\n }\n\n .item-title {\n &:hover,\n &.active {\n background: #e1e1e1 !important;\n }\n }\n }\n }\n\n li {\n position: relative !important;\n z-index: 9999;\n width: 100%;\n\n ul {\n display: none;\n }\n\n &.active {\n background: ", ";\n border-radius: 5px;\n\n a,\n span {\n color: #fff;\n }\n\n svg {\n fill: #fff !important;\n }\n }\n\n &:hover {\n > ul {\n display: block;\n }\n }\n }\n }\n\n .title {\n color: #828282;\n margin-bottom: clamp(3px, 0.5vw, 10px);\n padding-left: clamp(5px, 0.78vw, 15px);\n\n .dark & {\n color: #4b5563;\n }\n }\n\n .item-title {\n border-radius: 5px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n transition: transform 0.1s ease-in-out;\n font-weight: 400;\n padding: 0 clamp(5px, 0.78vw, 15px);\n height: clamp(34px, 2.08vw, 40px);\n display: flex;\n position: relative;\n z-index: 2222;\n\n > span {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n color: ", ";\n\n .icon {\n width: 20px;\n height: 20px;\n display: flex;\n transition: 0.1s linear;\n margin-left: 0;\n\n > svg {\n width: 100%;\n height: auto;\n fill: #828282;\n }\n }\n }\n\n &:hover {\n background-color: ", ";\n\n > span {\n color: #fff;\n margin-right: 0;\n transition: 0.3s linear;\n\n .icon {\n margin-left: 10px;\n\n > svg {\n fill: #fff !important;\n }\n }\n }\n }\n }\n\n .arrow {\n width: 7px;\n margin: 0 0 0 auto;\n display: flex;\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n\n &.expanded_menu {\n width: 65px !important;\n padding-top: 41px;\n transition: 0.3s;\n position: absolute;\n\n .expand {\n position: absolute;\n top: 10px;\n right: -12px;\n width: 24px;\n height: 24px;\n border-radius: 100%;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n border: 0;\n\n svg {\n width: 5px;\n fill: #fff;\n height: auto;\n }\n }\n\n > ul {\n > li {\n > .item-title {\n .content-title {\n display: none;\n }\n\n .arrow {\n display: none;\n }\n }\n }\n }\n\n ul {\n .submenu {\n min-width: 195px;\n }\n }\n\n .item-title {\n padding-left: 22px;\n\n &:hover {\n > span {\n .icon {\n margin-left: 0;\n\n > svg {\n fill: #fff !important;\n }\n }\n }\n }\n }\n\n &.expanded {\n width: 240px !important;\n transition: 0.3s;\n\n .expand {\n svg {\n transform: rotate(180deg);\n }\n }\n\n > ul {\n > li {\n > .item-title {\n .content-title {\n display: block;\n }\n\n .arrow {\n display: block;\n }\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 1400px) {\n .icon {\n width: 14px !important;\n height: 14px !important;\n }\n\n span {\n font-size: 13.5px;\n }\n }\n\n @media only screen and (max-width: 1200px) {\n .icon {\n width: 17px !important;\n height: 17px !important;\n }\n\n span {\n font-size: 13px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n .icon {\n width: 16px !important;\n height: 16px !important;\n }\n\n span {\n font-size: 12px;\n }\n }\n"], ["\n width: 100%;\n position: relative;\n padding-right: clamp(5px, 0.78vw, 15px);\n width: 285px;\n padding: 0 0 15px 0;\n border-right: 1px solid #e1e1e1;\n display: flex;\n flex-direction: column;\n left: 0;\n top: 0;\n height: 100%;\n min-height: 100vh;\n z-index: 999;\n background: #fff;\n padding-top: 25px;\n\n &::-webkit-scrollbar {\n width: 5px;\n border-radius: 10px;\n }\n\n &::-webkit-scrollbar-track {\n background: #ccc;\n border-radius: 10px;\n }\n\n a {\n text-decoration: none;\n }\n\n ul {\n list-style-type: none;\n padding: 0;\n margin-top: 0;\n margin-bottom: clamp(10px, 0.75vw, 15px);\n\n li + li {\n margin-top: 4px;\n }\n\n ul {\n display: none;\n padding: 4px;\n\n * {\n color: ", " !important;\n }\n\n li {\n padding: 0;\n\n &.active {\n background: none;\n }\n\n ul {\n display: none;\n }\n\n .item-title {\n &:hover,\n &.active {\n background: #e1e1e1 !important;\n }\n }\n }\n }\n\n li {\n position: relative !important;\n z-index: 9999;\n width: 100%;\n\n ul {\n display: none;\n }\n\n &.active {\n background: ", ";\n border-radius: 5px;\n\n a,\n span {\n color: #fff;\n }\n\n svg {\n fill: #fff !important;\n }\n }\n\n &:hover {\n > ul {\n display: block;\n }\n }\n }\n }\n\n .title {\n color: #828282;\n margin-bottom: clamp(3px, 0.5vw, 10px);\n padding-left: clamp(5px, 0.78vw, 15px);\n\n .dark & {\n color: #4b5563;\n }\n }\n\n .item-title {\n border-radius: 5px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n transition: transform 0.1s ease-in-out;\n font-weight: 400;\n padding: 0 clamp(5px, 0.78vw, 15px);\n height: clamp(34px, 2.08vw, 40px);\n display: flex;\n position: relative;\n z-index: 2222;\n\n > span {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n color: ", ";\n\n .icon {\n width: 20px;\n height: 20px;\n display: flex;\n transition: 0.1s linear;\n margin-left: 0;\n\n > svg {\n width: 100%;\n height: auto;\n fill: #828282;\n }\n }\n }\n\n &:hover {\n background-color: ", ";\n\n > span {\n color: #fff;\n margin-right: 0;\n transition: 0.3s linear;\n\n .icon {\n margin-left: 10px;\n\n > svg {\n fill: #fff !important;\n }\n }\n }\n }\n }\n\n .arrow {\n width: 7px;\n margin: 0 0 0 auto;\n display: flex;\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n\n &.expanded_menu {\n width: 65px !important;\n padding-top: 41px;\n transition: 0.3s;\n position: absolute;\n\n .expand {\n position: absolute;\n top: 10px;\n right: -12px;\n width: 24px;\n height: 24px;\n border-radius: 100%;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n border: 0;\n\n svg {\n width: 5px;\n fill: #fff;\n height: auto;\n }\n }\n\n > ul {\n > li {\n > .item-title {\n .content-title {\n display: none;\n }\n\n .arrow {\n display: none;\n }\n }\n }\n }\n\n ul {\n .submenu {\n min-width: 195px;\n }\n }\n\n .item-title {\n padding-left: 22px;\n\n &:hover {\n > span {\n .icon {\n margin-left: 0;\n\n > svg {\n fill: #fff !important;\n }\n }\n }\n }\n }\n\n &.expanded {\n width: 240px !important;\n transition: 0.3s;\n\n .expand {\n svg {\n transform: rotate(180deg);\n }\n }\n\n > ul {\n > li {\n > .item-title {\n .content-title {\n display: block;\n }\n\n .arrow {\n display: block;\n }\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 1400px) {\n .icon {\n width: 14px !important;\n height: 14px !important;\n }\n\n span {\n font-size: 13.5px;\n }\n }\n\n @media only screen and (max-width: 1200px) {\n .icon {\n width: 17px !important;\n height: 17px !important;\n }\n\n span {\n font-size: 13px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n .icon {\n width: 16px !important;\n height: 16px !important;\n }\n\n span {\n font-size: 12px;\n }\n }\n"])), function (props) { return props.theme.darkColor; }, function (props) { return props.theme.darkColor; }, function (props) { return props.theme.darkColor; }, function (props) { return props.theme.darkColor; }, function (props) { return props.theme.primaryColor; });
|
|
12
|
+
exports.Menu = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n position: relative;\n padding-right: clamp(5px, 0.78vw, 15px);\n width: 285px;\n padding: 0 0 15px 0;\n border-right: 1px solid #e1e1e1;\n display: flex;\n flex-direction: column;\n left: 0;\n top: 0;\n height: 100%;\n min-height: 100vh;\n z-index: 999;\n background: #fff;\n padding-top: 25px;\n\n &::-webkit-scrollbar {\n width: 5px;\n border-radius: 10px;\n }\n\n &::-webkit-scrollbar-track {\n background: #ccc;\n border-radius: 10px;\n }\n\n a {\n text-decoration: none;\n }\n\n ul {\n list-style-type: none;\n padding: 0;\n margin-top: 0;\n margin-bottom: clamp(10px, 0.75vw, 15px);\n\n li + li {\n margin-top: 4px;\n }\n\n ul {\n display: none;\n padding: 4px;\n\n * {\n color: ", " !important;\n }\n\n li {\n padding: 0;\n\n &.active {\n background: none;\n }\n\n ul {\n display: none;\n }\n\n .item-title {\n &:hover,\n &.active {\n background: #e1e1e1 !important;\n }\n }\n }\n }\n\n li {\n position: relative !important;\n z-index: 9999;\n width: 100%;\n\n ul {\n display: none;\n }\n\n &.active {\n background: ", ";\n border-radius: 5px;\n\n a,\n span {\n color: #fff;\n }\n\n svg {\n fill: #fff !important;\n }\n }\n\n &:hover {\n > ul {\n display: block;\n }\n }\n }\n }\n\n .title {\n color: #828282;\n margin-bottom: clamp(3px, 0.5vw, 10px);\n padding-left: clamp(5px, 0.78vw, 15px);\n\n .dark & {\n color: #4b5563;\n }\n }\n\n .item-title {\n border-radius: 5px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n transition: transform 0.1s ease-in-out;\n font-weight: 400;\n padding: 0 clamp(5px, 0.78vw, 15px);\n height: clamp(34px, 2.08vw, 40px);\n display: flex;\n position: relative;\n z-index: 2222;\n\n > span {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n color: ", ";\n\n .icon {\n width: 20px;\n height: 20px;\n display: flex;\n transition: 0.1s linear;\n margin-left: 0;\n\n > svg {\n width: 100%;\n height: auto;\n fill: #828282;\n }\n }\n }\n\n &:hover {\n background-color: ", ";\n\n > span {\n color: #fff;\n margin-right: 0;\n transition: 0.3s linear;\n\n .icon {\n margin-left: 10px;\n\n > svg {\n fill: #fff !important;\n }\n }\n }\n }\n }\n\n .arrow {\n width: 7px;\n margin: 0 0 0 auto;\n display: flex;\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n\n &.expanded_menu {\n width: 65px !important;\n padding-top: 41px;\n transition: 0.3s;\n position: absolute;\n\n .expand {\n position: absolute;\n top: 10px;\n right: -12px;\n width: 24px;\n height: 24px;\n border-radius: 100%;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n border: 0;\n\n svg {\n width: 5px;\n fill: #fff;\n height: auto;\n }\n }\n\n > ul {\n > li {\n > .item-title {\n .content-title {\n display: none;\n }\n\n .arrow {\n display: none;\n }\n }\n }\n }\n\n ul {\n .submenu {\n min-width: 265px;\n }\n }\n\n .item-title {\n padding-left: 22px;\n\n &:hover {\n > span {\n .icon {\n margin-left: 0;\n\n > svg {\n fill: #fff !important;\n }\n }\n }\n }\n }\n\n &.expanded {\n width: 240px !important;\n transition: 0.3s;\n\n .expand {\n svg {\n transform: rotate(180deg);\n }\n }\n\n > ul {\n > li {\n > .item-title {\n .content-title {\n display: block;\n }\n\n .arrow {\n display: block;\n }\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 1400px) {\n .icon {\n width: 14px !important;\n height: 14px !important;\n }\n\n span {\n font-size: 13.5px;\n }\n }\n\n @media only screen and (max-width: 1200px) {\n .icon {\n width: 17px !important;\n height: 17px !important;\n }\n\n span {\n font-size: 13px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n .icon {\n width: 16px !important;\n height: 16px !important;\n }\n\n span {\n font-size: 12px;\n }\n }\n"], ["\n width: 100%;\n position: relative;\n padding-right: clamp(5px, 0.78vw, 15px);\n width: 285px;\n padding: 0 0 15px 0;\n border-right: 1px solid #e1e1e1;\n display: flex;\n flex-direction: column;\n left: 0;\n top: 0;\n height: 100%;\n min-height: 100vh;\n z-index: 999;\n background: #fff;\n padding-top: 25px;\n\n &::-webkit-scrollbar {\n width: 5px;\n border-radius: 10px;\n }\n\n &::-webkit-scrollbar-track {\n background: #ccc;\n border-radius: 10px;\n }\n\n a {\n text-decoration: none;\n }\n\n ul {\n list-style-type: none;\n padding: 0;\n margin-top: 0;\n margin-bottom: clamp(10px, 0.75vw, 15px);\n\n li + li {\n margin-top: 4px;\n }\n\n ul {\n display: none;\n padding: 4px;\n\n * {\n color: ", " !important;\n }\n\n li {\n padding: 0;\n\n &.active {\n background: none;\n }\n\n ul {\n display: none;\n }\n\n .item-title {\n &:hover,\n &.active {\n background: #e1e1e1 !important;\n }\n }\n }\n }\n\n li {\n position: relative !important;\n z-index: 9999;\n width: 100%;\n\n ul {\n display: none;\n }\n\n &.active {\n background: ", ";\n border-radius: 5px;\n\n a,\n span {\n color: #fff;\n }\n\n svg {\n fill: #fff !important;\n }\n }\n\n &:hover {\n > ul {\n display: block;\n }\n }\n }\n }\n\n .title {\n color: #828282;\n margin-bottom: clamp(3px, 0.5vw, 10px);\n padding-left: clamp(5px, 0.78vw, 15px);\n\n .dark & {\n color: #4b5563;\n }\n }\n\n .item-title {\n border-radius: 5px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n transition: transform 0.1s ease-in-out;\n font-weight: 400;\n padding: 0 clamp(5px, 0.78vw, 15px);\n height: clamp(34px, 2.08vw, 40px);\n display: flex;\n position: relative;\n z-index: 2222;\n\n > span {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n color: ", ";\n\n .icon {\n width: 20px;\n height: 20px;\n display: flex;\n transition: 0.1s linear;\n margin-left: 0;\n\n > svg {\n width: 100%;\n height: auto;\n fill: #828282;\n }\n }\n }\n\n &:hover {\n background-color: ", ";\n\n > span {\n color: #fff;\n margin-right: 0;\n transition: 0.3s linear;\n\n .icon {\n margin-left: 10px;\n\n > svg {\n fill: #fff !important;\n }\n }\n }\n }\n }\n\n .arrow {\n width: 7px;\n margin: 0 0 0 auto;\n display: flex;\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n\n &.expanded_menu {\n width: 65px !important;\n padding-top: 41px;\n transition: 0.3s;\n position: absolute;\n\n .expand {\n position: absolute;\n top: 10px;\n right: -12px;\n width: 24px;\n height: 24px;\n border-radius: 100%;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n border: 0;\n\n svg {\n width: 5px;\n fill: #fff;\n height: auto;\n }\n }\n\n > ul {\n > li {\n > .item-title {\n .content-title {\n display: none;\n }\n\n .arrow {\n display: none;\n }\n }\n }\n }\n\n ul {\n .submenu {\n min-width: 265px;\n }\n }\n\n .item-title {\n padding-left: 22px;\n\n &:hover {\n > span {\n .icon {\n margin-left: 0;\n\n > svg {\n fill: #fff !important;\n }\n }\n }\n }\n }\n\n &.expanded {\n width: 240px !important;\n transition: 0.3s;\n\n .expand {\n svg {\n transform: rotate(180deg);\n }\n }\n\n > ul {\n > li {\n > .item-title {\n .content-title {\n display: block;\n }\n\n .arrow {\n display: block;\n }\n }\n }\n }\n }\n }\n\n @media only screen and (max-width: 1400px) {\n .icon {\n width: 14px !important;\n height: 14px !important;\n }\n\n span {\n font-size: 13.5px;\n }\n }\n\n @media only screen and (max-width: 1200px) {\n .icon {\n width: 17px !important;\n height: 17px !important;\n }\n\n span {\n font-size: 13px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n .icon {\n width: 16px !important;\n height: 16px !important;\n }\n\n span {\n font-size: 12px;\n }\n }\n"])), function (props) { return props.theme.darkColor; }, function (props) { return props.theme.darkColor; }, function (props) { return props.theme.darkColor; }, function (props) { return props.theme.darkColor; }, function (props) { return props.theme.primaryColor; });
|
|
13
13
|
exports.SubMenu = styled_components_1.default.ul(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: 5px;\n padding: 12px 8px;\n z-index: 24;\n position: absolute;\n top: ", ";\n bottom: ", ";\n left: 100%;\n z-index: 9999;\n background-color: #ffffff;\n border: 1px solid #d1d5db;\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n transition: background-color 0.3s, border-color 0.3s;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n width: 100%;\n"], ["\n border-radius: 5px;\n padding: 12px 8px;\n z-index: 24;\n position: absolute;\n top: ", ";\n bottom: ", ";\n left: 100%;\n z-index: 9999;\n background-color: #ffffff;\n border: 1px solid #d1d5db;\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n transition: background-color 0.3s, border-color 0.3s;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n width: 100%;\n"])), function (props) { return (props.$index <= 6 ? 0 : undefined); }, function (props) { return (props.$index > 6 ? 0 : undefined); });
|
|
14
14
|
var templateObject_1, templateObject_2;
|
|
15
15
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IPrivatePageAdmin } from './interfaces.js';
|
|
2
|
-
export declare function PrivatePageAdmin({ children
|
|
2
|
+
export declare function PrivatePageAdmin({ children }: IPrivatePageAdmin): import("react/jsx-runtime").JSX.Element;
|