@bagelink/vue 0.0.245 → 0.0.250
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/components/Btn.vue.d.ts.map +1 -1
- package/dist/components/Drop.vue.d.ts +34 -0
- package/dist/components/Drop.vue.d.ts.map +1 -0
- package/dist/components/FileUploader.vue.d.ts +60 -0
- package/dist/components/FileUploader.vue.d.ts.map +1 -0
- package/dist/components/form/BglField.vue.d.ts.map +1 -1
- package/dist/components/form/BglForm.vue.d.ts.map +1 -1
- package/dist/components/form/ItemRef.vue.d.ts +1 -0
- package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DateInput.vue.d.ts +3 -0
- package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectField.vue.d.ts +1 -4
- package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/TextInput.vue.d.ts +2 -0
- package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
- package/dist/index.cjs +1719 -1700
- package/dist/index.mjs +1719 -1700
- package/dist/style.css +389 -272
- package/package.json +1 -1
- package/src/components/Avatar.vue +1 -1
- package/src/components/Btn.vue +41 -39
- package/src/components/Comments.vue +4 -4
- package/src/components/MaterialIcon.vue +1 -1
- package/src/components/NavBar.vue +5 -5
- package/src/components/TableSchema.vue +2 -2
- package/src/components/form/BglField.vue +21 -6
- package/src/components/form/inputs/DateInput.vue +14 -3
- package/src/components/form/inputs/FileUpload.vue +69 -15
- package/src/components/form/inputs/SelectInput.vue +32 -22
- package/src/components/form/inputs/TableField.vue +4 -4
- package/src/components/form/inputs/TextInput.vue +26 -12
- package/src/components/formkit/FileUploader.vue +1 -1
- package/src/components/formkit/MiscFields.vue +2 -2
- package/src/styles/buttons.css +5 -5
- package/src/styles/dark.css +5 -5
- package/src/styles/inputs.css +4 -4
- package/src/styles/layout.css +170 -39
- package/src/styles/text.css +13 -1
- package/src/styles/theme.css +1 -1
package/package.json
CHANGED
package/src/components/Btn.vue
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<component
|
|
2
|
+
<component
|
|
3
|
+
:is="to ? 'router-link' : is" :to="to" @click.stop="onClick" :type="type" :role="role" :disabled="disabled"
|
|
3
4
|
:class="{
|
|
4
|
-
'
|
|
5
|
-
|
|
5
|
+
'bgl_btn-icon': icon && !slots['default'] && !value,
|
|
6
|
+
bgl_btn: !icon || slots['default'] || value,
|
|
6
7
|
thin,
|
|
7
8
|
round,
|
|
8
|
-
'
|
|
9
|
-
'
|
|
10
|
-
}"
|
|
9
|
+
'bgl_flatBtn': flat,
|
|
10
|
+
'bgl_btn-border': border
|
|
11
|
+
}"
|
|
12
|
+
>
|
|
11
13
|
<div class="loading" v-if="loading" />
|
|
12
|
-
<div v-else class="
|
|
14
|
+
<div v-else class="bgl_btn-flex">
|
|
13
15
|
<MaterialIcon v-if="icon" :icon="icon" />
|
|
14
16
|
<slot />
|
|
15
17
|
<template v-if="!slots['default'] && value">
|
|
@@ -123,7 +125,7 @@ const computedBackgroundColor = $computed(
|
|
|
123
125
|
}
|
|
124
126
|
}
|
|
125
127
|
|
|
126
|
-
.
|
|
128
|
+
.bgl_btn-icon {
|
|
127
129
|
height: var(--btn-height);
|
|
128
130
|
width: var(--btn-height);
|
|
129
131
|
border-radius: 100%;
|
|
@@ -134,118 +136,118 @@ const computedBackgroundColor = $computed(
|
|
|
134
136
|
transition: var(--bgl-transition);
|
|
135
137
|
}
|
|
136
138
|
|
|
137
|
-
.
|
|
139
|
+
.bgl_btn {
|
|
138
140
|
padding-left: var(--btn-padding);
|
|
139
141
|
padding-right: var(--btn-padding);
|
|
140
142
|
transition: var(--bgl-transition);
|
|
141
143
|
text-decoration: none;
|
|
142
144
|
}
|
|
143
145
|
|
|
144
|
-
.
|
|
146
|
+
.bgl_btn[disabled="true"] {
|
|
145
147
|
opacity: 0.5;
|
|
146
148
|
cursor: not-allowed;
|
|
147
149
|
}
|
|
148
150
|
|
|
149
|
-
.
|
|
151
|
+
.bgl_btn-flex {
|
|
150
152
|
display: flex;
|
|
151
153
|
align-items: center;
|
|
152
154
|
gap: 0.5rem;
|
|
153
155
|
justify-content: center;
|
|
154
156
|
}
|
|
155
157
|
|
|
156
|
-
.
|
|
158
|
+
.bgl_btn .bgl_.bgl_icon-font {
|
|
157
159
|
font-size: calc(var(--input-font-size) * 1.3);
|
|
158
160
|
}
|
|
159
161
|
|
|
160
|
-
.
|
|
161
|
-
.
|
|
162
|
+
.bgl_btn,
|
|
163
|
+
.bgl_btn-icon {
|
|
162
164
|
background-color: v-bind(computedBackgroundColor);
|
|
163
165
|
color: v-bind(cumputedTextColor);
|
|
164
166
|
}
|
|
165
167
|
|
|
166
|
-
.
|
|
167
|
-
.
|
|
168
|
+
.bgl_btn:hover,
|
|
169
|
+
.bgl_btn-icon:hover {
|
|
168
170
|
filter: var(--bgl-hover-filter);
|
|
169
171
|
}
|
|
170
172
|
|
|
171
|
-
.
|
|
172
|
-
.
|
|
173
|
+
.bgl_btn:active,
|
|
174
|
+
.bgl_btn-icon:active {
|
|
173
175
|
filter: var(--bgl-active-filter);
|
|
174
176
|
}
|
|
175
177
|
|
|
176
|
-
.
|
|
178
|
+
.bgl_btn.bgl_flatBtn {
|
|
177
179
|
padding-left: var(--btn-padding);
|
|
178
180
|
padding-right: var(--btn-padding);
|
|
179
181
|
background: transparent;
|
|
180
182
|
}
|
|
181
183
|
|
|
182
|
-
.
|
|
184
|
+
.bgl_btn-icon.bgl_flatBtn {
|
|
183
185
|
background: transparent;
|
|
184
186
|
}
|
|
185
187
|
|
|
186
|
-
.
|
|
187
|
-
.
|
|
188
|
+
.bgl_btn.bgl_flatBtn:hover,
|
|
189
|
+
.bgl_btn-icon.bgl_flatBtn:hover {
|
|
188
190
|
filter: var(--bgl-active-filter);
|
|
189
191
|
}
|
|
190
192
|
|
|
191
|
-
.
|
|
192
|
-
.
|
|
193
|
+
.bgl_btn.bgl_flatBtn:active,
|
|
194
|
+
.bgl_btn-icon.bgl_flatBtn:active {
|
|
193
195
|
background: var(--bgl-white);
|
|
194
196
|
filter: var(--bgl-hover-filter);
|
|
195
197
|
}
|
|
196
198
|
|
|
197
|
-
.
|
|
198
|
-
.
|
|
199
|
+
.bgl_btn.bgl_flatBtn.red,
|
|
200
|
+
.bgl_btn-icon.bgl_flatBtn.red {
|
|
199
201
|
color: var(--bgl-red);
|
|
200
202
|
}
|
|
201
203
|
|
|
202
|
-
.
|
|
203
|
-
.
|
|
204
|
+
.bgl_btn.bgl_flatBtn.light,
|
|
205
|
+
.bgl_btn-icon.bgl_flatBtn.light {
|
|
204
206
|
color: var(--bgl-primary-tint);
|
|
205
207
|
}
|
|
206
208
|
|
|
207
|
-
.
|
|
208
|
-
.
|
|
209
|
+
.bgl_btn.bgl_flatBtn.black,
|
|
210
|
+
.bgl_btn-icon.bgl_flatBtn.black {
|
|
209
211
|
color: var(--bgl-black);
|
|
210
212
|
}
|
|
211
213
|
|
|
212
|
-
.
|
|
213
|
-
.
|
|
214
|
+
.bgl_btn.bgl_flatBtn.gray,
|
|
215
|
+
.bgl_btn-icon.bgl_flatBtn.gray {
|
|
214
216
|
color: var(--bgl-gray);
|
|
215
217
|
}
|
|
216
218
|
|
|
217
|
-
.
|
|
219
|
+
.bgl_btn.thin {
|
|
218
220
|
padding-left: calc(var(--btn-padding) / 2);
|
|
219
221
|
padding-right: calc(var(--btn-padding) / 2);
|
|
220
222
|
}
|
|
221
223
|
|
|
222
|
-
.
|
|
224
|
+
.bgl_btn.round {
|
|
223
225
|
border-radius: calc(var(--btn-border-radius) * 2);
|
|
224
226
|
}
|
|
225
227
|
|
|
226
|
-
.
|
|
228
|
+
.bgl_btn-icon.thin {
|
|
227
229
|
height: calc(var(--btn-height) / 1.5);
|
|
228
230
|
width: calc(var(--btn-height) / 1.5);
|
|
229
231
|
line-height: 1;
|
|
230
232
|
}
|
|
231
233
|
|
|
232
|
-
[dir="rtl"] .
|
|
234
|
+
[dir="rtl"] .bgl_.bgl_icon-font {
|
|
233
235
|
transform: rotateY(180deg);
|
|
234
236
|
}
|
|
235
237
|
|
|
236
|
-
.
|
|
238
|
+
.bgl_btn-border {
|
|
237
239
|
outline: 1px solid v-bind(computedBackgroundColor);
|
|
238
240
|
color: v-bind(computedBackgroundColor);
|
|
239
241
|
background: transparent;
|
|
240
242
|
}
|
|
241
243
|
|
|
242
|
-
.
|
|
244
|
+
.bgl_btn-border:hover {
|
|
243
245
|
color: var(--bgl-white);
|
|
244
246
|
background: v-bind(computedBackgroundColor);
|
|
245
247
|
filter: brightness(100%);
|
|
246
248
|
}
|
|
247
249
|
|
|
248
|
-
.
|
|
250
|
+
.bgl_btn-border:active {
|
|
249
251
|
filter: brightness(80%);
|
|
250
252
|
}
|
|
251
253
|
</style>
|
|
@@ -225,13 +225,13 @@ const newComment = async () => {
|
|
|
225
225
|
filter: brightness(70%);
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
.
|
|
229
|
-
.
|
|
228
|
+
.bgl_icon-font.delete,
|
|
229
|
+
.bgl_icon-font.save {
|
|
230
230
|
display: none;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
.editable .
|
|
234
|
-
.editable .
|
|
233
|
+
.editable .bgl_icon-font.delete,
|
|
234
|
+
.editable .bgl_icon-font.save {
|
|
235
235
|
display: block;
|
|
236
236
|
}
|
|
237
237
|
|
|
@@ -158,7 +158,7 @@ withDefaults(
|
|
|
158
158
|
pointer-events: all;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
.nav-button .
|
|
161
|
+
.nav-button .bgl_icon-font {
|
|
162
162
|
font-size: 22px;
|
|
163
163
|
margin: 0.25rem 10px;
|
|
164
164
|
padding: 10px;
|
|
@@ -172,8 +172,8 @@ withDefaults(
|
|
|
172
172
|
pointer-events: all;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
.nav-button:hover .
|
|
176
|
-
.nav-button.router-link-active .
|
|
175
|
+
.nav-button:hover .bgl_icon-font,
|
|
176
|
+
.nav-button.router-link-active .bgl_icon-font {
|
|
177
177
|
background: var(--bgl-white);
|
|
178
178
|
color: var(--bgl-primary);
|
|
179
179
|
}
|
|
@@ -269,7 +269,7 @@ withDefaults(
|
|
|
269
269
|
margin-inline-start: 0rem;
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
.nav.open .nav-button .
|
|
272
|
+
.nav.open .nav-button .bgl_icon-font {
|
|
273
273
|
margin: 0;
|
|
274
274
|
background: transparent;
|
|
275
275
|
}
|
|
@@ -334,7 +334,7 @@ withDefaults(
|
|
|
334
334
|
margin: 12px 0.25rem;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
-
.nav-button .
|
|
337
|
+
.nav-button .bgl_icon-font {
|
|
338
338
|
padding: 2px 0 0 0;
|
|
339
339
|
margin: 0;
|
|
340
340
|
height: 30px;
|
|
@@ -73,7 +73,7 @@ const sort = (fieldname: string) => {
|
|
|
73
73
|
opacity: 0;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
.list-arrows .
|
|
76
|
+
.list-arrows .bgl_icon-font {
|
|
77
77
|
transition: all ease-in-out 0.2s;
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -153,7 +153,7 @@ th {
|
|
|
153
153
|
text-overflow: ellipsis;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
.col.check .
|
|
156
|
+
.col.check .bgl_icon-font {
|
|
157
157
|
border-radius: 100%;
|
|
158
158
|
background: var(--bgl-blue-20);
|
|
159
159
|
color: var(--bgl-primary);
|
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<component
|
|
3
|
-
:
|
|
4
|
-
|
|
5
|
-
:
|
|
6
|
-
|
|
2
|
+
<component
|
|
3
|
+
:required="field.required"
|
|
4
|
+
v-bind="bindAttrs(field?.attrs || {}, fieldData, modelValue)"
|
|
5
|
+
:class="classify(fieldData, modelValue, field.class, field.attrs?.class)"
|
|
6
|
+
v-if="vIf"
|
|
7
|
+
:is="is"
|
|
8
|
+
:label="field.label"
|
|
9
|
+
:id="field.id"
|
|
10
|
+
:placeholder="field.placeholder || field.label"
|
|
11
|
+
v-model="fieldData"
|
|
12
|
+
:defaultValue="field.defaultValue"
|
|
13
|
+
:options="field.options"
|
|
14
|
+
:helptext="field.helptext"
|
|
15
|
+
@update:modelValue="($event: any) => field?.onUpdate?.($event, denullify(fieldData, field.id), formData)"
|
|
16
|
+
>
|
|
7
17
|
{{ field.transform?.(fieldData, modelValue) || fieldData || '' }}
|
|
8
|
-
<BglField
|
|
18
|
+
<BglField
|
|
19
|
+
v-model="formData"
|
|
20
|
+
v-for="(child, ii) in field.children"
|
|
21
|
+
:key="child.id || ii"
|
|
22
|
+
:field="child"
|
|
23
|
+
/>
|
|
9
24
|
</component>
|
|
10
25
|
</template>
|
|
11
26
|
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
class="bagel-input"
|
|
4
|
+
:title="label"
|
|
5
|
+
:class="{ small: small }"
|
|
6
|
+
>
|
|
3
7
|
<label v-if="label">
|
|
4
8
|
{{ label }}
|
|
5
9
|
</label>
|
|
6
|
-
<VDatepicker
|
|
10
|
+
<VDatepicker
|
|
11
|
+
ref="datePicker"
|
|
12
|
+
:auto-apply="true"
|
|
13
|
+
v-model="date"
|
|
14
|
+
:enable-time-picker="enableTime"
|
|
15
|
+
v-bind="extraProps"
|
|
16
|
+
/>
|
|
7
17
|
</div>
|
|
8
18
|
</template>
|
|
9
19
|
|
|
10
20
|
<script setup lang="ts">
|
|
11
|
-
import VDatepicker, { DatePickerInstance } from '@vuepic/vue-datepicker';
|
|
21
|
+
import VDatepicker, { type DatePickerInstance, type VueDatePickerProps } from '@vuepic/vue-datepicker';
|
|
12
22
|
import '@vuepic/vue-datepicker/dist/main.css';
|
|
13
23
|
import { onMounted } from 'vue';
|
|
14
24
|
|
|
@@ -22,6 +32,7 @@ const props = withDefaults(
|
|
|
22
32
|
enableTime?: boolean;
|
|
23
33
|
modelValue?: string | Date;
|
|
24
34
|
defaultValue?: string | Date;
|
|
35
|
+
extraProps?: VueDatePickerProps;
|
|
25
36
|
}>(),
|
|
26
37
|
{
|
|
27
38
|
enableTime: false,
|
|
@@ -3,35 +3,89 @@
|
|
|
3
3
|
<label>
|
|
4
4
|
{{ label }}
|
|
5
5
|
</label>
|
|
6
|
-
<div
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
<div
|
|
7
|
+
@click="browse"
|
|
8
|
+
@dragover="dragover"
|
|
9
|
+
@drop="drop"
|
|
10
|
+
@dragleave="dragleave"
|
|
11
|
+
class="fileUploadWrap"
|
|
12
|
+
:class="{ fileDropZone: !storageFiles.length && !fileQueue.length, dragover: isDragOver }"
|
|
13
|
+
>
|
|
14
|
+
<template
|
|
15
|
+
v-for="file in storageFiles"
|
|
16
|
+
:key="file.id"
|
|
17
|
+
>
|
|
18
|
+
<div
|
|
19
|
+
class="imagePreviewWrap"
|
|
20
|
+
v-if="!multiple"
|
|
21
|
+
>
|
|
22
|
+
<img
|
|
23
|
+
class="preview"
|
|
24
|
+
:src="file.url"
|
|
25
|
+
alt=""
|
|
26
|
+
>
|
|
11
27
|
</div>
|
|
12
28
|
<div class="previewName">
|
|
13
|
-
<img
|
|
29
|
+
<img
|
|
30
|
+
height="60"
|
|
31
|
+
v-if="multiple"
|
|
32
|
+
class="preview"
|
|
33
|
+
:src="file.url"
|
|
34
|
+
alt=""
|
|
35
|
+
>
|
|
14
36
|
<p class="no-margin">
|
|
15
37
|
{{ file.name }}
|
|
16
38
|
</p>
|
|
17
|
-
<Btn
|
|
39
|
+
<Btn
|
|
40
|
+
thin
|
|
41
|
+
@click.stop="removeFile(file)"
|
|
42
|
+
flat
|
|
43
|
+
icon="delete"
|
|
44
|
+
color="red"
|
|
45
|
+
/>
|
|
18
46
|
</div>
|
|
19
47
|
</template>
|
|
20
|
-
<template
|
|
21
|
-
|
|
22
|
-
|
|
48
|
+
<template
|
|
49
|
+
v-for="fileQ in fileQueue"
|
|
50
|
+
:key="fileQ.file"
|
|
51
|
+
>
|
|
52
|
+
<div
|
|
53
|
+
class="imagePreviewWrap"
|
|
54
|
+
v-if="!multiple"
|
|
55
|
+
>
|
|
56
|
+
<img
|
|
57
|
+
class="preview"
|
|
58
|
+
:src="fileToUrl(fileQ.file)"
|
|
59
|
+
alt=""
|
|
60
|
+
>
|
|
23
61
|
</div>
|
|
24
62
|
<div class="previewName">
|
|
25
|
-
<img
|
|
63
|
+
<img
|
|
64
|
+
height="60"
|
|
65
|
+
v-if="multiple"
|
|
66
|
+
class="preview"
|
|
67
|
+
:src="fileToUrl(fileQ.file)"
|
|
68
|
+
alt=""
|
|
69
|
+
>
|
|
26
70
|
<p class="no-margin">
|
|
27
71
|
{{ fileQ.name }}
|
|
28
72
|
</p>
|
|
29
|
-
<div
|
|
30
|
-
|
|
31
|
-
|
|
73
|
+
<div
|
|
74
|
+
class="pie"
|
|
75
|
+
:style="`--p:${fileQ.progress}`"
|
|
76
|
+
style="--b: 2px"
|
|
77
|
+
:class="{ complete: fileQ.progress === 100 }"
|
|
78
|
+
>
|
|
79
|
+
<span
|
|
80
|
+
class="progress"
|
|
81
|
+
v-if="fileQ.progress < 100"
|
|
82
|
+
>
|
|
32
83
|
{{ `${fileQ.progress.toFixed(0)}` }}
|
|
33
84
|
</span>
|
|
34
|
-
<MaterialIcon
|
|
85
|
+
<MaterialIcon
|
|
86
|
+
class="success"
|
|
87
|
+
icon="check"
|
|
88
|
+
/>
|
|
35
89
|
</div>
|
|
36
90
|
</div>
|
|
37
91
|
</template>
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
<div class="pb-1">
|
|
3
3
|
<label :for="id">
|
|
4
4
|
{{ label }}
|
|
5
|
-
<Multiselect
|
|
6
|
-
:
|
|
5
|
+
<Multiselect
|
|
6
|
+
ref="multiselect" :id="id" label="label" trackBy="value" :options="optionList" :required="required"
|
|
7
|
+
:placeholder="placeholder" v-model="seletValue"
|
|
8
|
+
/>
|
|
7
9
|
</label>
|
|
8
10
|
</div>
|
|
9
11
|
</template>
|
|
@@ -125,7 +127,7 @@ fieldset[disabled] .multiselect {
|
|
|
125
127
|
width: 100%;
|
|
126
128
|
min-height: var(--input-height);
|
|
127
129
|
text-align: left;
|
|
128
|
-
color:
|
|
130
|
+
color: var(--input-color);
|
|
129
131
|
}
|
|
130
132
|
|
|
131
133
|
.multiselect * {
|
|
@@ -172,21 +174,21 @@ fieldset[disabled] .multiselect {
|
|
|
172
174
|
.multiselect__single {
|
|
173
175
|
position: relative;
|
|
174
176
|
display: inline-block;
|
|
175
|
-
min-height: 20px;
|
|
176
|
-
line-height: 20px;
|
|
177
177
|
border: none;
|
|
178
|
-
border-radius: var(--input-border-radius);
|
|
179
178
|
background: var(--input-bg);
|
|
180
|
-
padding: 0 0 0 5px;
|
|
181
179
|
width: calc(100%);
|
|
182
180
|
transition: border 0.1s ease;
|
|
183
181
|
box-sizing: border-box;
|
|
184
|
-
margin-bottom: 8px;
|
|
185
182
|
vertical-align: top;
|
|
183
|
+
font-size: var(--input-font-size);
|
|
184
|
+
padding-inline-start: 0rem;
|
|
185
|
+
}
|
|
186
|
+
.multiselect--active .multiselect__input {
|
|
187
|
+
margin-top: -0.5rem;
|
|
186
188
|
}
|
|
187
189
|
|
|
188
190
|
.multiselect__input::placeholder {
|
|
189
|
-
color:
|
|
191
|
+
color: var(--input-color);
|
|
190
192
|
}
|
|
191
193
|
|
|
192
194
|
.multiselect__tag~.multiselect__input,
|
|
@@ -206,7 +208,7 @@ fieldset[disabled] .multiselect {
|
|
|
206
208
|
}
|
|
207
209
|
|
|
208
210
|
.multiselect__single {
|
|
209
|
-
padding-left: 5px;
|
|
211
|
+
/* padding-left: 5px; */
|
|
210
212
|
margin-bottom: 8px;
|
|
211
213
|
}
|
|
212
214
|
|
|
@@ -215,12 +217,17 @@ fieldset[disabled] .multiselect {
|
|
|
215
217
|
}
|
|
216
218
|
|
|
217
219
|
.multiselect__tags {
|
|
218
|
-
min-height: 40px;
|
|
220
|
+
/* min-height: 40px; */
|
|
219
221
|
display: block;
|
|
220
|
-
padding:
|
|
222
|
+
/* padding: 0.7rem 40px 0.7rem 8px; */
|
|
221
223
|
border-radius: var(--input-border-radius);
|
|
222
224
|
background: var(--input-bg);
|
|
223
225
|
font-size: var(--input-font-size);
|
|
226
|
+
height: var(--input-height);
|
|
227
|
+
line-height: 0;
|
|
228
|
+
padding: calc(var(--input-height) / 2);
|
|
229
|
+
padding-inline-end: 40px;
|
|
230
|
+
padding-inline-start: 0.7rem;
|
|
224
231
|
}
|
|
225
232
|
|
|
226
233
|
.multiselect__tag {
|
|
@@ -293,8 +300,8 @@ fieldset[disabled] .multiselect {
|
|
|
293
300
|
display: block;
|
|
294
301
|
position: absolute;
|
|
295
302
|
box-sizing: border-box;
|
|
296
|
-
width: 40px;
|
|
297
|
-
height: 38px;
|
|
303
|
+
/* width: 40px; */
|
|
304
|
+
/* height: 38px; */
|
|
298
305
|
right: 1px;
|
|
299
306
|
top: 1px;
|
|
300
307
|
padding: 4px 8px;
|
|
@@ -303,22 +310,23 @@ fieldset[disabled] .multiselect {
|
|
|
303
310
|
text-align: center;
|
|
304
311
|
cursor: pointer;
|
|
305
312
|
transition: transform 0.2s ease;
|
|
313
|
+
padding-top: calc(var(--input-height) / 2 - 0.7rem);
|
|
314
|
+
|
|
306
315
|
}
|
|
307
316
|
|
|
308
317
|
.multiselect__select::before {
|
|
309
318
|
position: relative;
|
|
310
319
|
background-size: contain;
|
|
311
320
|
transform: scale(0.5);
|
|
312
|
-
top: 4px;
|
|
313
321
|
color: var(--bgl-black);
|
|
314
|
-
content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='%23b7b7b7' height='24' viewBox='0 -960 960 960' width='24'><path d='M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z'/></svg>")
|
|
322
|
+
content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='%23b7b7b7' height='24' viewBox='0 -960 960 960' width='24'><path d='M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z'/></svg>");
|
|
315
323
|
}
|
|
316
324
|
|
|
317
325
|
.multiselect__placeholder {
|
|
318
|
-
color:
|
|
326
|
+
color: var(--placeholder-color);
|
|
319
327
|
display: inline-block;
|
|
320
328
|
margin-bottom: 10px;
|
|
321
|
-
|
|
329
|
+
|
|
322
330
|
}
|
|
323
331
|
|
|
324
332
|
.multiselect--active .multiselect__placeholder {
|
|
@@ -427,16 +435,16 @@ fieldset[disabled] .multiselect {
|
|
|
427
435
|
|
|
428
436
|
.multiselect__option--group {
|
|
429
437
|
background: #ededed;
|
|
430
|
-
color:
|
|
438
|
+
color: var(--input-color);
|
|
431
439
|
}
|
|
432
440
|
|
|
433
441
|
.multiselect__option--group.multiselect__option--highlight {
|
|
434
|
-
background:
|
|
442
|
+
background: var(--input-color);
|
|
435
443
|
color: #fff;
|
|
436
444
|
}
|
|
437
445
|
|
|
438
446
|
.multiselect__option--group.multiselect__option--highlight::after {
|
|
439
|
-
background:
|
|
447
|
+
background: var(--input-color);
|
|
440
448
|
}
|
|
441
449
|
|
|
442
450
|
.multiselect__option--disabled.multiselect__option--highlight {
|
|
@@ -481,7 +489,9 @@ fieldset[disabled] .multiselect {
|
|
|
481
489
|
}
|
|
482
490
|
|
|
483
491
|
*[dir="rtl"] .multiselect__tags {
|
|
484
|
-
padding:
|
|
492
|
+
padding: calc(var(--input-height) / 2);
|
|
493
|
+
padding-inline-end: 40px;
|
|
494
|
+
padding-inline-start: 0.7rem;
|
|
485
495
|
}
|
|
486
496
|
|
|
487
497
|
*[dir="rtl"] .multiselect__content {
|
|
@@ -189,7 +189,7 @@ onMounted(() => {
|
|
|
189
189
|
cursor: grab;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
.
|
|
192
|
+
.bgl_btn.thin.bgl_flatBtn {
|
|
193
193
|
margin-inline-start: -1rem;
|
|
194
194
|
margin-top: 1rem;
|
|
195
195
|
}
|
|
@@ -252,18 +252,18 @@ onMounted(() => {
|
|
|
252
252
|
background: var(--border-color);
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
.table-action>.
|
|
255
|
+
.table-action>.bgl_icon-font {
|
|
256
256
|
padding: 11.4px;
|
|
257
257
|
cursor: pointer;
|
|
258
258
|
transition: var(--bgl-transition);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
.table-action:hover>.
|
|
261
|
+
.table-action:hover>.bgl_icon-font {
|
|
262
262
|
background: var(--bgl-red);
|
|
263
263
|
color: var(--bgl-white);
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
.table-action:active>.
|
|
266
|
+
.table-action:active>.bgl_icon-font {
|
|
267
267
|
filter: brightness(90%);
|
|
268
268
|
}
|
|
269
269
|
|