@bagelink/vue 0.0.475 → 0.0.479

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/style.css CHANGED
@@ -248,19 +248,19 @@
248
248
  }
249
249
  }
250
250
 
251
- a[data-v-51ee7ea7] {
251
+ a[data-v-b96e25bd] {
252
252
  text-decoration: none;
253
253
  }
254
- .loading[data-v-51ee7ea7] {
254
+ .loading[data-v-b96e25bd] {
255
255
  border: 1px solid var(--bgl-white);
256
256
  border-bottom: 2px solid var(--bgl-white);
257
- animation: spin-51ee7ea7 1s linear infinite;
257
+ animation: spin-b96e25bd 1s linear infinite;
258
258
  border-radius: 100px;
259
259
  width: 1rem;
260
260
  height: 1rem;
261
261
  margin: auto;
262
262
  }
263
- @keyframes spin-51ee7ea7 {
263
+ @keyframes spin-b96e25bd {
264
264
  0% {
265
265
  transform: rotate(0deg);
266
266
  }
@@ -268,7 +268,7 @@ a[data-v-51ee7ea7] {
268
268
  transform: rotate(360deg);
269
269
  }
270
270
  }
271
- .bgl_btn-icon[data-v-51ee7ea7] {
271
+ .bgl_btn-icon[data-v-b96e25bd] {
272
272
  height: var(--btn-height);
273
273
  width: var(--btn-height);
274
274
  border-radius: 100%;
@@ -278,101 +278,101 @@ a[data-v-51ee7ea7] {
278
278
  flex-shrink: 0;
279
279
  transition: var(--bgl-transition);
280
280
  }
281
- .bgl_btn[data-v-51ee7ea7] {
281
+ .bgl_btn[data-v-b96e25bd] {
282
282
  padding-left: var(--btn-padding);
283
283
  padding-right: var(--btn-padding);
284
284
  transition: var(--bgl-transition);
285
285
  text-decoration: none;
286
286
  }
287
- .bgl_btn[disabled="true"][data-v-51ee7ea7] {
287
+ .bgl_btn[disabled="true"][data-v-b96e25bd] {
288
288
  opacity: 0.5;
289
289
  cursor: not-allowed;
290
290
  }
291
- .bgl_btn-flex[data-v-51ee7ea7] {
291
+ .bgl_btn-flex[data-v-b96e25bd] {
292
292
  display: flex;
293
293
  align-items: center;
294
294
  gap: 0.5rem;
295
295
  justify-content: center;
296
296
  }
297
- .bgl_btn .bgl_.bgl_icon-font[data-v-51ee7ea7] {
297
+ .bgl_btn .bgl_.bgl_icon-font[data-v-b96e25bd] {
298
298
  font-size: calc(var(--input-font-size) * 1.3);
299
299
  }
300
- .bgl_btn[data-v-51ee7ea7],
301
- .bgl_btn-icon[data-v-51ee7ea7] {
302
- background-color: var(--3607ab92);
303
- color: var(--7910b026);
300
+ .bgl_btn[data-v-b96e25bd],
301
+ .bgl_btn-icon[data-v-b96e25bd] {
302
+ background-color: var(--a8626e32);
303
+ color: var(--223eadfc);
304
304
  }
305
- .bgl_btn[data-v-51ee7ea7]:hover,
306
- .bgl_btn-icon[data-v-51ee7ea7]:hover {
305
+ .bgl_btn[data-v-b96e25bd]:hover,
306
+ .bgl_btn-icon[data-v-b96e25bd]:hover {
307
307
  filter: var(--bgl-hover-filter);
308
308
  }
309
- .bgl_btn[data-v-51ee7ea7]:active,
310
- .bgl_btn-icon[data-v-51ee7ea7]:active {
309
+ .bgl_btn[data-v-b96e25bd]:active,
310
+ .bgl_btn-icon[data-v-b96e25bd]:active {
311
311
  filter: var(--bgl-active-filter);
312
312
  }
313
- .bgl_btn.bgl_flatBtn[data-v-51ee7ea7] {
313
+ .bgl_btn.bgl_flatBtn[data-v-b96e25bd] {
314
314
  padding-left: var(--btn-padding);
315
315
  padding-right: var(--btn-padding);
316
316
  background: transparent;
317
317
  }
318
- .bgl_btn-icon.bgl_flatBtn[data-v-51ee7ea7] {
318
+ .bgl_btn-icon.bgl_flatBtn[data-v-b96e25bd] {
319
319
  background: transparent;
320
320
  }
321
- .bgl_btn.bgl_flatBtn[data-v-51ee7ea7]:hover,
322
- .bgl_btn-icon.bgl_flatBtn[data-v-51ee7ea7]:hover {
321
+ .bgl_btn.bgl_flatBtn[data-v-b96e25bd]:hover,
322
+ .bgl_btn-icon.bgl_flatBtn[data-v-b96e25bd]:hover {
323
323
  filter: var(--bgl-active-filter);
324
324
  }
325
- .bgl_btn.bgl_flatBtn[data-v-51ee7ea7]:active,
326
- .bgl_btn-icon.bgl_flatBtn[data-v-51ee7ea7]:active {
325
+ .bgl_btn.bgl_flatBtn[data-v-b96e25bd]:active,
326
+ .bgl_btn-icon.bgl_flatBtn[data-v-b96e25bd]:active {
327
327
  background: var(--bgl-gray);
328
328
  filter: var(--bgl-hover-filter);
329
329
  }
330
- .bgl_btn.bgl_flatBtn.red[data-v-51ee7ea7],
331
- .bgl_btn-icon.bgl_flatBtn.red[data-v-51ee7ea7] {
330
+ .bgl_btn.bgl_flatBtn.red[data-v-b96e25bd],
331
+ .bgl_btn-icon.bgl_flatBtn.red[data-v-b96e25bd] {
332
332
  color: var(--bgl-red);
333
333
  }
334
- .bgl_btn.bgl_flatBtn.white[data-v-51ee7ea7],
335
- .bgl_btn-icon.bgl_flatBtn.white[data-v-51ee7ea7] {
334
+ .bgl_btn.bgl_flatBtn.white[data-v-b96e25bd],
335
+ .bgl_btn-icon.bgl_flatBtn.white[data-v-b96e25bd] {
336
336
  color: var(--bgl-white);
337
337
  }
338
- .bgl_btn.bgl_flatBtn.light[data-v-51ee7ea7],
339
- .bgl_btn-icon.bgl_flatBtn.light[data-v-51ee7ea7] {
338
+ .bgl_btn.bgl_flatBtn.light[data-v-b96e25bd],
339
+ .bgl_btn-icon.bgl_flatBtn.light[data-v-b96e25bd] {
340
340
  color: var(--bgl-primary-tint);
341
341
  }
342
- .bgl_btn.bgl_flatBtn.black[data-v-51ee7ea7],
343
- .bgl_btn-icon.bgl_flatBtn.black[data-v-51ee7ea7] {
342
+ .bgl_btn.bgl_flatBtn.black[data-v-b96e25bd],
343
+ .bgl_btn-icon.bgl_flatBtn.black[data-v-b96e25bd] {
344
344
  color: var(--bgl-black);
345
345
  }
346
- .bgl_btn.bgl_flatBtn.gray[data-v-51ee7ea7],
347
- .bgl_btn-icon.bgl_flatBtn.gray[data-v-51ee7ea7] {
346
+ .bgl_btn.bgl_flatBtn.gray[data-v-b96e25bd],
347
+ .bgl_btn-icon.bgl_flatBtn.gray[data-v-b96e25bd] {
348
348
  color: var(--bgl-gray);
349
349
  }
350
- .bgl_btn.thin[data-v-51ee7ea7] {
350
+ .bgl_btn.thin[data-v-b96e25bd] {
351
351
  padding-left: calc(var(--btn-padding) / 2);
352
352
  padding-right: calc(var(--btn-padding) / 2);
353
353
  }
354
- .bgl_btn.round[data-v-51ee7ea7] {
354
+ .bgl_btn.round[data-v-b96e25bd] {
355
355
  border-radius: calc(var(--btn-border-radius) * 2);
356
356
  }
357
- .bgl_btn-icon.thin[data-v-51ee7ea7] {
357
+ .bgl_btn-icon.thin[data-v-b96e25bd] {
358
358
  height: calc(var(--btn-height) / 1.5);
359
359
  width: calc(var(--btn-height) / 1.5);
360
360
  line-height: 1;
361
361
  }
362
- [dir="rtl"] .bgl_.bgl_icon-font[data-v-51ee7ea7] {
362
+ [dir="rtl"] .bgl_.bgl_icon-font[data-v-b96e25bd] {
363
363
  transform: rotateY(180deg);
364
364
  }
365
- .bgl_btn-border[data-v-51ee7ea7] {
366
- outline: 1px solid var(--3607ab92);
367
- color: var(--3607ab92);
365
+ .bgl_btn-border[data-v-b96e25bd] {
366
+ outline: 1px solid var(--a8626e32);
367
+ color: var(--a8626e32);
368
368
  background: transparent;
369
369
  }
370
- .bgl_btn-border[data-v-51ee7ea7]:hover {
370
+ .bgl_btn-border[data-v-b96e25bd]:hover {
371
371
  color: var(--bgl-white);
372
- background: var(--3607ab92);
372
+ background: var(--a8626e32);
373
373
  filter: brightness(100%);
374
374
  }
375
- .bgl_btn-border[data-v-51ee7ea7]:active {
375
+ .bgl_btn-border[data-v-b96e25bd]:active {
376
376
  filter: brightness(80%);
377
377
  }
378
378
  .bg-dark {
@@ -876,7 +876,7 @@ display: block;
876
876
  width: calc(100% - 5rem);
877
877
  }
878
878
 
879
- .inline[data-v-c50b9110] {
879
+ .inline[data-v-532b36ae] {
880
880
  display: inline;
881
881
  }
882
882
 
@@ -921,14 +921,14 @@ display: block;
921
921
  color: var(--bgl-red);
922
922
  }
923
923
 
924
- .bgl_vid iframe[data-v-e4d1e5e2],
925
- .bgl_vid video[data-v-e4d1e5e2] {
924
+ .bgl_vid iframe[data-v-862e1f20],
925
+ .bgl_vid video[data-v-862e1f20] {
926
926
  width: 100%;
927
927
  height: auto;
928
928
  display: block;
929
929
  border-radius: var(--input-border-radius);
930
930
  }
931
- .bgl_vid.vid_empty[data-v-e4d1e5e2] {
931
+ .bgl_vid.vid_empty[data-v-862e1f20] {
932
932
  padding-top: 56.25%;
933
933
  background: var(--input-bg);
934
934
  border-radius: var(--input-border-radius);
@@ -2223,7 +2223,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
2223
2223
  }
2224
2224
  }
2225
2225
 
2226
- .radio-pill label[data-v-97713f41] {
2226
+ .radio-pill label[data-v-681173be] {
2227
2227
  color: var(--bgl-primary);
2228
2228
  white-space: nowrap;
2229
2229
  border-radius: calc(var(--btn-border-radius) * 2);
@@ -2237,18 +2237,18 @@ svg.leaflet-image-layer.leaflet-interactive path {
2237
2237
  background: var(--bgl-white);
2238
2238
  user-select: none;
2239
2239
  }
2240
- .radio-pill label[data-v-97713f41]:hover {
2240
+ .radio-pill label[data-v-681173be]:hover {
2241
2241
  filter: var(--bgl-hover-filter);
2242
2242
  }
2243
- .radio-pill input[data-v-97713f41] {
2243
+ .radio-pill input[data-v-681173be] {
2244
2244
  display: none;
2245
2245
  }
2246
- .radio-pill input:checked ~ label[data-v-97713f41] {
2246
+ .radio-pill input:checked ~ label[data-v-681173be] {
2247
2247
  background: var(--bgl-primary);
2248
2248
  color: var(--bgl-white);
2249
2249
  }
2250
2250
 
2251
- .bagel-input .fileUploadWrap[data-v-a193c86f] {
2251
+ .bagel-input .fileUploadWrap[data-v-bf26cc92] {
2252
2252
  --width: 320px;
2253
2253
  outline: 1px solid var(--border-color);
2254
2254
  border-radius: var(--input-border-radius);
@@ -2261,7 +2261,7 @@ svg.leaflet-image-layer.leaflet-interactive path {
2261
2261
  overflow-y: auto;
2262
2262
  background: var(--input-bg);
2263
2263
  }
2264
- .previewName[data-v-a193c86f] {
2264
+ .previewName[data-v-bf26cc92] {
2265
2265
  padding: 0.5rem;
2266
2266
  text-align: start;
2267
2267
  color: var(--input-color);
@@ -2271,18 +2271,18 @@ svg.leaflet-image-layer.leaflet-interactive path {
2271
2271
  align-items: center;
2272
2272
  padding-inline: 14px;
2273
2273
  }
2274
- .previewName p[data-v-a193c86f] {
2274
+ .previewName p[data-v-bf26cc92] {
2275
2275
  overflow: hidden;
2276
2276
  text-overflow: ellipsis;
2277
2277
  white-space: nowrap;
2278
2278
  }
2279
- .imagePreviewWrap[data-v-a193c86f] {
2279
+ .imagePreviewWrap[data-v-bf26cc92] {
2280
2280
  background: var(--input-bg);
2281
2281
  border-radius: var(--input-border-radius);
2282
2282
  padding: 5px;
2283
2283
  min-height: 90px;
2284
2284
  }
2285
- img.preview[data-v-a193c86f] {
2285
+ img.preview[data-v-bf26cc92] {
2286
2286
  /* max-height: calc(var(--width) / 2); */
2287
2287
  /* max-width: calc(var(--width) * 2); */
2288
2288
  width: 40px;
@@ -2292,7 +2292,7 @@ img.preview[data-v-a193c86f] {
2292
2292
  background: var(--bgl-gray-light);
2293
2293
  box-shadow: 0 0 10px #00000012;
2294
2294
  }
2295
- img.preview.single[data-v-a193c86f]{
2295
+ img.preview.single[data-v-bf26cc92]{
2296
2296
  max-width: var(--width);
2297
2297
  width: auto;
2298
2298
  object-fit: contain;
@@ -2300,18 +2300,18 @@ img.preview.single[data-v-a193c86f]{
2300
2300
  max-height: calc(var(--width) / 2);
2301
2301
  margin: 1rem;
2302
2302
  }
2303
- .fileUploadWrap.dragover[data-v-a193c86f],
2304
- .fileUploadWrap[data-v-a193c86f]:hover {
2303
+ .fileUploadWrap.dragover[data-v-bf26cc92],
2304
+ .fileUploadWrap[data-v-bf26cc92]:hover {
2305
2305
  box-shadow: inset 0 0 10px #00000012;
2306
2306
  }
2307
- .bagel-input .fileUploadWrap.fileDropZone[data-v-a193c86f] {
2307
+ .bagel-input .fileUploadWrap.fileDropZone[data-v-bf26cc92] {
2308
2308
  background: var(--input-bg);
2309
2309
  display: flex;
2310
2310
  align-items: center;
2311
2311
  justify-content: center;
2312
2312
  color: var(--bgl-gray);
2313
2313
  }
2314
- .pie[data-v-a193c86f] {
2314
+ .pie[data-v-bf26cc92] {
2315
2315
  width: 30px;
2316
2316
  height: 30px;
2317
2317
  position: relative;
@@ -2319,7 +2319,7 @@ img.preview.single[data-v-a193c86f]{
2319
2319
  align-items: center;
2320
2320
  justify-content: center;
2321
2321
  }
2322
- .pie[data-v-a193c86f]:before {
2322
+ .pie[data-v-bf26cc92]:before {
2323
2323
  content: '';
2324
2324
  position: absolute;
2325
2325
  border-radius: 50%;
@@ -2337,26 +2337,26 @@ img.preview.single[data-v-a193c86f]{
2337
2337
  #000 calc(100% - var(--b))
2338
2338
  );
2339
2339
  }
2340
- .pie .success[data-v-a193c86f] {
2340
+ .pie .success[data-v-bf26cc92] {
2341
2341
  transform: scale(0);
2342
2342
  opacity: 0;
2343
2343
  transition: all 0.3s ease-in-out;
2344
2344
  }
2345
- .pie .progress[data-v-a193c86f] {
2345
+ .pie .progress[data-v-bf26cc92] {
2346
2346
  position: absolute;
2347
2347
  font-size: 10px;
2348
2348
  }
2349
- .pie.complete .progress[data-v-a193c86f] {
2349
+ .pie.complete .progress[data-v-bf26cc92] {
2350
2350
  display: none;
2351
2351
  }
2352
- .pie.complete .success[data-v-a193c86f] {
2352
+ .pie.complete .success[data-v-bf26cc92] {
2353
2353
  transform: scale(1.3);
2354
2354
  opacity: 1;
2355
2355
  }
2356
- .pie.complete[data-v-a193c86f]:before {
2356
+ .pie.complete[data-v-bf26cc92]:before {
2357
2357
  background: conic-gradient(var(--bgl-green) calc(var(--p) * 1%), #0000 0);
2358
2358
  }
2359
- .pie.complete[data-v-a193c86f] {
2359
+ .pie.complete[data-v-bf26cc92] {
2360
2360
  color: var(--bgl-green);
2361
2361
  }
2362
2362
 
@@ -2580,7 +2580,7 @@ p {
2580
2580
  border-radius: var(--input-border-radius);
2581
2581
  }
2582
2582
 
2583
- .tel-input[data-v-bd1b8bc1] {
2583
+ .tel-input[data-v-6f0154b1] {
2584
2584
  direction: ltr;
2585
2585
  text-align: left;
2586
2586
  background: var(--input-bg);
@@ -2591,21 +2591,21 @@ p {
2591
2591
  min-width: calc(var(--input-height) * 3);
2592
2592
  width: 100%;
2593
2593
  }
2594
- .tel-input[data-v-bd1b8bc1]:focus-within {
2594
+ .tel-input[data-v-6f0154b1]:focus-within {
2595
2595
  outline: none;
2596
2596
  box-shadow: inset 0 0 10px #00000012;
2597
2597
  }
2598
- .tel-input input[data-v-bd1b8bc1] {
2598
+ .tel-input input[data-v-6f0154b1] {
2599
2599
  background: transparent;
2600
2600
  }
2601
- .tel-input input[data-v-bd1b8bc1]:focus-visible {
2601
+ .tel-input input[data-v-6f0154b1]:focus-visible {
2602
2602
  box-shadow: none;
2603
2603
  }
2604
- .input_country-code[data-v-bd1b8bc1] {
2604
+ .input_country-code[data-v-6f0154b1] {
2605
2605
  font-size: var(--input-font-size);
2606
2606
  color: var(--input-color);
2607
2607
  }
2608
- .tel-country[data-v-bd1b8bc1] {
2608
+ .tel-country[data-v-6f0154b1] {
2609
2609
  font-size: var(--input-font-size);
2610
2610
  max-width: 200px;
2611
2611
  white-space: nowrap;
@@ -2614,7 +2614,7 @@ p {
2614
2614
  margin-top: 0;
2615
2615
  margin-bottom: 0;
2616
2616
  }
2617
- .tel-countryp-dropdown[data-v-bd1b8bc1] {
2617
+ .tel-countryp-dropdown[data-v-6f0154b1] {
2618
2618
  direction: ltr;
2619
2619
  text-align: left;
2620
2620
  }
@@ -1 +1 @@
1
- {"version":3,"file":"allCountries.d.ts","sourceRoot":"","sources":["../../src/utils/allCountries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AA8TpD,MAAM,WAAW,OAAO;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,WAAW,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;CAC3B;AAED,eAAO,MAAM,YAAY,EAAE,OAAO,EAQjC,CAAA"}
1
+ {"version":3,"file":"allCountries.d.ts","sourceRoot":"","sources":["../../src/utils/allCountries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AA8TpD,MAAM,WAAW,OAAO;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,WAAW,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;CAC3B;AAED,eAAO,MAAM,YAAY,EAAE,OAAO,EAQjC,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.475",
4
+ "version": "0.0.479",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -117,7 +117,7 @@
117
117
  "@tiptap/extension-table-cell": "^2.4.0",
118
118
  "@tiptap/vue-3": "^2.4.0",
119
119
  "leaflet": "^1.9.4",
120
- "libphonenumber-js": "1.11.2",
120
+ "libphonenumber-js": "1.11.3",
121
121
  "floating-vue": "^5.2.2",
122
122
  "type-fest": "^4.19.0",
123
123
  "axios": "^1.7.2"
@@ -7,7 +7,9 @@ interface Props {
7
7
  'size'?: string
8
8
  'text': string
9
9
  'icon'?: MaterialIcons
10
+ // eslint-disable-next-line vue/prop-name-casing
10
11
  'icon.end'?: MaterialIcons
12
+ 'iconEnd'?: MaterialIcons
11
13
  }
12
14
 
13
15
  const props = defineProps<Props>()
@@ -30,6 +30,7 @@ const videoUrl = $computed(() => {
30
30
  }
31
31
  if (embedType === 'Vimeo') {
32
32
  const vimeoRegex
33
+ // eslint-disable-next-line regexp/no-unused-capturing-group
33
34
  = /vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|album\/(\d+)\/video\/)?(\d+)(?:$|\/|\?)/
34
35
  const videoId = props.src?.match(vimeoRegex)?.[3]
35
36
  return `https://player.vimeo.com/video/${videoId}`
@@ -7,9 +7,8 @@ const props = withDefaults(
7
7
  defineProps<{
8
8
  'disabled'?: boolean
9
9
  'icon'?: MaterialIcons
10
- // eslint-disable-next-line vue/prop-name-casing TODO: remove/deprecate
10
+ // eslint-disable-next-line vue/prop-name-casing
11
11
  'icon.end'?: MaterialIcons
12
- 'icon-end'?: MaterialIcons
13
12
  'color'?: ThemeType
14
13
  'theme'?: ThemeType
15
14
  'flat'?: boolean
@@ -44,12 +44,12 @@ onMounted(() => {
44
44
  ids.forEach((id) => {
45
45
  void bagel.get<StorageFile>(`/files/${id}`).then((file) => {
46
46
  storageFiles.push(file)
47
- })
47
+ }).catch(console.error)
48
48
  })
49
49
  } else {
50
50
  void bagel.get<StorageFile>(`/files/${ids[0]}`).then((file) => {
51
51
  storageFiles.push(file)
52
- })
52
+ }).catch(console.error)
53
53
  }
54
54
  }
55
55
  })
@@ -67,7 +67,7 @@ onMounted(() => {
67
67
  type="radio"
68
68
  :name="id"
69
69
  :value="getValue(option)"
70
- :checked="selectedValue == getValue(option)"
70
+ :checked="selectedValue === getValue(option)"
71
71
  @change="handleSelect"
72
72
  >
73
73
  <label :for="`${id}-${getValue(option)}`">{{ getLabel(option) }}</label>
@@ -120,7 +120,7 @@ let selectedIndex = $ref<number>()
120
120
  const dropdownOpenDirection = $ref('below')
121
121
  const searchQuery = $ref('')
122
122
 
123
- const refInput = $ref<HTMLInputElement | null>(null)
123
+ // const refInput = $ref<HTMLInputElement | null>(null)
124
124
 
125
125
  // Computed: activeCountry
126
126
  const activeCountry = $computed(() => props.allCountries.find(
@@ -149,6 +149,7 @@ const sortedCountries = $computed(() => {
149
149
 
150
150
  const countriesList = [...preferredCountries, ...filteredCountries]
151
151
  const cleanInput = searchQuery.replace(
152
+ // eslint-disable-next-line regexp/no-obscure-range
152
153
  /[~`!#$%&*()+={};:'"<>.,/?-_]/g,
153
154
  '',
154
155
  )
@@ -197,6 +198,7 @@ watch(
197
198
  activeCountryCode = oldValue.iso2
198
199
  return
199
200
  }
201
+ // eslint-disable-next-line vue/custom-event-name-casing
200
202
  if (value?.iso2) emit('country-changed', value)
201
203
  },
202
204
  )
@@ -289,7 +291,7 @@ function handleInput(e: KeyboardEvent) {
289
291
  const keyVal = e.key
290
292
  if (keyVal.length > 1 || e.metaKey) return
291
293
 
292
- const hasBadChars = RegExp(/[^+\d]/).test(keyVal)
294
+ const hasBadChars = /[^+\d]/.test(keyVal)
293
295
 
294
296
  if (!hasBadChars) return
295
297
 
@@ -341,7 +343,6 @@ function handleInput(e: KeyboardEvent) {
341
343
  />
342
344
 
343
345
  <ul
344
- ref="listEl"
345
346
  class="overflow-y p-0"
346
347
  :style="{ 'max-height': '400px' }"
347
348
  :class="dropdownOpenDirection"
@@ -375,9 +376,9 @@ function handleInput(e: KeyboardEvent) {
375
376
  </template>
376
377
  </Dropdown>
377
378
 
379
+ <!-- ref="refInput" -->
378
380
  <input
379
381
  :id="id"
380
- ref="refInput"
381
382
  v-model="phone"
382
383
  :required="required"
383
384
  :placeholder="computedInputOptions.placeholder"
@@ -1,4 +1,3 @@
1
- /* eslint-disable @stylistic/js/max-len */
2
1
  import type { CountryCode } from 'libphonenumber-js'
3
2
 
4
3
  type CountryTuple = [string, CountryCode, string, number?, string[]?]