@iamproperty/components 7.6.3--beta3 → 7.6.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.
- package/assets/css/components/actionbar.component.css +1 -1
- package/assets/css/components/actionbar.component.css.map +1 -1
- package/assets/css/components/address-lookup.component.css +1 -1
- package/assets/css/components/address-lookup.component.css.map +1 -1
- package/assets/css/components/barchart.component.css +1 -1
- package/assets/css/components/barchart.component.css.map +1 -1
- package/assets/css/components/calendar.component.css +1 -1
- package/assets/css/components/calendar.component.css.map +1 -1
- package/assets/css/components/card.component.css +1 -1
- package/assets/css/components/card.component.css.map +1 -1
- package/assets/css/components/carousel.component.css +1 -1
- package/assets/css/components/carousel.component.css.map +1 -1
- package/assets/css/components/collapsible-side.css +1 -1
- package/assets/css/components/collapsible-side.css.map +1 -1
- package/assets/css/components/content.component.css +1 -1
- package/assets/css/components/content.component.css.map +1 -1
- package/assets/css/components/doughnutchart.component.css +1 -1
- package/assets/css/components/doughnutchart.component.css.map +1 -1
- package/assets/css/components/fileupload.css +1 -1
- package/assets/css/components/fileupload.css.map +1 -1
- package/assets/css/components/modal.component.css +1 -1
- package/assets/css/components/modal.component.css.map +1 -1
- package/assets/css/components/multi-step-modal.component.css +1 -1
- package/assets/css/components/multi-step-modal.component.css.map +1 -1
- package/assets/css/components/multiselect.css +1 -1
- package/assets/css/components/multiselect.css.map +1 -1
- package/assets/css/components/nav.component.css +1 -1
- package/assets/css/components/nav.component.css.map +1 -1
- package/assets/css/components/pagination.css +1 -1
- package/assets/css/components/pagination.css.map +1 -1
- package/assets/css/components/rating.component.css +1 -0
- package/assets/css/components/rating.component.css.map +1 -0
- package/assets/css/components/slider.css +1 -1
- package/assets/css/components/slider.css.map +1 -1
- package/assets/css/components/split-button.component.css +1 -1
- package/assets/css/components/split-button.component.css.map +1 -1
- package/assets/css/components/tabs.component.css +1 -1
- package/assets/css/components/tabs.component.css.map +1 -1
- package/assets/css/components/tag.component.css +1 -1
- package/assets/css/components/tag.component.css.map +1 -1
- package/assets/css/components/video-modal.component.css +1 -1
- package/assets/css/components/video-modal.component.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 +2 -2
- package/assets/js/components/address-lookup/address-lookup.component.js +91 -66
- package/assets/js/components/address-lookup/address-lookup.component.min.js +5 -6
- package/assets/js/components/address-lookup/address-lookup.component.min.js.map +1 -1
- package/assets/js/components/advanced-select/advanced-select.component.min.js +3 -3
- package/assets/js/components/advanced-select/advanced-select.component.min.js.map +1 -1
- package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
- package/assets/js/components/barchart/barchart.component.min.js +4 -4
- package/assets/js/components/bento-grid/bento-grid.component.min.js +1 -1
- package/assets/js/components/calendar/calendar.component.min.js +4 -4
- package/assets/js/components/card/card.component.min.js +2 -2
- package/assets/js/components/carousel/carousel.component.min.js +3 -3
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +2 -2
- package/assets/js/components/content/content.component.min.js +2 -2
- package/assets/js/components/darkmode/darkmode.component.min.js +1 -1
- package/assets/js/components/doughnutchart/doughnutchart.component.min.js +3 -3
- package/assets/js/components/fileupload/fileupload.component.min.js +2 -2
- package/assets/js/components/filter-card/filter-card.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/inline-edit/inline-edit.component.min.js +1 -1
- package/assets/js/components/input/input.component.min.js +1 -1
- package/assets/js/components/input-range/input-range.component.min.js +1 -1
- package/assets/js/components/marketing/marketing.component.min.js +1 -1
- package/assets/js/components/menu/menu.component.min.js +1 -1
- package/assets/js/components/milestone/milestone.component.min.js +1 -1
- package/assets/js/components/milestone-group/milestone-group.component.min.js +1 -1
- package/assets/js/components/modal/modal.component.js +47 -24
- package/assets/js/components/modal/modal.component.min.js +10 -11
- package/assets/js/components/modal/modal.component.min.js.map +1 -1
- package/assets/js/components/multi-step/multi-step.component.min.js +1 -1
- package/assets/js/components/multi-step-modal/multi-step-modal.component.min.js +3 -3
- package/assets/js/components/multiselect/multiselect.component.min.js +2 -2
- package/assets/js/components/nav/nav.component.min.js +2 -2
- package/assets/js/components/notification/notification.component.min.js +1 -1
- package/assets/js/components/pagination/pagination.component.min.js +3 -3
- package/assets/js/components/password/password.component.min.js +1 -1
- package/assets/js/components/popover/popover.component.min.js +1 -1
- package/assets/js/components/rank/rank.component.min.js +1 -1
- package/assets/js/components/rankings/rankings.component.min.js +1 -1
- package/assets/js/components/rating/rating.component.js +66 -0
- package/assets/js/components/rating/rating.component.min.js +15 -0
- package/assets/js/components/rating/rating.component.min.js.map +1 -0
- package/assets/js/components/record-card/record-card.component.min.js +1 -1
- package/assets/js/components/search/search.component.min.js +5 -5
- package/assets/js/components/search/search.component.min.js.map +1 -1
- package/assets/js/components/slider/slider.component.min.js +2 -2
- package/assets/js/components/split-button/split-button.component.min.js +2 -2
- package/assets/js/components/std-address-lookup/std-address-lookup.component.js +383 -383
- package/assets/js/components/std-address-lookup/std-address-lookup.component.min.js +18 -19
- package/assets/js/components/std-address-lookup/std-address-lookup.component.min.js.map +1 -1
- package/assets/js/components/table/table.component.min.js +1 -1
- package/assets/js/components/table-ajax/table-ajax.component.min.js +1 -1
- package/assets/js/components/table-basic/table-basic.component.min.js +1 -1
- package/assets/js/components/table-no-submit/table-no-submit.component.min.js +1 -1
- package/assets/js/components/table-submit/table-submit.component.min.js +1 -1
- package/assets/js/components/tabs/tabs.component.min.js +3 -3
- package/assets/js/components/tag/tag.component.min.js +2 -2
- package/assets/js/components/tooltip/tooltip.component.min.js +1 -1
- package/assets/js/components/video-card/video-card.component.min.js +1 -1
- package/assets/js/components/video-modal/video-modal.component.min.js +2 -2
- package/assets/js/components/word-count/word-count.component.min.js +1 -1
- package/assets/js/modules/advanced-select.js +11 -9
- package/assets/js/scripts.bundle.js +2 -2
- package/assets/js/scripts.bundle.js.map +1 -1
- package/assets/js/scripts.bundle.min.js +2 -2
- package/assets/js/scripts.bundle.min.js.map +1 -1
- package/assets/js/scripts.js +2 -4
- package/assets/sass/components/modal.component.scss +179 -198
- package/assets/sass/components/rating.component.css +212 -0
- package/assets/sass/elements/button__group.css +25 -4
- package/assets/sass/elements/buttons--compact.scss +12 -3
- package/assets/sass/elements/buttons--special.scss +2 -1
- package/assets/sass/elements/forms.scss +33 -21
- package/assets/sass/elements/highlight.css +7 -0
- package/assets/sass/elements/label.scss +17 -0
- package/assets/sass/foundations/colours.scss +10 -0
- package/assets/sass/utilities/colours.scss +4 -3
- package/assets/sass/utilities/font-awesome-iso-fallbacks.scss +6 -0
- package/assets/sass/utilities/wider-colours.scss +1 -0
- package/assets/ts/components/address-lookup/address-lookup.component.ts +154 -190
- package/assets/ts/components/modal/modal.component.ts +63 -26
- package/assets/ts/components/rating/rating.component.ts +86 -0
- package/assets/ts/components/std-address-lookup/std-address-lookup.component.ts +383 -383
- package/assets/ts/modules/advanced-select.ts +13 -9
- package/assets/ts/scripts.ts +2 -2
- package/dist/components.es.js +88 -88
- package/dist/components.umd.js +214 -204
- package/package.json +1 -1
- package/src/components/Rating/Rating.vue +22 -0
|
@@ -20,252 +20,233 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
@layer components {
|
|
23
|
-
dialog[open] {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
dialog[open] {
|
|
24
|
+
//overflow-y: hidden;
|
|
25
|
+
width: 90vw;
|
|
26
|
+
max-width: rem(324); // col-width*4
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
//height: 90vh;
|
|
29
|
+
max-height: min(90vh, #{rem(752)});
|
|
30
|
+
overscroll-behavior: contain;
|
|
31
|
+
overflow-y: hidden;
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
@media screen and (min-width: 36em) {
|
|
34
|
+
--dialog-padding: 2rem;
|
|
35
|
+
min-width: rem(335);
|
|
36
|
+
width: fit-content;
|
|
37
|
+
max-width: rem(686);
|
|
38
|
+
}
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
@media screen and (min-width: 62em) {
|
|
41
|
+
min-width: rem(454);
|
|
42
|
+
width: fit-content;
|
|
43
|
+
max-width: rem(736);
|
|
44
|
+
}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
46
|
+
&::before {
|
|
47
|
+
content: "";
|
|
48
|
+
top: 0.75rem;
|
|
49
|
+
bottom: auto;
|
|
50
|
+
left: 0;
|
|
51
|
+
right: 0.5rem;
|
|
52
|
+
height: calc(var(--dialog-padding) - 0.75rem);
|
|
53
|
+
position: absolute;
|
|
54
|
+
display: block;
|
|
55
|
+
background: linear-gradient(0deg, transparent 0%, var(--colour-canvas-2) 100%);
|
|
56
|
+
z-index: 2;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&::after {
|
|
60
|
+
content: "";
|
|
61
|
+
top: auto;
|
|
62
|
+
bottom: 0.75rem;
|
|
63
|
+
left: 0;
|
|
64
|
+
right: 6px;
|
|
65
|
+
height: calc(var(--dialog-padding) - 0.75rem);
|
|
66
|
+
position: absolute;
|
|
67
|
+
display: block;
|
|
68
|
+
background: linear-gradient(180deg, transparent 0%, var(--colour-canvas-2) 100%);
|
|
69
|
+
z-index: 2;
|
|
70
|
+
}
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
72
|
+
.scroll {
|
|
73
|
+
margin-inline: calc(var(--dialog-padding) * -1);
|
|
74
|
+
margin-block: calc(calc(var(--dialog-padding) - 0.75rem) * -1);
|
|
75
|
+
padding-inline: var(--dialog-padding);
|
|
76
|
+
padding-block: calc(var(--dialog-padding) - 0.75rem);
|
|
77
|
+
height: 100%;
|
|
78
|
+
max-height: 100%;
|
|
79
|
+
overflow: auto;
|
|
80
|
+
overscroll-behavior: contain;
|
|
81
|
+
position: relative;
|
|
82
|
+
z-index: 1;
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
.fa-circle {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
86
87
|
}
|
|
87
|
-
}
|
|
88
88
|
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
// Close button
|
|
91
|
+
> button:first-child {
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
93
|
+
position: absolute;
|
|
94
|
+
top: 0.5rem;
|
|
95
|
+
right: 0.5rem;
|
|
96
|
+
z-index: var(--index-floating);
|
|
97
|
+
margin: 0;
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
&:not(:hover,:focus,:active){
|
|
100
|
+
background-color: var(--colour-canvas);
|
|
101
|
+
}
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
@container (min-width: 36em) {
|
|
104
|
+
top: calc(var(--dialog-padding) - 0.75rem);
|
|
105
|
+
right: calc(var(--dialog-padding) - 0.75rem);
|
|
106
|
+
}
|
|
107
|
+
|
|
106
108
|
}
|
|
107
109
|
|
|
108
|
-
}
|
|
109
|
-
|
|
110
110
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
&:has(.youtube-embed) {
|
|
112
|
+
padding: 0 !important;
|
|
113
|
+
}
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
&.dialog--fullwidth {
|
|
116
|
+
max-width: rem(1112);
|
|
117
|
+
}
|
|
118
118
|
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
.btn__group {
|
|
120
|
+
display: none;
|
|
121
|
+
}
|
|
121
122
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
// small
|
|
126
|
-
@media screen and (min-width: 36em) {
|
|
123
|
+
// Size variants
|
|
124
|
+
// small
|
|
125
|
+
@media screen and (min-width: 36em) {
|
|
127
126
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
127
|
+
:host(.modal--sm) dialog[open] {
|
|
128
|
+
|
|
129
|
+
min-width: rem(335);
|
|
130
|
+
width: rem(335);
|
|
131
|
+
max-width: rem(335);
|
|
132
|
+
}
|
|
133
133
|
}
|
|
134
|
-
}
|
|
135
134
|
|
|
136
|
-
@media screen and (min-width: 62em) {
|
|
135
|
+
@media screen and (min-width: 62em) {
|
|
137
136
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
137
|
+
:host(.modal--sm) dialog[open] {
|
|
138
|
+
min-width: rem(454);
|
|
139
|
+
width: rem(454);
|
|
140
|
+
max-width: rem(454);
|
|
141
|
+
}
|
|
142
142
|
}
|
|
143
|
-
}
|
|
144
143
|
|
|
145
|
-
// large
|
|
146
|
-
@media screen and (min-width: 36em) {
|
|
144
|
+
// large
|
|
145
|
+
@media screen and (min-width: 36em) {
|
|
147
146
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
147
|
+
:host(.modal--lg) dialog[open] {
|
|
148
|
+
min-width: rem(686);
|
|
149
|
+
width: rem(686);
|
|
150
|
+
max-width: rem(686);
|
|
151
|
+
}
|
|
152
152
|
}
|
|
153
|
-
}
|
|
154
153
|
|
|
155
|
-
@media screen and (min-width: 62em) {
|
|
154
|
+
@media screen and (min-width: 62em) {
|
|
156
155
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
:host(.modal--lg) dialog[open] {
|
|
157
|
+
min-width: rem(736);
|
|
158
|
+
width: rem(736);
|
|
159
|
+
max-width: rem(736);
|
|
160
|
+
}
|
|
161
161
|
}
|
|
162
|
-
}
|
|
163
162
|
|
|
164
163
|
|
|
165
164
|
|
|
166
165
|
|
|
167
|
-
dialog::backdrop {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
166
|
+
dialog::backdrop {
|
|
167
|
+
background: rgba(0, 0, 0, 0.3);
|
|
168
|
+
backdrop-filter: blur(4px);
|
|
169
|
+
overscroll-behavior: contain;
|
|
170
|
+
}
|
|
172
171
|
|
|
173
|
-
::-webkit-scrollbar {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
172
|
+
::-webkit-scrollbar {
|
|
173
|
+
width: 6px;
|
|
174
|
+
height: 6px;
|
|
175
|
+
}
|
|
177
176
|
|
|
178
|
-
::-webkit-scrollbar-track {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
177
|
+
::-webkit-scrollbar-track {
|
|
178
|
+
background-color: transparent;
|
|
179
|
+
border-top: 4px solid transparent;
|
|
180
|
+
}
|
|
182
181
|
|
|
183
|
-
::-webkit-scrollbar-thumb {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
182
|
+
::-webkit-scrollbar-thumb {
|
|
183
|
+
background-color: #c1c1c1;
|
|
184
|
+
width: 6px;
|
|
185
|
+
border-radius: 3px;
|
|
186
|
+
}
|
|
188
187
|
|
|
189
|
-
::slotted(p:last-child){
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
::slotted(p:last-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
::slotted(:last-child){
|
|
196
|
-
|
|
197
|
-
}
|
|
188
|
+
::slotted(p:last-child){
|
|
189
|
+
padding-bottom: 0!important;
|
|
190
|
+
}
|
|
191
|
+
::slotted(p:last-child){
|
|
192
|
+
padding-bottom: 0!important;
|
|
193
|
+
}
|
|
194
|
+
::slotted(:last-child){
|
|
195
|
+
margin-bottom: 0!important;
|
|
196
|
+
}
|
|
198
197
|
|
|
199
|
-
// #region transactional
|
|
200
|
-
:host(:is([data-type="transactional"],[data-type="acknowledgement"])) dialog[open] {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
.scroll > .fa-circle {
|
|
204
|
-
display: var(--fa-display, block);
|
|
205
|
-
line-height: 1;
|
|
206
|
-
font-size: 3rem;
|
|
207
|
-
height: 3rem;
|
|
208
|
-
width: 3rem;
|
|
209
|
-
margin-top: 0;
|
|
210
|
-
margin-bottom: 1.5rem;
|
|
211
|
-
line-height: 1;
|
|
212
|
-
color: var(--colour-heading);
|
|
213
|
-
margin-inline: auto;
|
|
198
|
+
// #region transactional
|
|
199
|
+
:host(:is([data-type="transactional"],[data-type="acknowledgement"])) dialog[open] {
|
|
200
|
+
text-align: center;
|
|
214
201
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
height:
|
|
218
|
-
|
|
219
|
-
|
|
202
|
+
.scroll > .fa-circle {
|
|
203
|
+
display: var(--fa-display, block);
|
|
204
|
+
line-height: 1;
|
|
205
|
+
font-size: 3rem;
|
|
206
|
+
height: 3rem;
|
|
207
|
+
width: 3rem;
|
|
208
|
+
margin-top: 0;
|
|
209
|
+
margin-bottom: 1.5rem;
|
|
210
|
+
line-height: 1;
|
|
211
|
+
color: var(--colour-heading);
|
|
212
|
+
margin-inline: auto;
|
|
220
213
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
214
|
+
@media screen and (min-width: 62em) {
|
|
215
|
+
font-size: 4rem;
|
|
216
|
+
height: 4rem;
|
|
217
|
+
width: 4rem;
|
|
218
|
+
}
|
|
224
219
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
left: 50%;
|
|
229
|
-
transform: scale(0.5) translate(-100%, 0);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
220
|
+
&:has(> i) {
|
|
221
|
+
position: relative;
|
|
222
|
+
}
|
|
232
223
|
|
|
233
|
-
|
|
224
|
+
> i:before {
|
|
225
|
+
position: absolute;
|
|
226
|
+
top: 0;
|
|
227
|
+
left: 50%;
|
|
228
|
+
transform: scale(0.5) translate(-100%, 0);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
234
231
|
|
|
235
|
-
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.btn-group {
|
|
239
|
-
display: flex;
|
|
240
|
-
justify-content: center;
|
|
241
|
-
gap: var(--gap);
|
|
242
|
-
padding-top: 2rem;
|
|
232
|
+
> button:first-child {
|
|
243
233
|
|
|
244
|
-
|
|
245
|
-
margin: 0;
|
|
234
|
+
display: none;
|
|
246
235
|
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
@container (max-width: 36em) {
|
|
250
|
-
.btn-group {
|
|
236
|
+
|
|
237
|
+
.btn__group {
|
|
251
238
|
display: flex;
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
display: block;
|
|
255
|
-
width: 100%;
|
|
256
|
-
max-width: 100%;
|
|
257
|
-
min-width: 100%;
|
|
258
|
-
text-align: center;
|
|
259
|
-
}
|
|
239
|
+
justify-content: center;
|
|
240
|
+
padding-top: 2rem;
|
|
260
241
|
}
|
|
261
242
|
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
243
|
|
|
265
|
-
:host([data-type="acknowledgement"]) dialog[open] {
|
|
244
|
+
:host([data-type="acknowledgement"]) dialog[open] {
|
|
266
245
|
|
|
267
|
-
|
|
268
|
-
|
|
246
|
+
.btn__group [data-cancel] {
|
|
247
|
+
display: none;
|
|
248
|
+
}
|
|
269
249
|
}
|
|
270
|
-
|
|
271
|
-
|
|
250
|
+
// #endregion
|
|
251
|
+
|
|
252
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
padding-bottom: 0!important;
|
|
5
|
+
display: block!important;
|
|
6
|
+
|
|
7
|
+
--fill-colour: var(--colour, var(--colour-success));
|
|
8
|
+
--star-size: 2.5rem; /* control the size*/
|
|
9
|
+
--outline-default: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'><path d='M320.1 32C329.1 32 337.4 37.1 341.5 45.1L415 189.3L574.9 214.7C583.8 216.1 591.2 222.4 594 231C596.8 239.6 594.5 249 588.2 255.4L473.7 369.9L499 529.8C500.4 538.7 496.7 547.7 489.4 553C482.1 558.3 472.4 559.1 464.4 555L320.1 481.6L175.8 555C167.8 559.1 158.1 558.3 150.8 553C143.5 547.7 139.8 538.8 141.2 529.8L166.4 369.9L52 255.4C45.6 249 43.4 239.6 46.2 231C49 222.4 56.3 216.1 65.3 214.7L225.2 189.3L298.8 45.1C302.9 37.1 311.2 32 320.2 32zM320.1 108.8L262.3 222C258.8 228.8 252.3 233.6 244.7 234.8L119.2 254.8L209 344.7C214.4 350.1 216.9 357.8 215.7 365.4L195.9 490.9L309.2 433.3C316 429.8 324.1 429.8 331 433.3L444.3 490.9L424.5 365.4C423.3 357.8 425.8 350.1 431.2 344.7L521 254.8L395.5 234.8C387.9 233.6 381.4 228.8 377.9 222L320.1 108.8z'/></svg>");
|
|
10
|
+
|
|
11
|
+
--mask-default: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'><path d='M341.5 45.1C337.4 37.1 329.1 32 320.1 32C311.1 32 302.8 37.1 298.7 45.1L225.1 189.3L65.2 214.7C56.3 216.1 48.9 222.4 46.1 231C43.3 239.6 45.6 249 51.9 255.4L166.3 369.9L141.1 529.8C139.7 538.7 143.4 547.7 150.7 553C158 558.3 167.6 559.1 175.7 555L320.1 481.6L464.4 555C472.4 559.1 482.1 558.3 489.4 553C496.7 547.7 500.4 538.8 499 529.8L473.7 369.9L588.1 255.4C594.5 249 596.7 239.6 593.9 231C591.1 222.4 583.8 216.1 574.8 214.7L415 189.3L341.5 45.1z'/></svg>");
|
|
12
|
+
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host(.rating--sm){
|
|
16
|
+
--star-size: 1.5rem; /* control the size*/
|
|
17
|
+
}
|
|
18
|
+
:host(.rating--lg){
|
|
19
|
+
--star-size: 4rem; /* control the size*/
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.wrapper:not(.show) {
|
|
23
|
+
display: none!important;
|
|
24
|
+
}
|
|
25
|
+
.wrapper:has(input[type="range"][max="2"]) {
|
|
26
|
+
--steps: 2;
|
|
27
|
+
}
|
|
28
|
+
.wrapper:has(input[type="range"][max="3"]) {
|
|
29
|
+
--steps: 3;
|
|
30
|
+
}
|
|
31
|
+
.wrapper:has(input[type="range"][max="4"]) {
|
|
32
|
+
--steps: 4;
|
|
33
|
+
}
|
|
34
|
+
.wrapper:has(input[type="range"][max="5"]) {
|
|
35
|
+
--steps: 5;
|
|
36
|
+
}
|
|
37
|
+
.wrapper:has(input[type="range"][max="6"]) {
|
|
38
|
+
--steps: 6;
|
|
39
|
+
}
|
|
40
|
+
.wrapper:has(input[type="range"][max="7"]) {
|
|
41
|
+
--steps: 7;
|
|
42
|
+
}
|
|
43
|
+
.wrapper:has(input[type="range"][max="8"]) {
|
|
44
|
+
--steps: 8;
|
|
45
|
+
}
|
|
46
|
+
.wrapper:has(input[type="range"][max="9"]) {
|
|
47
|
+
--steps: 9;
|
|
48
|
+
}
|
|
49
|
+
.wrapper:has(input[type="range"][max="10"]) {
|
|
50
|
+
--steps: 10;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.wrapper:has(input[type="range"]) {
|
|
54
|
+
|
|
55
|
+
padding: 0!important;
|
|
56
|
+
margin: 0!important;
|
|
57
|
+
height: var(--star-size);
|
|
58
|
+
width: calc(var(--star-size)*var(--steps));
|
|
59
|
+
position: relative;
|
|
60
|
+
display: inline-flex;
|
|
61
|
+
|
|
62
|
+
&:after {
|
|
63
|
+
content: "";
|
|
64
|
+
position: absolute;
|
|
65
|
+
inset: 0;
|
|
66
|
+
|
|
67
|
+
background-color: var(--fill-colour);
|
|
68
|
+
mask-image:var(--outline, var(--outline-default));
|
|
69
|
+
|
|
70
|
+
mask-size: var(--star-size);
|
|
71
|
+
pointer-events: none;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:before {
|
|
75
|
+
content: "";
|
|
76
|
+
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: calc(var(--star-size));
|
|
79
|
+
background-color: var(--fill-colour);
|
|
80
|
+
mask-image: var(--mask,var(--mask-default));
|
|
81
|
+
mask-size: var(--star-size);
|
|
82
|
+
|
|
83
|
+
flex-grow: 1;
|
|
84
|
+
flex-shrink: 1;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@supports not (d:attr(d type(*))) {
|
|
89
|
+
.wrapper input[type="range"] {
|
|
90
|
+
|
|
91
|
+
&[min="1"]{
|
|
92
|
+
--offset: 1;
|
|
93
|
+
}
|
|
94
|
+
&[min="2"]{
|
|
95
|
+
--offset: 2;
|
|
96
|
+
}
|
|
97
|
+
&[min="3"]{
|
|
98
|
+
--offset: 3;
|
|
99
|
+
}
|
|
100
|
+
&[min="4"]{
|
|
101
|
+
--offset: 4;
|
|
102
|
+
}
|
|
103
|
+
&[min="5"]{
|
|
104
|
+
--offset: 5;
|
|
105
|
+
}
|
|
106
|
+
&[min="6"]{
|
|
107
|
+
--offset: 6;
|
|
108
|
+
}
|
|
109
|
+
&[min="7"]{
|
|
110
|
+
--offset: 7;
|
|
111
|
+
}
|
|
112
|
+
&[min="8"]{
|
|
113
|
+
--offset: 8;
|
|
114
|
+
}
|
|
115
|
+
&[min="9"]{
|
|
116
|
+
--offset: 9;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
@supports (d:attr(d type(*))) {
|
|
121
|
+
.wrapper input[type="range"] {
|
|
122
|
+
--offset: attr(min type(<number>),0);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.wrapper input[type="range"] {
|
|
127
|
+
|
|
128
|
+
position: static;
|
|
129
|
+
flex-grow: 0;
|
|
130
|
+
flex-shrink: 0;
|
|
131
|
+
height: var(--star-size);
|
|
132
|
+
box-sizing: border-box;
|
|
133
|
+
appearance: none;
|
|
134
|
+
mask-image: var(--mask,var(--mask-default));
|
|
135
|
+
mask-size: var(--star-size);
|
|
136
|
+
mask-position: calc(var(--star-size)*var(--offset,0)) 0;
|
|
137
|
+
border-radius: 0;
|
|
138
|
+
background-color: transparent;
|
|
139
|
+
padding: 0;
|
|
140
|
+
margin: 0;
|
|
141
|
+
width: calc(var(--star-size)*calc(var(--steps) - var(--offset,0)));
|
|
142
|
+
|
|
143
|
+
&:not([disabled]){
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
.wrapper input[type=range]::-webkit-slider-runnable-track {
|
|
150
|
+
background: transparent;
|
|
151
|
+
height: initial;
|
|
152
|
+
border-radius: 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.wrapper input[type='range']::-moz-range-track {
|
|
156
|
+
|
|
157
|
+
background: transparent;
|
|
158
|
+
height: initial;
|
|
159
|
+
border-radius: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.wrapper input[type="range"]::-webkit-slider-thumb{
|
|
163
|
+
|
|
164
|
+
outline: none!important;
|
|
165
|
+
-webkit-appearance: none;
|
|
166
|
+
appearance: none;
|
|
167
|
+
margin: 0;
|
|
168
|
+
background-color: var(--colour, var(--colour-success));
|
|
169
|
+
border-radius: 0%;
|
|
170
|
+
position: relative;
|
|
171
|
+
z-index: 99;
|
|
172
|
+
pointer-events: all;
|
|
173
|
+
overflow: visible;
|
|
174
|
+
width: 1px;
|
|
175
|
+
height: var(--star-size);
|
|
176
|
+
border-image-source: linear-gradient(90deg, var(--fill-colour) 50%, var(--colour-canvas) 0px);
|
|
177
|
+
border-image-slice: 0 fill;
|
|
178
|
+
border-image-width: 1px;
|
|
179
|
+
border-image-outset: 0 50rem;
|
|
180
|
+
border-image-repeat: stretch;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.wrapper input[type="range"]::-moz-range-thumb {
|
|
184
|
+
outline: none!important;
|
|
185
|
+
-webkit-appearance: none;
|
|
186
|
+
appearance: none;
|
|
187
|
+
margin: 0;
|
|
188
|
+
background-color: var(--colour, var(--colour-success));
|
|
189
|
+
border-radius: 0%;
|
|
190
|
+
position: relative;
|
|
191
|
+
z-index: 99;
|
|
192
|
+
pointer-events: all;
|
|
193
|
+
overflow: visible;
|
|
194
|
+
width: 1px;
|
|
195
|
+
height: var(--star-size);
|
|
196
|
+
border-image-source: linear-gradient(90deg, var(--colour, var(--colour-success)) 50%, var(--colour-canvas) 0px);
|
|
197
|
+
border-image-slice: 0 fill;
|
|
198
|
+
border-image-width: 1px;
|
|
199
|
+
border-image-outset: 0 50rem;
|
|
200
|
+
border-image-repeat: stretch;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.wrapper:has(input[type="range"]:not([disabled])):is(:hover,:active,:focus,:focus-within) {
|
|
204
|
+
--fill-colour: oklch(from var(--colour, var(--colour-success)) calc(l - 0.05) c h);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.wrapper:has(input[type="range"]:focus-visible) {
|
|
208
|
+
outline: 1px solid var(--colour-info);
|
|
209
|
+
border-radius: 0.25rem;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
}
|
|
@@ -13,19 +13,40 @@
|
|
|
13
13
|
white-space: normal;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
.btn-secondary {
|
|
18
|
+
order: 2;
|
|
19
|
+
}
|
|
20
|
+
.btn-primary {
|
|
21
|
+
order: 1;
|
|
22
|
+
}
|
|
17
23
|
}
|
|
18
|
-
@container (min-width:
|
|
24
|
+
@container (min-width: 36em) {
|
|
19
25
|
.btn__group {
|
|
20
26
|
flex-direction: row;
|
|
21
27
|
column-gap: var(--gap);
|
|
22
28
|
|
|
23
29
|
.btn {
|
|
30
|
+
|
|
31
|
+
max-width: fit-content;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
}
|
|
34
|
+
|
|
24
35
|
|
|
25
|
-
|
|
26
|
-
|
|
36
|
+
.btn-secondary {
|
|
37
|
+
order: 1;
|
|
38
|
+
}
|
|
39
|
+
.btn-primary {
|
|
40
|
+
order: 2;
|
|
27
41
|
}
|
|
28
42
|
}
|
|
43
|
+
.btn__group.text-end {
|
|
44
|
+
justify-content: flex-end;
|
|
45
|
+
}
|
|
46
|
+
iam-modal .btn__group:last-child .btn,
|
|
47
|
+
dialog .btn__group:last-child .btn {
|
|
48
|
+
margin-bottom: 0;
|
|
49
|
+
}
|
|
29
50
|
}
|
|
30
51
|
}
|
|
31
52
|
|