@bagelink/vue 0.0.270 → 0.0.280

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.
Files changed (46) hide show
  1. package/dist/components/Accordion.vue.d.ts +10 -0
  2. package/dist/components/Accordion.vue.d.ts.map +1 -0
  3. package/dist/components/AccordionItem.vue.d.ts +2 -0
  4. package/dist/components/AccordionItem.vue.d.ts.map +1 -1
  5. package/dist/components/Btn.vue.d.ts +3 -3
  6. package/dist/components/{Drop.vue.d.ts → ComboBox.vue.d.ts} +12 -12
  7. package/dist/components/ComboBox.vue.d.ts.map +1 -0
  8. package/dist/components/Popover.vue.d.ts +10 -0
  9. package/dist/components/Popover.vue.d.ts.map +1 -0
  10. package/dist/components/Title.vue.d.ts +1 -1
  11. package/dist/components/form/BglForm.vue.d.ts.map +1 -1
  12. package/dist/components/form/ItemRef.vue.d.ts +0 -1
  13. package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
  14. package/dist/components/form/inputs/CheckInput.vue.d.ts +9 -4
  15. package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
  16. package/dist/components/form/inputs/SelectField.vue.d.ts +4 -1
  17. package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
  18. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  19. package/dist/components/index.d.ts +3 -0
  20. package/dist/components/index.d.ts.map +1 -1
  21. package/dist/index.cjs +6778 -4053
  22. package/dist/index.mjs +6752 -4027
  23. package/dist/plugins/bagel.d.ts.map +1 -1
  24. package/dist/plugins/modal.d.ts +1 -1
  25. package/dist/plugins/modal.d.ts.map +1 -1
  26. package/dist/style.css +706 -678
  27. package/dist/utils/clickOutside.d.ts +7 -0
  28. package/dist/utils/clickOutside.d.ts.map +1 -0
  29. package/package.json +2 -1
  30. package/src/components/Accordion.vue +15 -0
  31. package/src/components/AccordionItem.vue +48 -24
  32. package/src/components/ComboBox.vue +138 -0
  33. package/src/components/form/inputs/CheckInput.vue +55 -53
  34. package/src/components/form/inputs/SelectInput.vue +272 -284
  35. package/src/components/formkit/Toggle.vue +85 -100
  36. package/src/components/index.ts +3 -0
  37. package/src/plugins/bagel.ts +14 -2
  38. package/src/plugins/modal.ts +23 -23
  39. package/src/styles/buttons.css +38 -40
  40. package/src/styles/inputs.css +100 -109
  41. package/src/styles/layout.css +191 -189
  42. package/src/styles/text.css +38 -62
  43. package/src/utils/clickOutside.ts +15 -0
  44. package/dist/components/Drop.vue.d.ts.map +0 -1
  45. package/dist/components/FileUploader.vue.d.ts +0 -60
  46. package/dist/components/FileUploader.vue.d.ts.map +0 -1
@@ -1,24 +1,12 @@
1
1
  <template>
2
- <div class="pb-1">
3
- <label
4
- class="txt-start"
5
- :for="id"
6
- >
7
- {{ label }}
8
- <Multiselect
9
- ref="multiselect"
10
- :id="id"
11
- label="label"
12
- trackBy="value"
13
- :options="optionList"
14
- :required
15
- :placeholder
16
- v-model="seletValue"
17
- v-bind="extraProps"
18
- />
19
- <!-- <input v-model="dataValue" type="hidden" :name="id" :required v-bind="extraProps"> -->
20
- </label>
21
- </div>
2
+ <div class="pb-1">
3
+ <label class="txt-start" :for="id">
4
+ {{ label }}
5
+ <Multiselect ref="multiselect" :id="id" label="label" trackBy="value" :options="optionList" :required="required"
6
+ :placeholder="placeholder" v-model="seletValue" :close-on-select="true" v-bind="extraProps" />
7
+ <!-- <input v-model="dataValue" type="hidden" :name="id" :required v-bind="extraProps"> -->
8
+ </label>
9
+ </div>
22
10
  </template>
23
11
 
24
12
  <script lang="ts" setup>
@@ -26,20 +14,20 @@ import { watch } from 'vue';
26
14
  import Multiselect from 'vue-multiselect';
27
15
 
28
16
  type Option = {
29
- label: string;
30
- value: string | number;
17
+ label: string;
18
+ value: string | number;
31
19
  };
32
20
  type RawOption = Option | string | number;
33
21
 
34
22
  const props = defineProps<{
35
- required?: boolean,
36
- label?: string,
37
- id?: string,
38
- modelValue?: string | number,
39
- placeholder?: string,
40
- defaultValue?: string | number,
41
- options: RawOption[] | string
42
- extraProps?: Record<string, any>
23
+ required?: boolean,
24
+ label?: string,
25
+ id?: string,
26
+ modelValue?: string | number,
27
+ placeholder?: string,
28
+ defaultValue?: string | number,
29
+ options: RawOption[] | string
30
+ extraProps?: Record<string, any>
43
31
  }>();
44
32
 
45
33
  let dataValue = $ref<string | number | undefined>(props.modelValue || props.defaultValue);
@@ -48,24 +36,24 @@ const emit = defineEmits(['update:modelValue']);
48
36
  const optionList = $ref<Option[]>([]);
49
37
 
50
38
  const seletValue = $computed({
51
- get: () => optionList.find((opt) => opt.value === dataValue),
52
- set: (val?: Option) => {
53
- dataValue = val?.value;
54
- emit('update:modelValue', dataValue);
55
- },
39
+ get: () => optionList.find((opt) => opt.value === dataValue),
40
+ set: (val?: Option) => {
41
+ dataValue = val?.value;
42
+ emit('update:modelValue', dataValue);
43
+ },
56
44
  });
57
45
 
58
46
  function optnToValueLabel(option: RawOption): Option {
59
- if (typeof option === 'string' || typeof option === 'number') {
60
- return { label: `${option}`, value: option };
61
- }
62
- return option;
47
+ if (typeof option === 'string' || typeof option === 'number') {
48
+ return { label: `${option}`, value: option };
49
+ }
50
+ return option;
63
51
  }
64
52
 
65
53
  function updateOptionList() {
66
- const { options } = props;
67
- const optnLst = typeof options === 'string' ? options.split('\n|,') : options || [];
68
- optionList.push(...optnLst.map(optnToValueLabel));
54
+ const { options } = props;
55
+ const optnLst = typeof options === 'string' ? options.split('\n|,') : options || [];
56
+ optionList.push(...optnLst.map(optnToValueLabel));
69
57
  }
70
58
 
71
59
  watch(() => props.options, updateOptionList, { immediate: true });
@@ -73,211 +61,211 @@ watch(() => props.options, updateOptionList, { immediate: true });
73
61
 
74
62
  <style>
75
63
  fieldset[disabled] .multiselect {
76
- pointer-events: none;
64
+ pointer-events: none;
77
65
  }
78
66
 
79
67
  .multiselect__spinner {
80
- position: absolute;
81
- right: 1px;
82
- top: 1px;
83
- width: 40px;
84
- height: 38px;
85
- background: #fff;
86
- display: block;
68
+ position: absolute;
69
+ right: 1px;
70
+ top: 1px;
71
+ width: 40px;
72
+ height: 38px;
73
+ background: #fff;
74
+ display: block;
87
75
  }
88
76
 
89
77
  .multiselect__spinner::before,
90
78
  .multiselect__spinner::after {
91
- position: absolute;
92
- content: "";
93
- top: 50%;
94
- left: 50%;
95
- margin: -8px 0 0 -8px;
96
- width: 16px;
97
- height: 16px;
98
- border-radius: 100%;
99
- border-color: var(--bgl-primary-tint) transparent transparent;
100
- border-style: solid;
101
- border-width: 2px;
102
- box-shadow: 0 0 0 1px transparent;
79
+ position: absolute;
80
+ content: "";
81
+ top: 50%;
82
+ left: 50%;
83
+ margin: -8px 0 0 -8px;
84
+ width: 16px;
85
+ height: 16px;
86
+ border-radius: 100%;
87
+ border-color: var(--bgl-primary-tint) transparent transparent;
88
+ border-style: solid;
89
+ border-width: 2px;
90
+ box-shadow: 0 0 0 1px transparent;
103
91
  }
104
92
 
105
93
  .multiselect__spinner::before {
106
- animation: spinning 2.4s cubic-bezier(0.41, 0.26, 0.2, 0.62);
107
- animation-iteration-count: infinite;
94
+ animation: spinning 2.4s cubic-bezier(0.41, 0.26, 0.2, 0.62);
95
+ animation-iteration-count: infinite;
108
96
  }
109
97
 
110
98
  .multiselect__spinner::after {
111
- animation: spinning 2.4s cubic-bezier(0.51, 0.09, 0.21, 0.8);
112
- animation-iteration-count: infinite;
99
+ animation: spinning 2.4s cubic-bezier(0.51, 0.09, 0.21, 0.8);
100
+ animation-iteration-count: infinite;
113
101
  }
114
102
 
115
103
  .multiselect__loading-enter-active,
116
104
  .multiselect__loading-leave-active {
117
- transition: opacity 0.4s ease-in-out;
118
- opacity: 1;
105
+ transition: opacity 0.4s ease-in-out;
106
+ opacity: 1;
119
107
  }
120
108
 
121
109
  .multiselect__loading-enter,
122
110
  .multiselect__loading-leave-active {
123
- opacity: 0;
111
+ opacity: 0;
124
112
  }
125
113
 
126
114
  .multiselect,
127
115
  .multiselect__input,
128
116
  .multiselect__single {
129
- font-family: inherit;
130
- font-size: var(--input-font-size);
131
- touch-action: manipulation;
117
+ font-family: inherit;
118
+ font-size: var(--input-font-size);
119
+ touch-action: manipulation;
132
120
  }
133
121
 
134
122
  .multiselect {
135
- box-sizing: content-box;
136
- display: block;
137
- position: relative;
138
- width: 100%;
139
- min-height: var(--input-height);
140
- text-align: left;
141
- color: var(--input-color);
123
+ box-sizing: content-box;
124
+ display: block;
125
+ position: relative;
126
+ width: 100%;
127
+ min-height: var(--input-height);
128
+ text-align: left;
129
+ color: var(--input-color);
142
130
  }
143
131
 
144
132
  .multiselect * {
145
- box-sizing: border-box;
133
+ box-sizing: border-box;
146
134
  }
147
135
 
148
136
  .multiselect:focus {
149
- outline: none;
137
+ outline: none;
150
138
  }
151
139
 
152
140
  .multiselect--disabled {
153
- background: #ededed;
154
- pointer-events: none;
155
- opacity: 0.6;
141
+ background: #ededed;
142
+ pointer-events: none;
143
+ opacity: 0.6;
156
144
  }
157
145
 
158
146
  .multiselect--active {
159
- z-index: 50;
147
+ z-index: 50;
160
148
  }
161
149
 
162
150
  .multiselect--active:not(.multiselect--above) .multiselect__current,
163
151
  .multiselect--active:not(.multiselect--above) .multiselect__input,
164
152
  .multiselect--active:not(.multiselect--above) .multiselect__tags {
165
- border-bottom-left-radius: 0;
166
- border-bottom-right-radius: 0;
153
+ border-bottom-left-radius: 0;
154
+ border-bottom-right-radius: 0;
167
155
  }
168
156
 
169
157
  .multiselect--active:not(.multiselect--above) .multiselect__tags {
170
- box-shadow: inset 0 0 10px #00000012;
158
+ box-shadow: inset 0 0 10px #00000012;
171
159
  }
172
160
 
173
161
  .multiselect--active .multiselect__select {
174
- transform: rotateZ(180deg);
162
+ transform: rotateZ(180deg);
175
163
  }
176
164
 
177
165
  .multiselect--above.multiselect--active .multiselect__current,
178
166
  .multiselect--above.multiselect--active .multiselect__input,
179
167
  .multiselect--above.multiselect--active .multiselect__tags {
180
- border-top-left-radius: 0;
181
- border-top-right-radius: 0;
168
+ border-top-left-radius: 0;
169
+ border-top-right-radius: 0;
182
170
  }
183
171
 
184
172
  .multiselect__input,
185
173
  .multiselect__single {
186
- position: relative;
187
- display: inline-block;
188
- border: none;
189
- background: var(--input-bg);
190
- width: calc(100%);
191
- transition: border 0.1s ease;
192
- box-sizing: border-box;
193
- vertical-align: top;
194
- font-size: var(--input-font-size);
195
- padding-inline-start: 0rem;
174
+ position: relative;
175
+ display: inline-block;
176
+ border: none;
177
+ background: var(--input-bg);
178
+ width: calc(100%);
179
+ transition: border 0.1s ease;
180
+ box-sizing: border-box;
181
+ vertical-align: top;
182
+ font-size: var(--input-font-size);
183
+ padding-inline-start: 0rem;
196
184
  }
197
185
 
198
186
  .multiselect--active .multiselect__input {
199
- margin-top: -0.6rem;
187
+ margin-top: -0.6rem;
200
188
  }
201
189
 
202
190
  .multiselect__input::placeholder {
203
- color: var(--input-color);
191
+ color: var(--input-color);
204
192
  }
205
193
 
206
194
  .multiselect__tag~.multiselect__input,
207
195
  .multiselect__tag~.multiselect__single {
208
- width: auto;
196
+ width: auto;
209
197
  }
210
198
 
211
199
  .multiselect__input:hover,
212
200
  .multiselect__single:hover {
213
- border-color: #cfcfcf;
201
+ border-color: #cfcfcf;
214
202
  }
215
203
 
216
204
  .multiselect__input:focus,
217
205
  .multiselect__single:focus {
218
- border-color: #a8a8a8;
219
- outline: none;
206
+ border-color: #a8a8a8;
207
+ outline: none;
220
208
  }
221
209
 
222
210
  .multiselect__single {
223
- /* padding-left: 5px; */
224
- margin-bottom: 8px;
211
+ /* padding-left: 5px; */
212
+ margin-bottom: 8px;
225
213
  }
226
214
 
227
215
  .multiselect__tags-wrap {
228
- display: inline;
216
+ display: inline;
229
217
  }
230
218
 
231
219
  .multiselect__tags {
232
- /* min-height: 40px; */
233
- display: block;
234
- /* padding: 0.7rem 40px 0.7rem 8px; */
235
- border-radius: var(--input-border-radius);
236
- background: var(--input-bg);
237
- font-size: var(--input-font-size);
238
- height: var(--input-height);
239
- line-height: 0;
240
- padding: calc(var(--input-height) / 2);
241
- padding-inline-end: 40px;
242
- padding-inline-start: 0.7rem;
220
+ /* min-height: 40px; */
221
+ display: block;
222
+ /* padding: 0.7rem 40px 0.7rem 8px; */
223
+ border-radius: var(--input-border-radius);
224
+ background: var(--input-bg);
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;
243
231
  }
244
232
 
245
233
  .multiselect__tag {
246
- position: relative;
247
- display: inline-block;
248
- padding: 4px 26px 4px 10px;
249
- border-radius: 5px;
250
- margin-right: 10px;
251
- color: #fff;
252
- line-height: 1;
253
- background: var(--bgl-primary-tint);
254
- margin-bottom: 5px;
255
- white-space: nowrap;
256
- overflow: hidden;
257
- max-width: 100%;
258
- text-overflow: ellipsis;
234
+ position: relative;
235
+ display: inline-block;
236
+ padding: 4px 26px 4px 10px;
237
+ border-radius: 5px;
238
+ margin-right: 10px;
239
+ color: #fff;
240
+ line-height: 1;
241
+ background: var(--bgl-primary-tint);
242
+ margin-bottom: 5px;
243
+ white-space: nowrap;
244
+ overflow: hidden;
245
+ max-width: 100%;
246
+ text-overflow: ellipsis;
259
247
  }
260
248
 
261
249
  .multiselect__tag-icon {
262
- cursor: pointer;
263
- margin-left: 7px;
264
- position: absolute;
265
- right: 0;
266
- top: 0;
267
- bottom: 0;
268
- font-weight: 700;
269
- font-style: initial;
270
- width: 22px;
271
- text-align: center;
272
- line-height: 22px;
273
- transition: all 0.2s ease;
274
- border-radius: 5px;
250
+ cursor: pointer;
251
+ margin-left: 7px;
252
+ position: absolute;
253
+ right: 0;
254
+ top: 0;
255
+ bottom: 0;
256
+ font-weight: 700;
257
+ font-style: initial;
258
+ width: 22px;
259
+ text-align: center;
260
+ line-height: 22px;
261
+ transition: all 0.2s ease;
262
+ border-radius: 5px;
275
263
  }
276
264
 
277
265
  .multiselect__tag-icon::after {
278
- content: "×";
279
- color: #266d4d;
280
- font-size: 14px;
266
+ content: "×";
267
+ color: #266d4d;
268
+ font-size: 14px;
281
269
  }
282
270
 
283
271
  /* // Remove these lines to avoid green closing button
@@ -288,250 +276,250 @@ fieldset[disabled] .multiselect {
288
276
 
289
277
  .multiselect__tag-icon:focus::after,
290
278
  .multiselect__tag-icon:hover::after {
291
- color: white;
279
+ color: white;
292
280
  }
293
281
 
294
282
  .multiselect__current {
295
- line-height: 16px;
296
- min-height: 40px;
297
- box-sizing: border-box;
298
- display: block;
299
- overflow: hidden;
300
- padding: 8px 12px 0;
301
- padding-right: 30px;
302
- white-space: nowrap;
303
- margin: 0;
304
- text-decoration: none;
305
- border-radius: 5px;
306
- /* border: 1px solid #e8e8e8; */
307
- cursor: pointer;
283
+ line-height: 16px;
284
+ min-height: 40px;
285
+ box-sizing: border-box;
286
+ display: block;
287
+ overflow: hidden;
288
+ padding: 8px 12px 0;
289
+ padding-right: 30px;
290
+ white-space: nowrap;
291
+ margin: 0;
292
+ text-decoration: none;
293
+ border-radius: 5px;
294
+ /* border: 1px solid #e8e8e8; */
295
+ cursor: pointer;
308
296
  }
309
297
 
310
298
  .multiselect__select {
311
- line-height: 16px;
312
- display: block;
313
- position: absolute;
314
- box-sizing: border-box;
315
- /* width: 40px; */
316
- /* height: 38px; */
317
- right: 1px;
318
- top: 1px;
319
- padding: 4px 8px;
320
- margin: 0;
321
- text-decoration: none;
322
- text-align: center;
323
- cursor: pointer;
324
- transition: transform 0.2s ease;
325
- padding-top: calc(var(--input-height) / 2 - 0.7rem);
299
+ line-height: 16px;
300
+ display: block;
301
+ position: absolute;
302
+ box-sizing: border-box;
303
+ /* width: 40px; */
304
+ /* height: 38px; */
305
+ right: 1px;
306
+ top: 1px;
307
+ padding: 4px 8px;
308
+ margin: 0;
309
+ text-decoration: none;
310
+ text-align: center;
311
+ cursor: pointer;
312
+ transition: transform 0.2s ease;
313
+ padding-top: calc(var(--input-height) / 2 - 0.7rem);
326
314
 
327
315
  }
328
316
 
329
317
  .multiselect__select::before {
330
- position: relative;
331
- background-size: contain;
332
- transform: scale(0.5);
333
- color: var(--bgl-black);
334
- 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>");
318
+ position: relative;
319
+ background-size: contain;
320
+ transform: scale(0.5);
321
+ color: var(--bgl-black);
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>");
335
323
  }
336
324
 
337
325
  .multiselect__placeholder {
338
- color: var(--placeholder-color);
339
- display: inline-block;
340
- margin-bottom: 10px;
326
+ color: var(--placeholder-color);
327
+ display: inline-block;
328
+ margin-bottom: 10px;
341
329
 
342
330
  }
343
331
 
344
332
  .multiselect--active .multiselect__placeholder {
345
- display: none;
333
+ display: none;
346
334
  }
347
335
 
348
336
  .multiselect__content-wrapper {
349
- position: absolute;
350
- display: block;
351
- background: #fff;
352
- width: 100%;
353
- max-height: 240px;
354
- overflow: auto;
355
- box-shadow: 0 0 10px #00000012;
356
- border-top: none;
357
- border-bottom-left-radius: 5px;
358
- border-bottom-right-radius: 5px;
359
- z-index: 50;
360
- -webkit-overflow-scrolling: touch;
337
+ position: absolute;
338
+ display: block;
339
+ background: #fff;
340
+ width: 100%;
341
+ max-height: 240px;
342
+ overflow: auto;
343
+ box-shadow: 0 0 10px #00000012;
344
+ border-top: none;
345
+ border-bottom-left-radius: 5px;
346
+ border-bottom-right-radius: 5px;
347
+ z-index: 50;
348
+ -webkit-overflow-scrolling: touch;
361
349
  }
362
350
 
363
351
  .multiselect__content {
364
- list-style: none;
365
- display: inline-block;
366
- padding: 0;
367
- margin: 0;
368
- min-width: 100%;
369
- vertical-align: top;
352
+ list-style: none;
353
+ display: inline-block;
354
+ padding: 0;
355
+ margin: 0;
356
+ min-width: 100%;
357
+ vertical-align: top;
370
358
  }
371
359
 
372
360
  .multiselect--above .multiselect__content-wrapper {
373
- bottom: 100%;
374
- border-bottom-left-radius: 0;
375
- border-bottom-right-radius: 0;
376
- border-top-left-radius: 5px;
377
- border-top-right-radius: 5px;
378
- border-bottom: none;
379
- border-top: 1px solid #e8e8e8;
361
+ bottom: 100%;
362
+ border-bottom-left-radius: 0;
363
+ border-bottom-right-radius: 0;
364
+ border-top-left-radius: 5px;
365
+ border-top-right-radius: 5px;
366
+ border-bottom: none;
367
+ border-top: 1px solid #e8e8e8;
380
368
  }
381
369
 
382
370
  .multiselect__content::-webkit-scrollbar {
383
- display: none;
371
+ display: none;
384
372
  }
385
373
 
386
374
  .multiselect__element {
387
- display: block;
375
+ display: block;
388
376
  }
389
377
 
390
378
  .multiselect__option {
391
- display: block;
392
- padding-inline-start: 12px;
393
- min-height: calc(var(--input-height) * 0.8);
394
- line-height: calc(var(--input-height) * 0.8);
395
- text-decoration: none;
396
- text-transform: none;
397
- position: relative;
398
- cursor: pointer;
399
- white-space: nowrap;
379
+ display: block;
380
+ padding-inline-start: 12px;
381
+ min-height: calc(var(--input-height) * 0.8);
382
+ line-height: calc(var(--input-height) * 0.8);
383
+ text-decoration: none;
384
+ text-transform: none;
385
+ position: relative;
386
+ cursor: pointer;
387
+ white-space: nowrap;
400
388
  }
401
389
 
402
390
  .multiselect__option::after {
403
- top: 0;
404
- right: 0;
405
- position: absolute;
406
- width: calc(var(--input-height) * 0.8);
407
- height: calc(var(--input-height) * 0.8);
408
- ;
409
- text-align: center;
410
- font-size: 13px;
391
+ top: 0;
392
+ right: 0;
393
+ position: absolute;
394
+ width: calc(var(--input-height) * 0.8);
395
+ height: calc(var(--input-height) * 0.8);
396
+ ;
397
+ text-align: center;
398
+ font-size: 13px;
411
399
  }
412
400
 
413
401
  .multiselect__option--highlight {
414
- background: var(--bgl-primary-light);
415
- outline: none;
416
- color: var(--bgl-primary);
402
+ background: var(--bgl-primary-light);
403
+ outline: none;
404
+ color: var(--bgl-primary);
417
405
  }
418
406
 
419
407
  .multiselect__option--selected {
420
- background: var(--bgl-primary);
421
- color: var(--bgl-white);
422
- font-weight: bold;
408
+ background: var(--bgl-primary);
409
+ color: var(--bgl-white);
410
+ font-weight: bold;
423
411
  }
424
412
 
425
413
  .multiselect__option--selected.multiselect__option--highlight {
426
- filter: brightness(0.9);
427
- color: #fff;
414
+ filter: brightness(0.9);
415
+ color: #fff;
428
416
  }
429
417
 
430
418
  .multiselect__option--selected.multiselect__option--highlight::after {
431
- content: "✕";
432
- color: var(--bgl-white);
419
+ content: "✕";
420
+ color: var(--bgl-white);
433
421
  }
434
422
 
435
423
  .multiselect--disabled .multiselect__current,
436
424
  .multiselect--disabled .multiselect__select {
437
- background: #ededed;
438
- color: #a6a6a6;
425
+ background: #ededed;
426
+ color: #a6a6a6;
439
427
  }
440
428
 
441
429
  .multiselect__option--disabled {
442
- background: #ededed !important;
443
- color: #a6a6a6 !important;
444
- cursor: text;
445
- pointer-events: none;
430
+ background: #ededed !important;
431
+ color: #a6a6a6 !important;
432
+ cursor: text;
433
+ pointer-events: none;
446
434
  }
447
435
 
448
436
  .multiselect__option--group {
449
- background: #ededed;
450
- color: var(--input-color);
437
+ background: #ededed;
438
+ color: var(--input-color);
451
439
  }
452
440
 
453
441
  .multiselect__option--group.multiselect__option--highlight {
454
- background: var(--input-color);
455
- color: #fff;
442
+ background: var(--input-color);
443
+ color: #fff;
456
444
  }
457
445
 
458
446
  .multiselect__option--group.multiselect__option--highlight::after {
459
- background: var(--input-color);
447
+ background: var(--input-color);
460
448
  }
461
449
 
462
450
  .multiselect__option--disabled.multiselect__option--highlight {
463
- background: #dedede;
451
+ background: #dedede;
464
452
  }
465
453
 
466
454
  .multiselect__option--group-selected.multiselect__option--highlight {
467
- background: var(--bgl-red);
468
- color: #fff;
455
+ background: var(--bgl-red);
456
+ color: #fff;
469
457
  }
470
458
 
471
459
  .multiselect__option--group-selected.multiselect__option--highlight::after {
472
- background: var(--bgl-red);
473
- content: attr(data-deselect);
474
- color: #fff;
460
+ background: var(--bgl-red);
461
+ content: attr(data-deselect);
462
+ color: #fff;
475
463
  }
476
464
 
477
465
  .multiselect-enter-active,
478
466
  .multiselect-leave-active {
479
- transition: all 0.15s ease;
467
+ transition: all 0.15s ease;
480
468
  }
481
469
 
482
470
  .multiselect-enter,
483
471
  .multiselect-leave-active {
484
- opacity: 0;
472
+ opacity: 0;
485
473
  }
486
474
 
487
475
  .multiselect__strong {
488
- margin-bottom: 8px;
489
- line-height: 20px;
490
- display: inline-block;
491
- vertical-align: top;
476
+ margin-bottom: 8px;
477
+ line-height: 20px;
478
+ display: inline-block;
479
+ vertical-align: top;
492
480
  }
493
481
 
494
482
  *[dir="rtl"] .multiselect {
495
- text-align: right;
483
+ text-align: right;
496
484
  }
497
485
 
498
486
  *[dir="rtl"] .multiselect__select {
499
- right: auto;
500
- left: 1px;
487
+ right: auto;
488
+ left: 1px;
501
489
  }
502
490
 
503
491
  *[dir="rtl"] .multiselect__tags {
504
- padding: calc(var(--input-height) / 2);
505
- padding-inline-end: 40px;
506
- padding-inline-start: 0.7rem;
492
+ padding: calc(var(--input-height) / 2);
493
+ padding-inline-end: 40px;
494
+ padding-inline-start: 0.7rem;
507
495
  }
508
496
 
509
497
  *[dir="rtl"] .multiselect__content {
510
- text-align: right;
498
+ text-align: right;
511
499
  }
512
500
 
513
501
  *[dir="rtl"] .multiselect__option::after {
514
- right: auto;
515
- left: 0;
502
+ right: auto;
503
+ left: 0;
516
504
  }
517
505
 
518
506
  *[dir="rtl"] .multiselect__clear {
519
- right: auto;
520
- left: 12px;
507
+ right: auto;
508
+ left: 12px;
521
509
  }
522
510
 
523
511
  *[dir="rtl"] .multiselect__spinner {
524
- right: auto;
525
- left: 1px;
512
+ right: auto;
513
+ left: 1px;
526
514
  }
527
515
 
528
516
  @keyframes spinning {
529
- from {
530
- transform: rotate(0);
531
- }
517
+ from {
518
+ transform: rotate(0);
519
+ }
532
520
 
533
- to {
534
- transform: rotate(2turn);
535
- }
521
+ to {
522
+ transform: rotate(2turn);
523
+ }
536
524
  }
537
525
  </style>