@wizishop/angular-components 0.0.105 → 0.0.108
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 +172 -1
- package/bundles/wizishop-angular-components.umd.js +9 -10
- package/bundles/wizishop-angular-components.umd.js.map +1 -1
- package/bundles/wizishop-angular-components.umd.min.js +1 -1
- package/bundles/wizishop-angular-components.umd.min.js.map +1 -1
- package/esm2015/lib/components/inputs/input-search/input-search.component.js +4 -4
- package/esm2015/lib/components/link/link.component.js +2 -4
- package/esm2015/lib/components/popin/popin.component.js +5 -3
- package/esm2015/lib/components/tag/tag.component.js +3 -4
- package/fesm2015/wizishop-angular-components.js +9 -10
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/inputs/input-search/input-search.component.d.ts +1 -1
- package/lib/components/popin/popin.component.d.ts +1 -0
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.108.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.105.tgz +0 -0
package/angular-components.scss
CHANGED
|
@@ -34,6 +34,13 @@ $wac-link-color: #52aecd!default;
|
|
|
34
34
|
$wac-main-text: #1d2a3b!default;
|
|
35
35
|
$wac-main-text-lighten: lighten($main-text, 15%)!default;
|
|
36
36
|
$wac-orange-color: #f39c12!default;
|
|
37
|
+
$wac-orange-color-disabled: lighten(#f39c12, 10%)!default;
|
|
38
|
+
$wac-orange-color-darken: darken(#f39c12, 10%)!default;
|
|
39
|
+
$wac-orange-color-focus: darken(#f39c12, 10%)!default;
|
|
40
|
+
$wac-pink-color: #f83c60!default;
|
|
41
|
+
$wac-pink-color-disabled: lighten(#f83c60, 10%)!default;
|
|
42
|
+
$wac-pink-color-darken: darken(#f83c60, 10%)!default;
|
|
43
|
+
$wac-pink-color-focus: darken(#f83c60, 10%)!default;
|
|
37
44
|
$wac-p-alert-color-default: #1e5568!default;
|
|
38
45
|
$wac-p-alert-color-success: #11552e!default;
|
|
39
46
|
$wac-p-alert-color-warning: #3a0505!default;
|
|
@@ -100,6 +107,7 @@ $wac-select-box-shadow: #0000000d!default;
|
|
|
100
107
|
$wac-button-tab-background: #EAEDF5!default;
|
|
101
108
|
|
|
102
109
|
$wac-color-success-popup-alert: #6DCC95!default;
|
|
110
|
+
|
|
103
111
|
.zindexToggle {
|
|
104
112
|
z-index: 9!important;
|
|
105
113
|
position: relative;
|
|
@@ -885,6 +893,170 @@ $wac-color-success-popup-alert: #6DCC95!default;
|
|
|
885
893
|
}
|
|
886
894
|
}
|
|
887
895
|
|
|
896
|
+
&.is-orange {
|
|
897
|
+
background-color: $wac-orange-color;
|
|
898
|
+
border-color: $wac-orange-color;
|
|
899
|
+
transition: background-color 0.3s ease-in-out;
|
|
900
|
+
|
|
901
|
+
.wac-button__loader {
|
|
902
|
+
background-color: $wac-orange-color-darken;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
&:hover,
|
|
906
|
+
&.hover {
|
|
907
|
+
background-color: $wac-orange-color-darken;
|
|
908
|
+
border-color: $wac-orange-color-darken;
|
|
909
|
+
transition: background-color 0.3s ease-in-out;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
&:focus,
|
|
913
|
+
&.focus {
|
|
914
|
+
background-color: $wac-orange-color-focus;
|
|
915
|
+
border-color: $wac-orange-color-focus;
|
|
916
|
+
transition: background-color 0.3s ease-in-out;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
&.is-outlined {
|
|
920
|
+
background-color: transparent;
|
|
921
|
+
border-color: $wac-orange-color;
|
|
922
|
+
|
|
923
|
+
.wac-button__loader {
|
|
924
|
+
background-color: $wac-orange-color-darken;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.wac-button__wrapper, .wac-button__animation {
|
|
928
|
+
color: $wac-orange-color;
|
|
929
|
+
transition: color 0.3s ease-in-out;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
&:hover,
|
|
933
|
+
&.hover {
|
|
934
|
+
background-color: $wac-orange-color;
|
|
935
|
+
border-color: $wac-orange-color;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
&:focus,
|
|
939
|
+
&.focus {
|
|
940
|
+
background-color: $wac-orange-color-focus;
|
|
941
|
+
border-color: $wac-orange-color-focus;
|
|
942
|
+
transition: background-color 0.3s ease-in-out;
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
&.is-loading {
|
|
947
|
+
&:hover,
|
|
948
|
+
&.hover {
|
|
949
|
+
background-color: $wac-orange-color;
|
|
950
|
+
transition: background-color 0.3s ease-in-out;
|
|
951
|
+
}
|
|
952
|
+
&:focus,
|
|
953
|
+
&.focus {
|
|
954
|
+
background-color: $wac-orange-color-focus;
|
|
955
|
+
border-color: $wac-orange-color-focus;
|
|
956
|
+
transition: background-color 0.3s ease-in-out;
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
&.disabled {
|
|
961
|
+
background-color: $wac-orange-color-disabled;
|
|
962
|
+
border-color: $wac-orange-color-disabled;
|
|
963
|
+
transition: 0s;
|
|
964
|
+
cursor: default;
|
|
965
|
+
.wac-button__wrapper, .wac-button__animation {
|
|
966
|
+
color: $wac-white;
|
|
967
|
+
}
|
|
968
|
+
&:hover,
|
|
969
|
+
&:focus,
|
|
970
|
+
&.hover,
|
|
971
|
+
&.focus {
|
|
972
|
+
background-color: $wac-orange-color-disabled;
|
|
973
|
+
border-color: $wac-orange-color-disabled;
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
&.is-pink {
|
|
979
|
+
background-color: $wac-pink-color;
|
|
980
|
+
border-color: $wac-pink-color;
|
|
981
|
+
transition: background-color 0.3s ease-in-out;
|
|
982
|
+
|
|
983
|
+
.wac-button__loader {
|
|
984
|
+
background-color: $wac-pink-color-darken;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
&:hover,
|
|
988
|
+
&.hover {
|
|
989
|
+
background-color: $wac-pink-color-darken;
|
|
990
|
+
border-color: $wac-pink-color-darken;
|
|
991
|
+
transition: background-color 0.3s ease-in-out;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
&:focus,
|
|
995
|
+
&.focus {
|
|
996
|
+
background-color: $wac-pink-color-focus;
|
|
997
|
+
border-color: $wac-pink-color-focus;
|
|
998
|
+
transition: background-color 0.3s ease-in-out;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
&.is-outlined {
|
|
1002
|
+
background-color: transparent;
|
|
1003
|
+
border-color: $wac-pink-color;
|
|
1004
|
+
|
|
1005
|
+
.wac-button__loader {
|
|
1006
|
+
background-color: $wac-pink-color-darken;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
.wac-button__wrapper, .wac-button__animation {
|
|
1010
|
+
color: $wac-pink-color;
|
|
1011
|
+
transition: color 0.3s ease-in-out;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
&:hover,
|
|
1015
|
+
&.hover {
|
|
1016
|
+
background-color: $wac-pink-color;
|
|
1017
|
+
border-color: $wac-pink-color;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
&:focus,
|
|
1021
|
+
&.focus {
|
|
1022
|
+
background-color: $wac-pink-color-focus;
|
|
1023
|
+
border-color: $wac-pink-color-focus;
|
|
1024
|
+
transition: background-color 0.3s ease-in-out;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
&.is-loading {
|
|
1029
|
+
&:hover,
|
|
1030
|
+
&.hover {
|
|
1031
|
+
background-color: $wac-pink-color;
|
|
1032
|
+
transition: background-color 0.3s ease-in-out;
|
|
1033
|
+
}
|
|
1034
|
+
&:focus,
|
|
1035
|
+
&.focus {
|
|
1036
|
+
background-color: $wac-pink-color-focus;
|
|
1037
|
+
border-color: $wac-pink-color-focus;
|
|
1038
|
+
transition: background-color 0.3s ease-in-out;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
&.disabled {
|
|
1043
|
+
background-color: $wac-pink-color-disabled;
|
|
1044
|
+
border-color: $wac-pink-color-disabled;
|
|
1045
|
+
transition: 0s;
|
|
1046
|
+
cursor: default;
|
|
1047
|
+
.wac-button__wrapper, .wac-button__animation {
|
|
1048
|
+
color: $wac-white;
|
|
1049
|
+
}
|
|
1050
|
+
&:hover,
|
|
1051
|
+
&:focus,
|
|
1052
|
+
&.hover,
|
|
1053
|
+
&.focus {
|
|
1054
|
+
background-color: $wac-pink-color-disabled;
|
|
1055
|
+
border-color: $wac-pink-color-disabled;
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
|
|
888
1060
|
&.is-grey {
|
|
889
1061
|
background-color: $wac-background-color;
|
|
890
1062
|
border-color: $wac-background-color;
|
|
@@ -3440,7 +3612,6 @@ a.wac-link {
|
|
|
3440
3612
|
position: fixed;
|
|
3441
3613
|
top: 0;
|
|
3442
3614
|
left: 0;
|
|
3443
|
-
z-index: 9999;
|
|
3444
3615
|
|
|
3445
3616
|
&__wrapper {
|
|
3446
3617
|
background-color: white;
|
|
@@ -368,15 +368,15 @@
|
|
|
368
368
|
InputSearchComponent.prototype.registerOnTouched = function (fn) {
|
|
369
369
|
this.onTouchedCallback = fn;
|
|
370
370
|
};
|
|
371
|
-
InputSearchComponent.prototype.handleDebouncedKeyUp = function (
|
|
372
|
-
this.changeDebounced.emit(
|
|
371
|
+
InputSearchComponent.prototype.handleDebouncedKeyUp = function () {
|
|
372
|
+
this.changeDebounced.emit(this.value);
|
|
373
373
|
};
|
|
374
374
|
return InputSearchComponent;
|
|
375
375
|
}());
|
|
376
376
|
InputSearchComponent.decorators = [
|
|
377
377
|
{ type: i0.Component, args: [{
|
|
378
378
|
selector: 'wac-input-search',
|
|
379
|
-
template: "<div class=\"wac-field-input-search\" [ngClass]=\"smallPadding ? 'small-padding' : ''\">\n <p class=\"control has-icons-left has-icons-right\">\n <input\n [placeholder]=\"placeholder\"\n value=\"\"\n class=\"input\"\n type=\"text\"\n [attr.id]=\"id\"\n [(ngModel)]=\"value\"\n debounceKeyUp\n [debounceTime]=\"1000\"\n (onEventChange)=\"handleDebouncedKeyUp(
|
|
379
|
+
template: "<div class=\"wac-field-input-search\" [ngClass]=\"smallPadding ? 'small-padding' : ''\">\n <p class=\"control has-icons-left has-icons-right\">\n <input\n [placeholder]=\"placeholder\"\n value=\"\"\n class=\"input\"\n type=\"text\"\n [attr.id]=\"id\"\n [(ngModel)]=\"value\"\n debounceKeyUp\n [debounceTime]=\"1000\"\n (onEventChange)=\"handleDebouncedKeyUp()\"\n />\n <i class=\"icon fal fa-search\"></i>\n </p>\n</div>\n",
|
|
380
380
|
providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: InputSearchComponent, multi: true }]
|
|
381
381
|
},] }
|
|
382
382
|
];
|
|
@@ -865,8 +865,7 @@
|
|
|
865
865
|
TagComponent.decorators = [
|
|
866
866
|
{ type: i0.Component, args: [{
|
|
867
867
|
selector: 'wac-tag',
|
|
868
|
-
template: "<div class=\"wac-tag\" [classList]=\"'wac-tag--' + class\" [ngClass]=\"{ hover: hasClose, 'big': big }\">\n {{ label }}\n <span class=\"wac-tag__close\" *ngIf=\"hasClose\" (click)=\"toggleTag()\"><i class=\"fas fa-times\"></i></span>\n</div>\n"
|
|
869
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
868
|
+
template: "<div class=\"wac-tag\" [classList]=\"'wac-tag--' + class\" [ngClass]=\"{ hover: hasClose, 'big': big }\">\n {{ label }}\n <span class=\"wac-tag__close\" *ngIf=\"hasClose\" (click)=\"toggleTag()\"><i class=\"fas fa-times\"></i></span>\n</div>\n"
|
|
870
869
|
},] }
|
|
871
870
|
];
|
|
872
871
|
TagComponent.ctorParameters = function () { return []; };
|
|
@@ -1918,9 +1917,7 @@
|
|
|
1918
1917
|
},
|
|
1919
1918
|
set: function (link) {
|
|
1920
1919
|
this._link = link;
|
|
1921
|
-
|
|
1922
|
-
this.setAttributesLink();
|
|
1923
|
-
}
|
|
1920
|
+
this.setAttributesLink();
|
|
1924
1921
|
},
|
|
1925
1922
|
enumerable: false,
|
|
1926
1923
|
configurable: true
|
|
@@ -3291,6 +3288,7 @@
|
|
|
3291
3288
|
this.visibleChange = new i0.EventEmitter();
|
|
3292
3289
|
this.response = new i0.EventEmitter();
|
|
3293
3290
|
this.background = true;
|
|
3291
|
+
this.zIndex = 9999;
|
|
3294
3292
|
this.firstOpen = true;
|
|
3295
3293
|
}
|
|
3296
3294
|
PopinComponent.prototype.ngOnInit = function () {
|
|
@@ -3319,7 +3317,7 @@
|
|
|
3319
3317
|
PopinComponent.decorators = [
|
|
3320
3318
|
{ type: i0.Component, args: [{
|
|
3321
3319
|
selector: 'wac-popin',
|
|
3322
|
-
template: "<div class=\"wac-free\" *ngIf=\"visible\">\n <div class=\"wac-free__wrapper\" wzAutoHide (clickOutside)=\"closePopin()\">\n <a class=\"wac-free__wrapper__button-close\" (click)=\"closePopin()\">\n <i class=\"fas fa-times\"></i>\n </a>\n <div class=\"wac-free__wrapper__content\">\n <perfect-scrollbar [config]=\"{ suppressScrollX: true }\">\n <img [src]=\"imgSrc\" alt=\"barre admin\" />\n\n <h2 class=\"wac-popin__wrapper__title\" [innerHTML]=\"title\"></h2>\n\n <p class=\"wac-popin__wrapper__text\" [innerHTML]=\"content\"></p>\n </perfect-scrollbar>\n </div>\n <div class=\"wac-free__wrapper__buttons\">\n <div class=\"wac-free__wrapper__buttons__button\" *ngIf=\"okButtonLabel\">\n <wac-button [extraClasses]=\"'is-success'\" [label]=\"okButtonLabel\" hasLoader=\"true\" (click)=\"validatePopin()\"></wac-button>\n </div>\n <div class=\"wac-free__wrapper__buttons__button\" *ngIf=\"koButtonLabel\">\n <wac-button [extraClasses]=\"'is-danger is-outlined'\" [label]=\"koButtonLabel\" hasLoader=\"true\" (click)=\"refusePopin()\"></wac-button>\n </div>\n </div>\n </div>\n <div class=\"wac-free__background\" *ngIf=\"background\"></div>\n</div>\n"
|
|
3320
|
+
template: "<div class=\"wac-free\" *ngIf=\"visible\" [ngStyle]=\"{'z-index': zIndex}\">\n <div class=\"wac-free__wrapper\" wzAutoHide (clickOutside)=\"closePopin()\">\n <a class=\"wac-free__wrapper__button-close\" (click)=\"closePopin()\">\n <i class=\"fas fa-times\"></i>\n </a>\n <div class=\"wac-free__wrapper__content\">\n <perfect-scrollbar [config]=\"{ suppressScrollX: true }\">\n <img [src]=\"imgSrc\" alt=\"barre admin\" />\n\n <h2 class=\"wac-popin__wrapper__title\" [innerHTML]=\"title\"></h2>\n\n <p class=\"wac-popin__wrapper__text\" [innerHTML]=\"content\"></p>\n </perfect-scrollbar>\n </div>\n <div class=\"wac-free__wrapper__buttons\">\n <div class=\"wac-free__wrapper__buttons__button\" *ngIf=\"okButtonLabel\">\n <wac-button [extraClasses]=\"'is-success'\" [label]=\"okButtonLabel\" hasLoader=\"true\" (click)=\"validatePopin()\"></wac-button>\n </div>\n <div class=\"wac-free__wrapper__buttons__button\" *ngIf=\"koButtonLabel\">\n <wac-button [extraClasses]=\"'is-danger is-outlined'\" [label]=\"koButtonLabel\" hasLoader=\"true\" (click)=\"refusePopin()\"></wac-button>\n </div>\n </div>\n </div>\n <div class=\"wac-free__background\" *ngIf=\"background\"></div>\n</div>\n"
|
|
3323
3321
|
},] }
|
|
3324
3322
|
];
|
|
3325
3323
|
PopinComponent.ctorParameters = function () { return [
|
|
@@ -3336,7 +3334,8 @@
|
|
|
3336
3334
|
visible: [{ type: i0.Input }],
|
|
3337
3335
|
visibleChange: [{ type: i0.Output }],
|
|
3338
3336
|
response: [{ type: i0.Output }],
|
|
3339
|
-
background: [{ type: i0.Input }]
|
|
3337
|
+
background: [{ type: i0.Input }],
|
|
3338
|
+
zIndex: [{ type: i0.Input }]
|
|
3340
3339
|
};
|
|
3341
3340
|
|
|
3342
3341
|
var FreePopinComponent = /** @class */ (function () {
|