@wizishop/angular-components 0.0.201 → 0.0.202
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 +108 -69
- package/bundles/wizishop-angular-components.umd.js +18 -1
- 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/draganddrop-list/draganddrop-list.component.js +19 -2
- package/fesm2015/wizishop-angular-components.js +18 -1
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/draganddrop-list/draganddrop-list.component.d.ts +7 -0
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.202.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.201.tgz +0 -0
package/angular-components.scss
CHANGED
|
@@ -2170,37 +2170,50 @@ $wac-subtitle-color: #7A87A1!default;
|
|
|
2170
2170
|
}
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
|
-
.wac-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2173
|
+
.wac-content-with-buttons {
|
|
2174
|
+
display: flex;
|
|
2175
|
+
align-items: center;
|
|
2176
|
+
width: 100%;
|
|
2177
|
+
@include media('<tablet') {
|
|
2178
|
+
flex-direction: column;
|
|
2179
|
+
justify-content: flex-start;
|
|
2180
|
+
align-items: flex-start;
|
|
2181
|
+
}
|
|
2182
|
+
&__text {
|
|
2181
2183
|
width: 100%;
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2184
|
+
&__count {
|
|
2185
|
+
margin: 10px 0 0;
|
|
2186
|
+
width: 100%;
|
|
2187
|
+
display: flex;
|
|
2188
|
+
align-items: flex-end;
|
|
2189
|
+
justify-content: flex-start;
|
|
2190
|
+
> span {
|
|
2191
|
+
&:first-child {
|
|
2192
|
+
font-size: rem(12);
|
|
2193
|
+
font-style: italic;
|
|
2194
|
+
color: $wac-color-text-grey;
|
|
2195
|
+
line-height: rem(16);
|
|
2196
|
+
display: inline-block;
|
|
2197
|
+
transform: translateY(-3px);
|
|
2198
|
+
}
|
|
2199
|
+
&:last-child {
|
|
2200
|
+
display: inline-block;
|
|
2201
|
+
margin: 0 0 0 20px;
|
|
2202
|
+
}
|
|
2201
2203
|
}
|
|
2202
2204
|
}
|
|
2203
2205
|
}
|
|
2206
|
+
&__cta {
|
|
2207
|
+
display: flex;
|
|
2208
|
+
align-items: center;
|
|
2209
|
+
width: auto;
|
|
2210
|
+
> div {
|
|
2211
|
+
margin: 0 0 0 20px;
|
|
2212
|
+
}
|
|
2213
|
+
@include media('<tablet') {
|
|
2214
|
+
margin: 15px 0 0;
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2204
2217
|
}
|
|
2205
2218
|
|
|
2206
2219
|
.wac-switch {
|
|
@@ -2362,10 +2375,12 @@ $wac-subtitle-color: #7A87A1!default;
|
|
|
2362
2375
|
}
|
|
2363
2376
|
.wac-draganddrop-list {
|
|
2364
2377
|
width: 100%;
|
|
2378
|
+
background-color: $wac-white;
|
|
2365
2379
|
&--disabled {
|
|
2366
2380
|
.wac-draganddrop-list {
|
|
2367
2381
|
&__wrapper {
|
|
2368
2382
|
&__item {
|
|
2383
|
+
margin: 0 0 10px;
|
|
2369
2384
|
&__label {
|
|
2370
2385
|
margin: 0;
|
|
2371
2386
|
}
|
|
@@ -2387,8 +2402,15 @@ $wac-subtitle-color: #7A87A1!default;
|
|
|
2387
2402
|
justify-content: flex-start;
|
|
2388
2403
|
&__item {
|
|
2389
2404
|
width: 100%;
|
|
2390
|
-
margin: 0 0
|
|
2405
|
+
margin: 0 0 -4px;
|
|
2391
2406
|
display: flex;
|
|
2407
|
+
background-color: $wac-white;
|
|
2408
|
+
&--trigger {
|
|
2409
|
+
> div {
|
|
2410
|
+
margin: 0!important;
|
|
2411
|
+
width: 100% !important;
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2392
2414
|
&__icon {
|
|
2393
2415
|
display: flex;
|
|
2394
2416
|
align-items: center;
|
|
@@ -2427,6 +2449,18 @@ $wac-subtitle-color: #7A87A1!default;
|
|
|
2427
2449
|
text-overflow: ellipsis;
|
|
2428
2450
|
border: 1px solid $wac-border-form;
|
|
2429
2451
|
}
|
|
2452
|
+
&__input {
|
|
2453
|
+
width: 100%;
|
|
2454
|
+
margin: 0 0 0 8px;
|
|
2455
|
+
min-height: 40px;
|
|
2456
|
+
display: flex;
|
|
2457
|
+
justify-content: flex-start;
|
|
2458
|
+
align-items: center;
|
|
2459
|
+
overflow: hidden;
|
|
2460
|
+
> * {
|
|
2461
|
+
width: 100%;
|
|
2462
|
+
}
|
|
2463
|
+
}
|
|
2430
2464
|
> div {
|
|
2431
2465
|
&:first-child {
|
|
2432
2466
|
width: 100%;
|
|
@@ -2436,10 +2470,21 @@ $wac-subtitle-color: #7A87A1!default;
|
|
|
2436
2470
|
&:last-child {
|
|
2437
2471
|
width: auto;
|
|
2438
2472
|
margin: 0 0 0 10px;
|
|
2473
|
+
display: flex;
|
|
2474
|
+
align-items: center;
|
|
2439
2475
|
}
|
|
2440
2476
|
}
|
|
2441
2477
|
}
|
|
2442
2478
|
}
|
|
2479
|
+
&__add {
|
|
2480
|
+
width: 100%;
|
|
2481
|
+
margin: 20px 0 0;
|
|
2482
|
+
&__btn {
|
|
2483
|
+
width: 100%;
|
|
2484
|
+
display: flex;
|
|
2485
|
+
justify-content: flex-end;
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2443
2488
|
}
|
|
2444
2489
|
|
|
2445
2490
|
|
|
@@ -2452,7 +2497,7 @@ $wac-subtitle-color: #7A87A1!default;
|
|
|
2452
2497
|
}
|
|
2453
2498
|
|
|
2454
2499
|
.cdk-drag-placeholder {
|
|
2455
|
-
opacity: 0;
|
|
2500
|
+
opacity: 0.2;
|
|
2456
2501
|
}
|
|
2457
2502
|
|
|
2458
2503
|
.cdk-drag-animating {
|
|
@@ -6800,6 +6845,9 @@ div.wac-field-input-search {
|
|
|
6800
6845
|
margin: 0 !important;
|
|
6801
6846
|
font-size: rem(14) !important;
|
|
6802
6847
|
color: $wac-placeholder-color;
|
|
6848
|
+
&.transparent {
|
|
6849
|
+
background-color: transparent;
|
|
6850
|
+
}
|
|
6803
6851
|
}
|
|
6804
6852
|
::-webkit-input-placeholder {
|
|
6805
6853
|
/* Chrome/Opera/Safari */
|
|
@@ -6864,6 +6912,10 @@ div.wac-field-input-search {
|
|
|
6864
6912
|
margin-bottom: rem(8);
|
|
6865
6913
|
height: rem(40);
|
|
6866
6914
|
|
|
6915
|
+
&.transparent {
|
|
6916
|
+
background-color: transparent;
|
|
6917
|
+
}
|
|
6918
|
+
|
|
6867
6919
|
&::placeholder {
|
|
6868
6920
|
color: $wac-placeholder-color;
|
|
6869
6921
|
font-weight: 400;
|
|
@@ -7260,48 +7312,35 @@ div.wac-field-input-search {
|
|
|
7260
7312
|
}
|
|
7261
7313
|
}
|
|
7262
7314
|
}
|
|
7263
|
-
.wac-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
justify-content
|
|
7270
|
-
align-items
|
|
7271
|
-
}
|
|
7272
|
-
&__text {
|
|
7315
|
+
.wac-delete {
|
|
7316
|
+
width: 40px;
|
|
7317
|
+
height: 40px;
|
|
7318
|
+
|
|
7319
|
+
&__wrapper {
|
|
7320
|
+
@include flexbox();
|
|
7321
|
+
@include justify-content(center);
|
|
7322
|
+
@include align-items(center);
|
|
7273
7323
|
width: 100%;
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
color: $wac-color-text-grey;
|
|
7285
|
-
line-height: rem(16);
|
|
7286
|
-
display: inline-block;
|
|
7287
|
-
transform: translateY(-3px);
|
|
7288
|
-
}
|
|
7289
|
-
&:last-child {
|
|
7290
|
-
display: inline-block;
|
|
7291
|
-
margin: 0 0 0 20px;
|
|
7292
|
-
}
|
|
7293
|
-
}
|
|
7324
|
+
height: 100%;
|
|
7325
|
+
border-radius: 3px;
|
|
7326
|
+
background-color: transparent;
|
|
7327
|
+
transition: background-color 0.3s ease-in-out;
|
|
7328
|
+
|
|
7329
|
+
i {
|
|
7330
|
+
color: $wac-border-form;
|
|
7331
|
+
font-size: 14px;
|
|
7332
|
+
line-height: 23px;
|
|
7333
|
+
transition: color 0.3s ease-in-out;
|
|
7294
7334
|
}
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
margin: 15px 0 0;
|
|
7335
|
+
|
|
7336
|
+
&:hover {
|
|
7337
|
+
background-color: $wac-primary-button;
|
|
7338
|
+
transition: background-color 0.3s ease-in-out;
|
|
7339
|
+
|
|
7340
|
+
i {
|
|
7341
|
+
color: $wac-white;
|
|
7342
|
+
transition: color 0.3s ease-in-out;
|
|
7343
|
+
}
|
|
7305
7344
|
}
|
|
7306
7345
|
}
|
|
7307
7346
|
}
|
|
@@ -4572,6 +4572,8 @@
|
|
|
4572
4572
|
var DraganddropListComponent = /** @class */ (function () {
|
|
4573
4573
|
function DraganddropListComponent() {
|
|
4574
4574
|
this.disable = false;
|
|
4575
|
+
this.backgroundColor = '#fff';
|
|
4576
|
+
this.showTriggerSave = false;
|
|
4575
4577
|
this.itemsChange = new i0.EventEmitter();
|
|
4576
4578
|
}
|
|
4577
4579
|
DraganddropListComponent.prototype.drop = function (event) {
|
|
@@ -4586,18 +4588,33 @@
|
|
|
4586
4588
|
this.itemsChange.emit(this.items);
|
|
4587
4589
|
}
|
|
4588
4590
|
};
|
|
4591
|
+
DraganddropListComponent.prototype.saveField = function (index, event) {
|
|
4592
|
+
this.items[index] = event.target.value;
|
|
4593
|
+
this.itemsChange.emit(this.items);
|
|
4594
|
+
};
|
|
4595
|
+
DraganddropListComponent.prototype.addField = function () {
|
|
4596
|
+
this.showTriggerSave = true;
|
|
4597
|
+
};
|
|
4598
|
+
DraganddropListComponent.prototype.saveNewField = function (event) {
|
|
4599
|
+
this.items.push(event.target.value);
|
|
4600
|
+
this.itemsChange.emit(this.items);
|
|
4601
|
+
this.showTriggerSave = false;
|
|
4602
|
+
};
|
|
4589
4603
|
return DraganddropListComponent;
|
|
4590
4604
|
}());
|
|
4591
4605
|
DraganddropListComponent.decorators = [
|
|
4592
4606
|
{ type: i0.Component, args: [{
|
|
4593
4607
|
selector: 'wac-draganddrop-list',
|
|
4594
|
-
template: "<div class=\"wac-draganddrop-list\" *ngIf=\"!disable\">\n <div class=\"wac-draganddrop-list__wrapper\" cdkDropList (cdkDropListDropped)=\"drop($event)\">\n <div class=\"wac-draganddrop-list__wrapper__item\" *ngFor=\"let item of items;let i = index;\" cdkDrag>\n <div>\n <span class=\"wac-draganddrop-list__wrapper__item__icon\">\n <span></span>\n </span>\n <span class=\"wac-draganddrop-
|
|
4608
|
+
template: "<div class=\"wac-draganddrop-list\" *ngIf=\"!disable\" [style.backgroundColor]=\"backgroundColor\">\n <div class=\"wac-draganddrop-list__wrapper\" [cdkDropListLockAxis]=\"'y'\" cdkDropList (cdkDropListDropped)=\"drop($event)\">\n <div class=\"wac-draganddrop-list__wrapper__item\" [style.backgroundColor]=\"backgroundColor\" *ngFor=\"let item of items;let i = index;\" cdkDrag>\n <div>\n <span class=\"wac-draganddrop-list__wrapper__item__icon\">\n <span></span>\n </span>\n <span (mousedown)=\"$event.stopPropagation()\" class=\"wac-draganddrop-list__wrapper__item__input\">\n <wac-input [value]=\"item\" [extraClasses]=\"'transparent'\" (keyup.enter)=\"saveField(i, $event)\" (focusout)=\"saveField(i, $event)\"></wac-input>\n </span>\n </div>\n <div (mousedown)=\"$event.stopPropagation()\">\n <wac-button [iconFontSize]=\"'14px'\" [opacity]=\"true\" [icon]=\"'fa-regular fa-trash-can'\" [extraClasses]=\"'is-danger'\" (click)=\"delete(i)\"></wac-button>\n </div>\n </div>\n <div class=\"wac-draganddrop-list__wrapper__item wac-draganddrop-list__wrapper__item--trigger\" *ngIf=\"showTriggerSave\">\n <div>\n <span class=\"wac-draganddrop-list__wrapper__item__icon\">\n <span></span>\n </span>\n <span class=\"wac-draganddrop-list__wrapper__item__input\">\n <wac-input [extraClasses]=\"'transparent'\" (keyup.enter)=\"saveNewField($event)\" (focusout)=\"saveNewField($event)\"></wac-input>\n </span>\n </div>\n </div>\n </div>\n <div class=\"wac-draganddrop-list__add\" *ngIf=\"max && !showTriggerSave\">\n <div class=\"wac-draganddrop-list__add__btn\" *ngIf=\"max > items.length\">\n <wac-button [extraClasses]=\"'is-success'\" [label]=\"labelBtnAdd\" (click)=\"addField()\"></wac-button>\n </div>\n </div>\n</div>\n\n<div class=\"wac-draganddrop-list wac-draganddrop-list--disabled\" *ngIf=\"disable\">\n <div class=\"wac-draganddrop-list__wrapper\">\n <div class=\"wac-draganddrop-list__wrapper__item\" *ngFor=\"let item of items;let i = index;\">\n <div>\n <span class=\"wac-draganddrop-list__wrapper__item__label\" [innerHTML]=\"item\"></span>\n </div>\n </div>\n </div>\n</div>\n",
|
|
4595
4609
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
4596
4610
|
},] }
|
|
4597
4611
|
];
|
|
4598
4612
|
DraganddropListComponent.propDecorators = {
|
|
4599
4613
|
items: [{ type: i0.Input }],
|
|
4600
4614
|
disable: [{ type: i0.Input }],
|
|
4615
|
+
max: [{ type: i0.Input }],
|
|
4616
|
+
labelBtnAdd: [{ type: i0.Input }],
|
|
4617
|
+
backgroundColor: [{ type: i0.Input }],
|
|
4601
4618
|
itemsChange: [{ type: i0.Output }]
|
|
4602
4619
|
};
|
|
4603
4620
|
|