@bagelink/vue 1.20.80 → 1.20.85
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/{StructuredEditor-DWfRtYZa.js → StructuredEditor-DosasECG.js} +1 -1
- package/dist/{StructuredEditor-B-Vp4pa2.cjs → StructuredEditor-DsueSH6M.cjs} +1 -1
- package/dist/components/form/inputs/OTP.vue.d.ts +1 -1
- package/dist/components/form/inputs/OTP.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/core.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-Uy-ww1Nz.cjs → src-CP_U_-hK.cjs} +31 -31
- package/dist/{src-DwJEyASG.js → src-RJnp6C9c.js} +1878 -1877
- package/dist/src.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/form/inputs/OTP.vue +9 -9
- package/src/components/form/inputs/SelectInput.vue +48 -14
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bagelink/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.20.
|
|
4
|
+
"version": "1.20.85",
|
|
5
5
|
"description": "Bagel core sdk packages",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Bagel Studio",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@types/signature_pad": "^4.0.0",
|
|
64
64
|
"vue": "^3.5.43",
|
|
65
65
|
"vue-component-type-helpers": "^2.2.12",
|
|
66
|
-
"@bagelink/sdk": "1.20.
|
|
66
|
+
"@bagelink/sdk": "1.20.85"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"@bagelink/sdk": "*",
|
|
@@ -12,7 +12,7 @@ const props = defineProps<{
|
|
|
12
12
|
color?: string
|
|
13
13
|
/** Size of each digit box (sets --otp-input-width & --otp-input-height). Accepts any CSS length (e.g. "2.5rem", "40px"). Default: 3rem. */
|
|
14
14
|
size?: string
|
|
15
|
-
/**
|
|
15
|
+
/** Optional mobile-only size below 910px (sets --otp-input-mobile-width & --otp-input-mobile-height). When omitted, mobile uses the desktop size. */
|
|
16
16
|
mobileSize?: string
|
|
17
17
|
} & BagelInputShellProps>()
|
|
18
18
|
|
|
@@ -208,10 +208,10 @@ outline-offset: var(--otp-input-outline-offset);
|
|
|
208
208
|
--otp-input-gap: 5px;
|
|
209
209
|
--otp-input-bg: var(--bgl-gray-light);
|
|
210
210
|
--otp-input-color: var(--bgl-otp-digit-color, inherit);
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
211
|
+
/* Mobile vars are intentionally unset by default — the media query falls
|
|
212
|
+
back to the desktop vars (and the previous 0.25rem padding). Set
|
|
213
|
+
--otp-input-mobile-* (or the mobileSize prop) only when you need a
|
|
214
|
+
mobile-specific override. */
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
.otp-input.frame .digit-box {
|
|
@@ -238,10 +238,10 @@ outline-offset: -1px;
|
|
|
238
238
|
|
|
239
239
|
@media screen and (max-width: 910px) {
|
|
240
240
|
.digit-box {
|
|
241
|
-
width: var(--otp-input-mobile-width);
|
|
242
|
-
height: var(--otp-input-mobile-height);
|
|
243
|
-
font-size: var(--otp-input-mobile-font-size);
|
|
244
|
-
padding: var(--otp-input-mobile-padding);
|
|
241
|
+
width: var(--otp-input-mobile-width, var(--bgl-otp-digit-mobile-size, var(--otp-input-width)));
|
|
242
|
+
height: var(--otp-input-mobile-height, var(--bgl-otp-digit-mobile-size, var(--otp-input-height)));
|
|
243
|
+
font-size: var(--otp-input-mobile-font-size, var(--otp-input-font-size));
|
|
244
|
+
padding: var(--otp-input-mobile-padding, 0.25rem);
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
|
|
@@ -303,7 +303,7 @@ onMounted(() => {
|
|
|
303
303
|
<label>
|
|
304
304
|
<span v-if="!hideLabel && (label || (underlined && placeholder))" class="label-text">{{ resolveI18n(label)
|
|
305
305
|
|| resolveI18n(placeholder) }}<span v-if="required"> *</span></span>
|
|
306
|
-
<div class="flex gap-05">
|
|
306
|
+
<div class="flex gap-05 min-w-0">
|
|
307
307
|
<TextInput
|
|
308
308
|
v-if="searchable && open" ref="searchInput" v-model="searchTerm" class="mb-0"
|
|
309
309
|
:placeholder="searchPlaceholder" icon="search" :thin @input="selected = false" @click="focusInput"
|
|
@@ -318,16 +318,18 @@ onMounted(() => {
|
|
|
318
318
|
:aria-expanded="open" :aria-controls="listboxId" :aria-activedescendant="activeOptionId"
|
|
319
319
|
@keydown.down.prevent="navigate('down')" @keydown.up.prevent="navigate('up')"
|
|
320
320
|
>
|
|
321
|
-
<Icon v-if="icon" :icon="icon" aria-hidden="true" />
|
|
322
|
-
<p v-if="!hideLabel" :class="{ '
|
|
321
|
+
<Icon v-if="icon" :icon="icon" class="selectinput-btn__icon" aria-hidden="true" />
|
|
322
|
+
<p v-if="!hideLabel" class="selectinput-btn__label" :class="{ 'ms-05': icon }">
|
|
323
323
|
{{ selectedItemCount > 0 ? selectedLabel : (underlined ? '' : (resolveI18n(placeholder)
|
|
324
324
|
|| 'Select...')) }}
|
|
325
325
|
</p>
|
|
326
326
|
|
|
327
|
-
<
|
|
328
|
-
<
|
|
329
|
-
|
|
330
|
-
|
|
327
|
+
<span class="selectinput-btn__actions">
|
|
328
|
+
<span v-if="clearable && selectedItemCount > 0" class="selectinput-btn__clear ps-05">
|
|
329
|
+
<Btn flat thin icon="clear" class="color-gray" @click="selectedItems = []; emitUpdate()" />
|
|
330
|
+
</span>
|
|
331
|
+
<Icon v-if="!disabled" thin transition="scale" class="selectinput-btn__icon" aria-hidden="true" :icon="open ? (underlined ? 'expand_less' : 'unfold_less') : (underlined ? 'expand_more' : 'unfold_more')" />
|
|
332
|
+
</span>
|
|
331
333
|
</button>
|
|
332
334
|
<input
|
|
333
335
|
v-if="required && !underlined" tabindex="-1"
|
|
@@ -381,10 +383,6 @@ onMounted(() => {
|
|
|
381
383
|
|
|
382
384
|
<style scoped>
|
|
383
385
|
|
|
384
|
-
.selectinput {
|
|
385
|
-
width: 100%;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
386
|
.selectinput-option {
|
|
389
387
|
padding: 6px 12px;
|
|
390
388
|
cursor: pointer;
|
|
@@ -416,7 +414,7 @@ overflow-y: auto;
|
|
|
416
414
|
background: var(--bgl-gray-tint);
|
|
417
415
|
}
|
|
418
416
|
|
|
419
|
-
.isEmpty
|
|
417
|
+
.isEmpty .selectinput-btn__label {
|
|
420
418
|
opacity: 0.3;
|
|
421
419
|
}
|
|
422
420
|
|
|
@@ -429,14 +427,29 @@ background: var(--bgl-selected);
|
|
|
429
427
|
|
|
430
428
|
<style>
|
|
431
429
|
|
|
430
|
+
/* Unscoped: `.selectinput` is applied via Dropdown $attrs on an inner node,
|
|
431
|
+
so scoped selectors (which require this SFC's data-v attr) never match it. */
|
|
432
|
+
.bagel-input.selectinput,
|
|
433
|
+
.selectinput {
|
|
434
|
+
width: 100%;
|
|
435
|
+
min-width: 0;
|
|
436
|
+
max-width: 100%;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.selectinput > label {
|
|
440
|
+
display: block;
|
|
441
|
+
min-width: 0;
|
|
442
|
+
max-width: 100%;
|
|
443
|
+
}
|
|
444
|
+
|
|
432
445
|
.bagel-input label {
|
|
433
446
|
font-size: var(--bgl-label-font-size);
|
|
434
447
|
}
|
|
435
448
|
|
|
436
449
|
.selectinput-btn {
|
|
437
450
|
display: flex;
|
|
438
|
-
justify-content: space-between;
|
|
439
451
|
align-items: center;
|
|
452
|
+
gap: 0.25rem;
|
|
440
453
|
height: var(--bgl-input-height);
|
|
441
454
|
border-radius: var(--bgl-input-border-radius);
|
|
442
455
|
border: none;
|
|
@@ -444,14 +457,35 @@ background: var(--bgl-input-bg);
|
|
|
444
457
|
padding: 0.7rem;
|
|
445
458
|
color: var(--bgl-input-color);
|
|
446
459
|
width: 100%;
|
|
460
|
+
min-width: 0;
|
|
461
|
+
max-width: 100%;
|
|
462
|
+
overflow: hidden;
|
|
447
463
|
font-family: inherit;
|
|
448
464
|
font-size: var(--bgl-input-font-size);
|
|
449
465
|
}
|
|
450
466
|
|
|
451
|
-
|
|
467
|
+
/* width: 0 + flex-grow makes the label take only leftover space and ellipsize */
|
|
468
|
+
.selectinput-btn__label {
|
|
469
|
+
width: 0;
|
|
470
|
+
flex: 1 1 0%;
|
|
471
|
+
min-width: 0;
|
|
472
|
+
margin: 0;
|
|
452
473
|
white-space: nowrap;
|
|
453
474
|
overflow: hidden;
|
|
454
475
|
text-overflow: ellipsis;
|
|
476
|
+
text-align: start;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.selectinput-btn__actions {
|
|
480
|
+
display: inline-flex;
|
|
481
|
+
align-items: center;
|
|
482
|
+
flex-shrink: 0;
|
|
483
|
+
margin-inline-start: auto;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.selectinput-btn__icon,
|
|
487
|
+
.selectinput-btn__clear {
|
|
488
|
+
flex-shrink: 0;
|
|
455
489
|
}
|
|
456
490
|
|
|
457
491
|
.selectinput-btn.selectinput-btn--xs { height: calc(var(--bgl-input-height) * 0.6); padding: 0 0.4rem; font-size: 0.75em; }
|