@iamproperty/components 5.3.0-beta3 → 5.3.0-beta5
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/assets/css/components/component.native.css +1 -1
- package/assets/css/components/component.native.css.map +1 -1
- package/assets/css/components/component.reset.css +1 -1
- package/assets/css/components/component.reset.css.map +1 -1
- package/assets/css/components/nav.css +1 -1
- package/assets/css/components/nav.css.map +1 -1
- package/assets/css/components/nav.docs.css +1 -1
- package/assets/css/components/nav.docs.css.map +1 -1
- package/assets/css/components/nav.global.css +1 -1
- package/assets/css/components/nav.global.css.map +1 -1
- package/assets/css/core.min.css +1 -1
- package/assets/css/core.min.css.map +1 -1
- package/assets/css/style.min.css +1 -1
- package/assets/css/style.min.css.map +1 -1
- package/assets/js/components/accordion/accordion.component.min.js +1 -1
- package/assets/js/components/actionbar/actionbar.component.min.js +1 -1
- package/assets/js/components/address-lookup/address-lookup.component.min.js +1 -1
- package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
- package/assets/js/components/card/card.component.min.js +1 -1
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
- package/assets/js/components/fileupload/fileupload.component.min.js +1 -1
- package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
- package/assets/js/components/header/header.component.min.js +1 -1
- package/assets/js/components/nav/nav.component.js +3 -2
- package/assets/js/components/nav/nav.component.min.js +7 -7
- package/assets/js/components/nav/nav.component.min.js.map +1 -1
- package/assets/js/components/notification/notification.component.min.js +1 -1
- package/assets/js/components/pagination/pagination.component.min.js +1 -1
- package/assets/js/components/search/search.component.js +6 -3
- package/assets/js/components/search/search.component.min.js +8 -6
- package/assets/js/components/search/search.component.min.js.map +1 -1
- package/assets/js/components/table/table.component.min.js +1 -1
- package/assets/js/components/tabs/tabs.component.min.js +1 -1
- package/assets/js/dynamic.min.js +1 -1
- package/assets/js/scripts.bundle.js +1 -1
- package/assets/js/scripts.bundle.min.js +1 -1
- package/assets/sass/components/component.native.scss +38 -0
- package/assets/sass/components/nav.docs.scss +3 -0
- package/assets/sass/components/nav.global.scss +223 -113
- package/assets/sass/components/nav.scss +50 -18
- package/assets/sass/elements/buttons.scss +23 -1
- package/assets/sass/elements/dialog.scss +15 -0
- package/assets/sass/elements/icons.scss +1 -1
- package/assets/ts/components/nav/nav.component.ts +3 -2
- package/assets/ts/components/search/search.component.ts +8 -3
- package/dist/components.es.js +206 -206
- package/dist/components.umd.js +50 -92
- package/package.json +1 -1
- package/src/components/Nav/Nav.vue +1 -1
|
@@ -76,19 +76,6 @@ nav:has(iam-nav.nav--sticky) {
|
|
|
76
76
|
}
|
|
77
77
|
// #endregion
|
|
78
78
|
|
|
79
|
-
// #region before component is loaded
|
|
80
|
-
iam-nav:not(:defined) {
|
|
81
|
-
|
|
82
|
-
> *:not([slot="logo"]) {
|
|
83
|
-
display: none;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&:not(:target) > *:not(.brand) {
|
|
87
|
-
display: none;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
// #endregion
|
|
91
|
-
|
|
92
79
|
// #region General styles
|
|
93
80
|
iam-nav {
|
|
94
81
|
|
|
@@ -116,6 +103,7 @@ iam-nav {
|
|
|
116
103
|
padding: 0;
|
|
117
104
|
text-decoration: none;
|
|
118
105
|
min-width: min(var(--svg-width), 14rem);
|
|
106
|
+
margin-right: auto;
|
|
119
107
|
}
|
|
120
108
|
|
|
121
109
|
a:not([slot="logo"]):not(.btn):not(:has(iam-card)) {
|
|
@@ -167,104 +155,115 @@ iam-nav details {
|
|
|
167
155
|
|
|
168
156
|
// #endregion
|
|
169
157
|
|
|
158
|
+
|
|
170
159
|
// #region mobile and tablet mega menu
|
|
171
|
-
@media screen and (max-width: 62em) {
|
|
172
|
-
iam-nav details {
|
|
173
160
|
|
|
174
|
-
|
|
161
|
+
@mixin mobDetails() {
|
|
162
|
+
background-color: var(--colour-canvas);
|
|
175
163
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
164
|
+
@include light-mode() {
|
|
165
|
+
background-color: #EEEEEE;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
margin-left: -1.5rem;
|
|
169
|
+
margin-right: -1.5rem;
|
|
170
|
+
padding-inline: 1.5rem;
|
|
171
|
+
width: auto;
|
|
172
|
+
position: relative;
|
|
179
173
|
|
|
174
|
+
summary {
|
|
175
|
+
|
|
176
|
+
background-color: var(--colour-white);
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
@include dark-mode() {
|
|
180
|
+
|
|
181
|
+
background-color: var(--colour-canvas-2);
|
|
182
|
+
}
|
|
183
|
+
display:block;
|
|
184
|
+
border: none;
|
|
185
|
+
color: var(--colour-link);
|
|
186
|
+
margin: 0;
|
|
187
|
+
|
|
180
188
|
margin-left: -1.5rem;
|
|
181
189
|
margin-right: -1.5rem;
|
|
182
|
-
padding
|
|
183
|
-
|
|
190
|
+
padding: 1.5rem 4rem 1.5rem 1.5rem;
|
|
191
|
+
font-size: 1rem;
|
|
192
|
+
line-height: 1.5rem;
|
|
193
|
+
min-height: 1.5rem;
|
|
184
194
|
position: relative;
|
|
195
|
+
font-weight: normal;
|
|
185
196
|
|
|
186
|
-
|
|
197
|
+
&:after {
|
|
198
|
+
content: "\f055";
|
|
199
|
+
display: block;
|
|
200
|
+
font-size: rem(24);
|
|
201
|
+
font-weight: 300;
|
|
202
|
+
position: absolute;
|
|
203
|
+
top: 1.5rem;
|
|
204
|
+
right: 1.5rem;
|
|
205
|
+
font-family: "Font Awesome 6 Pro";
|
|
206
|
+
line-height: 1em;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
187
209
|
|
|
188
|
-
|
|
210
|
+
&[open] > summary:after {
|
|
211
|
+
content: "\f056";
|
|
212
|
+
font-weight: bold;
|
|
213
|
+
}
|
|
189
214
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
font-size: 1rem;
|
|
204
|
-
line-height: 1.5rem;
|
|
205
|
-
min-height: 1.5rem;
|
|
206
|
-
position: relative;
|
|
207
|
-
font-weight: normal;
|
|
215
|
+
a {
|
|
216
|
+
text-decoration: none;
|
|
217
|
+
display:block;
|
|
218
|
+
border: none;
|
|
219
|
+
color: var(--colour-link);
|
|
220
|
+
margin: 0;
|
|
221
|
+
margin-left: 3rem;
|
|
222
|
+
padding: 1.5rem 0 1.5rem 0;
|
|
223
|
+
font-size: 1rem;
|
|
224
|
+
line-height: 1.5rem;
|
|
225
|
+
min-height: 1.5rem;
|
|
226
|
+
position: relative;
|
|
227
|
+
font-weight: normal;
|
|
208
228
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
font-weight: 300;
|
|
214
|
-
position: absolute;
|
|
215
|
-
top: 1.5rem;
|
|
216
|
-
right: 1.5rem;
|
|
217
|
-
font-family: "Font Awesome 6 Pro";
|
|
218
|
-
line-height: 1em;
|
|
219
|
-
}
|
|
229
|
+
&:after {
|
|
230
|
+
background: var(--colour-border)!important;
|
|
231
|
+
top: calc(100% - 2px)!important;
|
|
232
|
+
width: 100%!important;
|
|
220
233
|
}
|
|
234
|
+
}
|
|
221
235
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
236
|
+
// Hide cards
|
|
237
|
+
a:has(iam-card){
|
|
238
|
+
display: none!important;
|
|
239
|
+
}
|
|
226
240
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
color: var(--colour-link);
|
|
232
|
-
margin: 0;
|
|
233
|
-
margin-left: 3rem;
|
|
234
|
-
padding: 1.5rem 0 1.5rem 0;
|
|
235
|
-
font-size: 1rem;
|
|
236
|
-
line-height: 1.5rem;
|
|
237
|
-
min-height: 1.5rem;
|
|
238
|
-
position: relative;
|
|
239
|
-
font-weight: normal;
|
|
241
|
+
> div a:last-child {
|
|
242
|
+
|
|
243
|
+
margin-bottom: 0!important;
|
|
244
|
+
}
|
|
240
245
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
width: 100%!important;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
246
|
+
> div a:last-child:after {
|
|
247
|
+
display: none;
|
|
248
|
+
}
|
|
247
249
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
&:after {
|
|
251
|
+
content: "";
|
|
252
|
+
position: absolute;
|
|
253
|
+
top: calc(100% - 2px);
|
|
254
|
+
left: 1.5rem;
|
|
255
|
+
height: 2px;
|
|
256
|
+
width: calc(100% - 3rem);
|
|
257
|
+
display: block;
|
|
258
|
+
height: 2px;
|
|
259
|
+
background-color: var(--colour-border) !important;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
252
262
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
263
|
+
@media screen and (max-width: 62em) {
|
|
264
|
+
iam-nav details {
|
|
256
265
|
|
|
257
|
-
|
|
258
|
-
content: "";
|
|
259
|
-
position: absolute;
|
|
260
|
-
top: calc(100% - 2px);
|
|
261
|
-
left: 1.5rem;
|
|
262
|
-
height: 2px;
|
|
263
|
-
width: calc(100% - 3rem);
|
|
264
|
-
display: block;
|
|
265
|
-
height: 2px;
|
|
266
|
-
background-color: var(--colour-border) !important;
|
|
267
|
-
}
|
|
266
|
+
@include mobDetails();
|
|
268
267
|
|
|
269
268
|
// Sub details
|
|
270
269
|
details {
|
|
@@ -298,30 +297,38 @@ iam-nav details {
|
|
|
298
297
|
}
|
|
299
298
|
}
|
|
300
299
|
}
|
|
300
|
+
|
|
301
301
|
// #endregion
|
|
302
302
|
|
|
303
303
|
// #region tablet mega menu tweaks
|
|
304
|
-
@media screen and (max-width: 62em) and (min-width: 36em) {
|
|
305
304
|
|
|
306
|
-
|
|
305
|
+
@mixin tabletDetails() {
|
|
306
|
+
|
|
307
|
+
padding-right: rem(40);
|
|
308
|
+
margin-right: rem(-40);
|
|
309
|
+
|
|
310
|
+
&:after {
|
|
311
|
+
|
|
312
|
+
width: calc(100% - 4rem);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
summary {
|
|
316
|
+
|
|
307
317
|
padding-right: rem(40);
|
|
308
318
|
margin-right: rem(-40);
|
|
309
319
|
|
|
310
320
|
&:after {
|
|
311
321
|
|
|
312
|
-
|
|
322
|
+
right: 2.5rem;
|
|
313
323
|
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
padding-right: 5rem;
|
|
318
|
-
margin-right: rem(-40);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
319
326
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
327
|
+
@media screen and (max-width: 62em) and (min-width: 36em) {
|
|
328
|
+
|
|
329
|
+
iam-nav details {
|
|
330
|
+
|
|
331
|
+
@include tabletDetails();
|
|
325
332
|
}
|
|
326
333
|
|
|
327
334
|
iam-nav details details[open] + details:before {
|
|
@@ -330,11 +337,22 @@ iam-nav details {
|
|
|
330
337
|
margin-right: rem(-40);
|
|
331
338
|
}
|
|
332
339
|
}
|
|
340
|
+
|
|
341
|
+
@media screen and (min-width: 62em) {
|
|
342
|
+
|
|
343
|
+
iam-nav .nav--menu details {
|
|
344
|
+
|
|
345
|
+
@include mobDetails();
|
|
346
|
+
@include tabletDetails();
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
333
350
|
// #endregion
|
|
334
351
|
|
|
335
352
|
// #region Desktop mega menu
|
|
336
353
|
@include media-breakpoint-up(md) {
|
|
337
|
-
iam-nav details
|
|
354
|
+
iam-nav > details,
|
|
355
|
+
iam-nav *:not(.nav--menu) > details {
|
|
338
356
|
|
|
339
357
|
width: auto;
|
|
340
358
|
|
|
@@ -531,7 +549,7 @@ iam-nav details {
|
|
|
531
549
|
}
|
|
532
550
|
}
|
|
533
551
|
|
|
534
|
-
|
|
552
|
+
details > summary {
|
|
535
553
|
|
|
536
554
|
padding-right: 0;
|
|
537
555
|
background: transparent;
|
|
@@ -542,7 +560,7 @@ iam-nav details {
|
|
|
542
560
|
}
|
|
543
561
|
|
|
544
562
|
details:not(:first-child) > summary {
|
|
545
|
-
|
|
563
|
+
|
|
546
564
|
margin-left: rem(32);
|
|
547
565
|
}
|
|
548
566
|
}
|
|
@@ -565,13 +583,105 @@ iam-nav details {
|
|
|
565
583
|
|
|
566
584
|
// #region Dual navbar in desktop
|
|
567
585
|
@include media-breakpoint-up(md) {
|
|
568
|
-
iam-nav {
|
|
586
|
+
iam-nav:has([slot="dual"]) {
|
|
569
587
|
.brand:has(~ [slot="dual"]) {
|
|
570
|
-
margin-right: rem(24);
|
|
588
|
+
margin-right: rem(24)!important;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
*:not([slot="dual"]):has(+ [slot="dual"]) + [slot="dual"] {
|
|
592
|
+
margin-left: auto!important;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.btn[slot="dual"] {
|
|
596
|
+
margin-left: 0;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
&::part(btn-menu) {
|
|
600
|
+
margin-left: 1rem!important;
|
|
571
601
|
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
// #endregion
|
|
605
|
+
|
|
606
|
+
// #region compact menus on mobile
|
|
607
|
+
iam-nav > .dialog__wrapper {
|
|
608
|
+
|
|
609
|
+
.dialog--list {
|
|
610
|
+
|
|
611
|
+
a {
|
|
612
|
+
font-size: 1rem;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
@media screen and (max-width: 64em) {
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
iam-nav > .dialog__wrapper {
|
|
621
|
+
|
|
622
|
+
width: 100%;
|
|
623
|
+
|
|
624
|
+
.btn-compact {
|
|
625
|
+
display: none!important;
|
|
626
|
+
}
|
|
627
|
+
.dialog--list {
|
|
628
|
+
|
|
629
|
+
display: contents!important;
|
|
630
|
+
|
|
631
|
+
a {
|
|
632
|
+
font-size: 1rem;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
iam-nav > a + :is(.dialog__wrapper, .btn-compact) {
|
|
638
|
+
margin-top: 1.5rem;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
iam-nav > .dialog__wrapper .dialog--list a,
|
|
642
|
+
iam-nav .btn-compact {
|
|
643
|
+
--compact-size: 2rem;
|
|
644
|
+
all: unset;
|
|
645
|
+
display: block!important;
|
|
646
|
+
font-size: rem(14)!important;
|
|
647
|
+
line-height: rem(32)!important;
|
|
648
|
+
height: rem(32)!important;
|
|
649
|
+
min-height: rem(32)!important;
|
|
650
|
+
max-height: rem(32)!important;
|
|
651
|
+
width: 100%!important;
|
|
652
|
+
margin: 0!important;
|
|
653
|
+
cursor: pointer;
|
|
654
|
+
color: var(--colour-link);
|
|
655
|
+
font-weight: normal!important;
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
&:where(:hover,:focus,.selected,[aria-current=page]) {
|
|
659
|
+
text-decoration: underline;
|
|
660
|
+
text-underline-offset: 0.3em;
|
|
661
|
+
text-decoration-thickness: 2px;
|
|
662
|
+
text-decoration-color: var(--colour-underline);
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
&:before {
|
|
667
|
+
display: inline-block;
|
|
668
|
+
width: auto;
|
|
669
|
+
position: static;
|
|
670
|
+
margin-right: 0.5rem;
|
|
671
|
+
font-size: 0.875rem !important;
|
|
672
|
+
text-decoration: none!important;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
&:after {
|
|
676
|
+
display: none;
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
iam-nav > .dialog__wrapper,
|
|
681
|
+
iam-nav .btn-compact {
|
|
572
682
|
|
|
573
|
-
|
|
574
|
-
margin-
|
|
683
|
+
&:has(+ *:not(.dialog__wrapper,.btn-compact)){
|
|
684
|
+
margin-bottom: 1.5rem!important;
|
|
575
685
|
}
|
|
576
686
|
}
|
|
577
687
|
}
|
|
@@ -7,11 +7,6 @@
|
|
|
7
7
|
align-items: center!important;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
::slotted(.brand) {
|
|
11
|
-
|
|
12
|
-
margin-right: auto!important;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
10
|
.btn-menu {
|
|
16
11
|
|
|
17
12
|
padding: 0;
|
|
@@ -88,7 +83,7 @@
|
|
|
88
83
|
|
|
89
84
|
width: fit-content;
|
|
90
85
|
height: auto;
|
|
91
|
-
margin: 0 0 0 3rem
|
|
86
|
+
margin: 0 0 0 3rem;
|
|
92
87
|
padding: 0!important;
|
|
93
88
|
text-indent: 0;
|
|
94
89
|
padding-right: 0!important;
|
|
@@ -101,10 +96,6 @@
|
|
|
101
96
|
@include light-mode() {
|
|
102
97
|
|
|
103
98
|
@include reset-colours();
|
|
104
|
-
|
|
105
|
-
&:is(:hover,:focus){
|
|
106
|
-
color: var(--colour-inverted);
|
|
107
|
-
}
|
|
108
99
|
}
|
|
109
100
|
|
|
110
101
|
margin: 0!important;
|
|
@@ -130,6 +121,15 @@
|
|
|
130
121
|
}
|
|
131
122
|
}
|
|
132
123
|
|
|
124
|
+
:host(.bg-primary) .btn {
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
&:is(:hover,:focus){
|
|
128
|
+
color: var(--colour-inverted);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
}
|
|
132
|
+
|
|
133
133
|
// #region mobile and tablet menu
|
|
134
134
|
@media screen and (max-width: 62em) {
|
|
135
135
|
:host > .container {
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
::slotted(a:not([slot="logo"])) {
|
|
253
|
+
::slotted(a:not([slot="logo"]):not(.btn-compact)) {
|
|
254
254
|
display: block!important;
|
|
255
255
|
line-height: rem(20)!important;
|
|
256
256
|
padding: rem(24) 0!important;
|
|
@@ -429,9 +429,8 @@
|
|
|
429
429
|
margin-right: 0!important;
|
|
430
430
|
}
|
|
431
431
|
|
|
432
|
-
::slotted(a:not([slot="logo"])) {
|
|
432
|
+
::slotted(a:not([slot="logo"]):not(.btn-compact)) {
|
|
433
433
|
|
|
434
|
-
margin-left: rem(32)!important;
|
|
435
434
|
font-size: rem(16)!important;
|
|
436
435
|
font-weight: normal!important;
|
|
437
436
|
|
|
@@ -440,6 +439,11 @@
|
|
|
440
439
|
}
|
|
441
440
|
}
|
|
442
441
|
|
|
442
|
+
::slotted(a:not([slot="logo"]):not([slot="dual"])) {
|
|
443
|
+
|
|
444
|
+
margin-left: rem(32)!important;
|
|
445
|
+
}
|
|
446
|
+
|
|
443
447
|
::slotted(button) {
|
|
444
448
|
|
|
445
449
|
margin-left: rem(48)!important;
|
|
@@ -581,11 +585,11 @@
|
|
|
581
585
|
|
|
582
586
|
&:before {
|
|
583
587
|
display: block ;
|
|
584
|
-
width: 100
|
|
588
|
+
width: calc(100% + 3rem);
|
|
585
589
|
border-top: 2px solid var(--colour-border);
|
|
586
590
|
z-index: 1;
|
|
587
|
-
padding
|
|
588
|
-
margin: 0;
|
|
591
|
+
padding: rem(24) 1.5rem;
|
|
592
|
+
margin: 0 -1.5rem;
|
|
589
593
|
font-family: $headings-font-family;
|
|
590
594
|
font-style: $headings-font-style;
|
|
591
595
|
font-weight: $headings-font-weight;
|
|
@@ -599,6 +603,9 @@
|
|
|
599
603
|
|
|
600
604
|
font-size: rem(map-get($heading-sizes,"h3_fs_sm"));
|
|
601
605
|
line-height: rem(map-get($heading-sizes,"h3_lh_sm"));
|
|
606
|
+
margin-right: -2.5rem;
|
|
607
|
+
padding-right: 2.5rem;
|
|
608
|
+
width: calc(100% + 4rem);
|
|
602
609
|
}
|
|
603
610
|
}
|
|
604
611
|
|
|
@@ -606,9 +613,13 @@
|
|
|
606
613
|
content: attr(data-title);
|
|
607
614
|
}
|
|
608
615
|
|
|
609
|
-
@include media-breakpoint-up(
|
|
616
|
+
@include media-breakpoint-up(sm) {
|
|
610
617
|
|
|
618
|
+
padding-right: 2.5rem !important;
|
|
619
|
+
}
|
|
611
620
|
|
|
621
|
+
@include media-breakpoint-up(md) {
|
|
622
|
+
|
|
612
623
|
height: calc(100vh - var(--nav-height));
|
|
613
624
|
top: 100%;
|
|
614
625
|
}
|
|
@@ -635,4 +646,25 @@
|
|
|
635
646
|
backdrop-filter: blur(2px);
|
|
636
647
|
}
|
|
637
648
|
}
|
|
638
|
-
// #endregion
|
|
649
|
+
// #endregion
|
|
650
|
+
|
|
651
|
+
// #region compressed nav
|
|
652
|
+
@include media-breakpoint-up(md) {
|
|
653
|
+
:host(.nav--md-compressed) .buttons-holder button {
|
|
654
|
+
margin-left: 1.5rem!important;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
:host(.nav--md-compressed) .btn-menu .btn i[class*=fa-] {
|
|
658
|
+
margin-right: 0.5rem !important;
|
|
659
|
+
margin-left: -0.5rem !important;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
:host(.nav--md-compressed) .btn-menu .btn {
|
|
663
|
+
--btn-padding-inline: 2.5rem;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
:host(.nav--md-compressed) ::slotted(a:not([slot=logo]):not([slot=secondary])){
|
|
667
|
+
margin-left: 1.5rem!important;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
// #endregion
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
display: inline-block;
|
|
27
|
-
font-weight: bold
|
|
27
|
+
font-weight: bold;
|
|
28
28
|
text-align: left;
|
|
29
29
|
text-decoration: none;
|
|
30
30
|
vertical-align: middle;
|
|
@@ -275,6 +275,28 @@ a:is(:hover, :focus, .hover, :active, .active):not([disabled]) .btn-secondary,
|
|
|
275
275
|
color: var(--colour-inverted);
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
+
|
|
279
|
+
&[data-number] {
|
|
280
|
+
position: relative;
|
|
281
|
+
}
|
|
282
|
+
&[data-number]:after {
|
|
283
|
+
content: attr(data-number);
|
|
284
|
+
position: absolute;
|
|
285
|
+
top: 0.5em;
|
|
286
|
+
z-index: 99;
|
|
287
|
+
background: var(--colour-danger);
|
|
288
|
+
height: 1.5em;
|
|
289
|
+
width: 1.5em;
|
|
290
|
+
border-radius: 50%;
|
|
291
|
+
text-indent: 0;
|
|
292
|
+
left: 50%;
|
|
293
|
+
font-size: 0.5em;
|
|
294
|
+
line-height: 1.5em;
|
|
295
|
+
text-align: center;
|
|
296
|
+
color: white;
|
|
297
|
+
letter-spacing: -0.1em;
|
|
298
|
+
font-family: arial, sans-serif;
|
|
299
|
+
}
|
|
278
300
|
}
|
|
279
301
|
// #endregion
|
|
280
302
|
|
|
@@ -607,12 +607,27 @@ dialog::backdrop {
|
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
|
|
610
|
+
a {
|
|
611
|
+
|
|
612
|
+
padding: #{rem(6)};
|
|
613
|
+
|
|
614
|
+
&:not(:hover,:focus,:active){
|
|
615
|
+
border-color: transparent;
|
|
616
|
+
}
|
|
617
|
+
margin: 0;
|
|
618
|
+
|
|
619
|
+
&:after {
|
|
620
|
+
display: none;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
|
|
610
624
|
.btn-action {
|
|
611
625
|
&:not(:hover,:focus,:active){
|
|
612
626
|
border-color: transparent;
|
|
613
627
|
}
|
|
614
628
|
margin: 0;
|
|
615
629
|
}
|
|
630
|
+
|
|
616
631
|
}
|
|
617
632
|
|
|
618
633
|
dialog[open] {
|
|
@@ -28,7 +28,7 @@ class iamNav extends HTMLElement {
|
|
|
28
28
|
<div class="container">
|
|
29
29
|
<slot name="logo"></slot>
|
|
30
30
|
<div class="buttons-holder"></div>
|
|
31
|
-
<button class="btn-menu">Menu<i class="fa-regular fa-bars"></i><i class="fa-regular fa-xmark-large"></i></button>
|
|
31
|
+
<button class="btn-menu" part="btn-menu">Menu<i class="fa-regular fa-bars"></i><i class="fa-regular fa-xmark-large"></i></button>
|
|
32
32
|
|
|
33
33
|
<div class="menu__outer">
|
|
34
34
|
<div class="menu closed">
|
|
@@ -91,6 +91,7 @@ class iamNav extends HTMLElement {
|
|
|
91
91
|
const button = document.createElement('button');
|
|
92
92
|
button.setAttribute('slot',title);
|
|
93
93
|
button.classList.add('btn-menu');
|
|
94
|
+
button.setAttribute('part','btn-menu');
|
|
94
95
|
button.innerHTML = `<span class="btn btn-primary"><span>${title}</span><i class="${iconClass}"></i><i class="fa-regular fa-xmark-large"></i></span>`;
|
|
95
96
|
buttonsHolder.insertAdjacentElement('beforeend',button);
|
|
96
97
|
|
|
@@ -231,7 +232,7 @@ class iamNav extends HTMLElement {
|
|
|
231
232
|
|
|
232
233
|
if (event && event.target instanceof HTMLElement && event.target.closest('summary')){
|
|
233
234
|
|
|
234
|
-
if(window.innerWidth > 992){
|
|
235
|
+
if(window.innerWidth > 992 && !event.target.closest('.nav--menu')){
|
|
235
236
|
|
|
236
237
|
let summary = event.target.closest('summary');
|
|
237
238
|
let details = summary.closest('details');
|
|
@@ -28,7 +28,9 @@ class iamSearch extends HTMLElement {
|
|
|
28
28
|
input:not(.is-invalid):not(:invalid) {
|
|
29
29
|
background: none!important;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
.optional-text {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
32
34
|
</style>
|
|
33
35
|
<link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous" />
|
|
34
36
|
<slot></slot>
|
|
@@ -83,7 +85,7 @@ class iamSearch extends HTMLElement {
|
|
|
83
85
|
function checkMatch(){
|
|
84
86
|
|
|
85
87
|
let match = datalist.querySelector(`option[value="${displayInputField.value}"]`);
|
|
86
|
-
let subMatch = datalist.querySelector(`option[value*=
|
|
88
|
+
let subMatch = datalist.querySelector(`option[value*="${displayInputField.value}" i]`);
|
|
87
89
|
|
|
88
90
|
if(match){
|
|
89
91
|
inputField.value = match.getAttribute('data-value');
|
|
@@ -145,8 +147,11 @@ class iamSearch extends HTMLElement {
|
|
|
145
147
|
let actualValue = resolvePath(item, valueSchema, '');
|
|
146
148
|
let displayValue = resolvePath(item, displaySchema, '').replace('\n',', ');
|
|
147
149
|
|
|
150
|
+
console.log(displayValue);
|
|
151
|
+
|
|
152
|
+
|
|
148
153
|
if(!datalist.querySelector(`option[data-value="${actualValue}"]`))
|
|
149
|
-
listString += `<option value="${displayValue}" data-value=
|
|
154
|
+
listString += `<option value="${displayValue}" data-value="${actualValue}"></option>`;
|
|
150
155
|
});
|
|
151
156
|
}
|
|
152
157
|
else if (typeof loopValues == 'object'){
|