@wizishop/angular-components 19.0.1 → 19.0.3-new-home.0
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/angular-components.scss +169 -75
- package/fesm2022/wizishop-angular-components.mjs +58 -4
- package/fesm2022/wizishop-angular-components.mjs.map +1 -1
- package/lib/components/alert-popup/alert-popup.service.d.ts +2 -0
- package/lib/components/banner/banner.component.d.ts +12 -0
- package/lib/components/shared-components.module.d.ts +102 -101
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/wizishop-angular-components-19.0.3-new-home.0.tgz +0 -0
- package/wizishop-angular-components-19.0.01.tgz +0 -0
package/angular-components.scss
CHANGED
|
@@ -506,32 +506,56 @@ $wizishop-blue-button: #52aecd !default;.zindexToggle {
|
|
|
506
506
|
}
|
|
507
507
|
.wac-alert-popup {
|
|
508
508
|
.alert {
|
|
509
|
+
--wac-alert-accent: #{$wac-primary-button};
|
|
509
510
|
z-index: 999999;
|
|
510
511
|
position: fixed;
|
|
511
|
-
color: $wac-
|
|
512
|
-
background-color: $wac-
|
|
512
|
+
color: $wac-main-text;
|
|
513
|
+
background-color: $wac-white;
|
|
513
514
|
border: 1px solid transparent;
|
|
514
|
-
border-radius:
|
|
515
|
-
padding:
|
|
515
|
+
border-radius: 8px;
|
|
516
|
+
padding: 18px 44px 18px 24px;
|
|
516
517
|
transition: all 200ms;
|
|
517
518
|
opacity: 0;
|
|
518
519
|
margin: 10px auto;
|
|
519
|
-
max-width:
|
|
520
|
+
max-width: 480px;
|
|
520
521
|
width: auto;
|
|
521
|
-
box-shadow: 0
|
|
522
|
+
box-shadow: 0 8px 30px rgba(29, 42, 59, 0.12);
|
|
522
523
|
font-size: 14px;
|
|
524
|
+
overflow: hidden;
|
|
523
525
|
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
526
|
+
&::before {
|
|
527
|
+
content: '';
|
|
528
|
+
position: absolute;
|
|
529
|
+
left: 0;
|
|
530
|
+
top: 0;
|
|
531
|
+
bottom: 0;
|
|
532
|
+
width: 5px;
|
|
533
|
+
background-color: var(--wac-alert-accent);
|
|
531
534
|
}
|
|
532
535
|
|
|
533
|
-
.
|
|
534
|
-
|
|
536
|
+
.alert--message {
|
|
537
|
+
display: flex;
|
|
538
|
+
align-items: flex-start;
|
|
539
|
+
gap: 14px;
|
|
540
|
+
width: 100%;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.icon {
|
|
544
|
+
flex-shrink: 0;
|
|
545
|
+
display: flex;
|
|
546
|
+
align-items: center;
|
|
547
|
+
justify-content: center;
|
|
548
|
+
width: 22px;
|
|
549
|
+
height: 22px;
|
|
550
|
+
margin: 0;
|
|
551
|
+
border-radius: 50%;
|
|
552
|
+
background-color: var(--wac-alert-accent);
|
|
553
|
+
|
|
554
|
+
i {
|
|
555
|
+
font-size: 12px;
|
|
556
|
+
color: $wac-white;
|
|
557
|
+
margin: 0;
|
|
558
|
+
}
|
|
535
559
|
}
|
|
536
560
|
|
|
537
561
|
&.fullsize {
|
|
@@ -539,7 +563,7 @@ $wizishop-blue-button: #52aecd !default;.zindexToggle {
|
|
|
539
563
|
width: 100%;
|
|
540
564
|
border-radius: 0;
|
|
541
565
|
margin: 0;
|
|
542
|
-
padding: 20px
|
|
566
|
+
padding: 20px 44px 20px 24px;
|
|
543
567
|
}
|
|
544
568
|
|
|
545
569
|
&.is-left {
|
|
@@ -608,50 +632,29 @@ $wizishop-blue-button: #52aecd !default;.zindexToggle {
|
|
|
608
632
|
}
|
|
609
633
|
|
|
610
634
|
p {
|
|
611
|
-
|
|
635
|
+
margin: 0;
|
|
612
636
|
}
|
|
613
637
|
|
|
614
|
-
span {
|
|
615
|
-
vertical-align: middle;
|
|
616
|
-
margin: 0 10px 0 0;
|
|
617
|
-
}
|
|
618
638
|
&.is-primary {
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
&.is-inverted {
|
|
622
|
-
background-color: $wac-white;
|
|
623
|
-
border: 1px solid $wac-primary-button;
|
|
624
|
-
color: $wac-primary-button;
|
|
625
|
-
}
|
|
639
|
+
--wac-alert-accent: #{$wac-primary-button};
|
|
626
640
|
}
|
|
627
641
|
|
|
628
642
|
&.is-success {
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
&.is-inverted {
|
|
632
|
-
background-color: $wac-white;
|
|
633
|
-
border: 1px solid $wac-color-success-popup-alert;
|
|
634
|
-
color: $wac-color-success-popup-alert;
|
|
635
|
-
}
|
|
643
|
+
--wac-alert-accent: #{$wac-tag-success};
|
|
636
644
|
}
|
|
637
645
|
|
|
638
646
|
&.is-danger {
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
&.is-inverted {
|
|
642
|
-
background-color: $wac-white;
|
|
643
|
-
border: 1px solid $wac-primary-button;
|
|
644
|
-
color: $wac-primary-button;
|
|
645
|
-
}
|
|
647
|
+
--wac-alert-accent: #{$wac-primary-button};
|
|
646
648
|
}
|
|
647
649
|
|
|
648
650
|
&.is-info {
|
|
649
|
-
|
|
650
|
-
border: 1px solid $wac-main-text;
|
|
651
|
-
color: $wac-main-text;
|
|
651
|
+
--wac-alert-accent: #{$wac-main-text};
|
|
652
652
|
}
|
|
653
653
|
|
|
654
654
|
&.small {
|
|
655
|
+
display: flex;
|
|
656
|
+
align-items: center;
|
|
657
|
+
color: $wac-white;
|
|
655
658
|
padding: 10px;
|
|
656
659
|
border-radius: 3px;
|
|
657
660
|
right: 30px;
|
|
@@ -663,6 +666,11 @@ $wizishop-blue-button: #52aecd !default;.zindexToggle {
|
|
|
663
666
|
background-color: $wac-tag-success;
|
|
664
667
|
font-size: 0.875rem;
|
|
665
668
|
overflow: hidden;
|
|
669
|
+
|
|
670
|
+
&::before {
|
|
671
|
+
display: none;
|
|
672
|
+
}
|
|
673
|
+
|
|
666
674
|
@include media('<tablet') {
|
|
667
675
|
right: 0;
|
|
668
676
|
max-width: 100%;
|
|
@@ -699,9 +707,16 @@ $wizishop-blue-button: #52aecd !default;.zindexToggle {
|
|
|
699
707
|
display: flex;
|
|
700
708
|
align-items: center;
|
|
701
709
|
justify-content: flex-start;
|
|
710
|
+
}
|
|
711
|
+
.icon {
|
|
712
|
+
width: auto;
|
|
713
|
+
height: auto;
|
|
714
|
+
border-radius: 0;
|
|
715
|
+
background-color: transparent;
|
|
702
716
|
i {
|
|
703
717
|
font-size: 24px;
|
|
704
718
|
font-weight: normal;
|
|
719
|
+
color: $wac-white;
|
|
705
720
|
}
|
|
706
721
|
}
|
|
707
722
|
.wac-alert-popup {
|
|
@@ -709,6 +724,7 @@ $wizishop-blue-button: #52aecd !default;.zindexToggle {
|
|
|
709
724
|
font-size: 0.875rem;
|
|
710
725
|
white-space: nowrap;
|
|
711
726
|
font-weight: normal;
|
|
727
|
+
color: $wac-white;
|
|
712
728
|
}
|
|
713
729
|
&__close {
|
|
714
730
|
display: none;
|
|
@@ -731,20 +747,28 @@ $wizishop-blue-button: #52aecd !default;.zindexToggle {
|
|
|
731
747
|
}
|
|
732
748
|
}
|
|
733
749
|
|
|
750
|
+
&__content {
|
|
751
|
+
display: flex;
|
|
752
|
+
flex-direction: column;
|
|
753
|
+
gap: 4px;
|
|
754
|
+
min-width: 0;
|
|
755
|
+
}
|
|
756
|
+
|
|
734
757
|
&__title {
|
|
735
|
-
font-size:
|
|
736
|
-
line-height: 1.
|
|
758
|
+
font-size: 0.9375rem;
|
|
759
|
+
line-height: 1.35;
|
|
737
760
|
margin: 0;
|
|
738
761
|
font-weight: 700;
|
|
739
|
-
|
|
740
|
-
|
|
762
|
+
color: $wac-main-text;
|
|
763
|
+
text-align: left;
|
|
741
764
|
}
|
|
742
765
|
|
|
743
766
|
&__text {
|
|
744
|
-
font-size:
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
767
|
+
font-size: 0.875rem;
|
|
768
|
+
line-height: 1.45;
|
|
769
|
+
font-weight: 400;
|
|
770
|
+
color: $wac-color-text-grey;
|
|
771
|
+
text-align: left;
|
|
748
772
|
margin: 0;
|
|
749
773
|
}
|
|
750
774
|
|
|
@@ -752,34 +776,24 @@ $wizishop-blue-button: #52aecd !default;.zindexToggle {
|
|
|
752
776
|
cursor: pointer;
|
|
753
777
|
display: flex;
|
|
754
778
|
position: absolute;
|
|
755
|
-
top:
|
|
756
|
-
right:
|
|
757
|
-
width:
|
|
758
|
-
height:
|
|
759
|
-
border-radius: 50%;
|
|
779
|
+
top: 14px;
|
|
780
|
+
right: 14px;
|
|
781
|
+
width: 1.25rem;
|
|
782
|
+
height: 1.25rem;
|
|
760
783
|
justify-content: center;
|
|
761
784
|
align-items: center;
|
|
762
|
-
background-color:
|
|
763
|
-
|
|
785
|
+
background-color: transparent;
|
|
786
|
+
color: $wac-color-text-grey;
|
|
787
|
+
transition: color .2s ease;
|
|
788
|
+
|
|
764
789
|
&:hover, &:focus {
|
|
765
|
-
|
|
790
|
+
color: $wac-main-text;
|
|
766
791
|
}
|
|
792
|
+
|
|
767
793
|
i {
|
|
768
|
-
font-size:
|
|
769
|
-
color: $white;
|
|
770
|
-
}
|
|
771
|
-
.is-success & {
|
|
772
|
-
background-color: darken($wac-color-success-popup-alert, 20%);
|
|
773
|
-
&:hover, &:focus {
|
|
774
|
-
background-color: darken($wac-color-success-popup-alert, 30%);
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
.is-danger & {
|
|
778
|
-
background-color: darken($wac-primary-button, 10%);
|
|
779
|
-
&:hover, &:focus {
|
|
780
|
-
background-color: darken($wac-primary-button, 15%);
|
|
781
|
-
}
|
|
794
|
+
font-size: 1rem;
|
|
782
795
|
}
|
|
796
|
+
|
|
783
797
|
.fullsize & {
|
|
784
798
|
top: 50%;
|
|
785
799
|
transform: translateY(-50%);
|
|
@@ -814,6 +828,86 @@ $wizishop-blue-button: #52aecd !default;.zindexToggle {
|
|
|
814
828
|
}
|
|
815
829
|
}
|
|
816
830
|
}
|
|
831
|
+
.wac-banner {
|
|
832
|
+
display: flex;
|
|
833
|
+
align-items: center;
|
|
834
|
+
gap: 14px;
|
|
835
|
+
flex-wrap: wrap;
|
|
836
|
+
background: linear-gradient(120deg, #E9F4FF, #CFE6FB);
|
|
837
|
+
border: 1px solid $wac-white;
|
|
838
|
+
box-shadow: 0 6px 20px rgba(59, 166, 236, .20);
|
|
839
|
+
border-radius: 3px;
|
|
840
|
+
padding: 11px 16px;
|
|
841
|
+
font-size: 0.8125rem;
|
|
842
|
+
color: #526384;
|
|
843
|
+
|
|
844
|
+
&__dot {
|
|
845
|
+
width: 8px;
|
|
846
|
+
height: 8px;
|
|
847
|
+
border-radius: 50%;
|
|
848
|
+
background: #3BA6EC;
|
|
849
|
+
box-shadow: 0 0 0 4px rgba(59, 166, 236, .20), 0 0 12px rgba(59, 166, 236, .55);
|
|
850
|
+
flex-shrink: 0;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
&__label {
|
|
854
|
+
::ng-deep strong {
|
|
855
|
+
color: $wac-main-text;
|
|
856
|
+
font-weight: 600;
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
&__meta {
|
|
861
|
+
display: inline-flex;
|
|
862
|
+
align-items: center;
|
|
863
|
+
gap: 6px;
|
|
864
|
+
margin-left: auto;
|
|
865
|
+
font-size: 0.6875rem;
|
|
866
|
+
font-weight: 600;
|
|
867
|
+
text-transform: uppercase;
|
|
868
|
+
letter-spacing: .06em;
|
|
869
|
+
color: #526384;
|
|
870
|
+
|
|
871
|
+
i.fa-light {
|
|
872
|
+
font-weight: 300;
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
&__cta {
|
|
877
|
+
position: relative;
|
|
878
|
+
overflow: hidden;
|
|
879
|
+
display: inline-flex;
|
|
880
|
+
align-items: center;
|
|
881
|
+
gap: 7px;
|
|
882
|
+
font-size: 0.78125rem;
|
|
883
|
+
font-weight: 600;
|
|
884
|
+
color: $wac-main-text;
|
|
885
|
+
background: rgba(255, 255, 255, .5);
|
|
886
|
+
-webkit-backdrop-filter: blur(10px);
|
|
887
|
+
backdrop-filter: blur(10px);
|
|
888
|
+
border: 1px solid rgba(255, 255, 255, .7);
|
|
889
|
+
padding: 7px 13px;
|
|
890
|
+
border-radius: 3px;
|
|
891
|
+
box-shadow: 0 2px 10px rgba(59, 166, 236, .14), inset 0 1px 0 rgba(255, 255, 255, .65);
|
|
892
|
+
transition: box-shadow .25s cubic-bezier(.16, 1, .3, 1), transform .25s cubic-bezier(.16, 1, .3, 1), background .25s cubic-bezier(.16, 1, .3, 1);
|
|
893
|
+
|
|
894
|
+
i {
|
|
895
|
+
font-size: 0.625rem;
|
|
896
|
+
font-weight: 300;
|
|
897
|
+
transition: transform .2s cubic-bezier(.16, 1, .3, 1);
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
&:hover,
|
|
901
|
+
&:focus {
|
|
902
|
+
background: rgba(255, 255, 255, .75);
|
|
903
|
+
box-shadow: 0 4px 14px rgba(59, 166, 236, .22), inset 0 1px 0 rgba(255, 255, 255, .65);
|
|
904
|
+
|
|
905
|
+
i {
|
|
906
|
+
transform: translateX(2px);
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
}
|
|
817
911
|
wac-block {
|
|
818
912
|
.wac-block {
|
|
819
913
|
background-color: $white;
|
|
@@ -3525,6 +3525,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
3525
3525
|
type: Output
|
|
3526
3526
|
}] } });
|
|
3527
3527
|
|
|
3528
|
+
class BannerComponent {
|
|
3529
|
+
constructor() {
|
|
3530
|
+
this.dot = false;
|
|
3531
|
+
this.metaLabel = '';
|
|
3532
|
+
this.metaIcon = '';
|
|
3533
|
+
this.ctaLabel = '';
|
|
3534
|
+
this.ctaHref = '';
|
|
3535
|
+
this.ctaClick = new EventEmitter();
|
|
3536
|
+
}
|
|
3537
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BannerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3538
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: BannerComponent, isStandalone: false, selector: "wac-banner", inputs: { dot: "dot", metaLabel: "metaLabel", metaIcon: "metaIcon", ctaLabel: "ctaLabel", ctaHref: "ctaHref" }, outputs: { ctaClick: "ctaClick" }, ngImport: i0, template: "<div class=\"wac-banner\">\r\n <span *ngIf=\"dot\" class=\"wac-banner__dot\"></span>\r\n <span class=\"wac-banner__label\"><ng-content></ng-content></span>\r\n <span *ngIf=\"metaLabel\" class=\"wac-banner__meta\">\r\n <i *ngIf=\"metaIcon\" [ngClass]=\"metaIcon\"></i>\r\n {{ metaLabel }}\r\n </span>\r\n <a *ngIf=\"ctaLabel\" class=\"wac-banner__cta\" [attr.href]=\"ctaHref\" (click)=\"ctaClick.emit()\">\r\n {{ ctaLabel }}\r\n <i class=\"fa-light fa-arrow-right\" aria-hidden=\"true\"></i>\r\n </a>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
3539
|
+
}
|
|
3540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BannerComponent, decorators: [{
|
|
3541
|
+
type: Component,
|
|
3542
|
+
args: [{ standalone: false, selector: 'wac-banner', template: "<div class=\"wac-banner\">\r\n <span *ngIf=\"dot\" class=\"wac-banner__dot\"></span>\r\n <span class=\"wac-banner__label\"><ng-content></ng-content></span>\r\n <span *ngIf=\"metaLabel\" class=\"wac-banner__meta\">\r\n <i *ngIf=\"metaIcon\" [ngClass]=\"metaIcon\"></i>\r\n {{ metaLabel }}\r\n </span>\r\n <a *ngIf=\"ctaLabel\" class=\"wac-banner__cta\" [attr.href]=\"ctaHref\" (click)=\"ctaClick.emit()\">\r\n {{ ctaLabel }}\r\n <i class=\"fa-light fa-arrow-right\" aria-hidden=\"true\"></i>\r\n </a>\r\n</div>\r\n" }]
|
|
3543
|
+
}], propDecorators: { dot: [{
|
|
3544
|
+
type: Input
|
|
3545
|
+
}], metaLabel: [{
|
|
3546
|
+
type: Input
|
|
3547
|
+
}], metaIcon: [{
|
|
3548
|
+
type: Input
|
|
3549
|
+
}], ctaLabel: [{
|
|
3550
|
+
type: Input
|
|
3551
|
+
}], ctaHref: [{
|
|
3552
|
+
type: Input
|
|
3553
|
+
}], ctaClick: [{
|
|
3554
|
+
type: Output
|
|
3555
|
+
}] } });
|
|
3556
|
+
|
|
3528
3557
|
class TextComponent {
|
|
3529
3558
|
constructor() {
|
|
3530
3559
|
this._noMargin = false;
|
|
@@ -4695,13 +4724,13 @@ class AlertPopupComponent {
|
|
|
4695
4724
|
return this.afterClosedPopup.asObservable();
|
|
4696
4725
|
}
|
|
4697
4726
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: AlertPopupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4698
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: AlertPopupComponent, isStandalone: false, selector: "wac-alert-popup", host: { classAttribute: "wac-alert-popup" }, ngImport: i0, template: "<div\r\n [class]=\"'alert ' + ((config.color) ? config.color : ' is-primary') + ((config.extraClasses) ? ' ' + config.extraClasses : '') + ((config.position) ? ' ' + config.position : '') + ((config.fullsize) ? ' fullsize' : '') + ((config.opacity) ? ' opacity-active' : '') + ((config.small) ? ' small' : '') + ((config.icon) ? ' with-icon' : '') + ((config.duration) ? '' : ' no-duration')\"\r\n [ngClass]=\"{'is-active': open, 'has-close': config.closeButton}\"\r\n>\r\n <div class=\"alert--message\">\r\n <span class=\"icon\" *ngIf=\"config.icon\">\r\n <i [class]=\"config.icon\"></i>\r\n </span>\r\n <
|
|
4727
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: AlertPopupComponent, isStandalone: false, selector: "wac-alert-popup", host: { classAttribute: "wac-alert-popup" }, ngImport: i0, template: "<div\r\n [class]=\"'alert ' + ((config.color) ? config.color : ' is-primary') + ((config.extraClasses) ? ' ' + config.extraClasses : '') + ((config.position) ? ' ' + config.position : '') + ((config.fullsize) ? ' fullsize' : '') + ((config.opacity) ? ' opacity-active' : '') + ((config.small) ? ' small' : '') + ((config.icon) ? ' with-icon' : '') + ((config.duration) ? '' : ' no-duration')\"\r\n [ngClass]=\"{'is-active': open, 'has-close': config.closeButton}\"\r\n>\r\n <div class=\"alert--message\">\r\n <span class=\"icon\" *ngIf=\"config.icon\">\r\n <i [class]=\"config.icon\"></i>\r\n </span>\r\n <div class=\"wac-alert-popup__content\">\r\n <p *ngIf=\"config.title\" class=\"wac-alert-popup__title\" [innerHTML]=\"config.title\"></p>\r\n <p *ngIf=\"config.message\" class=\"wac-alert-popup__text\" [innerHTML]=\"config.message\"></p>\r\n </div>\r\n <span (click)=\"dismiss()\" class=\"wac-alert-popup__close\" *ngIf=\"!config.small || (config.small && config.closeButton)\"><i class=\"far fa-times\"></i></span>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
4699
4728
|
}
|
|
4700
4729
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: AlertPopupComponent, decorators: [{
|
|
4701
4730
|
type: Component,
|
|
4702
4731
|
args: [{ standalone: false, selector: 'wac-alert-popup', host: {
|
|
4703
4732
|
class: 'wac-alert-popup'
|
|
4704
|
-
}, encapsulation: ViewEncapsulation.None, template: "<div\r\n [class]=\"'alert ' + ((config.color) ? config.color : ' is-primary') + ((config.extraClasses) ? ' ' + config.extraClasses : '') + ((config.position) ? ' ' + config.position : '') + ((config.fullsize) ? ' fullsize' : '') + ((config.opacity) ? ' opacity-active' : '') + ((config.small) ? ' small' : '') + ((config.icon) ? ' with-icon' : '') + ((config.duration) ? '' : ' no-duration')\"\r\n [ngClass]=\"{'is-active': open, 'has-close': config.closeButton}\"\r\n>\r\n <div class=\"alert--message\">\r\n <span class=\"icon\" *ngIf=\"config.icon\">\r\n <i [class]=\"config.icon\"></i>\r\n </span>\r\n <
|
|
4733
|
+
}, encapsulation: ViewEncapsulation.None, template: "<div\r\n [class]=\"'alert ' + ((config.color) ? config.color : ' is-primary') + ((config.extraClasses) ? ' ' + config.extraClasses : '') + ((config.position) ? ' ' + config.position : '') + ((config.fullsize) ? ' fullsize' : '') + ((config.opacity) ? ' opacity-active' : '') + ((config.small) ? ' small' : '') + ((config.icon) ? ' with-icon' : '') + ((config.duration) ? '' : ' no-duration')\"\r\n [ngClass]=\"{'is-active': open, 'has-close': config.closeButton}\"\r\n>\r\n <div class=\"alert--message\">\r\n <span class=\"icon\" *ngIf=\"config.icon\">\r\n <i [class]=\"config.icon\"></i>\r\n </span>\r\n <div class=\"wac-alert-popup__content\">\r\n <p *ngIf=\"config.title\" class=\"wac-alert-popup__title\" [innerHTML]=\"config.title\"></p>\r\n <p *ngIf=\"config.message\" class=\"wac-alert-popup__text\" [innerHTML]=\"config.message\"></p>\r\n </div>\r\n <span (click)=\"dismiss()\" class=\"wac-alert-popup__close\" *ngIf=\"!config.small || (config.small && config.closeButton)\"><i class=\"far fa-times\"></i></span>\r\n </div>\r\n</div>\r\n" }]
|
|
4705
4734
|
}] });
|
|
4706
4735
|
|
|
4707
4736
|
class AlertPopupService {
|
|
@@ -4716,13 +4745,35 @@ class AlertPopupService {
|
|
|
4716
4745
|
const componentRef = this.domService.attachComponentPortal(AlertPopupComponent);
|
|
4717
4746
|
config = Object.assign({
|
|
4718
4747
|
position: 'is-top'
|
|
4719
|
-
}, config
|
|
4748
|
+
}, config,
|
|
4749
|
+
// Force the unified card design on every popup, whatever the caller passes.
|
|
4750
|
+
{
|
|
4751
|
+
small: false,
|
|
4752
|
+
fullsize: false,
|
|
4753
|
+
opacity: false
|
|
4754
|
+
});
|
|
4755
|
+
if (!config.icon) {
|
|
4756
|
+
config.icon = this.getDefaultIcon(config.color);
|
|
4757
|
+
}
|
|
4720
4758
|
componentRef.instance.config = config;
|
|
4721
4759
|
componentRef.instance.afterClosed().subscribe(() => {
|
|
4722
4760
|
componentRef.destroy();
|
|
4723
4761
|
});
|
|
4724
4762
|
return componentRef;
|
|
4725
4763
|
}
|
|
4764
|
+
/** Default icon matching the card design, picked from the alert color. */
|
|
4765
|
+
getDefaultIcon(color) {
|
|
4766
|
+
switch (color) {
|
|
4767
|
+
case 'is-danger':
|
|
4768
|
+
case 'is-primary':
|
|
4769
|
+
return 'fas fa-exclamation';
|
|
4770
|
+
case 'is-info':
|
|
4771
|
+
return 'fas fa-info';
|
|
4772
|
+
case 'is-success':
|
|
4773
|
+
default:
|
|
4774
|
+
return 'fas fa-check';
|
|
4775
|
+
}
|
|
4776
|
+
}
|
|
4726
4777
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: AlertPopupService, deps: [{ token: DomService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4727
4778
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: AlertPopupService, providedIn: 'root' }); }
|
|
4728
4779
|
}
|
|
@@ -7099,6 +7150,7 @@ const components = [
|
|
|
7099
7150
|
CalendarComponent,
|
|
7100
7151
|
WzEditInPlaceComponent,
|
|
7101
7152
|
AlertComponent,
|
|
7153
|
+
BannerComponent,
|
|
7102
7154
|
HeaderPageComponent,
|
|
7103
7155
|
SwitchComponent,
|
|
7104
7156
|
LinkComponent,
|
|
@@ -7202,6 +7254,7 @@ class SharedComponentsModule {
|
|
|
7202
7254
|
CalendarComponent,
|
|
7203
7255
|
WzEditInPlaceComponent,
|
|
7204
7256
|
AlertComponent,
|
|
7257
|
+
BannerComponent,
|
|
7205
7258
|
HeaderPageComponent,
|
|
7206
7259
|
SwitchComponent,
|
|
7207
7260
|
LinkComponent,
|
|
@@ -7306,6 +7359,7 @@ class SharedComponentsModule {
|
|
|
7306
7359
|
CalendarComponent,
|
|
7307
7360
|
WzEditInPlaceComponent,
|
|
7308
7361
|
AlertComponent,
|
|
7362
|
+
BannerComponent,
|
|
7309
7363
|
HeaderPageComponent,
|
|
7310
7364
|
SwitchComponent,
|
|
7311
7365
|
LinkComponent,
|
|
@@ -7739,5 +7793,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
7739
7793
|
* Generated bundle index. Do not edit.
|
|
7740
7794
|
*/
|
|
7741
7795
|
|
|
7742
|
-
export { ACCORDION_ITEM, AbstractDebounceDirective, AccordionComponent, AiExpressComponent, AlertComponent, AlertPopupComponent, AlertPopupModule, AlertPopupService, AreAllOptionsSelectedPipe, AutoHideDirective, BackComponent, BlockComponent, BlockSeparatorComponent, BlockTitleLegacyComponent, BlockWithCheckboxComponent, BorderPickerComponent, BreadcrumbsComponent, ButtonComponent, CalendarComponent, CallComponentFunctionPipe, CardPriceComponent, ChargingBarComponent, CheckBoxRow, CheckboxComponent, ColorPickerComponent, ColumnComponent, ConfirmDeleteComponent, ContentWithButtonsComponent, CopyToClipBoardDirective, DebounceKeyupDirective, DeleteComponent, DomChangedDirective, DraganddropListComponent, DropdownComponent, EXPANSION_PANEL_HEADER, ExpandedPanelComponent, ExpansionExport, ExpansionModule, ExpansionPanelComponent, ExpansionPanelDirective, ExpansionPanelHeaderComponent, ExpansionPanelHeaderDirective, FaqSectionComponent, FilterOptionsPipe, FiltersComponent, FiltersTableService, FindOptionSelectedPipe, FormatObjectToRecursifTreePipe, FormatObjectToSimpleTreePipe, FreePopinComponent, GooglePreviewComponent, GridComponent, H1Component, H2Component, H3Component, H4Component, HeaderPageComponent, HistoryService, HtmlContainer, ImageComponent, ImageTextSectionComponent, InfoComponent, InputComponent, InputSearchComponent, InputWithSelectComponent, KeypressEnterDirective, LabelComponent, LinkComponent, LoaderComponent, LogoComponent, MenuTileComponent, MosaicComponent, MultipleSearchComponent, MultipleSearchPlusComponent, OnlyNumberDirective, OptionCallToActionComponent, OptionComponent, OptionGroupComponent, OptionalDisableContainerComponent, PaginationComponent, PlaceholderComponent, PopinComponent, PricingSectionComponent, ProgressBarComponent, RadioComponent, RadioGroupLegacyDirective, RadioLegacyComponent, RadioLegacyDirective, RadioOptionComponent, ReassuranceSectionComponent, RowComponent, ScrollToDirective, SearchComponent, SelectComponent, SelectDirective, SelectFiltersPipe, SelectInTextComponent, SelectOptionDirective, SelectSearchTriggerComponent, SelectedListComponent, SeparatorComponent, SettingsComponent, SharedComponentsModule, SharedDirectives, SharedPipes, SlideInComponent, SnackbarComponent, StateComponent, SummaryComponent, SwitchComponent, TabComponent, TableColumn, TableColumnHeader, TableComponent, TableFiltersGroup, TableRow, TabsComponent, TagComponent, TagDropdownComponent, TagInputComponent, TagLabelComponent, TextAreaComponent, TextComponent, TokenCheckComponent, TooltipComponent, TreeComponent, TreeModule, TwoDigitDecimalNumberDirective, UploadComponent, ValueChangeService, VarDirective, WiziComponentsModule, WrapperBlocsComponent, WrapperComponent, WrapperMultipleBlockComponent, WrapperSidebarComponent, WzEditInPlaceComponent, ZindexToggleDirective, animateListFromBottom, animateListFromLeft, animateListFromRight, animateListFromTop, distinctUntilTableFiltersChanged, inOutX, inOutY, opacityAnimation, showFromBottom, showFromLeft, showFromRight, showFromTop, switchInOut, updateTableFiltersTotalItems, uuid };
|
|
7796
|
+
export { ACCORDION_ITEM, AbstractDebounceDirective, AccordionComponent, AiExpressComponent, AlertComponent, AlertPopupComponent, AlertPopupModule, AlertPopupService, AreAllOptionsSelectedPipe, AutoHideDirective, BackComponent, BannerComponent, BlockComponent, BlockSeparatorComponent, BlockTitleLegacyComponent, BlockWithCheckboxComponent, BorderPickerComponent, BreadcrumbsComponent, ButtonComponent, CalendarComponent, CallComponentFunctionPipe, CardPriceComponent, ChargingBarComponent, CheckBoxRow, CheckboxComponent, ColorPickerComponent, ColumnComponent, ConfirmDeleteComponent, ContentWithButtonsComponent, CopyToClipBoardDirective, DebounceKeyupDirective, DeleteComponent, DomChangedDirective, DraganddropListComponent, DropdownComponent, EXPANSION_PANEL_HEADER, ExpandedPanelComponent, ExpansionExport, ExpansionModule, ExpansionPanelComponent, ExpansionPanelDirective, ExpansionPanelHeaderComponent, ExpansionPanelHeaderDirective, FaqSectionComponent, FilterOptionsPipe, FiltersComponent, FiltersTableService, FindOptionSelectedPipe, FormatObjectToRecursifTreePipe, FormatObjectToSimpleTreePipe, FreePopinComponent, GooglePreviewComponent, GridComponent, H1Component, H2Component, H3Component, H4Component, HeaderPageComponent, HistoryService, HtmlContainer, ImageComponent, ImageTextSectionComponent, InfoComponent, InputComponent, InputSearchComponent, InputWithSelectComponent, KeypressEnterDirective, LabelComponent, LinkComponent, LoaderComponent, LogoComponent, MenuTileComponent, MosaicComponent, MultipleSearchComponent, MultipleSearchPlusComponent, OnlyNumberDirective, OptionCallToActionComponent, OptionComponent, OptionGroupComponent, OptionalDisableContainerComponent, PaginationComponent, PlaceholderComponent, PopinComponent, PricingSectionComponent, ProgressBarComponent, RadioComponent, RadioGroupLegacyDirective, RadioLegacyComponent, RadioLegacyDirective, RadioOptionComponent, ReassuranceSectionComponent, RowComponent, ScrollToDirective, SearchComponent, SelectComponent, SelectDirective, SelectFiltersPipe, SelectInTextComponent, SelectOptionDirective, SelectSearchTriggerComponent, SelectedListComponent, SeparatorComponent, SettingsComponent, SharedComponentsModule, SharedDirectives, SharedPipes, SlideInComponent, SnackbarComponent, StateComponent, SummaryComponent, SwitchComponent, TabComponent, TableColumn, TableColumnHeader, TableComponent, TableFiltersGroup, TableRow, TabsComponent, TagComponent, TagDropdownComponent, TagInputComponent, TagLabelComponent, TextAreaComponent, TextComponent, TokenCheckComponent, TooltipComponent, TreeComponent, TreeModule, TwoDigitDecimalNumberDirective, UploadComponent, ValueChangeService, VarDirective, WiziComponentsModule, WrapperBlocsComponent, WrapperComponent, WrapperMultipleBlockComponent, WrapperSidebarComponent, WzEditInPlaceComponent, ZindexToggleDirective, animateListFromBottom, animateListFromLeft, animateListFromRight, animateListFromTop, distinctUntilTableFiltersChanged, inOutX, inOutY, opacityAnimation, showFromBottom, showFromLeft, showFromRight, showFromTop, switchInOut, updateTableFiltersTotalItems, uuid };
|
|
7743
7797
|
//# sourceMappingURL=wizishop-angular-components.mjs.map
|