@wizishop/angular-components 0.0.44 → 0.0.45

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.
@@ -1641,88 +1641,174 @@ $wac-color-success-popup-alert: #6DCC95!default;
1641
1641
  }
1642
1642
  }
1643
1643
  }
1644
- .wac-dropdown {
1644
+ .wac-edit-in-place.nwb-wrapper {
1645
1645
  display: inline-block;
1646
- width: 40px;
1647
- height: 40px;
1646
+ position: relative;
1647
+ width: auto;
1648
+ min-width: 12px;
1649
+ min-height: 1.4em;
1648
1650
 
1649
- &__wrapper {
1650
- @include flexbox();
1651
- @include justify-content(center);
1652
- @include align-items(center);
1653
- width: 100%;
1654
- height: 100%;
1655
- position: relative;
1651
+ input {
1652
+ font-size: inherit;
1653
+ transition: width 50ms;
1654
+ position: absolute;
1655
+ top: 0;
1656
+ left: -5px;
1657
+ width: calc(100% + 16px) !important;
1658
+ height: calc(100% + 14px) !important;
1659
+ padding: 5px;
1660
+ z-index: 1;
1661
+ margin: 0;
1662
+ outline: none !important;
1663
+ border: 1px solid $wac-edit-in-place-border;
1664
+ background: inherit;
1665
+ transform: translateY(-17%);
1666
+ background-color: $wac-edit-in-place-background;
1656
1667
 
1657
- &__icon {
1658
- font-size: 30px;
1659
- line-height: 18px;
1660
- color: $wac-border-form;
1661
- transition: color 0.3s ease, transform 0.3s ease;
1668
+ &.nwb-editable {
1669
+ text-decoration: none;
1670
+ color: inherit;
1671
+ border: none;
1672
+ cursor: pointer;
1673
+ height: 26px;
1662
1674
  }
1663
1675
 
1664
- &__sublevel {
1676
+ &.nwb-editing {
1677
+ color: $wac-edit-in-place-border;
1678
+ }
1679
+ }
1680
+
1681
+ div.select {
1682
+ position: absolute;
1683
+ left: 0;
1684
+
1685
+ &:before,
1686
+ &:after {
1687
+ display: block;
1665
1688
  position: absolute;
1666
- width: 160px;
1667
- top: 100%;
1668
- right: 0;
1669
- z-index: -1;
1670
- opacity: 0;
1671
- background-color: $wac-white;
1672
- border-radius: rem(3);
1673
- box-shadow: 0px 2px 5px $wac-info-box-shadow;
1689
+ height: 10px;
1690
+ width: 10px;
1691
+ }
1692
+ }
1693
+
1694
+ span.nwb-loader {
1695
+ &.nwb-is-loading {
1696
+ z-index: 2;
1697
+ opacity: 1;
1698
+ position: absolute;
1699
+ top: -7px;
1700
+ left: -7px;
1701
+ width: calc(100% + 16px) !important;
1702
+ height: calc(100% + 14px) !important;
1703
+ min-width: 12px;
1704
+ min-height: 1em;
1705
+ margin: 0;
1706
+ background-size: auto 70%;
1707
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30px' height='30px' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid' class='lds-ellipsis' style='background: none;'%3E%3C!--circle(cx='16',cy='50',r='10')--%3E%3Ccircle cx='84' cy='50' r='0' fill='%236c6c6c'%3E%3Canimate attributeName='r' values='10;0;0;0;0' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='0s'/%3E%3Canimate attributeName='cx' values='84;84;84;84;84' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='0s'/%3E%3C/circle%3E%3Ccircle cx='28.6338' cy='50' r='10' fill='%236c6c6c'%3E%3Canimate attributeName='r' values='0;10;10;10;0' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='-1s'/%3E%3Canimate attributeName='cx' values='16;16;50;84;84' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='-1s'/%3E%3C/circle%3E%3Ccircle cx='16' cy='50' r='3.71582' fill='%236c6c6c'%3E%3Canimate attributeName='r' values='0;10;10;10;0' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='-0.5s'/%3E%3Canimate attributeName='cx' values='16;16;50;84;84' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='-0.5s'/%3E%3C/circle%3E%3Ccircle cx='84' cy='50' r='6.28418' fill='%236c6c6c'%3E%3Canimate attributeName='r' values='0;10;10;10;0' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='0s'/%3E%3Canimate attributeName='cx' values='16;16;50;84;84' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='0s'/%3E%3C/circle%3E%3Ccircle cx='62.6338' cy='50' r='10' fill='%236c6c6c'%3E%3Canimate attributeName='r' values='0;0;10;10;10' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='0s'/%3E%3Canimate attributeName='cx' values='16;16;16;50;84' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='0s'/%3E%3C/circle%3E%3C/svg%3E");
1708
+ background-repeat: no-repeat;
1709
+ background-position: center center;
1710
+ }
1711
+ }
1712
+ span {
1713
+ color: inherit;
1714
+ font-weight: 500;
1715
+ &:not(.nwb-loader) {
1716
+ display: inline-block;
1717
+ min-width: 12px;
1718
+ }
1719
+ &.nwb-editing {
1674
1720
  visibility: hidden;
1675
- transition: opacity 0.15s ease, z-index 0.15s ease, visibility 0s linear .16s;
1721
+ }
1676
1722
 
1677
- &__container {
1678
- padding: 10px 10px;
1679
- border: 1px solid $wac-border-color;
1723
+ &.nwb-is-loading {
1724
+ text-shadow: 0 0 0.5em rgba(0, 0, 0, 0.6);
1725
+ color: rgba(0, 0, 0, 0.4);
1726
+ opacity: 0.25;
1727
+ }
1680
1728
 
1681
- &__item {
1682
- padding: 5.7px 10px;
1683
- font-size: 14px;
1684
- line-height: 24px;
1685
- color: $wac-second-color;
1686
- cursor: pointer;
1687
- transition: background-color 0.3s ease, color 0.3s ease;
1688
- display: flex;
1689
- justify-content: flex-start;
1690
- align-items: center;
1691
- align-content: center;
1729
+ &.nwbSelect {
1730
+ cursor: pointer;
1731
+ }
1732
+ }
1733
+ }
1692
1734
 
1693
- i {
1694
- min-width: 15px;
1695
- margin-right: 5px;
1696
- text-align: center;
1697
- }
1698
- span {
1699
- white-space: nowrap;
1700
- }
1735
+ .wac-edit-in-place.nwb-wrapper--editable::after {
1736
+ position: absolute;
1737
+ content: '';
1738
+ border-bottom: dashed 1px $wac-primary;
1739
+ width: 100%;
1740
+ bottom: 0;
1741
+ left: 0;
1742
+ }
1701
1743
 
1702
- &:hover {
1703
- background-color: $wac-gray-background;
1704
- transition: background-color 0.3s ease, color 0.3s ease;
1705
- color: $wac-input-active-color;
1706
- }
1707
- }
1708
- }
1744
+ .wac-edit-in-place.nwbSelect {
1745
+ &__container {
1746
+ display: flex;
1747
+ flex-direction: column;
1748
+ position: absolute;
1749
+ white-space: nowrap;
1750
+ border: solid 1px rgba(0, 0, 0, 0.2);
1751
+ box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
1752
+ border-radius: 3px;
1753
+ top: calc(100% + 7px);
1754
+
1755
+ &::before {
1756
+ position: absolute;
1757
+ top: -7px;
1758
+ left: 9px;
1759
+ content: '';
1760
+ border-left: 7px solid transparent;
1761
+ border-right: 7px solid transparent;
1762
+ border-bottom: 7px solid $wac-edit-in-place-before-border-bottom;
1763
+ border-bottom-color: rgba(0, 0, 0, 0.2);
1764
+ display: inline-block;
1709
1765
  }
1710
1766
 
1711
- &:hover {
1712
- .wac-dropdown__wrapper__icon {
1713
- color: $wac-second-color;
1714
- transform: rotate(90deg);
1715
- transition: color 0.3s ease, transform 0.3s ease;
1767
+ &::after {
1768
+ position: absolute;
1769
+ top: -6px;
1770
+ left: 10px;
1771
+ content: '';
1772
+ border-left: 6px solid transparent;
1773
+ border-right: 6px solid transparent;
1774
+ border-bottom: 6px solid $wac-white;
1775
+ display: inline-block;
1776
+ }
1777
+
1778
+ &__item {
1779
+ border: none;
1780
+ padding: 8px 10px;
1781
+ background-color: $wac-white;
1782
+ cursor: pointer;
1783
+ transition: all 0.3s ease-in-out;
1784
+ z-index: 3;
1785
+ font-size: rem(12);
1786
+ text-align: left;
1787
+ border-radius: 0;
1788
+
1789
+ &:hover {
1790
+ background-color: darken($wac-white, 10%);
1791
+ color: $wac-main-text;
1792
+ transition: all 0.3s ease-in-out;
1716
1793
  }
1717
1794
 
1718
- .wac-dropdown__wrapper__sublevel {
1719
- visibility: visible;
1720
- opacity: 1;
1721
- z-index: 2;
1722
- transition: visibility 0s ease 0s, opacity 0.3s ease .1s;
1795
+ &--selected,
1796
+ &--selected:hover {
1797
+ background-color: $wac-wizishop-blue;
1798
+ color: $wac-white;
1799
+ transition: all 0.3s ease-in-out;
1723
1800
  }
1724
1801
  }
1725
1802
  }
1803
+
1804
+ &__background {
1805
+ position: fixed;
1806
+ top: 0;
1807
+ left: 0;
1808
+ width: 100vw;
1809
+ height: 100vh;
1810
+ z-index: 2;
1811
+ }
1726
1812
  }
1727
1813
  .wac-tab {
1728
1814
  &__wrapper {
@@ -3494,174 +3580,88 @@ span.wac-tooltip {
3494
3580
  }
3495
3581
  }
3496
3582
  }
3497
- .wac-edit-in-place.nwb-wrapper {
3583
+ .wac-dropdown {
3498
3584
  display: inline-block;
3499
- position: relative;
3500
- width: auto;
3501
- min-width: 12px;
3502
- min-height: 1.4em;
3503
-
3504
- input {
3505
- font-size: inherit;
3506
- transition: width 50ms;
3507
- position: absolute;
3508
- top: 0;
3509
- left: -5px;
3510
- width: calc(100% + 16px) !important;
3511
- height: calc(100% + 14px) !important;
3512
- padding: 5px;
3513
- z-index: 1;
3514
- margin: 0;
3515
- outline: none !important;
3516
- border: 1px solid $wac-edit-in-place-border;
3517
- background: inherit;
3518
- transform: translateY(-17%);
3519
- background-color: $wac-edit-in-place-background;
3520
-
3521
- &.nwb-editable {
3522
- text-decoration: none;
3523
- color: inherit;
3524
- border: none;
3525
- cursor: pointer;
3526
- height: 26px;
3527
- }
3528
-
3529
- &.nwb-editing {
3530
- color: $wac-edit-in-place-border;
3531
- }
3532
- }
3585
+ width: 40px;
3586
+ height: 40px;
3533
3587
 
3534
- div.select {
3535
- position: absolute;
3536
- left: 0;
3588
+ &__wrapper {
3589
+ @include flexbox();
3590
+ @include justify-content(center);
3591
+ @include align-items(center);
3592
+ width: 100%;
3593
+ height: 100%;
3594
+ position: relative;
3537
3595
 
3538
- &:before,
3539
- &:after {
3540
- display: block;
3541
- position: absolute;
3542
- height: 10px;
3543
- width: 10px;
3596
+ &__icon {
3597
+ font-size: 30px;
3598
+ line-height: 18px;
3599
+ color: $wac-second-color;
3600
+ transition: color 0.3s ease, transform 0.3s ease;
3544
3601
  }
3545
- }
3546
3602
 
3547
- span.nwb-loader {
3548
- &.nwb-is-loading {
3549
- z-index: 2;
3550
- opacity: 1;
3603
+ &__sublevel {
3551
3604
  position: absolute;
3552
- top: -7px;
3553
- left: -7px;
3554
- width: calc(100% + 16px) !important;
3555
- height: calc(100% + 14px) !important;
3556
- min-width: 12px;
3557
- min-height: 1em;
3558
- margin: 0;
3559
- background-size: auto 70%;
3560
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30px' height='30px' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid' class='lds-ellipsis' style='background: none;'%3E%3C!--circle(cx='16',cy='50',r='10')--%3E%3Ccircle cx='84' cy='50' r='0' fill='%236c6c6c'%3E%3Canimate attributeName='r' values='10;0;0;0;0' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='0s'/%3E%3Canimate attributeName='cx' values='84;84;84;84;84' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='0s'/%3E%3C/circle%3E%3Ccircle cx='28.6338' cy='50' r='10' fill='%236c6c6c'%3E%3Canimate attributeName='r' values='0;10;10;10;0' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='-1s'/%3E%3Canimate attributeName='cx' values='16;16;50;84;84' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='-1s'/%3E%3C/circle%3E%3Ccircle cx='16' cy='50' r='3.71582' fill='%236c6c6c'%3E%3Canimate attributeName='r' values='0;10;10;10;0' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='-0.5s'/%3E%3Canimate attributeName='cx' values='16;16;50;84;84' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='-0.5s'/%3E%3C/circle%3E%3Ccircle cx='84' cy='50' r='6.28418' fill='%236c6c6c'%3E%3Canimate attributeName='r' values='0;10;10;10;0' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='0s'/%3E%3Canimate attributeName='cx' values='16;16;50;84;84' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='0s'/%3E%3C/circle%3E%3Ccircle cx='62.6338' cy='50' r='10' fill='%236c6c6c'%3E%3Canimate attributeName='r' values='0;0;10;10;10' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='0s'/%3E%3Canimate attributeName='cx' values='16;16;16;50;84' keyTimes='0;0.25;0.5;0.75;1' keySplines='0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1;0 0.5 0.5 1' calcMode='spline' dur='2s' repeatCount='indefinite' begin='0s'/%3E%3C/circle%3E%3C/svg%3E");
3561
- background-repeat: no-repeat;
3562
- background-position: center center;
3563
- }
3564
- }
3565
- span {
3566
- color: inherit;
3567
- font-weight: 500;
3568
- &:not(.nwb-loader) {
3569
- display: inline-block;
3570
- min-width: 12px;
3571
- }
3572
- &.nwb-editing {
3605
+ width: 160px;
3606
+ top: 100%;
3607
+ right: 0;
3608
+ z-index: -1;
3609
+ opacity: 0;
3610
+ background-color: $wac-white;
3611
+ border-radius: rem(3);
3612
+ box-shadow: 0px 2px 5px $wac-info-box-shadow;
3573
3613
  visibility: hidden;
3574
- }
3575
-
3576
- &.nwb-is-loading {
3577
- text-shadow: 0 0 0.5em rgba(0, 0, 0, 0.6);
3578
- color: rgba(0, 0, 0, 0.4);
3579
- opacity: 0.25;
3580
- }
3581
-
3582
- &.nwbSelect {
3583
- cursor: pointer;
3584
- }
3585
- }
3586
- }
3614
+ transition: opacity 0.15s ease, z-index 0.15s ease, visibility 0s linear .16s;
3587
3615
 
3588
- .wac-edit-in-place.nwb-wrapper--editable::after {
3589
- position: absolute;
3590
- content: '';
3591
- border-bottom: dashed 1px $wac-primary;
3592
- width: 100%;
3593
- bottom: 0;
3594
- left: 0;
3595
- }
3616
+ &__container {
3617
+ padding: 10px 10px;
3618
+ border: 1px solid $wac-border-color;
3596
3619
 
3597
- .wac-edit-in-place.nwbSelect {
3598
- &__container {
3599
- display: flex;
3600
- flex-direction: column;
3601
- position: absolute;
3602
- white-space: nowrap;
3603
- border: solid 1px rgba(0, 0, 0, 0.2);
3604
- box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
3605
- border-radius: 3px;
3606
- top: calc(100% + 7px);
3620
+ &__item {
3621
+ padding: 5.7px 10px;
3622
+ font-size: 14px;
3623
+ line-height: 24px;
3624
+ color: $wac-second-color;
3625
+ cursor: pointer;
3626
+ transition: background-color 0.3s ease, color 0.3s ease;
3627
+ display: flex;
3628
+ justify-content: flex-start;
3629
+ align-items: center;
3630
+ align-content: center;
3607
3631
 
3608
- &::before {
3609
- position: absolute;
3610
- top: -7px;
3611
- left: 9px;
3612
- content: '';
3613
- border-left: 7px solid transparent;
3614
- border-right: 7px solid transparent;
3615
- border-bottom: 7px solid $wac-edit-in-place-before-border-bottom;
3616
- border-bottom-color: rgba(0, 0, 0, 0.2);
3617
- display: inline-block;
3618
- }
3632
+ i {
3633
+ min-width: 15px;
3634
+ margin-right: 5px;
3635
+ text-align: center;
3636
+ }
3637
+ span {
3638
+ white-space: nowrap;
3639
+ }
3619
3640
 
3620
- &::after {
3621
- position: absolute;
3622
- top: -6px;
3623
- left: 10px;
3624
- content: '';
3625
- border-left: 6px solid transparent;
3626
- border-right: 6px solid transparent;
3627
- border-bottom: 6px solid $wac-white;
3628
- display: inline-block;
3641
+ &:hover {
3642
+ background-color: $wac-gray-background;
3643
+ transition: background-color 0.3s ease, color 0.3s ease;
3644
+ color: $wac-input-active-color;
3645
+ }
3646
+ }
3647
+ }
3629
3648
  }
3630
3649
 
3631
- &__item {
3632
- border: none;
3633
- padding: 8px 10px;
3634
- background-color: $wac-white;
3635
- cursor: pointer;
3636
- transition: all 0.3s ease-in-out;
3637
- z-index: 3;
3638
- font-size: rem(12);
3639
- text-align: left;
3640
- border-radius: 0;
3641
-
3642
- &:hover {
3643
- background-color: darken($wac-white, 10%);
3644
- color: $wac-main-text;
3645
- transition: all 0.3s ease-in-out;
3650
+ &:hover {
3651
+ .wac-dropdown__wrapper__icon {
3652
+ color: $wac-wizishop-blue;
3653
+ transform: rotate(90deg);
3654
+ transition: color 0.3s ease, transform 0.3s ease;
3646
3655
  }
3647
3656
 
3648
- &--selected,
3649
- &--selected:hover {
3650
- background-color: $wac-wizishop-blue;
3651
- color: $wac-white;
3652
- transition: all 0.3s ease-in-out;
3657
+ .wac-dropdown__wrapper__sublevel {
3658
+ visibility: visible;
3659
+ opacity: 1;
3660
+ z-index: 2;
3661
+ transition: visibility 0s ease 0s, opacity 0.3s ease .1s;
3653
3662
  }
3654
3663
  }
3655
3664
  }
3656
-
3657
- &__background {
3658
- position: fixed;
3659
- top: 0;
3660
- left: 0;
3661
- width: 100vw;
3662
- height: 100vh;
3663
- z-index: 2;
3664
- }
3665
3665
  }
3666
3666
  h1.wac-h1 {
3667
3667
  font-size: rem(30);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/angular-components",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^11.2.12",
6
6
  "@angular/core": "^11.2.12",