@kms-ngx-ui/presentational 16.3.1 → 16.3.3

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.
Files changed (41) hide show
  1. package/esm2022/lib/directives/directives.module.mjs +8 -3
  2. package/esm2022/lib/directives/size.directive.mjs +21 -0
  3. package/esm2022/lib/kms-ngx-ui-presentational.module.mjs +21 -26
  4. package/esm2022/lib/parent-components/form-control.component.mjs +2 -2
  5. package/esm2022/lib/parent-components/form.component.mjs +11 -5
  6. package/esm2022/lib/services/viewport.service.mjs +212 -73
  7. package/esm2022/lib/ui/back-to-top/back-to-top.component.mjs +1 -1
  8. package/esm2022/lib/ui/dropdown-from-data/dropdown-from-data.component.mjs +9 -4
  9. package/esm2022/lib/ui/file-input/file-input.component.mjs +8 -8
  10. package/esm2022/lib/ui/flyout/flyout.component.mjs +6 -5
  11. package/esm2022/lib/ui/icon/icon.component.mjs +6 -3
  12. package/esm2022/lib/ui/icon/iconSize.enum.mjs +12 -1
  13. package/esm2022/lib/ui/image-slider/image-slider.component.mjs +3 -3
  14. package/esm2022/lib/ui/kms-accordion-item/kms-accordion-item.component.mjs +9 -9
  15. package/esm2022/lib/ui/map/map.component.mjs +3 -3
  16. package/esm2022/lib/ui/radiobutton/radiobutton.component.mjs +9 -5
  17. package/esm2022/lib/ui/tooltip-icon/tooltip-icon.component.mjs +7 -6
  18. package/esm2022/public-api.mjs +21 -21
  19. package/fesm2022/kms-ngx-ui-presentational.mjs +1885 -1713
  20. package/fesm2022/kms-ngx-ui-presentational.mjs.map +1 -1
  21. package/lib/directives/directives.module.d.ts +4 -2
  22. package/lib/directives/size.directive.d.ts +10 -0
  23. package/lib/kms-ngx-ui-presentational.module.d.ts +21 -22
  24. package/lib/services/viewport.service.d.ts +86 -11
  25. package/lib/ui/dropdown-from-data/dropdown-from-data.component.d.ts +4 -2
  26. package/lib/ui/file-input/file-input.component.d.ts +2 -2
  27. package/lib/ui/icon/icon.component.d.ts +7 -1
  28. package/lib/ui/icon/iconSize.enum.d.ts +10 -0
  29. package/lib/ui/kms-accordion-item/kms-accordion-item.component.d.ts +2 -2
  30. package/lib/ui/radiobutton/radiobutton.component.d.ts +2 -1
  31. package/lib/ui/tooltip-icon/tooltip-icon.component.d.ts +2 -2
  32. package/package.json +1 -1
  33. package/public-api.d.ts +20 -20
  34. package/src/lib/ui/back-to-top/back-to-top.component.scss +2 -3
  35. package/src/lib/ui/icon/icon.component.scss +2 -36
  36. package/src/lib/ui/image-slider/image-slider.component.scss +209 -202
  37. package/src/styles/animations.scss +47 -0
  38. package/src/styles/styles.scss +1 -0
  39. package/esm2022/lib/ui/tooltip/tooltip.component.mjs +0 -16
  40. package/lib/ui/tooltip/tooltip.component.d.ts +0 -6
  41. package/src/lib/ui/tooltip/tooltip.component.scss +0 -27
@@ -1,220 +1,227 @@
1
1
  @mixin image-slider-theme() {
2
- // TODO
3
- $responsive-breakpoint1: 996px;
4
- $responsive-breakpoint-1024: 1024px;
5
- $responsive-breakpoint2: 1200px;
6
- $responsive-breakpoint3: 1400px;
7
- $color-secondary: var(--primaryColor);
8
- $color-disabled: var(--gray04);
9
- $color-image-background: white;
10
- $img-size: 796px;
11
-
12
- .all-wrapper{
13
- position: relative;
2
+ // TODO
3
+ $responsive-breakpoint1: 996px;
4
+ $responsive-breakpoint-1024: 1024px;
5
+ $responsive-breakpoint2: 1200px;
6
+ $responsive-breakpoint3: 1400px;
7
+ $color-secondary: var(--primaryColor);
8
+ $color-disabled: var(--gray04);
9
+ $color-image-background: white;
10
+ $img-size: 796px;
11
+
12
+ .all-wrapper {
13
+ position: relative;
14
+
15
+ .default-image {
16
+ visibility: hidden;
17
+ }
18
+ }
14
19
 
15
- .default-image {
20
+ .swiper-bigImage {
21
+ @include backgroundContains();
22
+ background-color: $color-image-background;
16
23
 
17
- visibility: hidden;
18
- }
19
- }
24
+ width: $img-size;
25
+ height: auto;
26
+ padding-top: 75%; /* 4:3 Aspect Ratio */
27
+ position: relative;
20
28
 
21
- .swiper-bigImage{
22
- @include backgroundContains();
23
- background-color: $color-image-background;
29
+ @media (max-width: $responsive-breakpoint3) {
30
+ width: 100%;
31
+ }
32
+ }
24
33
 
25
- width: $img-size;
26
- height: auto;
27
- padding-top: 75%; /* 4:3 Aspect Ratio */
28
- position: relative;
29
-
30
- @media (max-width: $responsive-breakpoint3) {
31
- width: 100%;
32
- }
34
+ .swiper-holder {
35
+ margin: 18px 0;
36
+ width: 796px;
37
+ @media (max-width: $responsive-breakpoint3) {
38
+ width: 100%;
33
39
  }
34
40
 
35
- .swiper-holder{
36
- margin: 18px 0;
37
- width: 796px;
38
- @media (max-width: $responsive-breakpoint3) {
39
- width: 100%;
41
+ .swiper-button {
42
+ &-next,
43
+ &-prev,
44
+ &-next2,
45
+ &-prev2 {
46
+ position: absolute;
47
+ width: 10px;
48
+ height: 20px;
49
+ top: calc((100% - 140px) / 2);
50
+ transform: translate(0, 50%);
51
+ color: $color-secondary;
52
+ &.swiper-button-disabled {
53
+ display: none;
40
54
  }
41
-
42
- .swiper-button{
43
- &-next, &-prev,
44
- &-next2, &-prev2{
45
- position: absolute;
46
- width: 10px;
47
- height: 20px;
48
- top: calc((100% - 140px) / 2);
49
- transform: translate(0, 50%);
50
- color: $color-secondary;
51
- &.swiper-button-disabled{
52
- display: none;
53
- }
54
- &:after{
55
- font-size: 20px;
56
- }
57
- }
58
-
59
- &-next,
60
- &-next2{
61
- right: 20px;
62
- }
63
- &-prev,
64
- &-prev2{
65
- left: 20px;
66
- }
67
-
68
- &-next, &-prev{
69
- top: auto;
70
- bottom: calc((140px)/ 2);
71
- }
72
-
73
- @media (max-width: $responsive-breakpoint2) {
74
- &-next{
75
- right: 20px;
76
- }
77
- &-prev{
78
- left: 20px;
79
- }
80
- }
81
- @media (max-width: $responsive-breakpoint-1024) {
82
-
83
- &-next{
84
- right: 0;
85
- }
86
- &-prev{
87
- left: 0;
88
- }
89
- }
90
- @media (max-width: $responsive-breakpoint1) {
91
- &-next{
92
- right: 10vw;
93
- }
94
- &-prev{
95
- left: 10vw;
96
- }
97
- }
55
+ &:after {
56
+ font-size: 20px;
57
+ }
58
+ }
59
+
60
+ &-next,
61
+ &-prev {
62
+ color: $color-secondary !important;
63
+ background: transparent;
64
+ border: none;
65
+ }
66
+
67
+ &-next,
68
+ &-next2 {
69
+ right: 20px;
70
+ }
71
+ &-prev,
72
+ &-prev2 {
73
+ left: 20px;
74
+ }
75
+
76
+ &-next,
77
+ &-prev {
78
+ top: auto;
79
+ bottom: calc((140px) / 2);
80
+ }
81
+
82
+ @media (max-width: $responsive-breakpoint2) {
83
+ &-next {
84
+ right: 20px;
85
+ }
86
+ &-prev {
87
+ left: 20px;
98
88
  }
89
+ }
90
+ @media (max-width: $responsive-breakpoint-1024) {
91
+ &-next {
92
+ right: 0;
93
+ }
94
+ &-prev {
95
+ left: 0;
96
+ }
97
+ }
98
+ @media (max-width: $responsive-breakpoint1) {
99
+ &-next {
100
+ right: 10vw;
101
+ }
102
+ &-prev {
103
+ left: 10vw;
104
+ }
105
+ }
106
+ }
107
+ }
108
+
109
+ swiper {
110
+ width: 560px;
111
+ margin: 0 auto;
112
+ position: relative;
113
+ @media (max-width: $responsive-breakpoint-1024) {
114
+ width: 400px;
115
+ }
116
+ @media (max-width: $responsive-breakpoint1) {
117
+ width: 60vw;
99
118
  }
100
119
 
101
- swiper{
102
- width: 560px;
103
- margin: 0 auto;
104
- position: relative;
105
- @media (max-width: $responsive-breakpoint-1024) {
106
- width: 400px;
107
- }
108
- @media (max-width: $responsive-breakpoint1) {
109
- width: 60vw;
110
- }
120
+ .swiper-wrapper {
121
+ display: flex;
111
122
 
112
- .swiper-wrapper {
113
- display: flex;
114
-
115
- .swiper-slide {
116
- flex-basis: 0;
117
- position: relative;
118
-
119
- .img {
120
- background-repeat: no-repeat;
121
- background-size: contain;
122
- background-position: center center;
123
-
124
- width: 158px;
125
- height: auto;
126
- padding-top: 75%; /* 4:3 Aspect Ratio */
127
-
128
- cursor: pointer;
129
- border: 1px solid #dbdbda;
130
- border-radius: var(--defaultBorderRadius);
131
- @media (max-width: $responsive-breakpoint-1024) {
132
- width: 100px;
133
- }
134
- @media (max-width: $responsive-breakpoint1) {
135
- width: 20vw;
136
- }
137
- &.active{
138
- border: 1px solid var(--grey08);
139
- background-color: var(--gray06);
140
- }
141
- }
142
-
143
- button {
144
- position: absolute;
145
- width: 15px;
146
- height: 15px;
147
- right: 5px;
148
- top: 5px;
149
- background: none;
150
-
151
- .icon{
152
- width: 15px !important;
153
- height: 15px !important;
154
-
155
- svg {
156
- width: 15px !important;
157
- height: 15px !important;
158
- }
159
- }
160
- }
161
- }
162
- .cdk-drag-preview {
163
- box-sizing: border-box;
164
- border-radius: var(--defaultBorderRadius);
165
- box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
166
- 0 8px 10px 1px rgba(0, 0, 0, 0.14),
167
- 0 3px 14px 2px rgba(0, 0, 0, 0.12);
168
- }
169
-
170
- .cdk-drag-placeholder {
171
- opacity: 0.3;
172
- border: 1px solid var(--grey07);
173
- background-color: var(--gray05);
174
- }
175
-
176
- .cdk-drag-animating {
177
- transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
178
- }
179
-
180
- .swiper-slide:first-child:not(.cdk-drag-disabled)
181
- {
182
- .img {
183
- border: solid var(--primaryColor);
184
- border-radius: 8px;
185
- }
186
-
187
- .default-image {
188
- visibility: visible !important;
189
- text-align: center;
190
- font: normal normal normal 14px/25px var(--fontName-text03);
191
- letter-spacing: 0.22px;
192
- color: var(--gray04);;
193
- opacity: 1;
194
- }
195
- }
196
-
197
- .swiper-wrapper.cdk-drop-list-dragging .swiper-slide:not(.cdk-drag-placeholder) {
198
- transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
199
- }
200
- }
123
+ .swiper-slide {
124
+ flex-basis: 0;
125
+ position: relative;
201
126
 
202
- .swiper-container {
203
- width: 100%;
204
- overflow-y: hidden;
205
- overflow-x: hidden;
206
- }
127
+ .img {
128
+ background-repeat: no-repeat;
129
+ background-size: contain;
130
+ background-position: center center;
131
+
132
+ width: 158px;
133
+ height: auto;
134
+ padding-top: 75%; /* 4:3 Aspect Ratio */
135
+
136
+ cursor: pointer;
137
+ border: 1px solid #dbdbda;
138
+ border-radius: var(--defaultBorderRadius);
139
+ @media (max-width: $responsive-breakpoint-1024) {
140
+ width: 100px;
141
+ }
142
+ @media (max-width: $responsive-breakpoint1) {
143
+ width: 20vw;
144
+ }
145
+ &.active {
146
+ border: 1px solid var(--grey08);
147
+ background-color: var(--gray06);
148
+ }
207
149
  }
208
150
 
209
- .cdk-drag-preview,
210
- .cdk-drag-dragging {
211
- &.swiper-slide {
212
- .default-image{
213
- visibility: hidden;
214
- }
215
- button {
216
- visibility: hidden;
151
+ button {
152
+ position: absolute;
153
+ width: 15px;
154
+ height: 15px;
155
+ right: 5px;
156
+ top: 5px;
157
+ background: none;
158
+
159
+ .icon {
160
+ width: 15px !important;
161
+ height: 15px !important;
162
+
163
+ svg {
164
+ width: 15px !important;
165
+ height: 15px !important;
217
166
  }
167
+ }
168
+ }
169
+ }
170
+ .cdk-drag-preview {
171
+ box-sizing: border-box;
172
+ border-radius: var(--defaultBorderRadius);
173
+ box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
174
+ 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
175
+ }
176
+
177
+ .cdk-drag-placeholder {
178
+ opacity: 0.3;
179
+ border: 1px solid var(--grey07);
180
+ background-color: var(--gray05);
181
+ }
182
+
183
+ .cdk-drag-animating {
184
+ transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
185
+ }
186
+
187
+ .swiper-slide:first-child:not(.cdk-drag-disabled) {
188
+ .img {
189
+ border: solid var(--primaryColor);
190
+ border-radius: 8px;
191
+ }
192
+
193
+ .default-image {
194
+ visibility: visible !important;
195
+ text-align: center;
196
+ font: normal normal normal 14px/25px var(--fontName-text03);
197
+ letter-spacing: 0.22px;
198
+ color: var(--gray04);
199
+ opacity: 1;
218
200
  }
201
+ }
202
+
203
+ .swiper-wrapper.cdk-drop-list-dragging
204
+ .swiper-slide:not(.cdk-drag-placeholder) {
205
+ transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
206
+ }
207
+ }
208
+
209
+ .swiper-container {
210
+ width: 100%;
211
+ overflow-y: hidden;
212
+ overflow-x: hidden;
213
+ }
214
+ }
215
+
216
+ .cdk-drag-preview,
217
+ .cdk-drag-dragging {
218
+ &.swiper-slide {
219
+ .default-image {
220
+ visibility: hidden;
221
+ }
222
+ button {
223
+ visibility: hidden;
224
+ }
219
225
  }
220
- }
226
+ }
227
+ }
@@ -0,0 +1,47 @@
1
+ // Animations for element
2
+ @keyframes spinanimation {
3
+ from {
4
+ transform: rotate(0deg);
5
+ }
6
+
7
+ to {
8
+ transform: rotate(360deg);
9
+ }
10
+ }
11
+
12
+ .is-rotating{
13
+ &45 {
14
+ animation-name: spinanimation;
15
+ animation-duration: 3000ms;
16
+ transform: rotate(45deg);
17
+ }
18
+
19
+ &90 {
20
+ animation-name: spinanimation;
21
+ animation-duration: 3000ms;
22
+ transform: rotate(90deg);
23
+ }
24
+
25
+ &180 {
26
+ animation-name: spinanimation180;
27
+ animation-duration: 3000ms;
28
+ }
29
+
30
+ &45Anti {
31
+ animation-name: spinanimation;
32
+ animation-duration: 3000ms;
33
+ transform: rotate(-45deg);
34
+ }
35
+
36
+ &90Anti {
37
+ animation-name: spinanimation;
38
+ animation-duration: 3000ms;
39
+ transform: rotate(-90deg);
40
+ }
41
+
42
+ &180Anti {
43
+ animation-name: spinanimation;
44
+ animation-duration: 3000ms;
45
+ transform: rotate(-180deg);
46
+ }
47
+ }
@@ -1,4 +1,5 @@
1
1
  @import 'mixins.scss';
2
+ @import 'animations.scss';
2
3
 
3
4
  @import '../lib/ui/back-to-top/back-to-top.component';
4
5
  @import '../lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component';
@@ -1,16 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class TooltipComponent {
4
- constructor() {
5
- this.tooltipTitle = "";
6
- }
7
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TooltipComponent, selector: "kms-tooltip-element", inputs: { tooltipTitle: "tooltipTitle" }, ngImport: i0, template: "<ng-content></ng-content>", styles: ["[kmsTooltip]{position:relative}\n"] }); }
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipComponent, decorators: [{
11
- type: Component,
12
- args: [{ selector: 'kms-tooltip-element', template: "<ng-content></ng-content>", styles: ["[kmsTooltip]{position:relative}\n"] }]
13
- }], propDecorators: { tooltipTitle: [{
14
- type: Input
15
- }] } });
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9rbXMtbmd4LXVpLXByZXNlbnRhdGlvbmFsL3NyYy9saWIvdWkvdG9vbHRpcC90b29sdGlwLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2ttcy1uZ3gtdWktcHJlc2VudGF0aW9uYWwvc3JjL2xpYi91aS90b29sdGlwL3Rvb2x0aXAuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBT2pELE1BQU0sT0FBTyxnQkFBZ0I7SUFMN0I7UUFNYSxpQkFBWSxHQUFHLEVBQUUsQ0FBQztLQUM5QjsrR0FGWSxnQkFBZ0I7bUdBQWhCLGdCQUFnQixxR0NQN0IsMkJBQXlCOzs0RkRPWixnQkFBZ0I7a0JBTDVCLFNBQVM7K0JBQ0kscUJBQXFCOzhCQUt0QixZQUFZO3NCQUFwQixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1dCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgICBzZWxlY3RvcjogJ2ttcy10b29sdGlwLWVsZW1lbnQnLFxuICAgIHRlbXBsYXRlVXJsOiAnLi90b29sdGlwLmNvbXBvbmVudC5odG1sJyxcbiAgICBzdHlsZVVybHM6IFsnLi90b29sdGlwLmNvbXBvbmVudC5zY3NzJ11cbn0pXG5leHBvcnQgY2xhc3MgVG9vbHRpcENvbXBvbmVudCB7XG4gICAgQElucHV0KCkgdG9vbHRpcFRpdGxlID0gXCJcIjtcbn1cbiIsIjxuZy1jb250ZW50PjwvbmctY29udGVudD4iXX0=
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TooltipComponent {
3
- tooltipTitle: string;
4
- static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "kms-tooltip-element", never, { "tooltipTitle": { "alias": "tooltipTitle"; "required": false; }; }, {}, never, ["*"], false, never>;
6
- }
@@ -1,27 +0,0 @@
1
- @mixin tooltip-theme() {
2
- .tooltip {
3
- position: absolute;
4
- max-width: 400px;
5
- font-size: 14px;
6
- text-align: left;
7
- color: #43403E;
8
- padding: 10px 10px;
9
- border-radius: var(--defaultBorderRadius);
10
- z-index: 1000;
11
- background-color: var(--gray07);
12
- box-shadow: 0px 3px 6px var(--gray12);
13
-
14
- display: none;
15
-
16
- b,a,div{
17
- margin: 10px 0;
18
- }
19
- }
20
- .tooltip-show {
21
- display: block;
22
- }
23
- }
24
-
25
- [kmsTooltip]{
26
- position: relative;
27
- }