@wizishop/img-manager 14.0.11 → 14.0.12

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.
@@ -4,11 +4,13 @@ import { ImgPictureDTO } from '../../dto/img-manager.dto';
4
4
  import { ImgManagerConfigService } from "../../services/config/external-config.service";
5
5
  import { stateDisplayed } from '../../dto/export-dtos.api';
6
6
  import { AlertService } from '../../services/alert.service';
7
+ import { TranslateService } from '@ngx-translate/core';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class ImgUploadComponent implements OnInit {
9
10
  private imgManager;
10
11
  private alertService;
11
12
  private externalConfigService;
13
+ private translateService;
12
14
  files: any;
13
15
  isLoading: boolean;
14
16
  assetsIcon: string;
@@ -19,7 +21,7 @@ export declare class ImgUploadComponent implements OnInit {
19
21
  errorUploadingImg: string;
20
22
  errorNotImg: string;
21
23
  MAX_IMAGE_SIZE: number;
22
- constructor(imgManager: ImgManagerService, alertService: AlertService, externalConfigService: ImgManagerConfigService);
24
+ constructor(imgManager: ImgManagerService, alertService: AlertService, externalConfigService: ImgManagerConfigService, translateService: TranslateService);
23
25
  ngOnInit(): void;
24
26
  filesChangeByClick(event: any): void;
25
27
  getAssets(): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/img-manager",
3
- "version": "14.0.11",
3
+ "version": "14.0.12",
4
4
  "description": "The best and the most beautiful image manager.",
5
5
  "repository": {
6
6
  "type": "git",
Binary file
@@ -926,222 +926,6 @@ $tag-radius: rem(20px)!default;
926
926
  .noTooltip .tooltip.is-tooltip-left:hover::before, .noTooltip .tooltip.is-tooltip-left:hover:not(.is-loading)::after {
927
927
  display: none;
928
928
  }
929
- .wz-img-manager .images-view {
930
- text-align: left;
931
-
932
- &.fullSize {
933
- & + .images-view__scroll {
934
- max-height: 1160px;
935
- }
936
- }
937
-
938
- &__scroll {
939
- position: relative;
940
- height: 100%;
941
- z-index: 1;
942
-
943
- &--full {
944
- max-height: calc(100vh - 160px)!important;
945
- min-height: calc(100vh - 160px) !important;
946
- }
947
-
948
- &--smallDisplay {
949
- max-height: 275px!important;
950
- @include media('<tablet') {
951
- max-height: calc(100vh - 90px)!important;
952
- min-height: calc(100vh - 90px) !important;
953
- }
954
- }
955
-
956
- &--smallUploadDisplay {
957
- max-height: 230px!important;
958
- }
959
-
960
- &--window {
961
- max-height: unset!important;
962
- }
963
-
964
- &--hide {
965
- &--mosaic {
966
- min-height: 100px !important;
967
- &--small {
968
- min-height: unset !important;
969
- }
970
- }
971
- &--table {
972
- min-height: 170px !important;
973
- }
974
-
975
- }
976
-
977
- .ng-scroll-content {
978
- min-width: calc(100% - 1rem) !important;
979
- width: calc(100% - 1rem) !important;
980
- @include media('<tablet') {
981
- min-width: 100%!important;
982
- }
983
- }
984
- }
985
-
986
- &__container {
987
- display: flex;
988
- justify-content: space-between;
989
- margin: 0 0 rem(20);
990
-
991
- > div {
992
- display: flex;
993
- align-items: center;
994
- .mainColor {
995
- margin: 0;
996
- }
997
- }
998
-
999
- &--window {
1000
- margin: rem(30) 0 rem(20);
1001
- }
1002
-
1003
- &--uploadTab {
1004
- margin: 0 0 rem(20);
1005
- }
1006
-
1007
- &__boxAction {
1008
- width: 525px;
1009
- overflow: visible;
1010
- display: flex;
1011
- position: relative;
1012
- justify-content: flex-end;
1013
- margin-right: 13px;
1014
- height: 40px;
1015
- align-items: center;
1016
- transform: translate(-41px,-3px);
1017
-
1018
- &__confirmSup {
1019
- display: flex;
1020
- justify-content: space-between;
1021
- align-items: center;
1022
- border-left: solid 1px #d8d8d8;
1023
- color: $img-grey-color;
1024
- padding-left: 1rem;
1025
- width: 0;
1026
- position: absolute;
1027
- opacity: 0;
1028
- transition: 0s;
1029
- visibility: hidden;
1030
- z-index: 2;
1031
-
1032
- &--visible {
1033
- max-width: unset;
1034
- width: auto;
1035
- opacity: 1;
1036
- transition: 0s;
1037
- visibility: visible;
1038
-
1039
- p {
1040
- transition: left .3s ease-in-out;
1041
- right: 100%;
1042
- left: auto;
1043
- white-space: nowrap;
1044
- margin-right: 30px;
1045
- }
1046
- }
1047
-
1048
- &__cancel {
1049
- margin-right: 14px;
1050
- background-color: white;
1051
- border-color: #dbdbdb;
1052
- color: $img-main-text;
1053
- }
1054
-
1055
- &__text {
1056
- font-size: 14px;
1057
- position: absolute;
1058
- left: -126%;
1059
- transition: font-size .3s ease-in-out, left .3s ease-in-out;
1060
- }
1061
- }
1062
-
1063
- &__delBtn {
1064
- i {
1065
- margin-right: 13px!important;
1066
- }
1067
- }
1068
-
1069
- &__import {
1070
- margin-right: 13px;
1071
- i {
1072
- margin-right: 13px!important;
1073
- }
1074
- }
1075
- }
1076
-
1077
- &__buttonBox {
1078
- margin: 0;
1079
- width: rem(40);
1080
- height: rem(40);
1081
- border: solid $img-light-white-color;
1082
- border-width: 1px 0 1px 1px;
1083
-
1084
- border-radius: 3px 0 0 3px;
1085
- outline: none!important;
1086
-
1087
- > div {
1088
- margin-top: 0;
1089
- margin-bottom: 0;
1090
- height: 40px;
1091
- &:nth-child(2) {
1092
- border: solid $img-light-white-color;
1093
- border-width: 1px 1px 1px 0;
1094
- transform: translateY(-1px);
1095
- border-radius: 0 3px 3px 0;
1096
- }
1097
- div {
1098
- height: 38px;
1099
- margin: 0!important;
1100
- }
1101
- }
1102
-
1103
- .actifDisplayed {
1104
- color:$img-main-color;
1105
- }
1106
-
1107
- i {
1108
- margin: 0;
1109
- }
1110
- }
1111
-
1112
- &__cards {
1113
- display: flex;
1114
- justify-content: space-between;
1115
- flex-wrap: wrap;
1116
- align-items: center;
1117
- padding-top: 30px;
1118
- margin-right: calc(0.8rem - 20px);
1119
- margin-left: 0.3rem;
1120
- margin-bottom: 30px;
1121
-
1122
- }
1123
- }
1124
-
1125
- &--pexels {
1126
- margin-top: -30px;
1127
- }
1128
-
1129
- .subHeaderActions .button i {
1130
- margin-right: 0;
1131
- }
1132
- }
1133
-
1134
- @media screen and (max-width: 768px) {
1135
- .wz-img-manager .img-tabs__tabsFirst .img-tabs__tabsFirst__list .images-view__scroll {
1136
- max-height: none!important;
1137
-
1138
- .ng-scroll-content {
1139
- margin: 0 !important;
1140
- min-width: 100%!important;
1141
- width: 100%!important;
1142
- }
1143
- }
1144
- }
1145
929
  .wz-img-manager .img-editor {
1146
930
  &__scroll {
1147
931
  position: relative;
@@ -1457,6 +1241,222 @@ $tag-radius: rem(20px)!default;
1457
1241
  .wz-img-manager .marginBottom {
1458
1242
  margin-bottom: 20px;
1459
1243
  }
1244
+ .wz-img-manager .images-view {
1245
+ text-align: left;
1246
+
1247
+ &.fullSize {
1248
+ & + .images-view__scroll {
1249
+ max-height: 1160px;
1250
+ }
1251
+ }
1252
+
1253
+ &__scroll {
1254
+ position: relative;
1255
+ height: 100%;
1256
+ z-index: 1;
1257
+
1258
+ &--full {
1259
+ max-height: calc(100vh - 160px)!important;
1260
+ min-height: calc(100vh - 160px) !important;
1261
+ }
1262
+
1263
+ &--smallDisplay {
1264
+ max-height: 275px!important;
1265
+ @include media('<tablet') {
1266
+ max-height: calc(100vh - 90px)!important;
1267
+ min-height: calc(100vh - 90px) !important;
1268
+ }
1269
+ }
1270
+
1271
+ &--smallUploadDisplay {
1272
+ max-height: 230px!important;
1273
+ }
1274
+
1275
+ &--window {
1276
+ max-height: unset!important;
1277
+ }
1278
+
1279
+ &--hide {
1280
+ &--mosaic {
1281
+ min-height: 100px !important;
1282
+ &--small {
1283
+ min-height: unset !important;
1284
+ }
1285
+ }
1286
+ &--table {
1287
+ min-height: 170px !important;
1288
+ }
1289
+
1290
+ }
1291
+
1292
+ .ng-scroll-content {
1293
+ min-width: calc(100% - 1rem) !important;
1294
+ width: calc(100% - 1rem) !important;
1295
+ @include media('<tablet') {
1296
+ min-width: 100%!important;
1297
+ }
1298
+ }
1299
+ }
1300
+
1301
+ &__container {
1302
+ display: flex;
1303
+ justify-content: space-between;
1304
+ margin: 0 0 rem(20);
1305
+
1306
+ > div {
1307
+ display: flex;
1308
+ align-items: center;
1309
+ .mainColor {
1310
+ margin: 0;
1311
+ }
1312
+ }
1313
+
1314
+ &--window {
1315
+ margin: rem(30) 0 rem(20);
1316
+ }
1317
+
1318
+ &--uploadTab {
1319
+ margin: 0 0 rem(20);
1320
+ }
1321
+
1322
+ &__boxAction {
1323
+ width: 525px;
1324
+ overflow: visible;
1325
+ display: flex;
1326
+ position: relative;
1327
+ justify-content: flex-end;
1328
+ margin-right: 13px;
1329
+ height: 40px;
1330
+ align-items: center;
1331
+ transform: translate(-41px,-3px);
1332
+
1333
+ &__confirmSup {
1334
+ display: flex;
1335
+ justify-content: space-between;
1336
+ align-items: center;
1337
+ border-left: solid 1px #d8d8d8;
1338
+ color: $img-grey-color;
1339
+ padding-left: 1rem;
1340
+ width: 0;
1341
+ position: absolute;
1342
+ opacity: 0;
1343
+ transition: 0s;
1344
+ visibility: hidden;
1345
+ z-index: 2;
1346
+
1347
+ &--visible {
1348
+ max-width: unset;
1349
+ width: auto;
1350
+ opacity: 1;
1351
+ transition: 0s;
1352
+ visibility: visible;
1353
+
1354
+ p {
1355
+ transition: left .3s ease-in-out;
1356
+ right: 100%;
1357
+ left: auto;
1358
+ white-space: nowrap;
1359
+ margin-right: 30px;
1360
+ }
1361
+ }
1362
+
1363
+ &__cancel {
1364
+ margin-right: 14px;
1365
+ background-color: white;
1366
+ border-color: #dbdbdb;
1367
+ color: $img-main-text;
1368
+ }
1369
+
1370
+ &__text {
1371
+ font-size: 14px;
1372
+ position: absolute;
1373
+ left: -126%;
1374
+ transition: font-size .3s ease-in-out, left .3s ease-in-out;
1375
+ }
1376
+ }
1377
+
1378
+ &__delBtn {
1379
+ i {
1380
+ margin-right: 13px!important;
1381
+ }
1382
+ }
1383
+
1384
+ &__import {
1385
+ margin-right: 13px;
1386
+ i {
1387
+ margin-right: 13px!important;
1388
+ }
1389
+ }
1390
+ }
1391
+
1392
+ &__buttonBox {
1393
+ margin: 0;
1394
+ width: rem(40);
1395
+ height: rem(40);
1396
+ border: solid $img-light-white-color;
1397
+ border-width: 1px 0 1px 1px;
1398
+
1399
+ border-radius: 3px 0 0 3px;
1400
+ outline: none!important;
1401
+
1402
+ > div {
1403
+ margin-top: 0;
1404
+ margin-bottom: 0;
1405
+ height: 40px;
1406
+ &:nth-child(2) {
1407
+ border: solid $img-light-white-color;
1408
+ border-width: 1px 1px 1px 0;
1409
+ transform: translateY(-1px);
1410
+ border-radius: 0 3px 3px 0;
1411
+ }
1412
+ div {
1413
+ height: 38px;
1414
+ margin: 0!important;
1415
+ }
1416
+ }
1417
+
1418
+ .actifDisplayed {
1419
+ color:$img-main-color;
1420
+ }
1421
+
1422
+ i {
1423
+ margin: 0;
1424
+ }
1425
+ }
1426
+
1427
+ &__cards {
1428
+ display: flex;
1429
+ justify-content: space-between;
1430
+ flex-wrap: wrap;
1431
+ align-items: center;
1432
+ padding-top: 30px;
1433
+ margin-right: calc(0.8rem - 20px);
1434
+ margin-left: 0.3rem;
1435
+ margin-bottom: 30px;
1436
+
1437
+ }
1438
+ }
1439
+
1440
+ &--pexels {
1441
+ margin-top: -30px;
1442
+ }
1443
+
1444
+ .subHeaderActions .button i {
1445
+ margin-right: 0;
1446
+ }
1447
+ }
1448
+
1449
+ @media screen and (max-width: 768px) {
1450
+ .wz-img-manager .img-tabs__tabsFirst .img-tabs__tabsFirst__list .images-view__scroll {
1451
+ max-height: none!important;
1452
+
1453
+ .ng-scroll-content {
1454
+ margin: 0 !important;
1455
+ min-width: 100%!important;
1456
+ width: 100%!important;
1457
+ }
1458
+ }
1459
+ }
1460
1460
  // Warning: in webcomponent (for wizishop-com project) the following style are added by styles-handler.js script (hard-coded)
1461
1461
  .wz-img-manager .img-selection {
1462
1462
  background-color: white;
@@ -2322,7 +2322,14 @@ $tag-radius: rem(20px)!default;
2322
2322
  }
2323
2323
  }
2324
2324
  }
2325
- .mosaic {
2325
+ image-cropper {
2326
+ max-height: 60vh;
2327
+ }.img-editor__infoSection__propertySEO__tooltips {
2328
+ i {
2329
+ font-size: rem(16);
2330
+ color: $main-text;
2331
+ }
2332
+ }.mosaic {
2326
2333
  width: 100%;
2327
2334
  display: flex;
2328
2335
  flex-wrap: wrap;
@@ -2643,14 +2650,7 @@ $tag-radius: rem(20px)!default;
2643
2650
  .grey {
2644
2651
  color: $img-grey-color;
2645
2652
  }
2646
- image-cropper {
2647
- max-height: 60vh;
2648
- }.img-editor__infoSection__propertySEO__tooltips {
2649
- i {
2650
- font-size: rem(16);
2651
- color: $main-text;
2652
- }
2653
- }$default-color-p-alert: #1e5568;
2653
+ $default-color-p-alert: #1e5568;
2654
2654
  $success-color-p-alert: #11552e;
2655
2655
  $warning-color-p-alert: #3a0505;
2656
2656
  $primary-button: #e95656;
Binary file