@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
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * Vuetify v3.7.15
2
+ * Vuetify v3.7.19
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
- import { shallowRef, reactive, computed, watchEffect, toRefs, capitalize, unref, Fragment, isVNode, Comment, warn, getCurrentInstance as getCurrentInstance$1, ref, provide, inject as inject$1, defineComponent as defineComponent$1, h, camelize, onBeforeUnmount, watch, readonly, onMounted, onDeactivated, onActivated, onScopeDispose, effectScope, toRaw, createVNode, TransitionGroup, Transition, mergeProps, isRef, toRef, onBeforeMount, nextTick, withDirectives, resolveDirective, vShow, onUpdated, Text, resolveDynamicComponent, markRaw, Teleport, cloneVNode, createTextVNode, onUnmounted, onBeforeUpdate, withModifiers, toDisplayString, vModelText, resolveComponent, render } from 'vue';
7
+ import { shallowRef, reactive, computed, watchEffect, toRefs, capitalize, unref, Fragment, isVNode, Comment, warn, getCurrentInstance as getCurrentInstance$1, ref, provide, inject as inject$1, defineComponent as defineComponent$1, h, camelize, onBeforeUnmount, watch, readonly, onMounted, onDeactivated, onActivated, onScopeDispose, effectScope, toRaw, createVNode, TransitionGroup, Transition, mergeProps, isRef, toRef, onBeforeMount, nextTick, withDirectives, resolveDirective, vShow, onUpdated, Text, resolveDynamicComponent, toDisplayString, markRaw, Teleport, cloneVNode, createTextVNode, onUnmounted, onBeforeUpdate, withModifiers, vModelText, resolveComponent, render } from 'vue';
8
8
 
9
9
  // Types
10
10
  // eslint-disable-line vue/prefer-import-from-vue
@@ -151,12 +151,14 @@ function convertToUnit(str) {
151
151
  let unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'px';
152
152
  if (str == null || str === '') {
153
153
  return undefined;
154
- } else if (isNaN(+str)) {
154
+ }
155
+ const num = Number(str);
156
+ if (isNaN(num)) {
155
157
  return String(str);
156
- } else if (!isFinite(+str)) {
158
+ } else if (!isFinite(num)) {
157
159
  return undefined;
158
160
  } else {
159
- return `${Number(str)}${unit}`;
161
+ return `${num}${unit}`;
160
162
  }
161
163
  }
162
164
  function isObject(obj) {
@@ -227,7 +229,7 @@ function has(obj, key) {
227
229
  function pick(obj, paths) {
228
230
  const found = {};
229
231
  for (const key of paths) {
230
- if (Object.hasOwn(obj, key)) {
232
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
231
233
  found[key] = obj[key];
232
234
  }
233
235
  }
@@ -690,16 +692,16 @@ function nullifyTransforms(el) {
690
692
  let ta, sx, sy, dx, dy;
691
693
  if (tx.startsWith('matrix3d(')) {
692
694
  ta = tx.slice(9, -1).split(/, /);
693
- sx = +ta[0];
694
- sy = +ta[5];
695
- dx = +ta[12];
696
- dy = +ta[13];
695
+ sx = Number(ta[0]);
696
+ sy = Number(ta[5]);
697
+ dx = Number(ta[12]);
698
+ dy = Number(ta[13]);
697
699
  } else if (tx.startsWith('matrix(')) {
698
700
  ta = tx.slice(7, -1).split(/, /);
699
- sx = +ta[0];
700
- sy = +ta[3];
701
- dx = +ta[4];
702
- dy = +ta[5];
701
+ sx = Number(ta[0]);
702
+ sy = Number(ta[3]);
703
+ dx = Number(ta[4]);
704
+ dy = Number(ta[5]);
703
705
  } else {
704
706
  return new Box(rect);
705
707
  }
@@ -2075,7 +2077,7 @@ var en = {
2075
2077
  const LANG_PREFIX = '$vuetify.';
2076
2078
  const replace = (str, params) => {
2077
2079
  return str.replace(/\{(\d+)\}/g, (match, index) => {
2078
- return String(params[+index]);
2080
+ return String(params[Number(index)]);
2079
2081
  });
2080
2082
  };
2081
2083
  const createTranslateFunction = (current, fallback, messages) => {
@@ -2445,7 +2447,7 @@ function createTheme(options) {
2445
2447
  function getHead() {
2446
2448
  return {
2447
2449
  style: [{
2448
- children: styles.value,
2450
+ textContent: styles.value,
2449
2451
  id: 'vuetify-theme-stylesheet',
2450
2452
  nonce: parsedOptions.cspNonce || false
2451
2453
  }]
@@ -4668,7 +4670,7 @@ const VIcon = genericComponent()({
4668
4670
  const slotIcon = ref();
4669
4671
  const {
4670
4672
  themeClasses
4671
- } = provideTheme(props);
4673
+ } = useTheme();
4672
4674
  const {
4673
4675
  iconData
4674
4676
  } = useIcon(computed(() => slotIcon.value || props.icon));
@@ -5572,7 +5574,10 @@ const makeVBtnProps = propsFactory({
5572
5574
  type: [Boolean, Object],
5573
5575
  default: true
5574
5576
  },
5575
- text: String,
5577
+ text: {
5578
+ type: [String, Number, Boolean],
5579
+ default: undefined
5580
+ },
5576
5581
  ...makeBorderProps(),
5577
5582
  ...makeComponentProps(),
5578
5583
  ...makeDensityProps(),
@@ -5728,7 +5733,7 @@ const VBtn = genericComponent()({
5728
5733
  }
5729
5734
  }
5730
5735
  }, {
5731
- default: () => [slots.default?.() ?? props.text]
5736
+ default: () => [slots.default?.() ?? toDisplayString(props.text)]
5732
5737
  })]), !props.icon && hasAppend && createVNode("span", {
5733
5738
  "key": "append",
5734
5739
  "class": "v-btn__append"
@@ -6736,7 +6741,7 @@ function useValidation(props) {
6736
6741
  const isPristine = shallowRef(true);
6737
6742
  const isDirty = computed(() => !!(wrapInArray(model.value === '' ? null : model.value).length || wrapInArray(validationModel.value === '' ? null : validationModel.value).length));
6738
6743
  const errorMessages = computed(() => {
6739
- return props.errorMessages?.length ? wrapInArray(props.errorMessages).concat(internalErrorMessages.value).slice(0, Math.max(0, +props.maxErrors)) : internalErrorMessages.value;
6744
+ return props.errorMessages?.length ? wrapInArray(props.errorMessages).concat(internalErrorMessages.value).slice(0, Math.max(0, Number(props.maxErrors))) : internalErrorMessages.value;
6740
6745
  });
6741
6746
  const validateOn = computed(() => {
6742
6747
  let value = (props.validateOn ?? form.validateOn?.value) || 'input';
@@ -6827,7 +6832,7 @@ function useValidation(props) {
6827
6832
  const results = [];
6828
6833
  isValidating.value = true;
6829
6834
  for (const rule of props.rules) {
6830
- if (results.length >= +(props.maxErrors ?? 1)) {
6835
+ if (results.length >= Number(props.maxErrors ?? 1)) {
6831
6836
  break;
6832
6837
  }
6833
6838
  const handler = typeof rule === 'function' ? rule : () => rule;
@@ -7888,7 +7893,10 @@ const makeVChipProps = propsFactory({
7888
7893
  type: [Boolean, Object],
7889
7894
  default: true
7890
7895
  },
7891
- text: String,
7896
+ text: {
7897
+ type: [String, Number, Boolean],
7898
+ default: undefined
7899
+ },
7892
7900
  modelValue: {
7893
7901
  type: Boolean,
7894
7902
  default: true
@@ -8057,7 +8065,7 @@ const VChip = genericComponent()({
8057
8065
  toggle: group?.toggle,
8058
8066
  value: group?.value.value,
8059
8067
  disabled: props.disabled
8060
- }) ?? props.text]), hasAppend && createVNode("div", {
8068
+ }) ?? toDisplayString(props.text)]), hasAppend && createVNode("div", {
8061
8069
  "key": "append",
8062
8070
  "class": "v-chip__append"
8063
8071
  }, [!slots.append ? createVNode(Fragment, null, [props.appendIcon && createVNode(VIcon, {
@@ -8936,8 +8944,14 @@ const makeVListItemProps = propsFactory({
8936
8944
  default: true
8937
8945
  },
8938
8946
  slim: Boolean,
8939
- subtitle: [String, Number],
8940
- title: [String, Number],
8947
+ subtitle: {
8948
+ type: [String, Number, Boolean],
8949
+ default: undefined
8950
+ },
8951
+ title: {
8952
+ type: [String, Number, Boolean],
8953
+ default: undefined
8954
+ },
8941
8955
  value: null,
8942
8956
  onClick: EventProp(),
8943
8957
  onClickOnce: EventProp(),
@@ -9130,13 +9144,13 @@ const VListItem = genericComponent()({
9130
9144
  }, {
9131
9145
  default: () => [slots.title?.({
9132
9146
  title: props.title
9133
- }) ?? props.title]
9147
+ }) ?? toDisplayString(props.title)]
9134
9148
  }), hasSubtitle && createVNode(VListItemSubtitle, {
9135
9149
  "key": "subtitle"
9136
9150
  }, {
9137
9151
  default: () => [slots.subtitle?.({
9138
9152
  subtitle: props.subtitle
9139
- }) ?? props.subtitle]
9153
+ }) ?? toDisplayString(props.subtitle)]
9140
9154
  }), slots.default?.(slotProps.value)]), hasAppend && createVNode("div", {
9141
9155
  "key": "append",
9142
9156
  "class": "v-list-item__append"
@@ -10737,10 +10751,10 @@ function useStack(isActive, zIndex, disableGlobalStack) {
10737
10751
  activeChildren: new Set()
10738
10752
  });
10739
10753
  provide(StackSymbol, stack);
10740
- const _zIndex = shallowRef(+zIndex.value);
10754
+ const _zIndex = shallowRef(Number(zIndex.value));
10741
10755
  useToggleScope(isActive, () => {
10742
10756
  const lastZIndex = globalStack.at(-1)?.[1];
10743
- _zIndex.value = lastZIndex ? lastZIndex + 10 : +zIndex.value;
10757
+ _zIndex.value = lastZIndex ? lastZIndex + 10 : Number(zIndex.value);
10744
10758
  if (createStackEntry) {
10745
10759
  globalStack.push([vm.uid, _zIndex.value]);
10746
10760
  }
@@ -10949,6 +10963,7 @@ const VOverlay = genericComponent()({
10949
10963
  emits: {
10950
10964
  'click:outside': e => true,
10951
10965
  'update:modelValue': value => true,
10966
+ keydown: e => true,
10952
10967
  afterEnter: () => true,
10953
10968
  afterLeave: () => true
10954
10969
  },
@@ -11061,6 +11076,9 @@ const VOverlay = genericComponent()({
11061
11076
  });
11062
11077
  function onKeydown(e) {
11063
11078
  if (e.key === 'Escape' && globalTop.value) {
11079
+ if (!contentEl.value?.contains(document.activeElement)) {
11080
+ emit('keydown', e);
11081
+ }
11064
11082
  if (!props.persistent) {
11065
11083
  isActive.value = false;
11066
11084
  if (contentEl.value?.contains(document.activeElement)) {
@@ -11069,6 +11087,10 @@ const VOverlay = genericComponent()({
11069
11087
  } else animateClick();
11070
11088
  }
11071
11089
  }
11090
+ function onKeydownSelf(e) {
11091
+ if (e.key === 'Escape' && !globalTop.value) return;
11092
+ emit('keydown', e);
11093
+ }
11072
11094
  const router = useRouter();
11073
11095
  useToggleScope(() => props.closeOnBack, () => {
11074
11096
  useBackButton(router, next => {
@@ -11131,7 +11153,8 @@ const VOverlay = genericComponent()({
11131
11153
  '--v-overlay-opacity': props.opacity,
11132
11154
  top: convertToUnit(top.value)
11133
11155
  }, props.style],
11134
- "ref": root
11156
+ "ref": root,
11157
+ "onKeydown": onKeydownSelf
11135
11158
  }, scopeId, attrs), [createVNode(Scrim, mergeProps({
11136
11159
  "color": scrimColor,
11137
11160
  "modelValue": isActive.value && !!props.scrim,
@@ -11802,11 +11825,6 @@ const VField = genericComponent()({
11802
11825
  };
11803
11826
  }
11804
11827
  });
11805
- // TODO: this is kinda slow, might be better to implicitly inherit props instead
11806
- function filterFieldProps(attrs) {
11807
- const keys = Object.keys(VField.props).filter(k => !isOn(k) && k !== 'class' && k !== 'style');
11808
- return pick(attrs, keys);
11809
- }
11810
11828
 
11811
11829
  // Types
11812
11830
 
@@ -11914,7 +11932,7 @@ const VTextField = genericComponent()({
11914
11932
  modelValue: _,
11915
11933
  ...inputProps
11916
11934
  } = VInput.filterProps(props);
11917
- const fieldProps = filterFieldProps(props);
11935
+ const fieldProps = VField.filterProps(props);
11918
11936
  return createVNode(VInput, mergeProps({
11919
11937
  "ref": vInputRef,
11920
11938
  "modelValue": model.value,
@@ -13522,11 +13540,11 @@ const VBadge = genericComponent()({
13522
13540
  locationStyles
13523
13541
  } = useLocation(props, true, side => {
13524
13542
  const base = props.floating ? props.dot ? 2 : 4 : props.dot ? 8 : 12;
13525
- return base + (['top', 'bottom'].includes(side) ? +(props.offsetY ?? 0) : ['left', 'right'].includes(side) ? +(props.offsetX ?? 0) : 0);
13543
+ return base + (['top', 'bottom'].includes(side) ? Number(props.offsetY ?? 0) : ['left', 'right'].includes(side) ? Number(props.offsetX ?? 0) : 0);
13526
13544
  });
13527
13545
  useRender(() => {
13528
13546
  const value = Number(props.content);
13529
- const content = !props.max || isNaN(value) ? props.content : value <= +props.max ? value : `${props.max}+`;
13547
+ const content = !props.max || isNaN(value) ? props.content : value <= Number(props.max) ? value : `${props.max}+`;
13530
13548
  const [badgeAttrs, attrs] = pickWithRest(ctx.attrs, ['aria-atomic', 'aria-label', 'aria-live', 'role', 'title']);
13531
13549
  return createVNode(props.tag, mergeProps({
13532
13550
  "class": ['v-badge', {
@@ -14225,8 +14243,14 @@ const makeCardItemProps = propsFactory({
14225
14243
  appendIcon: IconValue,
14226
14244
  prependAvatar: String,
14227
14245
  prependIcon: IconValue,
14228
- subtitle: [String, Number],
14229
- title: [String, Number],
14246
+ subtitle: {
14247
+ type: [String, Number, Boolean],
14248
+ default: undefined
14249
+ },
14250
+ title: {
14251
+ type: [String, Number, Boolean],
14252
+ default: undefined
14253
+ },
14230
14254
  ...makeComponentProps(),
14231
14255
  ...makeDensityProps()
14232
14256
  }, 'VCardItem');
@@ -14276,11 +14300,11 @@ const VCardItem = genericComponent()({
14276
14300
  }, [hasTitle && createVNode(VCardTitle, {
14277
14301
  "key": "title"
14278
14302
  }, {
14279
- default: () => [slots.title?.() ?? props.title]
14303
+ default: () => [slots.title?.() ?? toDisplayString(props.title)]
14280
14304
  }), hasSubtitle && createVNode(VCardSubtitle, {
14281
14305
  "key": "subtitle"
14282
14306
  }, {
14283
- default: () => [slots.subtitle?.() ?? props.subtitle]
14307
+ default: () => [slots.subtitle?.() ?? toDisplayString(props.subtitle)]
14284
14308
  }), slots.default?.()]), hasAppend && createVNode("div", {
14285
14309
  "key": "append",
14286
14310
  "class": "v-card-item__append"
@@ -14352,9 +14376,18 @@ const makeVCardProps = propsFactory({
14352
14376
  type: [Boolean, Object],
14353
14377
  default: true
14354
14378
  },
14355
- subtitle: [String, Number],
14356
- text: [String, Number],
14357
- title: [String, Number],
14379
+ subtitle: {
14380
+ type: [String, Number, Boolean],
14381
+ default: undefined
14382
+ },
14383
+ text: {
14384
+ type: [String, Number, Boolean],
14385
+ default: undefined
14386
+ },
14387
+ title: {
14388
+ type: [String, Number, Boolean],
14389
+ default: undefined
14390
+ },
14358
14391
  ...makeBorderProps(),
14359
14392
  ...makeComponentProps(),
14360
14393
  ...makeDensityProps(),
@@ -14823,7 +14856,7 @@ const VCarousel = genericComponent()({
14823
14856
  onMounted(startTimeout);
14824
14857
  function startTimeout() {
14825
14858
  if (!props.cycle || !windowRef.value) return;
14826
- slideTimeout = window.setTimeout(windowRef.value.group.next, +props.interval > 0 ? +props.interval : 6000);
14859
+ slideTimeout = window.setTimeout(windowRef.value.group.next, Number(props.interval) > 0 ? Number(props.interval) : 6000);
14827
14860
  }
14828
14861
  function restartTimeout() {
14829
14862
  window.clearTimeout(slideTimeout);
@@ -15549,7 +15582,7 @@ const makeSliderProps = propsFactory({
15549
15582
  const useSteps = props => {
15550
15583
  const min = computed(() => parseFloat(props.min));
15551
15584
  const max = computed(() => parseFloat(props.max));
15552
- const step = computed(() => +props.step > 0 ? parseFloat(props.step) : 0);
15585
+ const step = computed(() => Number(props.step) > 0 ? parseFloat(props.step) : 0);
15553
15586
  const decimals = computed(() => Math.max(getDecimals(step.value), getDecimals(min.value)));
15554
15587
  function roundValue(value) {
15555
15588
  value = parseFloat(value);
@@ -18504,8 +18537,8 @@ const makeDataTablePaginateProps = propsFactory({
18504
18537
  }, 'DataTable-paginate');
18505
18538
  const VDataTablePaginationSymbol = Symbol.for('vuetify:data-table-pagination');
18506
18539
  function createPagination(props) {
18507
- const page = useProxiedModel(props, 'page', undefined, value => +(value ?? 1));
18508
- const itemsPerPage = useProxiedModel(props, 'itemsPerPage', undefined, value => +(value ?? 10));
18540
+ const page = useProxiedModel(props, 'page', undefined, value => Number(value ?? 1));
18541
+ const itemsPerPage = useProxiedModel(props, 'itemsPerPage', undefined, value => Number(value ?? 10));
18509
18542
  return {
18510
18543
  page,
18511
18544
  itemsPerPage
@@ -19294,7 +19327,7 @@ const VPagination = genericComponent()({
19294
19327
  const minButtons = props.showFirstLastPage ? 5 : 3;
19295
19328
  return Math.max(0, Math.floor(
19296
19329
  // Round to two decimal places to avoid floating point errors
19297
- +((totalWidth - itemWidth * minButtons) / itemWidth).toFixed(2)));
19330
+ Number(((totalWidth - itemWidth * minButtons) / itemWidth).toFixed(2))));
19298
19331
  }
19299
19332
  const range = computed(() => {
19300
19333
  if (length.value <= 0 || isNaN(length.value) || length.value > Number.MAX_SAFE_INTEGER) return [];
@@ -19365,7 +19398,7 @@ const VPagination = genericComponent()({
19365
19398
  ref,
19366
19399
  ellipsis: false,
19367
19400
  icon: true,
19368
- disabled: !!props.disabled || +props.length < 2,
19401
+ disabled: !!props.disabled || Number(props.length) < 2,
19369
19402
  color: isActive ? props.activeColor : props.color,
19370
19403
  'aria-current': isActive,
19371
19404
  'aria-label': t(isActive ? props.currentPageAriaLabel : props.pageAriaLabel, item),
@@ -19414,7 +19447,7 @@ const VPagination = genericComponent()({
19414
19447
  refs.value[currentIndex]?.$el.focus();
19415
19448
  }
19416
19449
  function onKeydown(e) {
19417
- if (e.key === keyValues.left && !props.disabled && page.value > +props.start) {
19450
+ if (e.key === keyValues.left && !props.disabled && page.value > Number(props.start)) {
19418
19451
  page.value = page.value - 1;
19419
19452
  nextTick(updateFocus);
19420
19453
  } else if (e.key === keyValues.right && !props.disabled && page.value < start.value + length.value - 1) {
@@ -19747,8 +19780,10 @@ function parseFixedColumns(items) {
19747
19780
  } else {
19748
19781
  if (!seenFixed) {
19749
19782
  item.lastFixed = true;
19750
- } else if (isNaN(+item.width)) {
19783
+ } else if (isNaN(Number(item.width))) {
19751
19784
  consoleError(`Multiple fixed columns should have a static width (key: ${item.key})`);
19785
+ } else {
19786
+ item.minWidth = Math.max(Number(item.width) || 0, Number(item.minWidth) || 0);
19752
19787
  }
19753
19788
  seenFixed = true;
19754
19789
  }
@@ -20308,22 +20343,37 @@ const VDataTableRow = genericComponent()({
20308
20343
  "width": !mobile.value ? column.width : undefined
20309
20344
  }, cellProps, columnCellProps), {
20310
20345
  default: () => {
20311
- if (slots[slotName] && !mobile.value) return slots[slotName]?.(slotProps);
20312
20346
  if (column.key === 'data-table-select') {
20313
- return slots['item.data-table-select']?.(slotProps) ?? createVNode(VCheckboxBtn, {
20347
+ return slots['item.data-table-select']?.({
20348
+ ...slotProps,
20349
+ props: {
20350
+ disabled: !item.selectable,
20351
+ modelValue: isSelected([item]),
20352
+ onClick: withModifiers(() => toggleSelect(item), ['stop'])
20353
+ }
20354
+ }) ?? createVNode(VCheckboxBtn, {
20314
20355
  "disabled": !item.selectable,
20315
20356
  "modelValue": isSelected([item]),
20316
20357
  "onClick": withModifiers(() => toggleSelect(item), ['stop'])
20317
20358
  }, null);
20318
20359
  }
20319
20360
  if (column.key === 'data-table-expand') {
20320
- return slots['item.data-table-expand']?.(slotProps) ?? createVNode(VBtn, {
20361
+ return slots['item.data-table-expand']?.({
20362
+ ...slotProps,
20363
+ props: {
20364
+ icon: isExpanded(item) ? '$collapse' : '$expand',
20365
+ size: 'small',
20366
+ variant: 'text',
20367
+ onClick: withModifiers(() => toggleExpand(item), ['stop'])
20368
+ }
20369
+ }) ?? createVNode(VBtn, {
20321
20370
  "icon": isExpanded(item) ? '$collapse' : '$expand',
20322
20371
  "size": "small",
20323
20372
  "variant": "text",
20324
20373
  "onClick": withModifiers(() => toggleExpand(item), ['stop'])
20325
20374
  }, null);
20326
20375
  }
20376
+ if (slots[slotName] && !mobile.value) return slots[slotName](slotProps);
20327
20377
  const displayValue = toDisplayString(slotProps.value);
20328
20378
  return !mobile.value ? displayValue : createVNode(Fragment, null, [createVNode("div", {
20329
20379
  "class": "v-data-table__td-title"
@@ -21511,30 +21561,30 @@ const VDatePickerControls = genericComponent()({
21511
21561
  "class": ['v-date-picker-controls']
21512
21562
  }, [createVNode(VBtn, {
21513
21563
  "class": "v-date-picker-controls__month-btn",
21564
+ "data-testid": "month-btn",
21514
21565
  "disabled": disableMonth.value,
21515
21566
  "text": props.text,
21516
21567
  "variant": "text",
21517
21568
  "rounded": true,
21518
21569
  "onClick": onClickMonth
21519
21570
  }, null), createVNode(VBtn, {
21520
- "key": "mode-btn",
21521
21571
  "class": "v-date-picker-controls__mode-btn",
21572
+ "data-testid": "year-btn",
21522
21573
  "disabled": disableYear.value,
21523
21574
  "density": "comfortable",
21524
21575
  "icon": props.modeIcon,
21525
21576
  "variant": "text",
21526
21577
  "onClick": onClickYear
21527
- }, null), createVNode(VSpacer, {
21528
- "key": "mode-spacer"
21529
- }, null), createVNode("div", {
21530
- "key": "month-buttons",
21578
+ }, null), createVNode(VSpacer, null, null), createVNode("div", {
21531
21579
  "class": "v-date-picker-controls__month"
21532
21580
  }, [createVNode(VBtn, {
21581
+ "data-testid": "prev-month",
21533
21582
  "disabled": disablePrev.value,
21534
21583
  "icon": props.prevIcon,
21535
21584
  "variant": "text",
21536
21585
  "onClick": onClickPrev
21537
21586
  }, null), createVNode(VBtn, {
21587
+ "data-testid": "next-month",
21538
21588
  "disabled": disableNext.value,
21539
21589
  "icon": props.nextIcon,
21540
21590
  "variant": "text",
@@ -21652,7 +21702,7 @@ const makeCalendarProps = propsFactory({
21652
21702
  }, 'calendar');
21653
21703
  function useCalendar(props) {
21654
21704
  const adapter = useDate();
21655
- const model = useProxiedModel(props, 'modelValue', [], v => wrapInArray(v));
21705
+ const model = useProxiedModel(props, 'modelValue', [], v => wrapInArray(v).map(i => adapter.date(i)));
21656
21706
  const displayValue = computed(() => {
21657
21707
  if (props.displayValue) return adapter.date(props.displayValue);
21658
21708
  if (model.value.length > 0) return adapter.date(model.value[0]);
@@ -22233,7 +22283,7 @@ const VDatePicker = genericComponent()({
22233
22283
  const {
22234
22284
  t
22235
22285
  } = useLocale();
22236
- const model = useProxiedModel(props, 'modelValue', undefined, v => wrapInArray(v), v => props.multiple ? v : v[0]);
22286
+ const model = useProxiedModel(props, 'modelValue', undefined, v => wrapInArray(v).map(i => adapter.date(i)), v => props.multiple ? v : v[0]);
22237
22287
  const viewMode = useProxiedModel(props, 'viewMode');
22238
22288
  // const inputMode = useProxiedModel(props, 'inputMode')
22239
22289
 
@@ -23075,7 +23125,7 @@ const VFileInput = genericComponent()({
23075
23125
  modelValue: _,
23076
23126
  ...inputProps
23077
23127
  } = VInput.filterProps(props);
23078
- const fieldProps = filterFieldProps(props);
23128
+ const fieldProps = VField.filterProps(props);
23079
23129
  return createVNode(VInput, mergeProps({
23080
23130
  "ref": vInputRef,
23081
23131
  "modelValue": props.multiple ? model.value : model.value[0],
@@ -24694,7 +24744,7 @@ const VParallax = genericComponent()({
24694
24744
  watch(displayHeight, onScroll);
24695
24745
  watch(() => contentRect.value?.height, onScroll);
24696
24746
  const scale = computed(() => {
24697
- return 1 - clamp(+props.scale);
24747
+ return 1 - clamp(Number(props.scale));
24698
24748
  });
24699
24749
  let frame = -1;
24700
24750
  function onScroll() {
@@ -25115,7 +25165,7 @@ const VRating = genericComponent()({
25115
25165
  themeClasses
25116
25166
  } = provideTheme(props);
25117
25167
  const rating = useProxiedModel(props, 'modelValue');
25118
- const normalizedValue = computed(() => clamp(parseFloat(rating.value), 0, +props.length));
25168
+ const normalizedValue = computed(() => clamp(parseFloat(rating.value), 0, Number(props.length)));
25119
25169
  const range = computed(() => createRange(Number(props.length), 1));
25120
25170
  const increments = computed(() => range.value.flatMap(v => props.halfIncrements ? [v - 0.5, v] : [v]));
25121
25171
  const hoverIndex = shallowRef(-1);
@@ -25726,7 +25776,7 @@ const VBarline = genericComponent()({
25726
25776
  const height = Math.abs(gridY * value);
25727
25777
  return {
25728
25778
  x: minX + index * gridX,
25729
- y: horizonY - height + +(value < 0) * height,
25779
+ y: horizonY - height + Number(value < 0) * height,
25730
25780
  height,
25731
25781
  value
25732
25782
  };
@@ -27164,10 +27214,10 @@ const VTextarea = genericComponent()({
27164
27214
  }
27165
27215
  }
27166
27216
  const sizerRef = ref();
27167
- const rows = ref(+props.rows);
27217
+ const rows = ref(Number(props.rows));
27168
27218
  const isPlainOrUnderlined = computed(() => ['plain', 'underlined'].includes(props.variant));
27169
27219
  watchEffect(() => {
27170
- if (!props.autoGrow) rows.value = +props.rows;
27220
+ if (!props.autoGrow) rows.value = Number(props.rows);
27171
27221
  });
27172
27222
  function calculateInputHeight() {
27173
27223
  if (!props.autoGrow) return;
@@ -27210,7 +27260,7 @@ const VTextarea = genericComponent()({
27210
27260
  modelValue: _,
27211
27261
  ...inputProps
27212
27262
  } = VInput.filterProps(props);
27213
- const fieldProps = filterFieldProps(props);
27263
+ const fieldProps = VField.filterProps(props);
27214
27264
  return createVNode(VInput, mergeProps({
27215
27265
  "ref": vInputRef,
27216
27266
  "modelValue": model.value,
@@ -28202,11 +28252,13 @@ const VCalendar = genericComponent()({
28202
28252
  // Types
28203
28253
 
28204
28254
  const makeVDateInputProps = propsFactory({
28255
+ displayFormat: [Function, String],
28205
28256
  hideActions: Boolean,
28206
28257
  location: {
28207
28258
  type: String,
28208
28259
  default: 'bottom start'
28209
28260
  },
28261
+ ...makeDisplayProps(),
28210
28262
  ...makeFocusProps(),
28211
28263
  ...makeVConfirmEditProps(),
28212
28264
  ...makeVTextFieldProps({
@@ -28214,24 +28266,30 @@ const makeVDateInputProps = propsFactory({
28214
28266
  prependIcon: '$calendar'
28215
28267
  }),
28216
28268
  ...omit(makeVDatePickerProps({
28217
- weeksInMonth: 'dynamic',
28218
- hideHeader: true
28269
+ hideHeader: true,
28270
+ showAdjacentMonths: true
28219
28271
  }), ['active', 'location', 'rounded'])
28220
28272
  }, 'VDateInput');
28221
28273
  const VDateInput = genericComponent()({
28222
28274
  name: 'VDateInput',
28223
28275
  props: makeVDateInputProps(),
28224
28276
  emits: {
28277
+ save: value => true,
28278
+ cancel: () => true,
28225
28279
  'update:modelValue': val => true
28226
28280
  },
28227
28281
  setup(props, _ref) {
28228
28282
  let {
28283
+ emit,
28229
28284
  slots
28230
28285
  } = _ref;
28231
28286
  const {
28232
28287
  t
28233
28288
  } = useLocale();
28234
28289
  const adapter = useDate();
28290
+ const {
28291
+ mobile
28292
+ } = useDisplay();
28235
28293
  const {
28236
28294
  isFocused,
28237
28295
  focus,
@@ -28239,7 +28297,14 @@ const VDateInput = genericComponent()({
28239
28297
  } = useFocus(props);
28240
28298
  const model = useProxiedModel(props, 'modelValue', props.multiple ? [] : null, val => Array.isArray(val) ? val.map(item => adapter.toJsDate(item)) : val ? adapter.toJsDate(val) : val, val => Array.isArray(val) ? val.map(item => adapter.date(item)) : val ? adapter.date(val) : val);
28241
28299
  const menu = shallowRef(false);
28300
+ const isEditingInput = shallowRef(false);
28242
28301
  const vDateInputRef = ref();
28302
+ function format(date) {
28303
+ if (typeof props.displayFormat === 'function') {
28304
+ return props.displayFormat(date);
28305
+ }
28306
+ return adapter.format(date, props.displayFormat ?? 'keyboardDate');
28307
+ }
28243
28308
  const display = computed(() => {
28244
28309
  const value = wrapInArray(model.value);
28245
28310
  if (!value.length) return null;
@@ -28249,11 +28314,22 @@ const VDateInput = genericComponent()({
28249
28314
  if (props.multiple === 'range') {
28250
28315
  const start = value[0];
28251
28316
  const end = value[value.length - 1];
28252
- return adapter.isValid(start) && adapter.isValid(end) ? `${adapter.format(adapter.date(start), 'keyboardDate')} - ${adapter.format(adapter.date(end), 'keyboardDate')}` : '';
28317
+ if (!adapter.isValid(start) || !adapter.isValid(end)) return '';
28318
+ return `${format(adapter.date(start))} - ${format(adapter.date(end))}`;
28253
28319
  }
28254
- return adapter.isValid(model.value) ? adapter.format(adapter.date(model.value), 'keyboardDate') : '';
28320
+ return adapter.isValid(model.value) ? format(adapter.date(model.value)) : '';
28321
+ });
28322
+ const inputmode = computed(() => {
28323
+ if (!mobile.value) return undefined;
28324
+ if (isEditingInput.value) return 'text';
28325
+ return 'none';
28255
28326
  });
28256
28327
  const isInteractive = computed(() => !props.disabled && !props.readonly);
28328
+ const isReadonly = computed(() => !(mobile.value && isEditingInput.value) && props.readonly);
28329
+ watch(menu, val => {
28330
+ if (val) return;
28331
+ isEditingInput.value = false;
28332
+ });
28257
28333
  function onKeydown(e) {
28258
28334
  if (e.key !== 'Enter') return;
28259
28335
  if (!menu.value || !isFocused.value) {
@@ -28261,20 +28337,43 @@ const VDateInput = genericComponent()({
28261
28337
  return;
28262
28338
  }
28263
28339
  const target = e.target;
28264
- model.value = target.value;
28340
+ model.value = target.value === '' ? null : target.value;
28265
28341
  }
28266
28342
  function onClick(e) {
28267
28343
  e.preventDefault();
28268
28344
  e.stopPropagation();
28269
- menu.value = true;
28345
+ if (menu.value && mobile.value) {
28346
+ isEditingInput.value = true;
28347
+ } else {
28348
+ menu.value = true;
28349
+ }
28350
+ }
28351
+ function onCancel() {
28352
+ emit('cancel');
28353
+ menu.value = false;
28354
+ isEditingInput.value = false;
28270
28355
  }
28271
- function onSave() {
28356
+ function onSave(value) {
28357
+ emit('save', value);
28272
28358
  menu.value = false;
28273
28359
  }
28274
- function onUpdateModel(value) {
28360
+ function onUpdateDisplayModel(value) {
28275
28361
  if (value != null) return;
28276
28362
  model.value = null;
28277
28363
  }
28364
+ function onUpdateMenuModel(isMenuOpen) {
28365
+ if (isMenuOpen) return;
28366
+ isEditingInput.value = false;
28367
+ }
28368
+ function onBlur() {
28369
+ blur();
28370
+
28371
+ // When in mobile mode and editing is done (due to keyboard dismissal), close the menu
28372
+ if (mobile.value && isEditingInput.value && !isFocused.value) {
28373
+ menu.value = false;
28374
+ isEditingInput.value = false;
28375
+ }
28376
+ }
28278
28377
  useRender(() => {
28279
28378
  const confirmEditProps = VConfirmEdit.filterProps(props);
28280
28379
  const datePickerProps = VDatePicker.filterProps(omit(props, ['active', 'location', 'rounded']));
@@ -28285,20 +28384,23 @@ const VDateInput = genericComponent()({
28285
28384
  "class": props.class,
28286
28385
  "style": props.style,
28287
28386
  "modelValue": display.value,
28387
+ "inputmode": inputmode.value,
28388
+ "readonly": isReadonly.value,
28288
28389
  "onKeydown": isInteractive.value ? onKeydown : undefined,
28289
28390
  "focused": menu.value || isFocused.value,
28290
28391
  "onFocus": focus,
28291
- "onBlur": blur,
28392
+ "onBlur": onBlur,
28292
28393
  "onClick:control": isInteractive.value ? onClick : undefined,
28293
28394
  "onClick:prepend": isInteractive.value ? onClick : undefined,
28294
- "onUpdate:modelValue": onUpdateModel
28395
+ "onUpdate:modelValue": onUpdateDisplayModel
28295
28396
  }), {
28296
28397
  ...slots,
28297
28398
  default: () => createVNode(Fragment, null, [createVNode(VMenu, {
28298
28399
  "modelValue": menu.value,
28299
- "onUpdate:modelValue": $event => menu.value = $event,
28400
+ "onUpdate:modelValue": [$event => menu.value = $event, onUpdateMenuModel],
28300
28401
  "activator": "parent",
28301
28402
  "min-width": "0",
28403
+ "eager": isFocused.value,
28302
28404
  "location": props.location,
28303
28405
  "closeOnContentClick": false,
28304
28406
  "openOnClick": false
@@ -28307,7 +28409,7 @@ const VDateInput = genericComponent()({
28307
28409
  "modelValue": model.value,
28308
28410
  "onUpdate:modelValue": $event => model.value = $event,
28309
28411
  "onSave": onSave,
28310
- "onCancel": () => menu.value = false
28412
+ "onCancel": onCancel
28311
28413
  }), {
28312
28414
  default: _ref2 => {
28313
28415
  let {
@@ -28317,16 +28419,21 @@ const VDateInput = genericComponent()({
28317
28419
  cancel,
28318
28420
  isPristine
28319
28421
  } = _ref2;
28422
+ function onUpdateModel(value) {
28423
+ if (!props.hideActions) {
28424
+ proxyModel.value = value;
28425
+ } else {
28426
+ model.value = value;
28427
+ if (!props.multiple) {
28428
+ menu.value = false;
28429
+ }
28430
+ }
28431
+ emit('save', value);
28432
+ vDateInputRef.value?.blur();
28433
+ }
28320
28434
  return createVNode(VDatePicker, mergeProps(datePickerProps, {
28321
28435
  "modelValue": props.hideActions ? model.value : proxyModel.value,
28322
- "onUpdate:modelValue": val => {
28323
- if (!props.hideActions) {
28324
- proxyModel.value = val;
28325
- } else {
28326
- model.value = val;
28327
- if (!props.multiple) menu.value = false;
28328
- }
28329
- },
28436
+ "onUpdate:modelValue": value => onUpdateModel(value),
28330
28437
  "onMousedown": e => e.preventDefault()
28331
28438
  }), {
28332
28439
  actions: !props.hideActions ? () => slots.actions?.({
@@ -28538,8 +28645,9 @@ const VFileUpload = genericComponent()({
28538
28645
  inputRef.value?.click();
28539
28646
  }
28540
28647
  function onClickRemove(index) {
28541
- model.value = model.value.filter((_, i) => i !== index);
28542
- if (model.value.length > 0 || !inputRef.value) return;
28648
+ const newValue = model.value.filter((_, i) => i !== index);
28649
+ model.value = newValue;
28650
+ if (newValue.length > 0 || !inputRef.value) return;
28543
28651
  inputRef.value.value = '';
28544
28652
  }
28545
28653
  useRender(() => {
@@ -28750,7 +28858,7 @@ const VNumberInput = genericComponent()({
28750
28858
  return isFocused.value ? Number(fixed).toString() // trim zeros
28751
28859
  : fixed;
28752
28860
  }
28753
- const model = useProxiedModel(props, 'modelValue', null, val => val ?? null, val => val == null ? val ?? null : clamp(+val, props.min, props.max));
28861
+ const model = useProxiedModel(props, 'modelValue', null, val => val ?? null, val => val == null ? val ?? null : clamp(Number(val), props.min, props.max));
28754
28862
  const _inputText = shallowRef(null);
28755
28863
  watchEffect(() => {
28756
28864
  if (isFocused.value && !controlsDisabled.value) ; else if (model.value == null) {
@@ -28765,8 +28873,8 @@ const VNumberInput = genericComponent()({
28765
28873
  if (val === null || val === '') {
28766
28874
  model.value = null;
28767
28875
  _inputText.value = null;
28768
- } else if (!isNaN(+val) && +val <= props.max && +val >= props.min) {
28769
- model.value = +val;
28876
+ } else if (!isNaN(Number(val)) && Number(val) <= props.max && Number(val) >= props.min) {
28877
+ model.value = Number(val);
28770
28878
  _inputText.value = val;
28771
28879
  }
28772
28880
  }
@@ -28890,8 +28998,8 @@ const VNumberInput = genericComponent()({
28890
28998
  if (controlsDisabled.value) return;
28891
28999
  if (!vTextFieldRef.value) return;
28892
29000
  const actualText = vTextFieldRef.value.value;
28893
- if (actualText && !isNaN(+actualText)) {
28894
- inputText.value = correctPrecision(clamp(+actualText, props.min, props.max));
29001
+ if (actualText && !isNaN(Number(actualText))) {
29002
+ inputText.value = correctPrecision(clamp(Number(actualText), props.min, props.max));
28895
29003
  } else {
28896
29004
  inputText.value = null;
28897
29005
  }
@@ -29765,14 +29873,7 @@ const VTimePickerClock = genericComponent()({
29765
29873
  }
29766
29874
  });
29767
29875
 
29768
- // @ts-nocheck
29769
- /* eslint-disable */
29770
- var SelectingTimes = /*#__PURE__*/function (SelectingTimes) {
29771
- SelectingTimes[SelectingTimes["Hour"] = 1] = "Hour";
29772
- SelectingTimes[SelectingTimes["Minute"] = 2] = "Minute";
29773
- SelectingTimes[SelectingTimes["Second"] = 3] = "Second";
29774
- return SelectingTimes;
29775
- }(SelectingTimes || {});
29876
+ // Types
29776
29877
 
29777
29878
  const makeVTimePickerControlsProps = propsFactory({
29778
29879
  ampm: Boolean,
@@ -29786,15 +29887,15 @@ const makeVTimePickerControlsProps = propsFactory({
29786
29887
  period: String,
29787
29888
  readonly: Boolean,
29788
29889
  useSeconds: Boolean,
29789
- selecting: Number,
29790
- value: Number
29890
+ value: Number,
29891
+ viewMode: String
29791
29892
  }, 'VTimePickerControls');
29792
29893
  const VTimePickerControls = genericComponent()({
29793
29894
  name: 'VTimePickerControls',
29794
29895
  props: makeVTimePickerControlsProps(),
29795
29896
  emits: {
29796
29897
  'update:period': data => true,
29797
- 'update:selecting': data => true
29898
+ 'update:viewMode': data => true
29798
29899
  },
29799
29900
  setup(props, _ref) {
29800
29901
  let {
@@ -29817,8 +29918,8 @@ const VTimePickerControls = genericComponent()({
29817
29918
  'v-time-picker-controls__time--with-seconds': props.useSeconds
29818
29919
  }
29819
29920
  }, [createVNode(VBtn, {
29820
- "active": props.selecting === 1,
29821
- "color": props.selecting === 1 ? props.color : undefined,
29921
+ "active": props.viewMode === 'hour',
29922
+ "color": props.viewMode === 'hour' ? props.color : undefined,
29822
29923
  "disabled": props.disabled,
29823
29924
  "variant": "tonal",
29824
29925
  "class": {
@@ -29827,24 +29928,24 @@ const VTimePickerControls = genericComponent()({
29827
29928
  'v-time-picker-controls__time--with-seconds__btn': props.useSeconds
29828
29929
  },
29829
29930
  "text": props.hour == null ? '--' : pad(`${hour}`),
29830
- "onClick": () => emit('update:selecting', SelectingTimes.Hour)
29931
+ "onClick": () => emit('update:viewMode', 'hour')
29831
29932
  }, null), createVNode("span", {
29832
29933
  "class": ['v-time-picker-controls__time__separator', {
29833
29934
  'v-time-picker-controls--with-seconds__time__separator': props.useSeconds
29834
29935
  }]
29835
29936
  }, [createTextVNode(":")]), createVNode(VBtn, {
29836
- "active": props.selecting === 2,
29837
- "color": props.selecting === 2 ? props.color : undefined,
29937
+ "active": props.viewMode === 'minute',
29938
+ "color": props.viewMode === 'minute' ? props.color : undefined,
29838
29939
  "class": {
29839
29940
  'v-time-picker-controls__time__btn': true,
29840
- 'v-time-picker-controls__time__btn__active': props.selecting === 2,
29941
+ 'v-time-picker-controls__time__btn__active': props.viewMode === 'minute',
29841
29942
  'v-time-picker-controls__time--with-ampm__btn': props.ampm,
29842
29943
  'v-time-picker-controls__time--with-seconds__btn': props.useSeconds
29843
29944
  },
29844
29945
  "disabled": props.disabled,
29845
29946
  "variant": "tonal",
29846
29947
  "text": props.minute == null ? '--' : pad(props.minute),
29847
- "onClick": () => emit('update:selecting', SelectingTimes.Minute)
29948
+ "onClick": () => emit('update:viewMode', 'minute')
29848
29949
  }, null), props.useSeconds && createVNode("span", {
29849
29950
  "class": ['v-time-picker-controls__time__separator', {
29850
29951
  'v-time-picker-controls--with-seconds__time__separator': props.useSeconds
@@ -29852,11 +29953,13 @@ const VTimePickerControls = genericComponent()({
29852
29953
  "key": "secondsDivider"
29853
29954
  }, [createTextVNode(":")]), props.useSeconds && createVNode(VBtn, {
29854
29955
  "key": "secondsVal",
29956
+ "active": props.viewMode === 'second',
29957
+ "color": props.viewMode === 'second' ? props.color : undefined,
29855
29958
  "variant": "tonal",
29856
- "onClick": () => emit('update:selecting', SelectingTimes.Second),
29959
+ "onClick": () => emit('update:viewMode', 'second'),
29857
29960
  "class": {
29858
29961
  'v-time-picker-controls__time__btn': true,
29859
- 'v-time-picker-controls__time__btn__active': props.selecting === 3,
29962
+ 'v-time-picker-controls__time__btn__active': props.viewMode === 'second',
29860
29963
  'v-time-picker-controls__time--with-seconds__btn': props.useSeconds
29861
29964
  },
29862
29965
  "disabled": props.disabled,
@@ -29901,11 +30004,6 @@ const rangeHours24 = createRange(24);
29901
30004
  const rangeHours12am = createRange(12);
29902
30005
  const rangeHours12pm = rangeHours12am.map(v => v + 12);
29903
30006
  createRange(60);
29904
- const selectingNames = {
29905
- 1: 'hour',
29906
- 2: 'minute',
29907
- 3: 'second'
29908
- };
29909
30007
  const makeVTimePickerProps = propsFactory({
29910
30008
  allowedHours: [Function, Array],
29911
30009
  allowedMinutes: [Function, Array],
@@ -29918,6 +30016,10 @@ const makeVTimePickerProps = propsFactory({
29918
30016
  },
29919
30017
  max: String,
29920
30018
  min: String,
30019
+ viewMode: {
30020
+ type: String,
30021
+ default: 'hour'
30022
+ },
29921
30023
  modelValue: null,
29922
30024
  readonly: Boolean,
29923
30025
  scrollable: Boolean,
@@ -29934,7 +30036,8 @@ const VTimePicker = genericComponent()({
29934
30036
  'update:minute': val => true,
29935
30037
  'update:period': val => true,
29936
30038
  'update:second': val => true,
29937
- 'update:modelValue': val => true
30039
+ 'update:modelValue': val => true,
30040
+ 'update:viewMode': val => true
29938
30041
  },
29939
30042
  setup(props, _ref) {
29940
30043
  let {
@@ -29951,7 +30054,7 @@ const VTimePicker = genericComponent()({
29951
30054
  const lazyInputMinute = ref(null);
29952
30055
  const lazyInputSecond = ref(null);
29953
30056
  const period = ref('am');
29954
- const selecting = ref(SelectingTimes.Hour);
30057
+ const viewMode = useProxiedModel(props, 'viewMode', 'hour');
29955
30058
  const controlsRef = ref(null);
29956
30059
  const clockRef = ref(null);
29957
30060
  const isAllowedHourCb = computed(() => {
@@ -29965,7 +30068,7 @@ const VTimePicker = genericComponent()({
29965
30068
  const minHour = props.min ? Number(props.min.split(':')[0]) : 0;
29966
30069
  const maxHour = props.max ? Number(props.max.split(':')[0]) : 23;
29967
30070
  return val => {
29968
- return val >= minHour * 1 && val <= maxHour * 1 && (!cb || cb(val));
30071
+ return val >= Number(minHour) && val <= Number(maxHour) && (!cb || cb(val));
29969
30072
  };
29970
30073
  });
29971
30074
  const isAllowedMinuteCb = computed(() => {
@@ -29981,8 +30084,8 @@ const VTimePicker = genericComponent()({
29981
30084
  }
29982
30085
  const [minHour, minMinute] = props.min ? props.min.split(':').map(Number) : [0, 0];
29983
30086
  const [maxHour, maxMinute] = props.max ? props.max.split(':').map(Number) : [23, 59];
29984
- const minTime = minHour * 60 + minMinute * 1;
29985
- const maxTime = maxHour * 60 + maxMinute * 1;
30087
+ const minTime = minHour * 60 + Number(minMinute);
30088
+ const maxTime = maxHour * 60 + Number(maxMinute);
29986
30089
  return val => {
29987
30090
  const time = 60 * inputHour.value + val;
29988
30091
  return time >= minTime && time <= maxTime && isHourAllowed && (!cb || cb(val));
@@ -30002,8 +30105,8 @@ const VTimePicker = genericComponent()({
30002
30105
  }
30003
30106
  const [minHour, minMinute, minSecond] = props.min ? props.min.split(':').map(Number) : [0, 0, 0];
30004
30107
  const [maxHour, maxMinute, maxSecond] = props.max ? props.max.split(':').map(Number) : [23, 59, 59];
30005
- const minTime = minHour * 3600 + minMinute * 60 + (minSecond || 0) * 1;
30006
- const maxTime = maxHour * 3600 + maxMinute * 60 + (maxSecond || 0) * 1;
30108
+ const minTime = minHour * 3600 + minMinute * 60 + Number(minSecond || 0);
30109
+ const maxTime = maxHour * 3600 + maxMinute * 60 + Number(maxSecond || 0);
30007
30110
  return val => {
30008
30111
  const time = 3600 * inputHour.value + 60 * inputMinute.value + val;
30009
30112
  return time >= minTime && time <= maxTime && isMinuteAllowed && (!cb || cb(val));
@@ -30069,16 +30172,16 @@ const VTimePicker = genericComponent()({
30069
30172
  return true;
30070
30173
  }
30071
30174
  function onInput(value) {
30072
- if (selecting.value === SelectingTimes.Hour) {
30175
+ if (viewMode.value === 'hour') {
30073
30176
  inputHour.value = isAmPm.value ? convert12to24(value, period.value) : value;
30074
- } else if (selecting.value === SelectingTimes.Minute) {
30177
+ } else if (viewMode.value === 'minute') {
30075
30178
  inputMinute.value = value;
30076
30179
  } else {
30077
30180
  inputSecond.value = value;
30078
30181
  }
30079
30182
  }
30080
30183
  function onChange(value) {
30081
- switch (selectingNames[selecting.value]) {
30184
+ switch (viewMode.value || 'hour') {
30082
30185
  case 'hour':
30083
30186
  emit('update:hour', value);
30084
30187
  break;
@@ -30090,10 +30193,10 @@ const VTimePicker = genericComponent()({
30090
30193
  break;
30091
30194
  }
30092
30195
  const emitChange = inputHour.value !== null && inputMinute.value !== null && (props.useSeconds ? inputSecond.value !== null : true);
30093
- if (selecting.value === SelectingTimes.Hour) {
30094
- selecting.value = SelectingTimes.Minute;
30095
- } else if (props.useSeconds && selecting.value === SelectingTimes.Minute) {
30096
- selecting.value = SelectingTimes.Second;
30196
+ if (viewMode.value === 'hour') {
30197
+ viewMode.value = 'minute';
30198
+ } else if (props.useSeconds && viewMode.value === 'minute') {
30199
+ viewMode.value = 'second';
30097
30200
  }
30098
30201
  if (inputHour.value === lazyInputHour.value && inputMinute.value === lazyInputMinute.value && (!props.useSeconds || inputSecond.value === lazyInputSecond.value)) return;
30099
30202
  const time = genValue();
@@ -30122,20 +30225,20 @@ const VTimePicker = genericComponent()({
30122
30225
  "minute": inputMinute.value,
30123
30226
  "period": period.value,
30124
30227
  "second": inputSecond.value,
30125
- "selecting": selecting.value,
30228
+ "viewMode": viewMode.value,
30126
30229
  "onUpdate:period": val => setPeriod(val),
30127
- "onUpdate:selecting": value => selecting.value = value,
30230
+ "onUpdate:viewMode": value => viewMode.value = value,
30128
30231
  "ref": controlsRef
30129
30232
  }), null),
30130
30233
  default: () => createVNode(VTimePickerClock, mergeProps(timePickerClockProps, {
30131
- "allowedValues": selecting.value === SelectingTimes.Hour ? isAllowedHourCb.value : selecting.value === SelectingTimes.Minute ? isAllowedMinuteCb.value : isAllowedSecondCb.value,
30132
- "double": selecting.value === SelectingTimes.Hour && !isAmPm.value,
30133
- "format": selecting.value === SelectingTimes.Hour ? isAmPm.value ? convert24to12 : val => val : val => pad(val, 2),
30134
- "max": selecting.value === SelectingTimes.Hour ? isAmPm.value && period.value === 'am' ? 11 : 23 : 59,
30135
- "min": selecting.value === SelectingTimes.Hour && isAmPm.value && period.value === 'pm' ? 12 : 0,
30234
+ "allowedValues": viewMode.value === 'hour' ? isAllowedHourCb.value : viewMode.value === 'minute' ? isAllowedMinuteCb.value : isAllowedSecondCb.value,
30235
+ "double": viewMode.value === 'hour' && !isAmPm.value,
30236
+ "format": viewMode.value === 'hour' ? isAmPm.value ? convert24to12 : val => val : val => pad(val, 2),
30237
+ "max": viewMode.value === 'hour' ? isAmPm.value && period.value === 'am' ? 11 : 23 : 59,
30238
+ "min": viewMode.value === 'hour' && isAmPm.value && period.value === 'pm' ? 12 : 0,
30136
30239
  "size": 20,
30137
- "step": selecting.value === SelectingTimes.Hour ? 1 : 5,
30138
- "modelValue": selecting.value === SelectingTimes.Hour ? inputHour.value : selecting.value === SelectingTimes.Minute ? inputMinute.value : inputSecond.value,
30240
+ "step": viewMode.value === 'hour' ? 1 : 5,
30241
+ "modelValue": viewMode.value === 'hour' ? inputHour.value : viewMode.value === 'minute' ? inputMinute.value : inputSecond.value,
30139
30242
  "onChange": onChange,
30140
30243
  "onInput": onInput,
30141
30244
  "ref": clockRef
@@ -31048,7 +31151,7 @@ function createVuetify$1() {
31048
31151
  goTo
31049
31152
  };
31050
31153
  }
31051
- const version$1 = "3.7.15";
31154
+ const version$1 = "3.7.19";
31052
31155
  createVuetify$1.version = version$1;
31053
31156
 
31054
31157
  // Vue's inject() can only be used in setup
@@ -31301,7 +31404,7 @@ var index = /*#__PURE__*/Object.freeze({
31301
31404
 
31302
31405
  /* eslint-disable local-rules/sort-imports */
31303
31406
 
31304
- const version = "3.7.15";
31407
+ const version = "3.7.19";
31305
31408
 
31306
31409
  /* eslint-disable local-rules/sort-imports */
31307
31410