@community-release/nx-ui 0.0.73 → 0.0.75
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/dist/module.d.mts +29 -38
- package/dist/module.d.ts +29 -38
- package/dist/module.json +1 -1
- package/dist/module.mjs +29 -38
- package/dist/runtime/components/accordion/accordion-item.vue +12 -12
- package/dist/runtime/components/button/index.vue +41 -41
- package/dist/runtime/components/card.vue +24 -24
- package/dist/runtime/components/checkbox.vue +8 -8
- package/dist/runtime/components/file-input/index.vue +32 -32
- package/dist/runtime/components/filter/index.vue +9 -9
- package/dist/runtime/components/grid.vue +1 -1
- package/dist/runtime/components/input/index.vue +35 -31
- package/dist/runtime/components/label/index.vue +13 -13
- package/dist/runtime/components/loading.vue +3 -3
- package/dist/runtime/components/map/device-zoom-switch.vue +3 -3
- package/dist/runtime/components/map/index.vue +8 -9
- package/dist/runtime/components/map/location/index.vue +4 -4
- package/dist/runtime/components/map/location/nearest.vue +11 -11
- package/dist/runtime/components/map/openlayers/index.vue +8 -2
- package/dist/runtime/components/map/zoom.vue +13 -13
- package/dist/runtime/components/notice/index.vue +3 -3
- package/dist/runtime/components/notice/notice-item.vue +8 -8
- package/dist/runtime/components/radio.vue +8 -8
- package/dist/runtime/components/select.vue +9 -9
- package/dist/runtime/components/spoiler.vue +3 -3
- package/dist/runtime/components/styles/components.less +4 -4
- package/dist/runtime/components/text-spoiler.vue +2 -2
- package/dist/runtime/components/textarea/index.vue +12 -12
- package/dist/runtime/components/tooltip.vue +10 -10
- package/dist/runtime/components/typeahead-input/index.vue +17 -14
- package/package.json +1 -1
|
@@ -79,54 +79,54 @@ const iconTitleIs = props.iconLink ? 'NuxtLink' : 'b';
|
|
|
79
79
|
|
|
80
80
|
<style lang="less">
|
|
81
81
|
// Variables
|
|
82
|
-
@com-border-radius-
|
|
82
|
+
@com-border-radius-m: var(--ui-border-radius-l);
|
|
83
83
|
|
|
84
84
|
// Text size
|
|
85
|
-
@com-text-
|
|
86
|
-
@com-text-
|
|
85
|
+
@com-text-m: var(--ui-text-m);
|
|
86
|
+
@com-text-s: var(--ui-text-s);
|
|
87
87
|
|
|
88
88
|
// Font family
|
|
89
89
|
@com-font-header: var(--ui-font-header);
|
|
90
90
|
|
|
91
91
|
// Font size
|
|
92
|
-
@com-text-
|
|
93
|
-
@com-text-
|
|
92
|
+
@com-text-m: var(--ui-text-m);
|
|
93
|
+
@com-text-s: var(--ui-text-s);
|
|
94
94
|
|
|
95
95
|
// Color
|
|
96
96
|
@com-color-header-text: var(--ui-color-header-text);
|
|
97
|
-
@com-color-
|
|
97
|
+
@com-color-muted-text: var(--ui-color-muted-text);
|
|
98
98
|
@com-color-surface: var(--ui-color-surface);
|
|
99
99
|
@com-color-text: var(--ui-color-text);
|
|
100
100
|
@com-color-primary: var(--ui-color-primary);
|
|
101
101
|
|
|
102
102
|
// Padding
|
|
103
|
-
@com-space-
|
|
104
|
-
@com-space-
|
|
105
|
-
@com-space-
|
|
106
|
-
@com-space-
|
|
107
|
-
@com-space-
|
|
108
|
-
@com-space-
|
|
103
|
+
@com-space-xl: var(--ui-space-xl);
|
|
104
|
+
@com-space-l: var(--ui-space-l);
|
|
105
|
+
@com-space-m: var(--ui-space-m);
|
|
106
|
+
@com-space-s: var(--ui-space-s);
|
|
107
|
+
@com-space-2xs: var(--ui-space-2xs);
|
|
108
|
+
@com-space-xs: var(--ui-space-xs);
|
|
109
109
|
|
|
110
110
|
.component-ui-card {
|
|
111
|
-
--ui-card-padding: @com-space-
|
|
111
|
+
--ui-card-padding: @com-space-m;
|
|
112
112
|
|
|
113
113
|
position: relative;
|
|
114
114
|
|
|
115
115
|
color: @com-color-header-text;
|
|
116
116
|
background: @com-color-surface;
|
|
117
|
-
border-radius: @com-border-radius-
|
|
117
|
+
border-radius: @com-border-radius-m;
|
|
118
118
|
|
|
119
119
|
.ui-card-image {
|
|
120
|
-
padding: @com-space-
|
|
120
|
+
padding: @com-space-xl @com-space-xl @com-space-xs @com-space-xl;
|
|
121
121
|
overflow: hidden;
|
|
122
|
-
border-top-left-radius: @com-border-radius-
|
|
123
|
-
border-top-right-radius: @com-border-radius-
|
|
122
|
+
border-top-left-radius: @com-border-radius-m;
|
|
123
|
+
border-top-right-radius: @com-border-radius-m;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.ui-card-icon {
|
|
127
127
|
display: grid;
|
|
128
128
|
grid-template-columns: 50px auto;
|
|
129
|
-
gap: @com-space-
|
|
129
|
+
gap: @com-space-m;
|
|
130
130
|
align-items: center;
|
|
131
131
|
padding: var(--ui-card-padding) 0 0 30px;
|
|
132
132
|
height: 80px;
|
|
@@ -140,7 +140,7 @@ const iconTitleIs = props.iconLink ? 'NuxtLink' : 'b';
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
a, b {
|
|
143
|
-
padding-right: @com-space-
|
|
143
|
+
padding-right: @com-space-xs;
|
|
144
144
|
font-weight: 600;
|
|
145
145
|
color: @com-color-header-text;
|
|
146
146
|
}
|
|
@@ -148,9 +148,9 @@ const iconTitleIs = props.iconLink ? 'NuxtLink' : 'b';
|
|
|
148
148
|
|
|
149
149
|
.ui-card-title {
|
|
150
150
|
display: block;
|
|
151
|
-
padding: var(--ui-card-padding) var(--ui-card-padding) @com-space-
|
|
151
|
+
padding: var(--ui-card-padding) var(--ui-card-padding) @com-space-2xs var(--ui-card-padding);
|
|
152
152
|
font-family: @com-font-header;
|
|
153
|
-
font-size: @com-text-
|
|
153
|
+
font-size: @com-text-m;
|
|
154
154
|
color: @com-color-header-text;
|
|
155
155
|
|
|
156
156
|
strong {
|
|
@@ -172,15 +172,15 @@ const iconTitleIs = props.iconLink ? 'NuxtLink' : 'b';
|
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
.ui-card-subtitle {
|
|
175
|
-
font-size: @com-text-
|
|
176
|
-
color: @com-color-
|
|
175
|
+
font-size: @com-text-s;
|
|
176
|
+
color: @com-color-muted-text;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
.ui-card-content {
|
|
181
181
|
padding: 0 var(--ui-card-padding) var(--ui-card-padding) var(--ui-card-padding);
|
|
182
182
|
line-height: 1.5;
|
|
183
|
-
font-size: @com-text-
|
|
183
|
+
font-size: @com-text-s;
|
|
184
184
|
color: @com-color-text;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
@@ -96,16 +96,16 @@
|
|
|
96
96
|
|
|
97
97
|
@com-color-text: var(--ui-color-text);
|
|
98
98
|
@com-color-header-text: var(--ui-color-header-text);
|
|
99
|
-
@com-color-
|
|
99
|
+
@com-color-muted-text: var(--ui-color-muted-text);
|
|
100
100
|
@com-color-error: var(--ui-color-error);
|
|
101
101
|
|
|
102
|
-
@com-text-
|
|
103
|
-
@com-text-
|
|
104
|
-
@com-text-
|
|
102
|
+
@com-text-m: var(--ui-text-m);
|
|
103
|
+
@com-text-l: var(--ui-text-l);
|
|
104
|
+
@com-text-s: var(--ui-text-s);
|
|
105
105
|
|
|
106
|
-
@com-input-height: var(--ui-input-height-
|
|
106
|
+
@com-input-height: var(--ui-input-height-m);
|
|
107
107
|
|
|
108
|
-
@com-space-
|
|
108
|
+
@com-space-2xs: var(--ui-space-2xs);
|
|
109
109
|
|
|
110
110
|
position: relative;
|
|
111
111
|
text-align: left;
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
padding: 0 0 0 30px;
|
|
120
120
|
|
|
121
121
|
height: @com-input-height;
|
|
122
|
-
font-size: @com-text-
|
|
122
|
+
font-size: @com-text-m;
|
|
123
123
|
font-weight: 500;
|
|
124
124
|
|
|
125
125
|
color: @com-color-text;
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
width: 18px;
|
|
141
141
|
height: 18px;
|
|
142
142
|
border-radius: 3px;
|
|
143
|
-
border: 1px solid @com-color-
|
|
143
|
+
border: 1px solid @com-color-muted-text;
|
|
144
144
|
|
|
145
145
|
color: @com-color-text-on-primary;
|
|
146
146
|
|
|
@@ -208,15 +208,15 @@
|
|
|
208
208
|
@com-color-header-text: var(--ui-color-header-text);
|
|
209
209
|
@com-color-error: var(--ui-color-error);
|
|
210
210
|
|
|
211
|
-
@com-border-radius-m: var(--ui-border-radius-
|
|
211
|
+
@com-border-radius-m: var(--ui-border-radius-m);
|
|
212
212
|
|
|
213
|
-
@com-space-
|
|
214
|
-
@com-space-
|
|
215
|
-
@com-space-
|
|
213
|
+
@com-space-m: var(--ui-space-m);
|
|
214
|
+
@com-space-xs: var(--ui-space-xs);
|
|
215
|
+
@com-space-s: var(--ui-space-s);
|
|
216
216
|
|
|
217
|
-
@com-text-
|
|
218
|
-
@com-text-
|
|
219
|
-
@com-text-
|
|
217
|
+
@com-text-2xl: var(--ui-text-2xl);
|
|
218
|
+
@com-text-m: var(--ui-text-m);
|
|
219
|
+
@com-text-s: var(--ui-text-s);
|
|
220
220
|
|
|
221
221
|
@com-font-weight-bold: var(--ui-font-weight-bold);
|
|
222
222
|
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
border-radius: @com-border-radius-m 0 0 @com-border-radius-m;
|
|
232
232
|
|
|
233
233
|
.ic {
|
|
234
|
-
font-size: @com-text-
|
|
234
|
+
font-size: @com-text-2xl;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
|
|
@@ -239,8 +239,8 @@
|
|
|
239
239
|
border-radius: 0 @com-border-radius-m @com-border-radius-m 0;
|
|
240
240
|
|
|
241
241
|
.ic {
|
|
242
|
-
padding-left: @com-space-
|
|
243
|
-
font-size: @com-text-
|
|
242
|
+
padding-left: @com-space-xs;
|
|
243
|
+
font-size: @com-text-m;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
|
|
@@ -252,13 +252,13 @@
|
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
.status-text {
|
|
255
|
-
padding-right: @com-space-
|
|
255
|
+
padding-right: @com-space-m;
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
.block-filelist {
|
|
260
260
|
position: relative;
|
|
261
|
-
margin-top: @com-space-
|
|
261
|
+
margin-top: @com-space-xs;
|
|
262
262
|
border-radius: @com-border-radius-m;
|
|
263
263
|
border: 1px dashed @com-color-border-bolder;
|
|
264
264
|
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
grid-template-columns: 80px 1fr 80px;
|
|
268
268
|
|
|
269
269
|
.preview {
|
|
270
|
-
padding: @com-space-
|
|
270
|
+
padding: @com-space-xs;
|
|
271
271
|
|
|
272
272
|
.file {
|
|
273
273
|
overflow: hidden;
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
height: 70px;
|
|
278
278
|
|
|
279
279
|
text-transform: uppercase;
|
|
280
|
-
font-size: @com-text-
|
|
280
|
+
font-size: @com-text-s;
|
|
281
281
|
font-weight: @com-font-weight-bold;
|
|
282
282
|
border-radius: @com-border-radius-m;
|
|
283
283
|
background-color: @com-color-surface;
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
|
|
318
318
|
.size {
|
|
319
319
|
font-style: italic;
|
|
320
|
-
font-size: @com-text-
|
|
320
|
+
font-size: @com-text-s;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
align-items: center;
|
|
328
328
|
|
|
329
329
|
.component-ui-button {
|
|
330
|
-
font-size: @com-text-
|
|
330
|
+
font-size: @com-text-s;
|
|
331
331
|
height: 100%;
|
|
332
332
|
}
|
|
333
333
|
}
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
|
|
341
341
|
display: none;
|
|
342
342
|
place-items: center;
|
|
343
|
-
padding: @com-space-
|
|
343
|
+
padding: @com-space-s;
|
|
344
344
|
text-align: center;
|
|
345
345
|
cursor: pointer;
|
|
346
346
|
}
|
|
@@ -396,14 +396,14 @@
|
|
|
396
396
|
@com-color-border: var(--ui-color-border);
|
|
397
397
|
@com-color-header-text:var(--ui-color-header-text);
|
|
398
398
|
|
|
399
|
-
@com-border-radius-m: var(--ui-border-radius-
|
|
399
|
+
@com-border-radius-m: var(--ui-border-radius-m);
|
|
400
400
|
|
|
401
|
-
@com-space-
|
|
402
|
-
@com-space-
|
|
401
|
+
@com-space-xs: var(--ui-space-xs);
|
|
402
|
+
@com-space-s: var(--ui-space-s);
|
|
403
403
|
|
|
404
|
-
@com-text-
|
|
405
|
-
@com-text-
|
|
406
|
-
@com-text-
|
|
404
|
+
@com-text-2xl: var(--ui-text-2xl);
|
|
405
|
+
@com-text-m: var(--ui-text-m);
|
|
406
|
+
@com-text-s: var(--ui-text-s);
|
|
407
407
|
|
|
408
408
|
@com-font-weight-bold: var(--ui-font-weight-bold);
|
|
409
409
|
|
|
@@ -429,20 +429,20 @@
|
|
|
429
429
|
@com-color-border: var(--ui-color-border);
|
|
430
430
|
@com-color-header-text:var(--ui-color-header-text);
|
|
431
431
|
|
|
432
|
-
@com-border-radius-m: var(--ui-border-radius-
|
|
432
|
+
@com-border-radius-m: var(--ui-border-radius-m);
|
|
433
433
|
|
|
434
|
-
@com-space-
|
|
435
|
-
@com-space-
|
|
434
|
+
@com-space-xs: var(--ui-space-xs);
|
|
435
|
+
@com-space-s: var(--ui-space-s);
|
|
436
436
|
|
|
437
|
-
@com-text-
|
|
438
|
-
@com-text-
|
|
439
|
-
@com-text-
|
|
437
|
+
@com-text-2xl: var(--ui-text-2xl);
|
|
438
|
+
@com-text-m: var(--ui-text-m);
|
|
439
|
+
@com-text-s: var(--ui-text-s);
|
|
440
440
|
|
|
441
441
|
@com-font-weight-bold: var(--ui-font-weight-bold);
|
|
442
442
|
|
|
443
443
|
.block-input {
|
|
444
444
|
.component-ui-button {
|
|
445
|
-
font-size: @com-text-
|
|
445
|
+
font-size: @com-text-s;
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
|
|
@@ -456,13 +456,13 @@
|
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
.details {
|
|
459
|
-
font-size: @com-text-
|
|
459
|
+
font-size: @com-text-s;
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
.drag-and-drop {
|
|
465
|
-
font-size: @com-text-
|
|
465
|
+
font-size: @com-text-s;
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
}
|
|
@@ -89,10 +89,10 @@ function genUpdatedValue(id) {
|
|
|
89
89
|
|
|
90
90
|
<style lang="less">
|
|
91
91
|
.component-ui-filter {
|
|
92
|
-
@com-space-
|
|
93
|
-
@com-space-
|
|
92
|
+
@com-space-m: var(--ui-space-m);
|
|
93
|
+
@com-space-s: var(--ui-space-s);
|
|
94
94
|
|
|
95
|
-
@com-input-height-
|
|
95
|
+
@com-input-height-s: var(--ui-input-height-s);
|
|
96
96
|
|
|
97
97
|
--active-color: v-bind(activeColor);
|
|
98
98
|
--active-bg: v-bind(activeBg);
|
|
@@ -101,8 +101,8 @@ function genUpdatedValue(id) {
|
|
|
101
101
|
overflow-y: hidden;
|
|
102
102
|
white-space: nowrap;
|
|
103
103
|
|
|
104
|
-
margin-inline: calc(@com-space-
|
|
105
|
-
padding: @com-space-
|
|
104
|
+
margin-inline: calc(@com-space-m * -1);
|
|
105
|
+
padding: @com-space-m;
|
|
106
106
|
|
|
107
107
|
span {
|
|
108
108
|
user-select: none;
|
|
@@ -110,11 +110,11 @@ function genUpdatedValue(id) {
|
|
|
110
110
|
display: inline-flex;
|
|
111
111
|
|
|
112
112
|
vertical-align: top;
|
|
113
|
-
margin-right: @com-space-
|
|
114
|
-
padding: 0 @com-space-
|
|
113
|
+
margin-right: @com-space-s;
|
|
114
|
+
padding: 0 @com-space-s;
|
|
115
115
|
|
|
116
|
-
height: @com-input-height-
|
|
117
|
-
line-height: @com-input-height-
|
|
116
|
+
height: @com-input-height-s;
|
|
117
|
+
line-height: @com-input-height-s;
|
|
118
118
|
|
|
119
119
|
border-radius: 30px;
|
|
120
120
|
cursor: pointer;
|
|
@@ -153,38 +153,38 @@
|
|
|
153
153
|
@com-ani-ease: var(--ui-ani-ease);
|
|
154
154
|
|
|
155
155
|
// Input height
|
|
156
|
-
@com-input-height-
|
|
157
|
-
@com-input-height-
|
|
158
|
-
@com-input-height-
|
|
159
|
-
@com-input-height-
|
|
160
|
-
@com-input-height-
|
|
161
|
-
@com-input-height-
|
|
156
|
+
@com-input-height-2xl: var(--ui-input-height-2xl);
|
|
157
|
+
@com-input-height-xl: var(--ui-input-height-xl);
|
|
158
|
+
@com-input-height-l: var(--ui-input-height-l);
|
|
159
|
+
@com-input-height-m: var(--ui-input-height-m);
|
|
160
|
+
@com-input-height-s: var(--ui-input-height-s);
|
|
161
|
+
@com-input-height-xs: var(--ui-input-height-xs);
|
|
162
162
|
|
|
163
163
|
// Border radius
|
|
164
|
-
@com-border-radius-
|
|
165
|
-
@com-border-radius-
|
|
166
|
-
@com-border-radius-round: var(--ui-input-height-
|
|
164
|
+
@com-border-radius-m: var(--ui-border-radius-m);
|
|
165
|
+
@com-border-radius-s: var(--ui-border-radius-s);
|
|
166
|
+
@com-border-radius-round: var(--ui-input-height-2xl);
|
|
167
167
|
|
|
168
168
|
// Color
|
|
169
169
|
@com-color-border-bolder: var(--ui-color-border-bolder);
|
|
170
170
|
@com-color-bg: var(--ui-color-bg);
|
|
171
171
|
@com-color-surface: @ui-input-background-color;
|
|
172
172
|
@com-color-header-text: var(--ui-color-header-text);
|
|
173
|
-
@com-color-
|
|
173
|
+
@com-color-muted-text: var(--ui-color-muted-text);
|
|
174
174
|
@com-color-primary: var(--ui-color-primary);
|
|
175
175
|
@com-color-error: var(--ui-color-error);
|
|
176
176
|
|
|
177
177
|
// Space
|
|
178
|
-
@com-space-
|
|
179
|
-
@com-space-
|
|
178
|
+
@com-space-s: var(--ui-space-s);
|
|
179
|
+
@com-space-xs: var(--ui-space-xs;);
|
|
180
180
|
|
|
181
181
|
// Font
|
|
182
182
|
@com-font-text: var(--ui-font-text);
|
|
183
183
|
|
|
184
184
|
// Text size
|
|
185
|
-
@com-text-
|
|
186
|
-
@com-text-
|
|
187
|
-
@com-text-
|
|
185
|
+
@com-text-m: var(--ui-text-m);
|
|
186
|
+
@com-text-s: var(--ui-text-s);
|
|
187
|
+
@com-text-xs: var(--ui-text-xs);
|
|
188
188
|
|
|
189
189
|
// Ally
|
|
190
190
|
@com-outline: var(--ui-outline);
|
|
@@ -192,9 +192,9 @@
|
|
|
192
192
|
.component-ui-input {
|
|
193
193
|
overflow: hidden;
|
|
194
194
|
position: relative;
|
|
195
|
-
height: @com-input-height-
|
|
195
|
+
height: @com-input-height-m;
|
|
196
196
|
border: 1px solid @com-color-border-bolder;
|
|
197
|
-
border-radius: @com-border-radius-
|
|
197
|
+
border-radius: @com-border-radius-m;
|
|
198
198
|
background: @com-color-surface;
|
|
199
199
|
cursor: text;
|
|
200
200
|
|
|
@@ -223,12 +223,12 @@
|
|
|
223
223
|
box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box;
|
|
224
224
|
|
|
225
225
|
display: block;
|
|
226
|
-
padding: 0 @com-space-
|
|
226
|
+
padding: 0 @com-space-xs;
|
|
227
227
|
width: 100%;
|
|
228
228
|
height: 100%;
|
|
229
229
|
|
|
230
230
|
font-family: @com-font-text;
|
|
231
|
-
font-size: @com-text-
|
|
231
|
+
font-size: @com-text-m;
|
|
232
232
|
color: @com-color-header-text;
|
|
233
233
|
|
|
234
234
|
background: transparent;
|
|
@@ -240,27 +240,31 @@
|
|
|
240
240
|
border-radius: @com-border-radius-round;
|
|
241
241
|
}
|
|
242
242
|
&.tag-shape-round-square {
|
|
243
|
-
border-radius: @com-border-radius-
|
|
243
|
+
border-radius: @com-border-radius-s;
|
|
244
244
|
}
|
|
245
245
|
&.tag-shape-square {
|
|
246
246
|
border-radius: 0;
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
// Size
|
|
250
|
-
&.tag-size-
|
|
251
|
-
&.tag-size-
|
|
252
|
-
&.tag-size-
|
|
253
|
-
&.tag-size-
|
|
254
|
-
//padding: 0 @com-space-
|
|
255
|
-
height: @com-input-height-
|
|
256
|
-
font-size: @com-text-
|
|
250
|
+
&.tag-size-2xl { height: @com-input-height-2xl; }
|
|
251
|
+
&.tag-size-xl { height: @com-input-height-xl; }
|
|
252
|
+
&.tag-size-l { height: @com-input-height-l; }
|
|
253
|
+
&.tag-size-m {
|
|
254
|
+
//padding: 0 @com-space-s;
|
|
255
|
+
height: @com-input-height-m;
|
|
256
|
+
font-size: @com-text-s;
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
&.tag-size-
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
&.tag-size-s {
|
|
260
|
+
height: @com-input-height-s;
|
|
261
|
+
font-size: @com-text-s;
|
|
262
|
+
}
|
|
262
263
|
|
|
263
|
-
|
|
264
|
+
&.tag-size-xs {
|
|
265
|
+
//padding: 0 10px;
|
|
266
|
+
height: @com-input-height-xs;
|
|
267
|
+
font-size: @com-text-xs;
|
|
264
268
|
|
|
265
269
|
.loading-indicator {
|
|
266
270
|
transform: translate3d(-50%, -50%, 0) scale(0.6);
|
|
@@ -55,40 +55,40 @@
|
|
|
55
55
|
</script>
|
|
56
56
|
|
|
57
57
|
<style lang="less">
|
|
58
|
-
@com-space-
|
|
58
|
+
@com-space-2xs: var(--ui-space-2xs);
|
|
59
59
|
|
|
60
60
|
@com-font-weight-medium: var(--ui-font-weight-medium);
|
|
61
61
|
|
|
62
62
|
@com-color-header-text: var(--ui-color-header-text);
|
|
63
|
-
@com-color-
|
|
63
|
+
@com-color-muted-text: var(--ui-color-muted-text);
|
|
64
64
|
@com-color-red: var(--ui-color-red);
|
|
65
65
|
|
|
66
|
-
@com-text-
|
|
67
|
-
@com-text-
|
|
68
|
-
@com-text-
|
|
69
|
-
@com-text-
|
|
66
|
+
@com-text-xl: var(--ui-text-xl);
|
|
67
|
+
@com-text-l: var(--ui-text-l);
|
|
68
|
+
@com-text-m: var(--ui-text-m);
|
|
69
|
+
@com-text-s: var(--ui-text-s);
|
|
70
70
|
|
|
71
71
|
.component-ui-label {
|
|
72
72
|
.component-ui-label--text {
|
|
73
73
|
position: relative;
|
|
74
74
|
display: block;
|
|
75
|
-
padding-bottom: @com-space-
|
|
75
|
+
padding-bottom: @com-space-2xs;
|
|
76
76
|
font-weight: @com-font-weight-medium;
|
|
77
|
-
font-size: @com-text-
|
|
77
|
+
font-size: @com-text-m;
|
|
78
78
|
color: @com-color-header-text;
|
|
79
79
|
|
|
80
80
|
.description {
|
|
81
81
|
display: block;
|
|
82
82
|
font-weight: normal;
|
|
83
|
-
color: @com-color-
|
|
83
|
+
color: @com-color-muted-text;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
// Text size
|
|
88
|
-
&.tag-size-
|
|
89
|
-
&.tag-size-
|
|
90
|
-
&.tag-size-
|
|
91
|
-
&.tag-size-
|
|
88
|
+
&.tag-size-xl > .component-ui-label--text { font-size: @com-text-xl; }
|
|
89
|
+
&.tag-size-l > .component-ui-label--text { font-size: @com-text-l; }
|
|
90
|
+
&.tag-size-m > .component-ui-label--text { font-size: @com-text-m; }
|
|
91
|
+
&.tag-size-s > .component-ui-label--text { font-size: @com-text-s; }
|
|
92
92
|
|
|
93
93
|
// Text weight
|
|
94
94
|
&.tag-weight-700 > .component-ui-label--text { font-weight: 700; }
|
|
@@ -32,10 +32,10 @@ const props = defineProps({
|
|
|
32
32
|
@com-color-header-text: var(--ui-color-header-text);
|
|
33
33
|
|
|
34
34
|
// Text size
|
|
35
|
-
@com-text-
|
|
35
|
+
@com-text-s: var(--ui-text-s);
|
|
36
36
|
|
|
37
37
|
// Padding
|
|
38
|
-
@com-space-
|
|
38
|
+
@com-space-2xs: var(--ui-space-2xs);
|
|
39
39
|
|
|
40
40
|
@keyframes ui-loading-circle {
|
|
41
41
|
0% {
|
|
@@ -60,7 +60,7 @@ const props = defineProps({
|
|
|
60
60
|
display: flex;
|
|
61
61
|
align-items: center;
|
|
62
62
|
justify-content: center;
|
|
63
|
-
gap: @com-space-
|
|
63
|
+
gap: @com-space-2xs;
|
|
64
64
|
|
|
65
65
|
svg {
|
|
66
66
|
transition: opacity 0.15s;
|
|
@@ -46,8 +46,8 @@ function handleClick(e) {
|
|
|
46
46
|
</script>
|
|
47
47
|
|
|
48
48
|
<style lang="less">
|
|
49
|
-
@com-size: var(--ui-input-height-
|
|
50
|
-
@com-border-radius-
|
|
49
|
+
@com-size: var(--ui-input-height-m);
|
|
50
|
+
@com-border-radius-m: var(--ui-border-radius-m);
|
|
51
51
|
@com-ani-time: var(--ui-ani-time);
|
|
52
52
|
@com-ani-ease: var(--ui-ani-ease);
|
|
53
53
|
|
|
@@ -65,7 +65,7 @@ function handleClick(e) {
|
|
|
65
65
|
|
|
66
66
|
background: @com-color-surface;
|
|
67
67
|
box-shadow: @com-bs-1;
|
|
68
|
-
border-radius: @com-border-radius-
|
|
68
|
+
border-radius: @com-border-radius-m;
|
|
69
69
|
cursor: pointer;
|
|
70
70
|
|
|
71
71
|
&:before,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section class="component-ui-map">
|
|
3
|
-
<component :is="mapEngines[props.engine]" @initialized="emit('initialized', $event)">
|
|
3
|
+
<component :is="mapEngines[props.engine]" @initialized="emit('initialized', $event)" @mapClick="emit('mapClick', $event)">
|
|
4
4
|
<slot :store="store"></slot>
|
|
5
5
|
<div class="slot-row">
|
|
6
6
|
<slot name="row" :store="store"></slot>
|
|
@@ -15,9 +15,8 @@ import { useMapStore } from './store';
|
|
|
15
15
|
import comProps from '#build/ui.map.mjs';
|
|
16
16
|
|
|
17
17
|
// // Data
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const emit = defineEmits(['initialized']);
|
|
18
|
+
const store = useMapStore();
|
|
19
|
+
const emit = defineEmits(['initialized', 'mapClick']);
|
|
21
20
|
|
|
22
21
|
const mapEngines = {
|
|
23
22
|
openlayers: defineAsyncComponent(() => import(`./openlayers/index.vue`))
|
|
@@ -122,11 +121,11 @@ watch(() => props.disabledMarkers, (v) => {
|
|
|
122
121
|
<style lang="less">
|
|
123
122
|
@com-content-width: var(--ui-content-width);
|
|
124
123
|
|
|
125
|
-
@com-space-
|
|
126
|
-
@com-space-
|
|
124
|
+
@com-space-m: var(--ui-space-m);
|
|
125
|
+
@com-space-xs: var(--ui-space-xs);
|
|
127
126
|
|
|
128
127
|
.component-ui-map {
|
|
129
|
-
--ui-map-padding: @com-space-
|
|
128
|
+
--ui-map-padding: @com-space-m;
|
|
130
129
|
|
|
131
130
|
position: relative;
|
|
132
131
|
height: v-bind(height);
|
|
@@ -142,7 +141,7 @@ watch(() => props.disabledMarkers, (v) => {
|
|
|
142
141
|
|
|
143
142
|
position: relative;
|
|
144
143
|
margin: 0 auto;
|
|
145
|
-
padding: 0 @com-space-
|
|
144
|
+
padding: 0 @com-space-m;
|
|
146
145
|
width: 100%;
|
|
147
146
|
max-width: @com-content-width;
|
|
148
147
|
min-width: 320px;
|
|
@@ -157,7 +156,7 @@ watch(() => props.disabledMarkers, (v) => {
|
|
|
157
156
|
|
|
158
157
|
@media only screen and (max-width: 620px) {
|
|
159
158
|
.component-ui-map {
|
|
160
|
-
--ui-map-padding: @com-space-
|
|
159
|
+
--ui-map-padding: @com-space-xs;
|
|
161
160
|
}
|
|
162
161
|
}
|
|
163
162
|
</style>
|
|
@@ -46,10 +46,10 @@ const hasSlot = (name) => {
|
|
|
46
46
|
</script>
|
|
47
47
|
|
|
48
48
|
<style lang="less">
|
|
49
|
-
@com-input-height: var(--ui-input-height-
|
|
49
|
+
@com-input-height: var(--ui-input-height-m);
|
|
50
50
|
|
|
51
51
|
@com-map-padding: var(--ui-map-padding);
|
|
52
|
-
@com-space-
|
|
52
|
+
@com-space-xs: var(--ui-space-xs);
|
|
53
53
|
|
|
54
54
|
.component-ui-map-location {
|
|
55
55
|
pointer-events: none !important;
|
|
@@ -67,7 +67,7 @@ const hasSlot = (name) => {
|
|
|
67
67
|
grid-template-columns: 1fr; // base columns and their sizes
|
|
68
68
|
grid-auto-flow: column; // tells to add new children as new columns
|
|
69
69
|
grid-auto-columns: 1fr; // tells the size of the dynamic columns
|
|
70
|
-
gap: @com-space-
|
|
70
|
+
gap: @com-space-xs;
|
|
71
71
|
|
|
72
72
|
inset: 0 0 auto 0;
|
|
73
73
|
max-width: 100%;
|
|
@@ -99,7 +99,7 @@ const hasSlot = (name) => {
|
|
|
99
99
|
|
|
100
100
|
&.tag-slot-header-and-default {
|
|
101
101
|
.location-slot-default {
|
|
102
|
-
inset: calc(@com-input-height + @com-space-
|
|
102
|
+
inset: calc(@com-input-height + @com-space-xs) 0 0 0;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
}
|