@antcde/component-library 0.0.4 → 0.0.10

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 (133) hide show
  1. package/dist/component-library.css +1 -1
  2. package/dist/index.js +11633 -11114
  3. package/dist/types/components/BaseAppCard.vue.d.ts +5 -1
  4. package/node_modules/vuetify/dist/json/attributes.json +2765 -2749
  5. package/node_modules/vuetify/dist/json/importMap-labs.json +8 -8
  6. package/node_modules/vuetify/dist/json/importMap.json +158 -158
  7. package/node_modules/vuetify/dist/json/tags.json +6 -2
  8. package/node_modules/vuetify/dist/json/web-types.json +5003 -4921
  9. package/node_modules/vuetify/dist/vuetify-labs.css +2500 -2499
  10. package/node_modules/vuetify/dist/vuetify-labs.d.ts +509 -229
  11. package/node_modules/vuetify/dist/vuetify-labs.esm.js +250 -147
  12. package/node_modules/vuetify/dist/vuetify-labs.esm.js.map +1 -1
  13. package/node_modules/vuetify/dist/vuetify-labs.js +249 -146
  14. package/node_modules/vuetify/dist/vuetify-labs.min.css +2 -2
  15. package/node_modules/vuetify/dist/vuetify.css +2957 -2956
  16. package/node_modules/vuetify/dist/vuetify.d.ts +417 -234
  17. package/node_modules/vuetify/dist/vuetify.esm.js +122 -72
  18. package/node_modules/vuetify/dist/vuetify.esm.js.map +1 -1
  19. package/node_modules/vuetify/dist/vuetify.js +121 -71
  20. package/node_modules/vuetify/dist/vuetify.js.map +1 -1
  21. package/node_modules/vuetify/dist/vuetify.min.css +2 -2
  22. package/node_modules/vuetify/dist/vuetify.min.js +474 -473
  23. package/node_modules/vuetify/dist/vuetify.min.js.map +1 -1
  24. package/node_modules/vuetify/lib/components/VAppBar/index.d.mts +15 -6
  25. package/node_modules/vuetify/lib/components/VAutocomplete/index.d.mts +23 -8
  26. package/node_modules/vuetify/lib/components/VBadge/VBadge.mjs +2 -2
  27. package/node_modules/vuetify/lib/components/VBadge/VBadge.mjs.map +1 -1
  28. package/node_modules/vuetify/lib/components/VBtn/VBtn.mjs +6 -3
  29. package/node_modules/vuetify/lib/components/VBtn/VBtn.mjs.map +1 -1
  30. package/node_modules/vuetify/lib/components/VBtn/index.d.mts +15 -6
  31. package/node_modules/vuetify/lib/components/VCard/VCard.mjs +12 -3
  32. package/node_modules/vuetify/lib/components/VCard/VCard.mjs.map +1 -1
  33. package/node_modules/vuetify/lib/components/VCard/VCardItem.mjs +11 -4
  34. package/node_modules/vuetify/lib/components/VCard/VCardItem.mjs.map +1 -1
  35. package/node_modules/vuetify/lib/components/VCard/index.d.mts +75 -30
  36. package/node_modules/vuetify/lib/components/VCarousel/VCarousel.mjs +1 -1
  37. package/node_modules/vuetify/lib/components/VCarousel/VCarousel.mjs.map +1 -1
  38. package/node_modules/vuetify/lib/components/VChip/VChip.mjs +6 -3
  39. package/node_modules/vuetify/lib/components/VChip/VChip.mjs.map +1 -1
  40. package/node_modules/vuetify/lib/components/VChip/index.d.mts +15 -6
  41. package/node_modules/vuetify/lib/components/VCombobox/index.d.mts +23 -8
  42. package/node_modules/vuetify/lib/components/VDataIterator/index.d.mts +2 -2
  43. package/node_modules/vuetify/lib/components/VDataTable/VDataTableRow.mjs +18 -3
  44. package/node_modules/vuetify/lib/components/VDataTable/VDataTableRow.mjs.map +1 -1
  45. package/node_modules/vuetify/lib/components/VDataTable/composables/headers.mjs +3 -1
  46. package/node_modules/vuetify/lib/components/VDataTable/composables/headers.mjs.map +1 -1
  47. package/node_modules/vuetify/lib/components/VDataTable/composables/paginate.mjs +2 -2
  48. package/node_modules/vuetify/lib/components/VDataTable/composables/paginate.mjs.map +1 -1
  49. package/node_modules/vuetify/lib/components/VDataTable/index.d.mts +125 -122
  50. package/node_modules/vuetify/lib/components/VDataTable/types.mjs.map +1 -1
  51. package/node_modules/vuetify/lib/components/VDatePicker/VDatePicker.mjs +1 -1
  52. package/node_modules/vuetify/lib/components/VDatePicker/VDatePicker.mjs.map +1 -1
  53. package/node_modules/vuetify/lib/components/VDatePicker/VDatePickerControls.mjs +5 -5
  54. package/node_modules/vuetify/lib/components/VDatePicker/VDatePickerControls.mjs.map +1 -1
  55. package/node_modules/vuetify/lib/components/VDialog/__test__/VDialog.spec.browser.mjs +50 -0
  56. package/node_modules/vuetify/lib/components/VDialog/__test__/VDialog.spec.browser.mjs.map +1 -0
  57. package/node_modules/vuetify/lib/components/VDialog/index.d.mts +21 -6
  58. package/node_modules/vuetify/lib/components/VFab/index.d.mts +15 -6
  59. package/node_modules/vuetify/lib/components/VField/VField.mjs +1 -6
  60. package/node_modules/vuetify/lib/components/VField/VField.mjs.map +1 -1
  61. package/node_modules/vuetify/lib/components/VFileInput/VFileInput.mjs +2 -2
  62. package/node_modules/vuetify/lib/components/VFileInput/VFileInput.mjs.map +1 -1
  63. package/node_modules/vuetify/lib/components/VIcon/VIcon.mjs +2 -2
  64. package/node_modules/vuetify/lib/components/VIcon/VIcon.mjs.map +1 -1
  65. package/node_modules/vuetify/lib/components/VList/VListItem.mjs +11 -5
  66. package/node_modules/vuetify/lib/components/VList/VListItem.mjs.map +1 -1
  67. package/node_modules/vuetify/lib/components/VList/index.d.mts +32 -14
  68. package/node_modules/vuetify/lib/components/VMenu/index.d.mts +21 -6
  69. package/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs +10 -1
  70. package/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs.map +1 -1
  71. package/node_modules/vuetify/lib/components/VOverlay/index.d.mts +6 -0
  72. package/node_modules/vuetify/lib/components/VPagination/VPagination.mjs +3 -3
  73. package/node_modules/vuetify/lib/components/VPagination/VPagination.mjs.map +1 -1
  74. package/node_modules/vuetify/lib/components/VParallax/VParallax.mjs +1 -1
  75. package/node_modules/vuetify/lib/components/VParallax/VParallax.mjs.map +1 -1
  76. package/node_modules/vuetify/lib/components/VRating/VRating.mjs +1 -1
  77. package/node_modules/vuetify/lib/components/VRating/VRating.mjs.map +1 -1
  78. package/node_modules/vuetify/lib/components/VSelect/index.d.mts +23 -8
  79. package/node_modules/vuetify/lib/components/VSlider/slider.mjs +1 -1
  80. package/node_modules/vuetify/lib/components/VSlider/slider.mjs.map +1 -1
  81. package/node_modules/vuetify/lib/components/VSnackbar/index.d.mts +21 -6
  82. package/node_modules/vuetify/lib/components/VSparkline/VBarline.mjs +1 -1
  83. package/node_modules/vuetify/lib/components/VSparkline/VBarline.mjs.map +1 -1
  84. package/node_modules/vuetify/lib/components/VTabs/index.d.mts +39 -24
  85. package/node_modules/vuetify/lib/components/VTextField/VTextField.mjs +2 -2
  86. package/node_modules/vuetify/lib/components/VTextField/VTextField.mjs.map +1 -1
  87. package/node_modules/vuetify/lib/components/VTextarea/VTextarea.mjs +4 -4
  88. package/node_modules/vuetify/lib/components/VTextarea/VTextarea.mjs.map +1 -1
  89. package/node_modules/vuetify/lib/components/VToolbar/VToolbar.css +1 -0
  90. package/node_modules/vuetify/lib/components/VToolbar/VToolbar.sass +1 -0
  91. package/node_modules/vuetify/lib/components/VTooltip/index.d.mts +21 -6
  92. package/node_modules/vuetify/lib/components/index.d.mts +365 -182
  93. package/node_modules/vuetify/lib/composables/calendar.mjs +1 -1
  94. package/node_modules/vuetify/lib/composables/calendar.mjs.map +1 -1
  95. package/node_modules/vuetify/lib/composables/stack.mjs +2 -2
  96. package/node_modules/vuetify/lib/composables/stack.mjs.map +1 -1
  97. package/node_modules/vuetify/lib/composables/theme.mjs +1 -1
  98. package/node_modules/vuetify/lib/composables/theme.mjs.map +1 -1
  99. package/node_modules/vuetify/lib/composables/validation.mjs +2 -2
  100. package/node_modules/vuetify/lib/composables/validation.mjs.map +1 -1
  101. package/node_modules/vuetify/lib/entry-bundler.mjs +1 -1
  102. package/node_modules/vuetify/lib/framework.mjs +1 -1
  103. package/node_modules/vuetify/lib/index.d.mts +52 -52
  104. package/node_modules/vuetify/lib/labs/VDateInput/VDateInput.mjs +79 -21
  105. package/node_modules/vuetify/lib/labs/VDateInput/VDateInput.mjs.map +1 -1
  106. package/node_modules/vuetify/lib/labs/VDateInput/index.d.mts +53 -10
  107. package/node_modules/vuetify/lib/labs/VFileUpload/VFileUpload.mjs +3 -2
  108. package/node_modules/vuetify/lib/labs/VFileUpload/VFileUpload.mjs.map +1 -1
  109. package/node_modules/vuetify/lib/labs/VFileUpload/index.d.mts +32 -14
  110. package/node_modules/vuetify/lib/labs/VNumberInput/VNumberInput.mjs +5 -5
  111. package/node_modules/vuetify/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
  112. package/node_modules/vuetify/lib/labs/VSnackbarQueue/index.d.mts +21 -6
  113. package/node_modules/vuetify/lib/labs/VTimePicker/VTimePicker.mjs +30 -31
  114. package/node_modules/vuetify/lib/labs/VTimePicker/VTimePicker.mjs.map +1 -1
  115. package/node_modules/vuetify/lib/labs/VTimePicker/VTimePickerControls.mjs +14 -13
  116. package/node_modules/vuetify/lib/labs/VTimePicker/VTimePickerControls.mjs.map +1 -1
  117. package/node_modules/vuetify/lib/labs/VTimePicker/index.d.mts +35 -13
  118. package/node_modules/vuetify/lib/labs/VTimePicker/shared.mjs +2 -0
  119. package/node_modules/vuetify/lib/labs/VTimePicker/shared.mjs.map +1 -0
  120. package/node_modules/vuetify/lib/labs/VTreeview/index.d.mts +32 -14
  121. package/node_modules/vuetify/lib/labs/components.d.mts +171 -59
  122. package/node_modules/vuetify/lib/locale/adapters/vuetify.mjs +1 -1
  123. package/node_modules/vuetify/lib/locale/adapters/vuetify.mjs.map +1 -1
  124. package/node_modules/vuetify/lib/util/animation.mjs +8 -8
  125. package/node_modules/vuetify/lib/util/animation.mjs.map +1 -1
  126. package/node_modules/vuetify/lib/util/helpers.mjs +7 -5
  127. package/node_modules/vuetify/lib/util/helpers.mjs.map +1 -1
  128. package/node_modules/vuetify/package.json +2 -2
  129. package/package.json +3 -3
  130. package/node_modules/vuetify/lib/components/VDialog/__test__/VDialog.spec.cy.mjs +0 -39
  131. package/node_modules/vuetify/lib/components/VDialog/__test__/VDialog.spec.cy.mjs.map +0 -1
  132. package/node_modules/vuetify/lib/labs/VTimePicker/SelectingTimes.mjs +0 -10
  133. package/node_modules/vuetify/lib/labs/VTimePicker/SelectingTimes.mjs.map +0 -1
@@ -76,10 +76,10 @@ type ListItemSlot = {
76
76
  select: (value: boolean) => void;
77
77
  };
78
78
  type ListItemTitleSlot = {
79
- title?: string | number;
79
+ title?: string | number | boolean;
80
80
  };
81
81
  type ListItemSubtitleSlot = {
82
- subtitle?: string | number;
82
+ subtitle?: string | number | boolean;
83
83
  };
84
84
  type VListItemSlots = {
85
85
  prepend: ListItemSlot;
@@ -115,7 +115,7 @@ declare const VListItem: {
115
115
  minHeight?: string | number | undefined;
116
116
  minWidth?: string | number | undefined;
117
117
  value?: any;
118
- title?: string | number | undefined;
118
+ title?: string | number | boolean | undefined;
119
119
  class?: any;
120
120
  theme?: string | undefined;
121
121
  to?: string | vue_router.RouteLocationAsRelativeGeneric | vue_router.RouteLocationAsPathGeneric | undefined;
@@ -132,7 +132,7 @@ declare const VListItem: {
132
132
  activeClass?: string | undefined;
133
133
  appendAvatar?: string | undefined;
134
134
  prependAvatar?: string | undefined;
135
- subtitle?: string | number | undefined;
135
+ subtitle?: string | number | boolean | undefined;
136
136
  } & {
137
137
  $children?: vue.VNodeChild | {
138
138
  prepend?: ((arg: ListItemSlot) => vue.VNodeChild) | undefined;
@@ -213,7 +213,7 @@ declare const VListItem: {
213
213
  minHeight?: string | number | undefined;
214
214
  minWidth?: string | number | undefined;
215
215
  value?: any;
216
- title?: string | number | undefined;
216
+ title?: string | number | boolean | undefined;
217
217
  class?: any;
218
218
  theme?: string | undefined;
219
219
  to?: string | vue_router.RouteLocationAsRelativeGeneric | vue_router.RouteLocationAsPathGeneric | undefined;
@@ -230,7 +230,7 @@ declare const VListItem: {
230
230
  activeClass?: string | undefined;
231
231
  appendAvatar?: string | undefined;
232
232
  prependAvatar?: string | undefined;
233
- subtitle?: string | number | undefined;
233
+ subtitle?: string | number | boolean | undefined;
234
234
  } & {
235
235
  $children?: vue.VNodeChild | {
236
236
  prepend?: ((arg: ListItemSlot) => vue.VNodeChild) | undefined;
@@ -262,6 +262,7 @@ declare const VListItem: {
262
262
  active: boolean;
263
263
  nav: boolean;
264
264
  style: vue.StyleValue;
265
+ title: string | number | boolean;
265
266
  disabled: boolean;
266
267
  tag: string;
267
268
  rounded: string | number | boolean;
@@ -271,6 +272,7 @@ declare const VListItem: {
271
272
  ripple: boolean | {
272
273
  class: string;
273
274
  } | undefined;
275
+ subtitle: string | number | boolean;
274
276
  }, true, {}, vue.SlotsType<Partial<{
275
277
  prepend: (arg: ListItemSlot) => vue.VNode[];
276
278
  append: (arg: ListItemSlot) => vue.VNode[];
@@ -310,7 +312,7 @@ declare const VListItem: {
310
312
  minHeight?: string | number | undefined;
311
313
  minWidth?: string | number | undefined;
312
314
  value?: any;
313
- title?: string | number | undefined;
315
+ title?: string | number | boolean | undefined;
314
316
  class?: any;
315
317
  theme?: string | undefined;
316
318
  to?: string | vue_router.RouteLocationAsRelativeGeneric | vue_router.RouteLocationAsPathGeneric | undefined;
@@ -327,7 +329,7 @@ declare const VListItem: {
327
329
  activeClass?: string | undefined;
328
330
  appendAvatar?: string | undefined;
329
331
  prependAvatar?: string | undefined;
330
- subtitle?: string | number | undefined;
332
+ subtitle?: string | number | boolean | undefined;
331
333
  } & {
332
334
  $children?: vue.VNodeChild | {
333
335
  prepend?: ((arg: ListItemSlot) => vue.VNodeChild) | undefined;
@@ -388,6 +390,7 @@ declare const VListItem: {
388
390
  active: boolean;
389
391
  nav: boolean;
390
392
  style: vue.StyleValue;
393
+ title: string | number | boolean;
391
394
  disabled: boolean;
392
395
  tag: string;
393
396
  rounded: string | number | boolean;
@@ -397,6 +400,7 @@ declare const VListItem: {
397
400
  ripple: boolean | {
398
401
  class: string;
399
402
  } | undefined;
403
+ subtitle: string | number | boolean;
400
404
  }>;
401
405
  __isFragment?: never;
402
406
  __isTeleport?: never;
@@ -427,7 +431,7 @@ declare const VListItem: {
427
431
  minHeight?: string | number | undefined;
428
432
  minWidth?: string | number | undefined;
429
433
  value?: any;
430
- title?: string | number | undefined;
434
+ title?: string | number | boolean | undefined;
431
435
  class?: any;
432
436
  theme?: string | undefined;
433
437
  to?: string | vue_router.RouteLocationAsRelativeGeneric | vue_router.RouteLocationAsPathGeneric | undefined;
@@ -444,7 +448,7 @@ declare const VListItem: {
444
448
  activeClass?: string | undefined;
445
449
  appendAvatar?: string | undefined;
446
450
  prependAvatar?: string | undefined;
447
- subtitle?: string | number | undefined;
451
+ subtitle?: string | number | boolean | undefined;
448
452
  } & {
449
453
  $children?: vue.VNodeChild | {
450
454
  prepend?: ((arg: ListItemSlot) => vue.VNodeChild) | undefined;
@@ -507,6 +511,7 @@ declare const VListItem: {
507
511
  active: boolean;
508
512
  nav: boolean;
509
513
  style: vue.StyleValue;
514
+ title: string | number | boolean;
510
515
  disabled: boolean;
511
516
  tag: string;
512
517
  rounded: string | number | boolean;
@@ -516,6 +521,7 @@ declare const VListItem: {
516
521
  ripple: boolean | {
517
522
  class: string;
518
523
  } | undefined;
524
+ subtitle: string | number | boolean;
519
525
  }, {}, string, vue.SlotsType<Partial<{
520
526
  prepend: (arg: ListItemSlot) => vue.VNode[];
521
527
  append: (arg: ListItemSlot) => vue.VNode[];
@@ -590,8 +596,14 @@ declare const VListItem: {
590
596
  default: boolean;
591
597
  };
592
598
  slim: BooleanConstructor;
593
- subtitle: (StringConstructor | NumberConstructor)[];
594
- title: (StringConstructor | NumberConstructor)[];
599
+ subtitle: {
600
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
601
+ default: undefined;
602
+ };
603
+ title: {
604
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
605
+ default: undefined;
606
+ };
595
607
  value: null;
596
608
  onClick: PropType<(args_0: MouseEvent | KeyboardEvent) => void>;
597
609
  onClickOnce: PropType<(args_0: MouseEvent) => void>;
@@ -663,8 +675,14 @@ declare const VListItem: {
663
675
  default: boolean;
664
676
  };
665
677
  slim: BooleanConstructor;
666
- subtitle: (StringConstructor | NumberConstructor)[];
667
- title: (StringConstructor | NumberConstructor)[];
678
+ subtitle: {
679
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
680
+ default: undefined;
681
+ };
682
+ title: {
683
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
684
+ default: undefined;
685
+ };
668
686
  value: null;
669
687
  onClick: PropType<(args_0: MouseEvent | KeyboardEvent) => void>;
670
688
  onClickOnce: PropType<(args_0: MouseEvent) => void>;
@@ -283,6 +283,7 @@ declare const VMenu: {
283
283
  }) => vue.VNodeChild) | undefined;
284
284
  onAfterEnter?: (() => any) | undefined;
285
285
  onAfterLeave?: (() => any) | undefined;
286
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
286
287
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
287
288
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
288
289
  } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
@@ -365,6 +366,7 @@ declare const VMenu: {
365
366
  } & {
366
367
  onAfterEnter?: (() => any) | undefined;
367
368
  onAfterLeave?: (() => any) | undefined;
369
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
368
370
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
369
371
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
370
372
  }, "absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack">;
@@ -386,7 +388,7 @@ declare const VMenu: {
386
388
  }>;
387
389
  $root: vue.ComponentPublicInstance | null;
388
390
  $parent: vue.ComponentPublicInstance | null;
389
- $emit: ((event: "update:modelValue", value: boolean) => void) & ((event: "click:outside", e: MouseEvent) => void) & ((event: "afterEnter") => void) & ((event: "afterLeave") => void);
391
+ $emit: ((event: "keydown", e: KeyboardEvent) => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "click:outside", e: MouseEvent) => void) & ((event: "afterEnter") => void) & ((event: "afterLeave") => void);
390
392
  $el: any;
391
393
  $options: vue.ComponentOptionsBase<{
392
394
  absolute: boolean;
@@ -468,6 +470,7 @@ declare const VMenu: {
468
470
  } & {
469
471
  onAfterEnter?: (() => any) | undefined;
470
472
  onAfterLeave?: (() => any) | undefined;
473
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
471
474
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
472
475
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
473
476
  }, {
@@ -482,6 +485,7 @@ declare const VMenu: {
482
485
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
483
486
  'click:outside': (e: MouseEvent) => true;
484
487
  'update:modelValue': (value: boolean) => true;
488
+ keydown: (e: KeyboardEvent) => true;
485
489
  afterEnter: () => true;
486
490
  afterLeave: () => true;
487
491
  }, string, {
@@ -620,6 +624,7 @@ declare const VMenu: {
620
624
  } & {
621
625
  onAfterEnter?: (() => any) | undefined;
622
626
  onAfterLeave?: (() => any) | undefined;
627
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
623
628
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
624
629
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
625
630
  }, "target" | "contentEl" | "activatorEl" | "scrimEl" | "animateClick" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
@@ -631,7 +636,7 @@ declare const VMenu: {
631
636
  globalTop: Readonly<vue.Ref<boolean>>;
632
637
  localTop: vue.ComputedRef<boolean>;
633
638
  updateLocation: vue.Ref<((e: Event) => void) | undefined>;
634
- }> & {} & vue.ComponentCustomProperties & {}, "offset" | "key" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "target" | "class" | "theme" | "ref" | "onAfterEnter" | "onAfterLeave" | "$children" | "v-slots" | "v-slot:default" | "ref_for" | "ref_key" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "onUpdate:modelValue" | "contentClass" | "activator" | "v-slot:activator" | "closeDelay" | "openDelay" | "contentProps" | "attach" | "onClick:outside" | ("absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack")>, `$${any}`> & {
639
+ }> & {} & vue.ComponentCustomProperties & {}, "offset" | "key" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "target" | "class" | "theme" | "ref" | "onAfterEnter" | "onAfterLeave" | "onKeydown" | "$children" | "v-slots" | "v-slot:default" | "ref_for" | "ref_key" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "onUpdate:modelValue" | "contentClass" | "activator" | "v-slot:activator" | "closeDelay" | "openDelay" | "contentProps" | "attach" | "onClick:outside" | ("absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack")>, `$${any}`> & {
635
640
  _allExposed: {
636
641
  activatorEl: vue.Ref<HTMLElement | undefined>;
637
642
  scrimEl: vue.Ref<HTMLElement | undefined>;
@@ -964,6 +969,7 @@ declare const VMenu: {
964
969
  }) => vue.VNodeChild) | undefined;
965
970
  onAfterEnter?: (() => any) | undefined;
966
971
  onAfterLeave?: (() => any) | undefined;
972
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
967
973
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
968
974
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
969
975
  } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
@@ -1046,6 +1052,7 @@ declare const VMenu: {
1046
1052
  } & {
1047
1053
  onAfterEnter?: (() => any) | undefined;
1048
1054
  onAfterLeave?: (() => any) | undefined;
1055
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
1049
1056
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1050
1057
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
1051
1058
  }, "absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack">;
@@ -1067,7 +1074,7 @@ declare const VMenu: {
1067
1074
  }>;
1068
1075
  $root: vue.ComponentPublicInstance | null;
1069
1076
  $parent: vue.ComponentPublicInstance | null;
1070
- $emit: ((event: "update:modelValue", value: boolean) => void) & ((event: "click:outside", e: MouseEvent) => void) & ((event: "afterEnter") => void) & ((event: "afterLeave") => void);
1077
+ $emit: ((event: "keydown", e: KeyboardEvent) => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "click:outside", e: MouseEvent) => void) & ((event: "afterEnter") => void) & ((event: "afterLeave") => void);
1071
1078
  $el: any;
1072
1079
  $options: vue.ComponentOptionsBase<{
1073
1080
  absolute: boolean;
@@ -1149,6 +1156,7 @@ declare const VMenu: {
1149
1156
  } & {
1150
1157
  onAfterEnter?: (() => any) | undefined;
1151
1158
  onAfterLeave?: (() => any) | undefined;
1159
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
1152
1160
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1153
1161
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
1154
1162
  }, {
@@ -1163,6 +1171,7 @@ declare const VMenu: {
1163
1171
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
1164
1172
  'click:outside': (e: MouseEvent) => true;
1165
1173
  'update:modelValue': (value: boolean) => true;
1174
+ keydown: (e: KeyboardEvent) => true;
1166
1175
  afterEnter: () => true;
1167
1176
  afterLeave: () => true;
1168
1177
  }, string, {
@@ -1301,6 +1310,7 @@ declare const VMenu: {
1301
1310
  } & {
1302
1311
  onAfterEnter?: (() => any) | undefined;
1303
1312
  onAfterLeave?: (() => any) | undefined;
1313
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
1304
1314
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1305
1315
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
1306
1316
  }, "target" | "contentEl" | "activatorEl" | "scrimEl" | "animateClick" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
@@ -1312,7 +1322,7 @@ declare const VMenu: {
1312
1322
  globalTop: Readonly<vue.Ref<boolean>>;
1313
1323
  localTop: vue.ComputedRef<boolean>;
1314
1324
  updateLocation: vue.Ref<((e: Event) => void) | undefined>;
1315
- }> & {} & vue.ComponentCustomProperties & {}, "offset" | "key" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "target" | "class" | "theme" | "ref" | "onAfterEnter" | "onAfterLeave" | "$children" | "v-slots" | "v-slot:default" | "ref_for" | "ref_key" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "onUpdate:modelValue" | "contentClass" | "activator" | "v-slot:activator" | "closeDelay" | "openDelay" | "contentProps" | "attach" | "onClick:outside" | ("absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack")>, `$${any}`> & {
1325
+ }> & {} & vue.ComponentCustomProperties & {}, "offset" | "key" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "target" | "class" | "theme" | "ref" | "onAfterEnter" | "onAfterLeave" | "onKeydown" | "$children" | "v-slots" | "v-slot:default" | "ref_for" | "ref_key" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "onUpdate:modelValue" | "contentClass" | "activator" | "v-slot:activator" | "closeDelay" | "openDelay" | "contentProps" | "attach" | "onClick:outside" | ("absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack")>, `$${any}`> & {
1316
1326
  _allExposed: {
1317
1327
  activatorEl: vue.Ref<HTMLElement | undefined>;
1318
1328
  scrimEl: vue.Ref<HTMLElement | undefined>;
@@ -1550,6 +1560,7 @@ declare const VMenu: {
1550
1560
  }) => vue.VNodeChild) | undefined;
1551
1561
  onAfterEnter?: (() => any) | undefined;
1552
1562
  onAfterLeave?: (() => any) | undefined;
1563
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
1553
1564
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1554
1565
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
1555
1566
  } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
@@ -1632,6 +1643,7 @@ declare const VMenu: {
1632
1643
  } & {
1633
1644
  onAfterEnter?: (() => any) | undefined;
1634
1645
  onAfterLeave?: (() => any) | undefined;
1646
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
1635
1647
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1636
1648
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
1637
1649
  }, "absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack">;
@@ -1653,7 +1665,7 @@ declare const VMenu: {
1653
1665
  }>;
1654
1666
  $root: vue.ComponentPublicInstance | null;
1655
1667
  $parent: vue.ComponentPublicInstance | null;
1656
- $emit: ((event: "update:modelValue", value: boolean) => void) & ((event: "click:outside", e: MouseEvent) => void) & ((event: "afterEnter") => void) & ((event: "afterLeave") => void);
1668
+ $emit: ((event: "keydown", e: KeyboardEvent) => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "click:outside", e: MouseEvent) => void) & ((event: "afterEnter") => void) & ((event: "afterLeave") => void);
1657
1669
  $el: any;
1658
1670
  $options: vue.ComponentOptionsBase<{
1659
1671
  absolute: boolean;
@@ -1735,6 +1747,7 @@ declare const VMenu: {
1735
1747
  } & {
1736
1748
  onAfterEnter?: (() => any) | undefined;
1737
1749
  onAfterLeave?: (() => any) | undefined;
1750
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
1738
1751
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1739
1752
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
1740
1753
  }, {
@@ -1749,6 +1762,7 @@ declare const VMenu: {
1749
1762
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
1750
1763
  'click:outside': (e: MouseEvent) => true;
1751
1764
  'update:modelValue': (value: boolean) => true;
1765
+ keydown: (e: KeyboardEvent) => true;
1752
1766
  afterEnter: () => true;
1753
1767
  afterLeave: () => true;
1754
1768
  }, string, {
@@ -1887,6 +1901,7 @@ declare const VMenu: {
1887
1901
  } & {
1888
1902
  onAfterEnter?: (() => any) | undefined;
1889
1903
  onAfterLeave?: (() => any) | undefined;
1904
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
1890
1905
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1891
1906
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
1892
1907
  }, "target" | "contentEl" | "activatorEl" | "scrimEl" | "animateClick" | "globalTop" | "localTop" | "updateLocation"> & vue.ShallowUnwrapRef<{
@@ -1898,7 +1913,7 @@ declare const VMenu: {
1898
1913
  globalTop: Readonly<vue.Ref<boolean>>;
1899
1914
  localTop: vue.ComputedRef<boolean>;
1900
1915
  updateLocation: vue.Ref<((e: Event) => void) | undefined>;
1901
- }> & {} & vue.ComponentCustomProperties & {}, "offset" | "key" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "target" | "class" | "theme" | "ref" | "onAfterEnter" | "onAfterLeave" | "$children" | "v-slots" | "v-slot:default" | "ref_for" | "ref_key" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "onUpdate:modelValue" | "contentClass" | "activator" | "v-slot:activator" | "closeDelay" | "openDelay" | "contentProps" | "attach" | "onClick:outside" | ("absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack")>, `$${any}`> & {
1916
+ }> & {} & vue.ComponentCustomProperties & {}, "offset" | "key" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "target" | "class" | "theme" | "ref" | "onAfterEnter" | "onAfterLeave" | "onKeydown" | "$children" | "v-slots" | "v-slot:default" | "ref_for" | "ref_key" | "onVnodeBeforeMount" | "onVnodeMounted" | "onVnodeBeforeUpdate" | "onVnodeUpdated" | "onVnodeBeforeUnmount" | "onVnodeUnmounted" | "onUpdate:modelValue" | "contentClass" | "activator" | "v-slot:activator" | "closeDelay" | "openDelay" | "contentProps" | "attach" | "onClick:outside" | ("absolute" | "location" | "origin" | "transition" | "zIndex" | "style" | "eager" | "disabled" | "persistent" | "modelValue" | "locationStrategy" | "scrollStrategy" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeOnBack" | "contained" | "noClickAnimation" | "scrim" | "_disableGlobalStack")>, `$${any}`> & {
1902
1917
  _allExposed: {
1903
1918
  activatorEl: vue.Ref<HTMLElement | undefined>;
1904
1919
  scrimEl: vue.Ref<HTMLElement | undefined>;
@@ -84,6 +84,7 @@ export const VOverlay = genericComponent()({
84
84
  emits: {
85
85
  'click:outside': e => true,
86
86
  'update:modelValue': value => true,
87
+ keydown: e => true,
87
88
  afterEnter: () => true,
88
89
  afterLeave: () => true
89
90
  },
@@ -196,6 +197,9 @@ export const VOverlay = genericComponent()({
196
197
  });
197
198
  function onKeydown(e) {
198
199
  if (e.key === 'Escape' && globalTop.value) {
200
+ if (!contentEl.value?.contains(document.activeElement)) {
201
+ emit('keydown', e);
202
+ }
199
203
  if (!props.persistent) {
200
204
  isActive.value = false;
201
205
  if (contentEl.value?.contains(document.activeElement)) {
@@ -204,6 +208,10 @@ export const VOverlay = genericComponent()({
204
208
  } else animateClick();
205
209
  }
206
210
  }
211
+ function onKeydownSelf(e) {
212
+ if (e.key === 'Escape' && !globalTop.value) return;
213
+ emit('keydown', e);
214
+ }
207
215
  const router = useRouter();
208
216
  useToggleScope(() => props.closeOnBack, () => {
209
217
  useBackButton(router, next => {
@@ -266,7 +274,8 @@ export const VOverlay = genericComponent()({
266
274
  '--v-overlay-opacity': props.opacity,
267
275
  top: convertToUnit(top.value)
268
276
  }, props.style],
269
- "ref": root
277
+ "ref": root,
278
+ "onKeydown": onKeydownSelf
270
279
  }, scopeId, attrs), [_createVNode(Scrim, _mergeProps({
271
280
  "color": scrimColor,
272
281
  "modelValue": isActive.value && !!props.scrim,
@@ -1 +1 @@
1
- {"version":3,"file":"VOverlay.mjs","names":["makeLocationStrategyProps","useLocationStrategies","makeScrollStrategyProps","useScrollStrategies","makeActivatorProps","useActivator","useBackgroundColor","makeComponentProps","makeDimensionProps","useDimension","useHydration","makeLazyProps","useLazy","useRtl","useProxiedModel","useBackButton","useRouter","useScopeId","useStack","useTeleport","makeThemeProps","provideTheme","useToggleScope","makeTransitionProps","MaybeTransition","ClickOutside","computed","mergeProps","onBeforeUnmount","ref","Teleport","toRef","Transition","watch","animate","convertToUnit","genericComponent","getCurrentInstance","getScrollParent","IN_BROWSER","propsFactory","standardEasing","useRender","Scrim","props","modelValue","color","rest","_createVNode","default","_mergeProps","backgroundColorClasses","value","backgroundColorStyles","makeVOverlayProps","absolute","Boolean","attach","String","Object","closeOnBack","type","contained","contentClass","contentProps","disabled","opacity","Number","noClickAnimation","persistent","scrim","zIndex","VOverlay","name","directives","inheritAttrs","_disableGlobalStack","emits","e","afterEnter","afterLeave","setup","_ref","slots","attrs","emit","vm","root","scrimEl","contentEl","model","isActive","get","set","v","themeClasses","rtlClasses","isRtl","hasContent","onAfterLeave","_onAfterLeave","scrimColor","globalTop","localTop","stackStyles","activatorEl","activatorRef","target","targetEl","targetRef","activatorEvents","contentEvents","scrimEvents","isTop","teleportTarget","rootNode","getRootNode","proxy","$el","ShadowRoot","dimensionStyles","isMounted","scopeId","contentStyles","updateLocation","onClickOutside","animateClick","closeConditional","MouseEvent","shadowTarget","val","window","addEventListener","onKeydown","removeEventListener","immediate","key","contains","document","activeElement","focus","router","next","top","scrollParent","scrollingElement","scrollTop","transformOrigin","transform","duration","easing","onAfterEnter","_Fragment","activator","activatorProps","class","style","transition","_withDirectives","_vShow","_resolveDirective","handler","include"],"sources":["../../../src/components/VOverlay/VOverlay.tsx"],"sourcesContent":["// Styles\nimport './VOverlay.sass'\n\n// Composables\nimport { makeLocationStrategyProps, useLocationStrategies } from './locationStrategies'\nimport { makeScrollStrategyProps, useScrollStrategies } from './scrollStrategies'\nimport { makeActivatorProps, useActivator } from './useActivator'\nimport { useBackgroundColor } from '@/composables/color'\nimport { makeComponentProps } from '@/composables/component'\nimport { makeDimensionProps, useDimension } from '@/composables/dimensions'\nimport { useHydration } from '@/composables/hydration'\nimport { makeLazyProps, useLazy } from '@/composables/lazy'\nimport { useRtl } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { useBackButton, useRouter } from '@/composables/router'\nimport { useScopeId } from '@/composables/scopeId'\nimport { useStack } from '@/composables/stack'\nimport { useTeleport } from '@/composables/teleport'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\nimport { useToggleScope } from '@/composables/toggleScope'\nimport { makeTransitionProps, MaybeTransition } from '@/composables/transition'\n\n// Directives\nimport { ClickOutside } from '@/directives/click-outside'\n\n// Utilities\nimport {\n computed,\n mergeProps,\n onBeforeUnmount,\n ref,\n Teleport,\n toRef,\n Transition,\n watch,\n} from 'vue'\nimport {\n animate,\n convertToUnit,\n genericComponent,\n getCurrentInstance,\n getScrollParent,\n IN_BROWSER,\n propsFactory,\n standardEasing,\n useRender,\n} from '@/util'\n\n// Types\nimport type { PropType, Ref } from 'vue'\nimport type { BackgroundColorData } from '@/composables/color'\nimport type { TemplateRef } from '@/util'\n\ninterface ScrimProps {\n [key: string]: unknown\n modelValue: boolean\n color: BackgroundColorData\n}\nfunction Scrim (props: ScrimProps) {\n const { modelValue, color, ...rest } = props\n return (\n <Transition name=\"fade-transition\" appear>\n { props.modelValue && (\n <div\n class={[\n 'v-overlay__scrim',\n props.color.backgroundColorClasses.value,\n ]}\n style={ props.color.backgroundColorStyles.value }\n { ...rest }\n />\n )}\n </Transition>\n )\n}\n\nexport type OverlaySlots = {\n default: { isActive: Ref<boolean> }\n activator: { isActive: boolean, props: Record<string, any>, targetRef: TemplateRef }\n}\n\nexport const makeVOverlayProps = propsFactory({\n absolute: Boolean,\n attach: [Boolean, String, Object] as PropType<boolean | string | Element>,\n closeOnBack: {\n type: Boolean,\n default: true,\n },\n contained: Boolean,\n contentClass: null,\n contentProps: null,\n disabled: Boolean,\n opacity: [Number, String],\n noClickAnimation: Boolean,\n modelValue: Boolean,\n persistent: Boolean,\n scrim: {\n type: [Boolean, String],\n default: true,\n },\n zIndex: {\n type: [Number, String],\n default: 2000,\n },\n\n ...makeActivatorProps(),\n ...makeComponentProps(),\n ...makeDimensionProps(),\n ...makeLazyProps(),\n ...makeLocationStrategyProps(),\n ...makeScrollStrategyProps(),\n ...makeThemeProps(),\n ...makeTransitionProps(),\n}, 'VOverlay')\n\nexport const VOverlay = genericComponent<OverlaySlots>()({\n name: 'VOverlay',\n\n directives: { ClickOutside },\n\n inheritAttrs: false,\n\n props: {\n _disableGlobalStack: Boolean,\n\n ...makeVOverlayProps(),\n },\n\n emits: {\n 'click:outside': (e: MouseEvent) => true,\n 'update:modelValue': (value: boolean) => true,\n afterEnter: () => true,\n afterLeave: () => true,\n },\n\n setup (props, { slots, attrs, emit }) {\n const vm = getCurrentInstance('VOverlay')\n const root = ref<HTMLElement>()\n const scrimEl = ref<HTMLElement>()\n const contentEl = ref<HTMLElement>()\n const model = useProxiedModel(props, 'modelValue')\n const isActive = computed({\n get: () => model.value,\n set: v => {\n if (!(v && props.disabled)) model.value = v\n },\n })\n const { themeClasses } = provideTheme(props)\n const { rtlClasses, isRtl } = useRtl()\n const { hasContent, onAfterLeave: _onAfterLeave } = useLazy(props, isActive)\n const scrimColor = useBackgroundColor(computed(() => {\n return typeof props.scrim === 'string' ? props.scrim : null\n }))\n const { globalTop, localTop, stackStyles } = useStack(isActive, toRef(props, 'zIndex'), props._disableGlobalStack)\n const {\n activatorEl, activatorRef,\n target, targetEl, targetRef,\n activatorEvents,\n contentEvents,\n scrimEvents,\n } = useActivator(props, { isActive, isTop: localTop, contentEl })\n const { teleportTarget } = useTeleport(() => {\n const target = props.attach || props.contained\n if (target) return target\n const rootNode = activatorEl?.value?.getRootNode() || vm.proxy?.$el?.getRootNode()\n if (rootNode instanceof ShadowRoot) return rootNode\n return false\n })\n const { dimensionStyles } = useDimension(props)\n const isMounted = useHydration()\n const { scopeId } = useScopeId()\n\n watch(() => props.disabled, v => {\n if (v) isActive.value = false\n })\n\n const { contentStyles, updateLocation } = useLocationStrategies(props, {\n isRtl,\n contentEl,\n target,\n isActive,\n })\n useScrollStrategies(props, {\n root,\n contentEl,\n targetEl,\n isActive,\n updateLocation,\n })\n\n function onClickOutside (e: MouseEvent) {\n emit('click:outside', e)\n\n if (!props.persistent) isActive.value = false\n else animateClick()\n }\n\n function closeConditional (e: Event) {\n return isActive.value && globalTop.value && (\n // If using scrim, only close if clicking on it rather than anything opened on top\n !props.scrim || e.target === scrimEl.value || (e instanceof MouseEvent && e.shadowTarget === scrimEl.value)\n )\n }\n\n IN_BROWSER && watch(isActive, val => {\n if (val) {\n window.addEventListener('keydown', onKeydown)\n } else {\n window.removeEventListener('keydown', onKeydown)\n }\n }, { immediate: true })\n\n onBeforeUnmount(() => {\n if (!IN_BROWSER) return\n\n window.removeEventListener('keydown', onKeydown)\n })\n\n function onKeydown (e: KeyboardEvent) {\n if (e.key === 'Escape' && globalTop.value) {\n if (!props.persistent) {\n isActive.value = false\n if (contentEl.value?.contains(document.activeElement)) {\n activatorEl.value?.focus()\n }\n } else animateClick()\n }\n }\n\n const router = useRouter()\n useToggleScope(() => props.closeOnBack, () => {\n useBackButton(router, next => {\n if (globalTop.value && isActive.value) {\n next(false)\n if (!props.persistent) isActive.value = false\n else animateClick()\n } else {\n next()\n }\n })\n })\n\n const top = ref<number>()\n watch(() => isActive.value && (props.absolute || props.contained) && teleportTarget.value == null, val => {\n if (val) {\n const scrollParent = getScrollParent(root.value)\n if (scrollParent && scrollParent !== document.scrollingElement) {\n top.value = scrollParent.scrollTop\n }\n }\n })\n\n // Add a quick \"bounce\" animation to the content\n function animateClick () {\n if (props.noClickAnimation) return\n\n contentEl.value && animate(contentEl.value, [\n { transformOrigin: 'center' },\n { transform: 'scale(1.03)' },\n { transformOrigin: 'center' },\n ], {\n duration: 150,\n easing: standardEasing,\n })\n }\n\n function onAfterEnter () {\n emit('afterEnter')\n }\n\n function onAfterLeave () {\n _onAfterLeave()\n emit('afterLeave')\n }\n\n useRender(() => (\n <>\n { slots.activator?.({\n isActive: isActive.value,\n targetRef,\n props: mergeProps({\n ref: activatorRef,\n }, activatorEvents.value, props.activatorProps),\n })}\n\n { isMounted.value && hasContent.value && (\n <Teleport\n disabled={ !teleportTarget.value }\n to={ teleportTarget.value }\n >\n <div\n class={[\n 'v-overlay',\n {\n 'v-overlay--absolute': props.absolute || props.contained,\n 'v-overlay--active': isActive.value,\n 'v-overlay--contained': props.contained,\n },\n themeClasses.value,\n rtlClasses.value,\n props.class,\n ]}\n style={[\n stackStyles.value,\n {\n '--v-overlay-opacity': props.opacity,\n top: convertToUnit(top.value),\n },\n props.style,\n ]}\n ref={ root }\n { ...scopeId }\n { ...attrs }\n >\n <Scrim\n color={ scrimColor }\n modelValue={ isActive.value && !!props.scrim }\n ref={ scrimEl }\n { ...scrimEvents.value }\n />\n <MaybeTransition\n appear\n persisted\n transition={ props.transition }\n target={ target.value }\n onAfterEnter={ onAfterEnter }\n onAfterLeave={ onAfterLeave }\n >\n <div\n ref={ contentEl }\n v-show={ isActive.value }\n v-click-outside={{ handler: onClickOutside, closeConditional, include: () => [activatorEl.value] }}\n class={[\n 'v-overlay__content',\n props.contentClass,\n ]}\n style={[\n dimensionStyles.value,\n contentStyles.value,\n ]}\n { ...contentEvents.value }\n { ...props.contentProps }\n >\n { slots.default?.({ isActive }) }\n </div>\n </MaybeTransition>\n </div>\n </Teleport>\n )}\n </>\n ))\n\n return {\n activatorEl,\n scrimEl,\n target,\n animateClick,\n contentEl,\n globalTop,\n localTop,\n updateLocation,\n }\n },\n})\n\nexport type VO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,aAAa,CAAC4G,GAAG,CAAC3F,KAAK;QAC9B,CAAC,EACDR,KAAK,CAACgH,KAAK,CACZ;QAAA,OACKrE;MAAI,GACLmC,OAAO,EACPtC,KAAK,IAAApC,YAAA,CAAAL,KAAA,EAAAO,WAAA;QAAA,SAGAmD,UAAU;QAAA,cACLV,QAAQ,CAACvC,KAAK,IAAI,CAAC,CAACR,KAAK,CAAC0B,KAAK;QAAA,OACtCkB;MAAO,GACRwB,WAAW,CAAC5D,KAAK,UAAAJ,YAAA,CAAAxB,eAAA;QAAA;QAAA;QAAA,cAKToB,KAAK,CAACiH,UAAU;QAAA,UACpBlD,MAAM,CAACvD,KAAK;QAAA,gBACNmG,YAAY;QAAA,gBACZpD;MAAY;QAAAlD,OAAA,EAAAA,CAAA,MAAA6G,eAAA,CAAA9G,YAAA,QAAAE,WAAA;UAAA,OAGnBuC,SAAS;UAAA,SAGR,CACL,oBAAoB,EACpB7C,KAAK,CAACmB,YAAY,CACnB;UAAA,SACM,CACLyD,eAAe,CAACpE,KAAK,EACrBuE,aAAa,CAACvE,KAAK;QACpB,GACI2D,aAAa,CAAC3D,KAAK,EACnBR,KAAK,CAACoB,YAAY,IAErBmB,KAAK,CAAClC,OAAO,GAAG;UAAE0C;QAAS,CAAC,CAAC,MAAAoE,MAAA,EAbtBpE,QAAQ,CAACvC,KAAK,IAAA4G,iBAAA,mBACN;UAAEC,OAAO,EAAEpC,cAAc;UAAEE,gBAAgB;UAAEmC,OAAO,EAAEA,CAAA,KAAM,CAACzD,WAAW,CAACrD,KAAK;QAAE,CAAC;MAAA;IAAA,EAiB3G,EAEJ,CAAC;IAEF,OAAO;MACLqD,WAAW;MACXjB,OAAO;MACPmB,MAAM;MACNmB,YAAY;MACZrC,SAAS;MACTa,SAAS;MACTC,QAAQ;MACRqB;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VOverlay.mjs","names":["makeLocationStrategyProps","useLocationStrategies","makeScrollStrategyProps","useScrollStrategies","makeActivatorProps","useActivator","useBackgroundColor","makeComponentProps","makeDimensionProps","useDimension","useHydration","makeLazyProps","useLazy","useRtl","useProxiedModel","useBackButton","useRouter","useScopeId","useStack","useTeleport","makeThemeProps","provideTheme","useToggleScope","makeTransitionProps","MaybeTransition","ClickOutside","computed","mergeProps","onBeforeUnmount","ref","Teleport","toRef","Transition","watch","animate","convertToUnit","genericComponent","getCurrentInstance","getScrollParent","IN_BROWSER","propsFactory","standardEasing","useRender","Scrim","props","modelValue","color","rest","_createVNode","default","_mergeProps","backgroundColorClasses","value","backgroundColorStyles","makeVOverlayProps","absolute","Boolean","attach","String","Object","closeOnBack","type","contained","contentClass","contentProps","disabled","opacity","Number","noClickAnimation","persistent","scrim","zIndex","VOverlay","name","directives","inheritAttrs","_disableGlobalStack","emits","e","keydown","afterEnter","afterLeave","setup","_ref","slots","attrs","emit","vm","root","scrimEl","contentEl","model","isActive","get","set","v","themeClasses","rtlClasses","isRtl","hasContent","onAfterLeave","_onAfterLeave","scrimColor","globalTop","localTop","stackStyles","activatorEl","activatorRef","target","targetEl","targetRef","activatorEvents","contentEvents","scrimEvents","isTop","teleportTarget","rootNode","getRootNode","proxy","$el","ShadowRoot","dimensionStyles","isMounted","scopeId","contentStyles","updateLocation","onClickOutside","animateClick","closeConditional","MouseEvent","shadowTarget","val","window","addEventListener","onKeydown","removeEventListener","immediate","key","contains","document","activeElement","focus","onKeydownSelf","router","next","top","scrollParent","scrollingElement","scrollTop","transformOrigin","transform","duration","easing","onAfterEnter","_Fragment","activator","activatorProps","class","style","transition","_withDirectives","_vShow","_resolveDirective","handler","include"],"sources":["../../../src/components/VOverlay/VOverlay.tsx"],"sourcesContent":["// Styles\nimport './VOverlay.sass'\n\n// Composables\nimport { makeLocationStrategyProps, useLocationStrategies } from './locationStrategies'\nimport { makeScrollStrategyProps, useScrollStrategies } from './scrollStrategies'\nimport { makeActivatorProps, useActivator } from './useActivator'\nimport { useBackgroundColor } from '@/composables/color'\nimport { makeComponentProps } from '@/composables/component'\nimport { makeDimensionProps, useDimension } from '@/composables/dimensions'\nimport { useHydration } from '@/composables/hydration'\nimport { makeLazyProps, useLazy } from '@/composables/lazy'\nimport { useRtl } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { useBackButton, useRouter } from '@/composables/router'\nimport { useScopeId } from '@/composables/scopeId'\nimport { useStack } from '@/composables/stack'\nimport { useTeleport } from '@/composables/teleport'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\nimport { useToggleScope } from '@/composables/toggleScope'\nimport { makeTransitionProps, MaybeTransition } from '@/composables/transition'\n\n// Directives\nimport { ClickOutside } from '@/directives/click-outside'\n\n// Utilities\nimport {\n computed,\n mergeProps,\n onBeforeUnmount,\n ref,\n Teleport,\n toRef,\n Transition,\n watch,\n} from 'vue'\nimport {\n animate,\n convertToUnit,\n genericComponent,\n getCurrentInstance,\n getScrollParent,\n IN_BROWSER,\n propsFactory,\n standardEasing,\n useRender,\n} from '@/util'\n\n// Types\nimport type { PropType, Ref } from 'vue'\nimport type { BackgroundColorData } from '@/composables/color'\nimport type { TemplateRef } from '@/util'\n\ninterface ScrimProps {\n [key: string]: unknown\n modelValue: boolean\n color: BackgroundColorData\n}\nfunction Scrim (props: ScrimProps) {\n const { modelValue, color, ...rest } = props\n return (\n <Transition name=\"fade-transition\" appear>\n { props.modelValue && (\n <div\n class={[\n 'v-overlay__scrim',\n props.color.backgroundColorClasses.value,\n ]}\n style={ props.color.backgroundColorStyles.value }\n { ...rest }\n />\n )}\n </Transition>\n )\n}\n\nexport type OverlaySlots = {\n default: { isActive: Ref<boolean> }\n activator: { isActive: boolean, props: Record<string, any>, targetRef: TemplateRef }\n}\n\nexport const makeVOverlayProps = propsFactory({\n absolute: Boolean,\n attach: [Boolean, String, Object] as PropType<boolean | string | Element>,\n closeOnBack: {\n type: Boolean,\n default: true,\n },\n contained: Boolean,\n contentClass: null,\n contentProps: null,\n disabled: Boolean,\n opacity: [Number, String],\n noClickAnimation: Boolean,\n modelValue: Boolean,\n persistent: Boolean,\n scrim: {\n type: [Boolean, String],\n default: true,\n },\n zIndex: {\n type: [Number, String],\n default: 2000,\n },\n\n ...makeActivatorProps(),\n ...makeComponentProps(),\n ...makeDimensionProps(),\n ...makeLazyProps(),\n ...makeLocationStrategyProps(),\n ...makeScrollStrategyProps(),\n ...makeThemeProps(),\n ...makeTransitionProps(),\n}, 'VOverlay')\n\nexport const VOverlay = genericComponent<OverlaySlots>()({\n name: 'VOverlay',\n\n directives: { ClickOutside },\n\n inheritAttrs: false,\n\n props: {\n _disableGlobalStack: Boolean,\n\n ...makeVOverlayProps(),\n },\n\n emits: {\n 'click:outside': (e: MouseEvent) => true,\n 'update:modelValue': (value: boolean) => true,\n keydown: (e: KeyboardEvent) => true,\n afterEnter: () => true,\n afterLeave: () => true,\n },\n\n setup (props, { slots, attrs, emit }) {\n const vm = getCurrentInstance('VOverlay')\n const root = ref<HTMLElement>()\n const scrimEl = ref<HTMLElement>()\n const contentEl = ref<HTMLElement>()\n const model = useProxiedModel(props, 'modelValue')\n const isActive = computed({\n get: () => model.value,\n set: v => {\n if (!(v && props.disabled)) model.value = v\n },\n })\n const { themeClasses } = provideTheme(props)\n const { rtlClasses, isRtl } = useRtl()\n const { hasContent, onAfterLeave: _onAfterLeave } = useLazy(props, isActive)\n const scrimColor = useBackgroundColor(computed(() => {\n return typeof props.scrim === 'string' ? props.scrim : null\n }))\n const { globalTop, localTop, stackStyles } = useStack(isActive, toRef(props, 'zIndex'), props._disableGlobalStack)\n const {\n activatorEl, activatorRef,\n target, targetEl, targetRef,\n activatorEvents,\n contentEvents,\n scrimEvents,\n } = useActivator(props, { isActive, isTop: localTop, contentEl })\n const { teleportTarget } = useTeleport(() => {\n const target = props.attach || props.contained\n if (target) return target\n const rootNode = activatorEl?.value?.getRootNode() || vm.proxy?.$el?.getRootNode()\n if (rootNode instanceof ShadowRoot) return rootNode\n return false\n })\n const { dimensionStyles } = useDimension(props)\n const isMounted = useHydration()\n const { scopeId } = useScopeId()\n\n watch(() => props.disabled, v => {\n if (v) isActive.value = false\n })\n\n const { contentStyles, updateLocation } = useLocationStrategies(props, {\n isRtl,\n contentEl,\n target,\n isActive,\n })\n useScrollStrategies(props, {\n root,\n contentEl,\n targetEl,\n isActive,\n updateLocation,\n })\n\n function onClickOutside (e: MouseEvent) {\n emit('click:outside', e)\n\n if (!props.persistent) isActive.value = false\n else animateClick()\n }\n\n function closeConditional (e: Event) {\n return isActive.value && globalTop.value && (\n // If using scrim, only close if clicking on it rather than anything opened on top\n !props.scrim || e.target === scrimEl.value || (e instanceof MouseEvent && e.shadowTarget === scrimEl.value)\n )\n }\n\n IN_BROWSER && watch(isActive, val => {\n if (val) {\n window.addEventListener('keydown', onKeydown)\n } else {\n window.removeEventListener('keydown', onKeydown)\n }\n }, { immediate: true })\n\n onBeforeUnmount(() => {\n if (!IN_BROWSER) return\n\n window.removeEventListener('keydown', onKeydown)\n })\n\n function onKeydown (e: KeyboardEvent) {\n if (e.key === 'Escape' && globalTop.value) {\n if (!contentEl.value?.contains(document.activeElement)) {\n emit('keydown', e)\n }\n if (!props.persistent) {\n isActive.value = false\n if (contentEl.value?.contains(document.activeElement)) {\n activatorEl.value?.focus()\n }\n } else animateClick()\n }\n }\n function onKeydownSelf (e: KeyboardEvent) {\n if (e.key === 'Escape' && !globalTop.value) return\n\n emit('keydown', e)\n }\n\n const router = useRouter()\n useToggleScope(() => props.closeOnBack, () => {\n useBackButton(router, next => {\n if (globalTop.value && isActive.value) {\n next(false)\n if (!props.persistent) isActive.value = false\n else animateClick()\n } else {\n next()\n }\n })\n })\n\n const top = ref<number>()\n watch(() => isActive.value && (props.absolute || props.contained) && teleportTarget.value == null, val => {\n if (val) {\n const scrollParent = getScrollParent(root.value)\n if (scrollParent && scrollParent !== document.scrollingElement) {\n top.value = scrollParent.scrollTop\n }\n }\n })\n\n // Add a quick \"bounce\" animation to the content\n function animateClick () {\n if (props.noClickAnimation) return\n\n contentEl.value && animate(contentEl.value, [\n { transformOrigin: 'center' },\n { transform: 'scale(1.03)' },\n { transformOrigin: 'center' },\n ], {\n duration: 150,\n easing: standardEasing,\n })\n }\n\n function onAfterEnter () {\n emit('afterEnter')\n }\n\n function onAfterLeave () {\n _onAfterLeave()\n emit('afterLeave')\n }\n\n useRender(() => (\n <>\n { slots.activator?.({\n isActive: isActive.value,\n targetRef,\n props: mergeProps({\n ref: activatorRef,\n }, activatorEvents.value, props.activatorProps),\n })}\n\n { isMounted.value && hasContent.value && (\n <Teleport\n disabled={ !teleportTarget.value }\n to={ teleportTarget.value }\n >\n <div\n class={[\n 'v-overlay',\n {\n 'v-overlay--absolute': props.absolute || props.contained,\n 'v-overlay--active': isActive.value,\n 'v-overlay--contained': props.contained,\n },\n themeClasses.value,\n rtlClasses.value,\n props.class,\n ]}\n style={[\n stackStyles.value,\n {\n '--v-overlay-opacity': props.opacity,\n top: convertToUnit(top.value),\n },\n props.style,\n ]}\n ref={ root }\n onKeydown={ onKeydownSelf }\n { ...scopeId }\n { ...attrs }\n >\n <Scrim\n color={ scrimColor }\n modelValue={ isActive.value && !!props.scrim }\n ref={ scrimEl }\n { ...scrimEvents.value }\n />\n <MaybeTransition\n appear\n persisted\n transition={ props.transition }\n target={ target.value }\n onAfterEnter={ onAfterEnter }\n onAfterLeave={ onAfterLeave }\n >\n <div\n ref={ contentEl }\n v-show={ isActive.value }\n v-click-outside={{ handler: onClickOutside, closeConditional, include: () => [activatorEl.value] }}\n class={[\n 'v-overlay__content',\n props.contentClass,\n ]}\n style={[\n dimensionStyles.value,\n contentStyles.value,\n ]}\n { ...contentEvents.value }\n { ...props.contentProps }\n >\n { slots.default?.({ isActive }) }\n </div>\n </MaybeTransition>\n </div>\n </Teleport>\n )}\n </>\n ))\n\n return {\n activatorEl,\n scrimEl,\n target,\n animateClick,\n contentEl,\n globalTop,\n localTop,\n updateLocation,\n }\n },\n})\n\nexport type VOverlay = InstanceType<typeof VOverlay>\n"],"mappings":";AAAA;A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AAEoC,OAAO,EAAEA,CAAA,KAAM,CAAC1D,WAAW,CAACtD,KAAK;QAAE,CAAC;MAAA;IAAA,EAiB3G,EAEJ,CAAC;IAEF,OAAO;MACLsD,WAAW;MACXjB,OAAO;MACPmB,MAAM;MACNmB,YAAY;MACZrC,SAAS;MACTa,SAAS;MACTC,QAAQ;MACRqB;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
@@ -173,6 +173,7 @@ declare const VOverlay: {
173
173
  } & {
174
174
  onAfterEnter?: (() => any) | undefined;
175
175
  onAfterLeave?: (() => any) | undefined;
176
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
176
177
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
177
178
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
178
179
  }, {
@@ -187,6 +188,7 @@ declare const VOverlay: {
187
188
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
188
189
  'click:outside': (e: MouseEvent) => true;
189
190
  'update:modelValue': (value: boolean) => true;
191
+ keydown: (e: KeyboardEvent) => true;
190
192
  afterEnter: () => true;
191
193
  afterLeave: () => true;
192
194
  }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
@@ -269,6 +271,7 @@ declare const VOverlay: {
269
271
  } & {
270
272
  onAfterEnter?: (() => any) | undefined;
271
273
  onAfterLeave?: (() => any) | undefined;
274
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
272
275
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
273
276
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
274
277
  }, {
@@ -394,6 +397,7 @@ declare const VOverlay: {
394
397
  } & {
395
398
  onAfterEnter?: (() => any) | undefined;
396
399
  onAfterLeave?: (() => any) | undefined;
400
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
397
401
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
398
402
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
399
403
  }, {
@@ -516,6 +520,7 @@ declare const VOverlay: {
516
520
  } & {
517
521
  onAfterEnter?: (() => any) | undefined;
518
522
  onAfterLeave?: (() => any) | undefined;
523
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
519
524
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
520
525
  "onClick:outside"?: ((e: MouseEvent) => any) | undefined;
521
526
  }, {
@@ -530,6 +535,7 @@ declare const VOverlay: {
530
535
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
531
536
  'click:outside': (e: MouseEvent) => true;
532
537
  'update:modelValue': (value: boolean) => true;
538
+ keydown: (e: KeyboardEvent) => true;
533
539
  afterEnter: () => true;
534
540
  afterLeave: () => true;
535
541
  }, string, {
@@ -159,7 +159,7 @@ export const VPagination = genericComponent()({
159
159
  const minButtons = props.showFirstLastPage ? 5 : 3;
160
160
  return Math.max(0, Math.floor(
161
161
  // Round to two decimal places to avoid floating point errors
162
- +((totalWidth - itemWidth * minButtons) / itemWidth).toFixed(2)));
162
+ Number(((totalWidth - itemWidth * minButtons) / itemWidth).toFixed(2))));
163
163
  }
164
164
  const range = computed(() => {
165
165
  if (length.value <= 0 || isNaN(length.value) || length.value > Number.MAX_SAFE_INTEGER) return [];
@@ -230,7 +230,7 @@ export const VPagination = genericComponent()({
230
230
  ref,
231
231
  ellipsis: false,
232
232
  icon: true,
233
- disabled: !!props.disabled || +props.length < 2,
233
+ disabled: !!props.disabled || Number(props.length) < 2,
234
234
  color: isActive ? props.activeColor : props.color,
235
235
  'aria-current': isActive,
236
236
  'aria-label': t(isActive ? props.currentPageAriaLabel : props.pageAriaLabel, item),
@@ -279,7 +279,7 @@ export const VPagination = genericComponent()({
279
279
  refs.value[currentIndex]?.$el.focus();
280
280
  }
281
281
  function onKeydown(e) {
282
- if (e.key === keyValues.left && !props.disabled && page.value > +props.start) {
282
+ if (e.key === keyValues.left && !props.disabled && page.value > Number(props.start)) {
283
283
  page.value = page.value - 1;
284
284
  nextTick(updateFocus);
285
285
  } else if (e.key === keyValues.right && !props.disabled && page.value < start.value + length.value - 1) {