@wizishop/angular-components 0.0.158 → 0.0.160

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.
@@ -64,6 +64,7 @@ $wac-wizishop-blue-button-darken: #3596b7!default;
64
64
  $wac-wizishop-blue-button-focus: #2f8baa!default;
65
65
  $wac-wizishop-blue-button-disabled: #94cde0!default;
66
66
  $wac-wizishop-blue-button: #52aecd!default;
67
+ $wac-wizishop-blue-button-light: #52AECD1A!default;
67
68
  $wac-wizishop-blue: #4baed0!default;
68
69
  $wac-color-icon-search-multiple-search: #b4bdd0!default;
69
70
  $wac-hover-multiple-search: #edf7fa!default;
@@ -84,6 +85,7 @@ $wac-calendar-box-shadow: #0000001a!default;
84
85
 
85
86
  $wac-tag-default: #f5f8fa!default;
86
87
  $wac-tag-success: #2ecc71!default;
88
+ $wac-tag-success-light: #2ECC711A!default;
87
89
  $wac-tag-waring: #f5b226!default;
88
90
  $wac-tag-gray: #526384!default;
89
91
 
@@ -571,6 +573,120 @@ $wac-subtitle-color: #7A87A1!default;
571
573
  }
572
574
  }
573
575
  }
576
+ .block-with-checkbox {
577
+ width: 100%;
578
+ display: flex;
579
+ align-items: center;
580
+ background-color: $wac-white;
581
+ box-shadow: 0px 2px 6px #0000000D;
582
+ border-radius: 3px;
583
+ margin: 0 0 15px;
584
+ padding: 30px;
585
+ @include media('<tablet') {
586
+ padding: 20px;
587
+ flex-direction: column;
588
+ align-items: center;
589
+ justify-content: flex-start;
590
+ }
591
+ &__left {
592
+ width: 30px;
593
+ margin: 0 20px 0 0;
594
+ display: flex;
595
+ align-items: center;
596
+ }
597
+ &__center {
598
+ width: 100%;
599
+ }
600
+ &__right {
601
+ display: flex;
602
+ align-items: center;
603
+ width: auto;
604
+ div {
605
+ margin: 0 0 0 20px;
606
+ }
607
+ }
608
+ }
609
+
610
+ .wac-radio-block {
611
+ height: 30px;
612
+ input {
613
+ outline: 0 !important;
614
+ display: none;
615
+ & + label {
616
+ padding-left: 30px;
617
+ padding-right: 5px;
618
+ position: relative;
619
+ cursor: pointer;
620
+ &:before {
621
+ content: '';
622
+ display: block;
623
+ position: absolute;
624
+ width: 22px;
625
+ height: 22px;
626
+ border: 1px solid $wac-border-form;
627
+ border-radius: 23px;
628
+ top: 3px;
629
+ }
630
+ &:after {
631
+ content: "";
632
+ display: block;
633
+ position: absolute;
634
+ width: 16px;
635
+ height: 16px;
636
+ border-radius: 23px;
637
+ background: $wac-input-active-color;
638
+ top: 6px;
639
+ left: 2.5px;
640
+ opacity: 0;
641
+ }
642
+ &:before,
643
+ &:after {
644
+ outline: 0 !important;
645
+ }
646
+ &:hover,
647
+ &:focus {
648
+ &:before {
649
+ border-color: $wac-input-active-color !important;
650
+ }
651
+ }
652
+ }
653
+ &:hover {
654
+ & + label {
655
+ color: $wac-input-radio-color-active-label;
656
+ &:before {
657
+ border-color: $wac-input-active-color !important;
658
+ }
659
+ }
660
+ &:not([disabled]) {
661
+ & + label {
662
+ &:before {
663
+ border-color: $wac-input-active-color !important;
664
+ }
665
+ }
666
+ }
667
+ }
668
+ &:checked + label {
669
+ color: $wac-input-radio-color-active-label;
670
+ &:before {
671
+ border-color: $wac-input-active-color!important;
672
+ }
673
+ &:after {
674
+ opacity: 1;
675
+ }
676
+ }
677
+ }
678
+
679
+
680
+ .wac-radio__row {
681
+ min-width: 100%;
682
+ margin: 0 0 7px;
683
+ }
684
+
685
+ label {
686
+ padding-left: 7px;
687
+ margin-right: 0;
688
+ }
689
+ }
574
690
  .wac-breadcrumbs {
575
691
  width: 100%;
576
692
  display: flex;
@@ -719,6 +835,42 @@ $wac-subtitle-color: #7A87A1!default;
719
835
  white-space: nowrap;
720
836
  }
721
837
 
838
+ &.is-green.opacity {
839
+ background-color: $wac-tag-success-light;
840
+ border-color: $wac-tag-success-light;
841
+ transition: .3s;
842
+ i {
843
+ color: $wac-tag-success;
844
+ }
845
+ &:hover, &:focus {
846
+ background-color: $wac-tag-success;
847
+ i {
848
+ color: $wac-white;
849
+ }
850
+ }
851
+ }
852
+
853
+ &.static-width {
854
+ width: 40px;
855
+ min-width: 40px;
856
+ max-width: 40px;
857
+ }
858
+
859
+ &.is-blue.opacity {
860
+ background-color: $wac-wizishop-blue-button-light;
861
+ border-color: $wac-wizishop-blue-button-light;
862
+ transition: .3s;
863
+ i {
864
+ color: $wac-wizishop-blue-button;
865
+ }
866
+ &:hover, &:focus {
867
+ background-color: $wac-wizishop-blue-button;
868
+ i {
869
+ color: $wac-white;
870
+ }
871
+ }
872
+ }
873
+
722
874
  &.animationText {
723
875
  width: rem(40);
724
876
  height: rem(40);
@@ -2373,6 +2525,61 @@ $wac-subtitle-color: #7A87A1!default;
2373
2525
  }
2374
2526
 
2375
2527
  }
2528
+ .wac-confirm-delete {
2529
+ position: absolute;
2530
+ right: 0;
2531
+ top: 0;
2532
+ height: 100%;
2533
+ z-index: 999;
2534
+ width: auto;
2535
+ display: flex;
2536
+ flex-wrap: nowrap;
2537
+ align-items: stretch;
2538
+ background-color: $wac-white;
2539
+ opacity: 0;
2540
+ visibility: hidden;
2541
+ transform: translateX(100%);
2542
+ transition: 0s visibility .35s, opacity .3s ease 0s, transform .3s ease 0s;
2543
+ &.is-open {
2544
+ opacity: 1;
2545
+ visibility: visible;
2546
+ transform: translateX(0);
2547
+ transition: 0s visibility, opacity .3s ease .05s, transform .3s ease .05s;
2548
+ }
2549
+ > div {
2550
+ width: auto;
2551
+ display: flex;
2552
+ align-items: center;
2553
+ &:first-child {
2554
+ position: relative;
2555
+ margin: 0 20px 0 0;
2556
+ padding: 0 0 0 30px;
2557
+ &:before {
2558
+ content: '';
2559
+ display: block;
2560
+ position: absolute;
2561
+ top: 0;
2562
+ left: 10px;
2563
+ width: 1px;
2564
+ height: 100%;
2565
+ background-color: $wac-border-form;
2566
+ }
2567
+ span {
2568
+ font-size: rem(16);
2569
+ line-height: 1.4;
2570
+ color: $wac-second-color;
2571
+ }
2572
+ }
2573
+ &:last-child {
2574
+ > div {
2575
+ width: auto;
2576
+ &:first-child {
2577
+ margin: 0 10px 0 0;
2578
+ }
2579
+ }
2580
+ }
2581
+ }
2582
+ }
2376
2583
  .wac-delete {
2377
2584
  width: 40px;
2378
2585
  height: 40px;
@@ -4295,6 +4295,82 @@
4295
4295
  max: [{ type: i0.Input }]
4296
4296
  };
4297
4297
 
4298
+ var BlockWithCheckboxComponent = /** @class */ (function () {
4299
+ function BlockWithCheckboxComponent() {
4300
+ this.selected = false;
4301
+ this.iconCopy = 'fa-solid fa-copy';
4302
+ this.iconWorld = 'fa-thin fa-globe';
4303
+ this.copyAction = new i0.EventEmitter();
4304
+ this.worldAction = new i0.EventEmitter();
4305
+ this.checkboxAction = new i0.EventEmitter();
4306
+ }
4307
+ BlockWithCheckboxComponent.prototype.ngOnInit = function () {
4308
+ };
4309
+ BlockWithCheckboxComponent.prototype.eventSelected = function (event) {
4310
+ this.selected = !this.selected;
4311
+ console.log(this.selected);
4312
+ this.checkboxAction.emit(this.selected);
4313
+ };
4314
+ BlockWithCheckboxComponent.prototype.eventCopy = function () {
4315
+ this.copyAction.emit(true);
4316
+ };
4317
+ BlockWithCheckboxComponent.prototype.eventWorld = function () {
4318
+ this.worldAction.emit(true);
4319
+ };
4320
+ return BlockWithCheckboxComponent;
4321
+ }());
4322
+ BlockWithCheckboxComponent.decorators = [
4323
+ { type: i0.Component, args: [{
4324
+ selector: 'wac-block-with-checkbox',
4325
+ template: "<div class=\"block-with-checkbox\">\n <div class=\"block-with-checkbox__left\">\n <div class=\"wac-radio-block\">\n <div class=\"wac-radio__row\">\n <input type=\"checkbox\" [value]=\"selected\" (click)=\"eventSelected($event)\" id=\"radioBlock\">\n <label for=\"radioBlock\"></label>\n </div>\n </div>\n </div>\n <div class=\"block-with-checkbox__center\">\n <ng-content></ng-content>\n </div>\n <div class=\"block-with-checkbox__right\">\n <div><wac-button extraClasses=\"is-blue opacity static-width\" [iconFontSize]=\"18\" [icon]=\"iconCopy\" (click)=\"eventCopy()\"></wac-button></div>\n <div><wac-button extraClasses=\"is-green opacity static-width\" [iconFontSize]=\"18\" [icon]=\"iconWorld\" (click)=\"eventWorld()\"></wac-button></div>\n </div>\n</div>\n"
4326
+ },] }
4327
+ ];
4328
+ BlockWithCheckboxComponent.ctorParameters = function () { return []; };
4329
+ BlockWithCheckboxComponent.propDecorators = {
4330
+ selected: [{ type: i0.Input }],
4331
+ iconCopy: [{ type: i0.Input }],
4332
+ iconWorld: [{ type: i0.Input }],
4333
+ copyAction: [{ type: i0.Output }],
4334
+ worldAction: [{ type: i0.Output }],
4335
+ checkboxAction: [{ type: i0.Output }]
4336
+ };
4337
+
4338
+ var ConfirmDeleteComponent = /** @class */ (function () {
4339
+ function ConfirmDeleteComponent() {
4340
+ this.open = false;
4341
+ this.confirm = new i0.EventEmitter();
4342
+ this.backgroundColor = '#fff';
4343
+ this.borderRadius = '0px';
4344
+ }
4345
+ ConfirmDeleteComponent.prototype.ngOnInit = function () {
4346
+ };
4347
+ ConfirmDeleteComponent.prototype.eventCancel = function (event) {
4348
+ this.confirm.emit(false);
4349
+ this.open = false;
4350
+ };
4351
+ ConfirmDeleteComponent.prototype.eventConfirm = function (event) {
4352
+ this.confirm.emit(true);
4353
+ this.open = false;
4354
+ };
4355
+ return ConfirmDeleteComponent;
4356
+ }());
4357
+ ConfirmDeleteComponent.decorators = [
4358
+ { type: i0.Component, args: [{
4359
+ selector: 'wac-confirm-delete',
4360
+ template: "<div class=\"wac-confirm-delete\" [ngClass]=\"{'is-open': open}\" [style.backgroundColor]=\"backgroundColor\" [style.borderRadius]=\"borderRadius\">\n <div>\n <span [innerHTML]=\"label\"></span>\n </div>\n <div>\n <div><wac-button [label]=\"labelCancel\" [extraClasses]=\"'is-outlined is-grey'\" (click)=\"eventCancel($event)\"></wac-button></div>\n <div><wac-button [label]=\"labelConfirm\" [extraClasses]=\"'is-danger'\" (click)=\"eventConfirm($event)\"></wac-button></div>\n </div>\n</div>\n"
4361
+ },] }
4362
+ ];
4363
+ ConfirmDeleteComponent.ctorParameters = function () { return []; };
4364
+ ConfirmDeleteComponent.propDecorators = {
4365
+ open: [{ type: i0.Input }],
4366
+ label: [{ type: i0.Input }],
4367
+ labelCancel: [{ type: i0.Input }],
4368
+ labelConfirm: [{ type: i0.Input }],
4369
+ confirm: [{ type: i0.Output }],
4370
+ backgroundColor: [{ type: i0.Input }],
4371
+ borderRadius: [{ type: i0.Input }]
4372
+ };
4373
+
4298
4374
  var components = [
4299
4375
  TagComponent,
4300
4376
  TabComponent,
@@ -4340,7 +4416,9 @@
4340
4416
  WrapperSidebarComponent,
4341
4417
  BreadcrumbsComponent,
4342
4418
  CardPriceComponent,
4343
- TokenCheckComponent
4419
+ TokenCheckComponent,
4420
+ BlockWithCheckboxComponent,
4421
+ ConfirmDeleteComponent
4344
4422
  ];
4345
4423
  var exportsFromModule = [
4346
4424
  PaginationComponent,
@@ -4442,12 +4520,14 @@
4442
4520
  exports.AutoHideDirective = AutoHideDirective;
4443
4521
  exports.BackComponent = BackComponent;
4444
4522
  exports.BlockComponent = BlockComponent;
4523
+ exports.BlockWithCheckboxComponent = BlockWithCheckboxComponent;
4445
4524
  exports.BreadcrumbsComponent = BreadcrumbsComponent;
4446
4525
  exports.ButtonComponent = ButtonComponent;
4447
4526
  exports.CalendarComponent = CalendarComponent;
4448
4527
  exports.CardPriceComponent = CardPriceComponent;
4449
4528
  exports.CheckBoxRow = CheckBoxRow;
4450
4529
  exports.CheckboxComponent = CheckboxComponent;
4530
+ exports.ConfirmDeleteComponent = ConfirmDeleteComponent;
4451
4531
  exports.DebounceKeyupDirective = DebounceKeyupDirective;
4452
4532
  exports.DeleteComponent = DeleteComponent;
4453
4533
  exports.DropdownComponent = DropdownComponent;