@awes-io/ui 2.110.0 → 2.112.0
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/CHANGELOG.md +22 -0
- package/assets/css/components/bottom-bar.css +1 -1
- package/assets/css/components/button.css +8 -7
- package/assets/css/components/calendar.css +2 -1
- package/assets/css/components/card.css +5 -5
- package/assets/css/components/icon-menu-item.css +5 -1
- package/assets/css/components/layout-menu.css +1 -1
- package/assets/css/components/layout.css +2 -2
- package/assets/css/components/modal.css +25 -11
- package/assets/css/components/page-header.css +37 -14
- package/assets/css/components/page-single.css +18 -27
- package/assets/css/components/page.css +3 -2
- package/assets/css/components/sub-headline.css +2 -2
- package/assets/css/components/switch-field.css +3 -3
- package/assets/css/components/toggle-show-aside.css +2 -0
- package/assets/css/main.css +8 -0
- package/components/1_atoms/AwDock.vue +2 -0
- package/components/1_atoms/AwGrid.vue +1 -1
- package/components/1_atoms/AwIcon/AwIcon.vue +2 -1
- package/components/3_organisms/AwChart.vue +12 -5
- package/components/3_organisms/AwTel.vue +6 -0
- package/components/3_organisms/AwToggleShowAside.vue +5 -4
- package/components/4_pages/AwPage.vue +9 -11
- package/components/4_pages/AwPageSingle.vue +8 -9
- package/components/4_pages/_AwPageHeader.vue +13 -3
- package/components/5_layouts/_AwMenuItemIcon.vue +1 -1
- package/components/5_layouts/_AwNav.vue +1 -1
- package/package.json +2 -2
- package/tailwind.config.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.112.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.111.0...@awes-io/ui@2.112.0) (2024-10-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* ui styles updated ([a702ef3](https://github.com/awes-io/client/commit/a702ef35671a0fbd173ee826c84faed802037560))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [2.111.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.110.0...@awes-io/ui@2.111.0) (2024-09-30)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* disabled buttons style updated ([e16b2c9](https://github.com/awes-io/client/commit/e16b2c901332fdf8ceca853b8883a1dc29bfc325))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [2.110.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.109.0...@awes-io/ui@2.110.0) (2024-09-20)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -112,6 +112,7 @@
|
|
|
112
112
|
&:disabled {
|
|
113
113
|
cursor: not-allowed;
|
|
114
114
|
user-select: none !important;
|
|
115
|
+
opacity: 0.5;
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
&:disabled .aw-icon--animated {
|
|
@@ -162,6 +163,10 @@
|
|
|
162
163
|
--btn-padding-x: 0.75rem;
|
|
163
164
|
}
|
|
164
165
|
|
|
166
|
+
&--with-text:where(&--size-lg) {
|
|
167
|
+
--btn-padding-x: 1.5rem;
|
|
168
|
+
}
|
|
169
|
+
|
|
165
170
|
&--color-accent:where(&--theme-solid) {
|
|
166
171
|
--btn-bg-color: var(--c-accent);
|
|
167
172
|
--btn-color: var(--c-on-accent);
|
|
@@ -242,10 +247,10 @@
|
|
|
242
247
|
--icon-color: var(--c-mono-100);
|
|
243
248
|
}
|
|
244
249
|
|
|
245
|
-
&--theme-solid:where(:not(&--loading, &--locked)):disabled {
|
|
246
|
-
--btn-bg-color: var(--c-mono-800);
|
|
250
|
+
/* &--theme-solid:where(:not(&--loading, &--locked)):disabled {
|
|
251
|
+
--btn-bg-color: var(--btn-bg-disabled, var(--c-mono-800));
|
|
247
252
|
--btn-color: var(--c-mono-400);
|
|
248
|
-
}
|
|
253
|
+
} */
|
|
249
254
|
|
|
250
255
|
&--theme-icon {
|
|
251
256
|
opacity: 0.4;
|
|
@@ -270,10 +275,6 @@
|
|
|
270
275
|
|
|
271
276
|
cursor: wait !important;
|
|
272
277
|
user-select: none !important;
|
|
273
|
-
|
|
274
|
-
&:disabled {
|
|
275
|
-
opacity: 1;
|
|
276
|
-
}
|
|
277
278
|
}
|
|
278
279
|
|
|
279
280
|
&--loading &__icon-wrapper {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.aw-card {
|
|
2
|
-
--card-padding-x:
|
|
3
|
-
--card-padding-y:
|
|
2
|
+
--card-padding-x: var(--container-padding);
|
|
3
|
+
--card-padding-y: 1.5rem;
|
|
4
4
|
|
|
5
5
|
display: block;
|
|
6
6
|
min-width: 100%;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
color: var(--c-on-surface);
|
|
9
9
|
background-color: var(--c-surface);
|
|
10
10
|
|
|
11
|
-
border-radius:
|
|
11
|
+
border-radius: 15px;
|
|
12
12
|
padding: var(--card-padding-y) var(--card-padding-x);
|
|
13
13
|
box-shadow: none;
|
|
14
14
|
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
|
|
43
43
|
@screen lg {
|
|
44
44
|
.aw-card {
|
|
45
|
-
--card-padding-x: 1.
|
|
46
|
-
--card-padding-y: 1.
|
|
45
|
+
--card-padding-x: 1.5rem;
|
|
46
|
+
/* --card-padding-y: 1.5rem; */
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.container .aw-card,
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
&__text {
|
|
49
49
|
display: block;
|
|
50
50
|
|
|
51
|
-
font-size: 0.
|
|
51
|
+
font-size: 0.625rem;
|
|
52
52
|
font-weight: 400;
|
|
53
53
|
line-height: 0.659375rem;
|
|
54
54
|
color: var(--c-mono-300);
|
|
@@ -117,3 +117,7 @@
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
+
|
|
121
|
+
.aw-icon-menu-item-tooltip.aw-tooltip[data-visible] {
|
|
122
|
+
z-index: 21;
|
|
123
|
+
}
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
|
|
22
22
|
&.aw-layout-menu--hide-submenu {
|
|
23
23
|
max-width: 6rem;
|
|
24
|
-
z-index:
|
|
24
|
+
z-index: 21;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
& ~ * {
|
|
28
28
|
max-width: calc(100% - 300px);
|
|
29
29
|
margin-left: 300px;
|
|
30
|
-
transition: max-width ease-in-out 0.3s, margin-left ease-in-out 0.3s;
|
|
30
|
+
/* transition: max-width ease-in-out 0.3s, margin-left ease-in-out 0.3s; */
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
&.aw-layout-menu--no-submenu ~ * {
|
|
@@ -203,6 +203,24 @@ $modal-aside-width-large: 75vw;
|
|
|
203
203
|
|
|
204
204
|
@screen md {
|
|
205
205
|
.aw-modal {
|
|
206
|
+
&.is-default {
|
|
207
|
+
flex-direction: column;
|
|
208
|
+
|
|
209
|
+
&:before {
|
|
210
|
+
content: '';
|
|
211
|
+
display: block;
|
|
212
|
+
flex-basis: 8rem;
|
|
213
|
+
flex-shrink: 1;
|
|
214
|
+
min-height: 2rem;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
&.is-default &__container {
|
|
219
|
+
padding-top: 0;
|
|
220
|
+
flex-basis: 100vh;
|
|
221
|
+
min-height: inherit;
|
|
222
|
+
}
|
|
223
|
+
|
|
206
224
|
&__header {
|
|
207
225
|
padding-top: 1.5rem;
|
|
208
226
|
min-height: auto;
|
|
@@ -432,33 +450,31 @@ $modal-t-dur: 200ms;
|
|
|
432
450
|
.modal-transition-overlay-aside,
|
|
433
451
|
.modal-transition-overlay-aside-medium,
|
|
434
452
|
.modal-transition-overlay-aside-large,
|
|
435
|
-
.modal-transition-fullscreen
|
|
453
|
+
.modal-transition-fullscreen {
|
|
436
454
|
&-enter,
|
|
437
455
|
&-leave-to {
|
|
438
456
|
opacity: 0;
|
|
439
|
-
transform:
|
|
457
|
+
transform: translateY(100%);
|
|
440
458
|
}
|
|
441
459
|
|
|
442
460
|
&-leave,
|
|
443
461
|
&-enter-to {
|
|
444
462
|
opacity: 1;
|
|
445
|
-
transform:
|
|
463
|
+
transform: translateY(0);
|
|
446
464
|
}
|
|
447
465
|
|
|
448
466
|
&-enter-active,
|
|
449
467
|
&-leave-active {
|
|
450
|
-
transform-style: preserve-3d;
|
|
451
468
|
pointer-events: none;
|
|
452
|
-
backface-visibility: hidden;
|
|
453
|
-
/* transform: translate3d(0, 0, 0); */
|
|
454
469
|
}
|
|
455
470
|
|
|
456
471
|
&-enter-active {
|
|
457
|
-
transition: calc($modal-t-dur * .5) opacity, $modal-t-dur transform;
|
|
472
|
+
transition: calc($modal-t-dur * 0.5) opacity, $modal-t-dur transform;
|
|
458
473
|
}
|
|
459
474
|
|
|
460
475
|
&-leave-active {
|
|
461
|
-
transition: calc($modal-t-dur * .8) opacity,
|
|
476
|
+
transition: calc($modal-t-dur * 0.8) opacity,
|
|
477
|
+
calc($modal-t-dur * 0.8) transform;
|
|
462
478
|
}
|
|
463
479
|
}
|
|
464
480
|
}
|
|
@@ -500,8 +516,7 @@ $modal-t-dur: 200ms;
|
|
|
500
516
|
}
|
|
501
517
|
|
|
502
518
|
&-enter-active {
|
|
503
|
-
transition: $modal-t-dur transform,
|
|
504
|
-
$modal-t-dur opacity;
|
|
519
|
+
transition: $modal-t-dur transform, $modal-t-dur opacity;
|
|
505
520
|
}
|
|
506
521
|
|
|
507
522
|
&-leave-active {
|
|
@@ -580,4 +595,3 @@ $modal-t-dur: 200ms;
|
|
|
580
595
|
}
|
|
581
596
|
}
|
|
582
597
|
}
|
|
583
|
-
|
|
@@ -9,21 +9,20 @@
|
|
|
9
9
|
box-shadow: none;
|
|
10
10
|
|
|
11
11
|
position: relative;
|
|
12
|
-
z-index:
|
|
12
|
+
z-index: 20;
|
|
13
13
|
|
|
14
14
|
transition: none;
|
|
15
15
|
|
|
16
|
+
position: sticky;
|
|
17
|
+
top: 0;
|
|
18
|
+
|
|
16
19
|
&--is-stuck {
|
|
17
|
-
@apply bg-
|
|
20
|
+
@apply bg-page-bg;
|
|
18
21
|
width: 100%;
|
|
19
22
|
|
|
20
|
-
box-shadow: 0px 10px 20px 0px rgba(
|
|
23
|
+
box-shadow: 0px 10px 20px 0px rgba(37, 38, 41, 0.05);
|
|
21
24
|
|
|
22
25
|
transition: 60ms box-shadow 120ms;
|
|
23
|
-
animation: aw-page-header-slide 180ms ease-out;
|
|
24
|
-
|
|
25
|
-
position: sticky;
|
|
26
|
-
top: 0;
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
.aw-progress {
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
&--primary {
|
|
43
|
-
@apply bg-surface;
|
|
42
|
+
/* @apply bg-surface; */
|
|
44
43
|
width: 100%;
|
|
45
44
|
}
|
|
46
45
|
|
|
@@ -56,10 +55,21 @@
|
|
|
56
55
|
|
|
57
56
|
margin: 0;
|
|
58
57
|
|
|
59
|
-
font-size:
|
|
58
|
+
font-size: 1.25rem;
|
|
60
59
|
line-height: 1.4285;
|
|
61
60
|
font-weight: 700;
|
|
62
|
-
text-align:
|
|
61
|
+
text-align: start;
|
|
62
|
+
|
|
63
|
+
&--showable {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
transform: translateY(50%);
|
|
66
|
+
transition: opacity 200ms, transform 200ms;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&--visible {
|
|
70
|
+
opacity: 1;
|
|
71
|
+
transform: translateY(0);
|
|
72
|
+
}
|
|
63
73
|
}
|
|
64
74
|
|
|
65
75
|
&__breadcrumbs,
|
|
@@ -76,7 +86,7 @@
|
|
|
76
86
|
}
|
|
77
87
|
}
|
|
78
88
|
|
|
79
|
-
@screen md {
|
|
89
|
+
/* @screen md {
|
|
80
90
|
.aw-page-header {
|
|
81
91
|
&__title {
|
|
82
92
|
flex: 10 1 max-content;
|
|
@@ -91,13 +101,17 @@
|
|
|
91
101
|
min-width: max-content;
|
|
92
102
|
}
|
|
93
103
|
}
|
|
94
|
-
}
|
|
104
|
+
} */
|
|
95
105
|
|
|
96
106
|
@screen lg {
|
|
97
107
|
.aw-page-header {
|
|
98
108
|
/* padding-left: 2.5rem;
|
|
99
109
|
padding-right: 2.5rem; */
|
|
100
110
|
|
|
111
|
+
&--primary {
|
|
112
|
+
@apply bg-surface;
|
|
113
|
+
}
|
|
114
|
+
|
|
101
115
|
&__title {
|
|
102
116
|
font-size: 1.25rem;
|
|
103
117
|
line-height: 1.2;
|
|
@@ -108,6 +122,8 @@
|
|
|
108
122
|
width: 100%;
|
|
109
123
|
margin-left: 0;
|
|
110
124
|
margin-right: 0;
|
|
125
|
+
|
|
126
|
+
position: static;
|
|
111
127
|
}
|
|
112
128
|
|
|
113
129
|
:where(&--container) &__breadcrumbs {
|
|
@@ -118,12 +134,19 @@
|
|
|
118
134
|
);
|
|
119
135
|
}
|
|
120
136
|
|
|
137
|
+
&:where(:not(&--container)) &__title {
|
|
138
|
+
position: absolute;
|
|
139
|
+
top: 50%;
|
|
140
|
+
left: 50%;
|
|
141
|
+
transform: translate(-50%, -50%);
|
|
142
|
+
}
|
|
143
|
+
|
|
121
144
|
:where(&--container) &__title {
|
|
122
145
|
text-align: left;
|
|
123
146
|
margin-right: 1rem;
|
|
124
147
|
}
|
|
125
148
|
|
|
126
|
-
:where(&--container) &__buttons {
|
|
149
|
+
/* :where(&--container) &__buttons {
|
|
127
150
|
margin-right: max(
|
|
128
151
|
0px,
|
|
129
152
|
calc(
|
|
@@ -131,7 +154,7 @@
|
|
|
131
154
|
var(--header-padding-horizontal)
|
|
132
155
|
)
|
|
133
156
|
);
|
|
134
|
-
}
|
|
157
|
+
} */
|
|
135
158
|
}
|
|
136
159
|
}
|
|
137
160
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
&__mobile-title {
|
|
26
26
|
order: -4;
|
|
27
27
|
|
|
28
|
-
padding: 0
|
|
28
|
+
padding: 0 var(--container-padding);
|
|
29
29
|
|
|
30
30
|
font-size: 1.25rem;
|
|
31
31
|
line-height: 1.2;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
&__mobile-description {
|
|
36
36
|
order: -3;
|
|
37
37
|
|
|
38
|
-
padding: 0
|
|
38
|
+
padding: 0 var(--container-padding);
|
|
39
39
|
margin-top: -1rem;
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
&__top-scroll-mark {
|
|
53
|
-
order: -3;
|
|
53
|
+
/* order: -3; */
|
|
54
54
|
height: 1px;
|
|
55
|
-
margin-top: -1.5rem;
|
|
55
|
+
/* margin-top: -1.5rem; */
|
|
56
56
|
margin-bottom: -1px;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
&__mobile-action-button {
|
|
60
60
|
display: grid;
|
|
61
61
|
|
|
62
|
-
padding: 1rem
|
|
62
|
+
padding: 1rem var(--container-padding);
|
|
63
63
|
padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
|
|
64
64
|
|
|
65
65
|
position: sticky;
|
|
@@ -76,30 +76,13 @@
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
@screen
|
|
79
|
+
@screen lg {
|
|
80
80
|
.aw-page-single {
|
|
81
|
-
&__container--preview {
|
|
82
|
-
padding-left: 1.5rem;
|
|
83
|
-
padding-right: 1.5rem;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
81
|
&__mobile-title,
|
|
87
82
|
&__mobile-description {
|
|
88
83
|
padding: 0;
|
|
89
84
|
}
|
|
90
85
|
|
|
91
|
-
&__mobile-action-button {
|
|
92
|
-
padding-left: 1.5rem;
|
|
93
|
-
padding-right: 1.5rem;
|
|
94
|
-
|
|
95
|
-
margin-left: -1.5rem;
|
|
96
|
-
margin-right: -1.5rem;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
@screen lg {
|
|
102
|
-
.aw-page-single {
|
|
103
86
|
&__header {
|
|
104
87
|
position: sticky;
|
|
105
88
|
top: 0;
|
|
@@ -120,8 +103,8 @@
|
|
|
120
103
|
align-content: start;
|
|
121
104
|
gap: 0;
|
|
122
105
|
|
|
123
|
-
padding-left:
|
|
124
|
-
padding-right:
|
|
106
|
+
padding-left: var(--container-padding, 1.5rem);
|
|
107
|
+
padding-right: var(--container-padding, 1.5rem);
|
|
125
108
|
margin: 0 auto;
|
|
126
109
|
max-width: 70.25rem;
|
|
127
110
|
}
|
|
@@ -132,11 +115,11 @@
|
|
|
132
115
|
display: none;
|
|
133
116
|
}
|
|
134
117
|
|
|
135
|
-
&__top-scroll-mark {
|
|
118
|
+
/* &__top-scroll-mark {
|
|
136
119
|
margin-top: calc(-2rem - var(--header-height, 0px));
|
|
137
120
|
margin-bottom: calc(var(--header-height, 0px) + 0.5rem);
|
|
138
121
|
grid-column: 1 / -1;
|
|
139
|
-
}
|
|
122
|
+
} */
|
|
140
123
|
|
|
141
124
|
&__content--column {
|
|
142
125
|
width: 40rem;
|
|
@@ -159,5 +142,13 @@
|
|
|
159
142
|
transition: top 180ms ease-out;
|
|
160
143
|
} */
|
|
161
144
|
}
|
|
145
|
+
|
|
146
|
+
&__mobile-action-button {
|
|
147
|
+
padding-left: 1.5rem;
|
|
148
|
+
padding-right: 1.5rem;
|
|
149
|
+
|
|
150
|
+
margin-left: -1.5rem;
|
|
151
|
+
margin-right: -1.5rem;
|
|
152
|
+
}
|
|
162
153
|
}
|
|
163
154
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.aw-switch-field {
|
|
2
|
-
@apply flex relative
|
|
2
|
+
@apply flex relative;
|
|
3
3
|
align-items: flex-start;
|
|
4
4
|
|
|
5
5
|
&__element {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
&__switch {
|
|
105
105
|
@apply bg-mono-600 relative;
|
|
106
106
|
flex-shrink: 0;
|
|
107
|
-
margin: 0
|
|
107
|
+
margin: 0;
|
|
108
108
|
cursor: pointer;
|
|
109
109
|
order: -1;
|
|
110
110
|
border-radius: 90px;
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
&__label {
|
|
280
280
|
padding-top: 0.3125rem;
|
|
281
281
|
font-size: 1rem;
|
|
282
|
-
line-height: 1.
|
|
282
|
+
line-height: 1.18rem;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
&__element + &__label {
|
package/assets/css/main.css
CHANGED
|
@@ -32,6 +32,14 @@
|
|
|
32
32
|
*/
|
|
33
33
|
@import 'prismjs/themes/prism.css';
|
|
34
34
|
|
|
35
|
+
[data-dark="false"] {
|
|
36
|
+
color-scheme: light;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-dark="true"] {
|
|
40
|
+
color-scheme: dark;
|
|
41
|
+
}
|
|
42
|
+
|
|
35
43
|
[data-dark="true"] {
|
|
36
44
|
pre[class*="language-"] {
|
|
37
45
|
background-color: theme('darkTheme.colors.surface');
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { isNil, mergeDeepRight } from 'rambdax'
|
|
3
|
+
import { toColor } from '@AwUtils/styles'
|
|
3
4
|
import { VIEW_BOX, ICONS as ANIMATED_ICONS } from '@AwUtils/icons/animated'
|
|
4
5
|
|
|
5
6
|
const staticClass = 'aw-icon'
|
|
@@ -54,7 +55,7 @@ export default {
|
|
|
54
55
|
}
|
|
55
56
|
],
|
|
56
57
|
style: [data.style, data.staticStyle].concat(
|
|
57
|
-
color ? { fill:
|
|
58
|
+
color ? { fill: toColor(color) } : []
|
|
58
59
|
),
|
|
59
60
|
attrs: {
|
|
60
61
|
'aria-hidden': true,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
<div ref="chart"></div>
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
|
+
|
|
6
7
|
<script>
|
|
7
8
|
import { equals } from 'rambdax'
|
|
8
9
|
import loadjs from 'loadjs'
|
|
@@ -41,8 +42,14 @@ export default {
|
|
|
41
42
|
this.generateChart()
|
|
42
43
|
},
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
beforeRouteLeave(to, from, next) {
|
|
46
|
+
// Navigate to the new route first
|
|
47
|
+
next()
|
|
48
|
+
|
|
49
|
+
// Once the navigation is done, destroy the chart
|
|
50
|
+
this.$nextTick(() => {
|
|
51
|
+
this.destroyChart(this.chart)
|
|
52
|
+
})
|
|
46
53
|
},
|
|
47
54
|
|
|
48
55
|
methods: {
|
|
@@ -71,9 +78,9 @@ export default {
|
|
|
71
78
|
})
|
|
72
79
|
},
|
|
73
80
|
|
|
74
|
-
destroyChart() {
|
|
75
|
-
if (
|
|
76
|
-
|
|
81
|
+
destroyChart(chart) {
|
|
82
|
+
if (chart) {
|
|
83
|
+
chart.destroy()
|
|
77
84
|
}
|
|
78
85
|
}
|
|
79
86
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
:aria-describedby="errorText ? errorId : null"
|
|
17
17
|
:class="cssClass"
|
|
18
18
|
:value="phoneValue"
|
|
19
|
+
:autocomplete="autocomplete"
|
|
19
20
|
type="tel"
|
|
20
21
|
v-on="mergedListeners"
|
|
21
22
|
/>
|
|
@@ -143,6 +144,11 @@ export default {
|
|
|
143
144
|
value: {
|
|
144
145
|
type: String,
|
|
145
146
|
default: ''
|
|
147
|
+
},
|
|
148
|
+
|
|
149
|
+
autocomplete: {
|
|
150
|
+
type: String,
|
|
151
|
+
default: 'tel'
|
|
146
152
|
}
|
|
147
153
|
},
|
|
148
154
|
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
}"
|
|
11
11
|
>
|
|
12
12
|
<div class="aw-toggle-show-aside__btn-wrapper">
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
<!--
|
|
14
|
+
v-tooltip="
|
|
15
15
|
isAttachedKeyListener && isVisibleTooltip
|
|
16
16
|
? {
|
|
17
17
|
content: $t(
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
flip: false
|
|
25
25
|
}
|
|
26
26
|
: null
|
|
27
|
-
"
|
|
27
|
+
" -->
|
|
28
|
+
<button
|
|
28
29
|
class="aw-toggle-show-aside__arrow-btn"
|
|
29
30
|
@click="onClickToggleShown"
|
|
30
31
|
@mouseenter="onMouseEnterBtn"
|
|
@@ -182,7 +183,7 @@ export default {
|
|
|
182
183
|
}
|
|
183
184
|
},
|
|
184
185
|
|
|
185
|
-
onMouseLeaveBtn() {
|
|
186
|
+
onMouseLeaveBtn($event) {
|
|
186
187
|
this.isShownOnBtn = false
|
|
187
188
|
}
|
|
188
189
|
}
|
|
@@ -5,14 +5,22 @@
|
|
|
5
5
|
'--page-buttons-bottom': _hideBottomBar ? null : '3.5rem'
|
|
6
6
|
}"
|
|
7
7
|
>
|
|
8
|
+
<div
|
|
9
|
+
ref="topScrollMark"
|
|
10
|
+
class="aw-page__top-scroll-mark"
|
|
11
|
+
aria-hidden="true"
|
|
12
|
+
></div>
|
|
13
|
+
|
|
8
14
|
<div class="aw-page__heading">
|
|
9
15
|
<slot name="heading" v-bind="{ titleTag, title, breadcrumb }">
|
|
10
16
|
<AwPageHeader
|
|
11
17
|
ref="header"
|
|
12
18
|
:primary="!isDesktop && isHeaderStuck"
|
|
13
19
|
:title="_title"
|
|
20
|
+
:title-showable="!isDesktop"
|
|
14
21
|
:hide-title="!isDesktop && !isHeaderStuck"
|
|
15
22
|
:container="container"
|
|
23
|
+
is-container
|
|
16
24
|
:is-stuck="isHeaderStuck && !isDesktop"
|
|
17
25
|
hide-menu
|
|
18
26
|
class="aw-page__header"
|
|
@@ -25,11 +33,7 @@
|
|
|
25
33
|
<slot name="headline-breadcrumb">
|
|
26
34
|
<AwButton
|
|
27
35
|
v-if="backUrl || isMenuToggler"
|
|
28
|
-
|
|
29
|
-
isDesktop || !isHeaderStuck
|
|
30
|
-
? 'mono'
|
|
31
|
-
: 'mono-light'
|
|
32
|
-
"
|
|
36
|
+
color="mono"
|
|
33
37
|
:href="backUrl || '/more'"
|
|
34
38
|
:aria-label="breadcrumb?.title ?? $t('Back')"
|
|
35
39
|
class="aw-page__back"
|
|
@@ -83,12 +87,6 @@
|
|
|
83
87
|
{{ _title }}
|
|
84
88
|
</div>
|
|
85
89
|
|
|
86
|
-
<div
|
|
87
|
-
ref="topScrollMark"
|
|
88
|
-
class="aw-page__top-scroll-mark"
|
|
89
|
-
aria-hidden="true"
|
|
90
|
-
></div>
|
|
91
|
-
|
|
92
90
|
<div v-if="hasAside">
|
|
93
91
|
<slot />
|
|
94
92
|
</div>
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="aw-page-single">
|
|
3
|
+
<div
|
|
4
|
+
ref="topScrollMark"
|
|
5
|
+
class="aw-page-single__top-scroll-mark"
|
|
6
|
+
aria-hidden="true"
|
|
7
|
+
></div>
|
|
8
|
+
|
|
3
9
|
<AwPageHeader
|
|
4
10
|
ref="header"
|
|
5
11
|
:progress="isDesktop ? headerProgress : null"
|
|
6
12
|
:primary="isDesktop || isHeaderStuck"
|
|
7
13
|
:title="_title"
|
|
14
|
+
:title-showable="!isDesktop"
|
|
8
15
|
:hide-title="!isDesktop && !isHeaderStuck"
|
|
9
16
|
:hide-menu="hideMenu"
|
|
10
17
|
:is-stuck="isHeaderStuck"
|
|
@@ -13,9 +20,7 @@
|
|
|
13
20
|
<template #breadcrumbs>
|
|
14
21
|
<slot name="breadcrumb">
|
|
15
22
|
<AwButton
|
|
16
|
-
:color="
|
|
17
|
-
isDesktop || isHeaderStuck ? 'mono-light' : 'mono'
|
|
18
|
-
"
|
|
23
|
+
:color="isDesktop ? 'mono-light' : 'mono'"
|
|
19
24
|
:href="backUrl"
|
|
20
25
|
:aria-label="breadcrumb?.title ?? $t('Back')"
|
|
21
26
|
v-on="backUrl ? null : { click: () => $router.back() }"
|
|
@@ -76,12 +81,6 @@
|
|
|
76
81
|
{{ description }}
|
|
77
82
|
</AwDescription>
|
|
78
83
|
|
|
79
|
-
<div
|
|
80
|
-
ref="topScrollMark"
|
|
81
|
-
class="aw-page-single__top-scroll-mark"
|
|
82
|
-
aria-hidden="true"
|
|
83
|
-
></div>
|
|
84
|
-
|
|
85
84
|
<div
|
|
86
85
|
class="aw-page-single__content"
|
|
87
86
|
:class="{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
:class="{
|
|
5
5
|
'aw-page-header--primary': primary,
|
|
6
6
|
'aw-page-header--is-stuck': isStuck,
|
|
7
|
-
'aw-page-header--container':
|
|
7
|
+
'aw-page-header--container': isContainer
|
|
8
8
|
}"
|
|
9
9
|
:style="{ '--header-container-width': headerContainerWidth }"
|
|
10
10
|
>
|
|
@@ -15,7 +15,11 @@
|
|
|
15
15
|
<h1
|
|
16
16
|
v-if="title"
|
|
17
17
|
class="aw-page-header__title"
|
|
18
|
-
:class="{
|
|
18
|
+
:class="{
|
|
19
|
+
'sr-only': !titleShowable && hideTitle,
|
|
20
|
+
'aw-page-header__title--showable': titleShowable,
|
|
21
|
+
'aw-page-header__title--visible': !hideTitle
|
|
22
|
+
}"
|
|
19
23
|
>
|
|
20
24
|
{{ title }}
|
|
21
25
|
</h1>
|
|
@@ -63,11 +67,15 @@ export default {
|
|
|
63
67
|
|
|
64
68
|
hideTitle: Boolean,
|
|
65
69
|
|
|
70
|
+
titleShowable: Boolean,
|
|
71
|
+
|
|
66
72
|
hideMenu: Boolean,
|
|
67
73
|
|
|
68
74
|
primary: Boolean,
|
|
69
75
|
|
|
70
|
-
isStuck: Boolean
|
|
76
|
+
isStuck: Boolean,
|
|
77
|
+
|
|
78
|
+
isContainer: Boolean
|
|
71
79
|
},
|
|
72
80
|
|
|
73
81
|
computed: {
|
|
@@ -85,6 +93,8 @@ export default {
|
|
|
85
93
|
case 'small':
|
|
86
94
|
name = '--container-small-width'
|
|
87
95
|
break
|
|
96
|
+
case 'full':
|
|
97
|
+
return '100%'
|
|
88
98
|
}
|
|
89
99
|
|
|
90
100
|
return name
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.112.0",
|
|
4
4
|
"description": "User Interface (UI) components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"rollup-plugin-visualizer": "^2.6.0",
|
|
115
115
|
"rollup-plugin-vue": "^5.0.1"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "c8bbf723d678f1cbb8891251a2c6cf0566c73b8f"
|
|
118
118
|
}
|