vuetify 3.5.0 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/json/attributes.json +15 -27
- package/dist/json/importMap-labs.json +8 -8
- package/dist/json/importMap.json +156 -156
- package/dist/json/tags.json +0 -3
- package/dist/json/web-types.json +47 -65
- package/dist/vuetify-labs.css +1945 -1958
- package/dist/vuetify-labs.d.ts +59 -80
- package/dist/vuetify-labs.esm.js +28 -26
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +28 -26
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +1257 -1270
- package/dist/vuetify.d.ts +99 -120
- package/dist/vuetify.esm.js +28 -26
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +28 -26
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +22 -23
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VChipGroup/VChipGroup.mjs +1 -2
- package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerEdit.mjs +1 -1
- package/lib/components/VColorPicker/VColorPickerEdit.mjs.map +1 -1
- package/lib/components/VColorPicker/util/index.mjs +1 -1
- package/lib/components/VColorPicker/util/index.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.mjs +1 -1
- package/lib/components/VDatePicker/VDatePicker.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonth.mjs +2 -3
- package/lib/components/VDatePicker/VDatePickerMonth.mjs.map +1 -1
- package/lib/components/VDatePicker/index.d.mts +45 -63
- package/lib/components/VLabel/VLabel.mjs +5 -4
- package/lib/components/VLabel/VLabel.mjs.map +1 -1
- package/lib/components/VLabel/index.d.mts +6 -9
- package/lib/components/VMenu/VMenu.mjs +1 -0
- package/lib/components/VMenu/VMenu.mjs.map +1 -1
- package/lib/components/VOverlay/scrollStrategies.mjs +3 -0
- package/lib/components/VOverlay/scrollStrategies.mjs.map +1 -1
- package/lib/components/VSelectionControl/VSelectionControl.mjs +4 -2
- package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
- package/lib/components/VTable/VTable.css +15 -28
- package/lib/components/VTable/VTable.sass +6 -13
- package/lib/components/VTable/_variables.scss +1 -1
- package/lib/components/VWindow/VWindow.css +1 -1
- package/lib/components/VWindow/VWindow.sass +1 -1
- package/lib/components/index.d.mts +51 -72
- package/lib/composables/calendar.mjs +1 -1
- package/lib/composables/calendar.mjs.map +1 -1
- package/lib/composables/date/adapters/vuetify.mjs +2 -8
- package/lib/composables/date/adapters/vuetify.mjs.map +1 -1
- package/lib/composables/group.mjs +4 -1
- package/lib/composables/group.mjs.map +1 -1
- package/lib/composables/validation.mjs +1 -1
- package/lib/composables/validation.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +48 -48
- package/lib/labs/VCalendar/index.d.mts +8 -8
- package/lib/labs/components.d.mts +8 -8
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VSelectionControl.mjs","names":["VIcon","VLabel","makeSelectionControlGroupProps","VSelectionControlGroupSymbol","useBackgroundColor","useTextColor","makeComponentProps","useDensity","useProxiedModel","Ripple","computed","inject","nextTick","ref","shallowRef","filterInputAttrs","genericComponent","getUid","matchesSelector","propsFactory","useRender","wrapInArray","makeVSelectionControlProps","label","String","baseColor","trueValue","falseValue","value","useSelectionControl","props","group","undefined","densityClasses","modelValue","isMultiple","multiple","Array","isArray","model","get","val","some","v","valueComparator","set","readonly","currentValue","newVal","filter","item","textColorClasses","textColorStyles","error","disabled","color","backgroundColorClasses","backgroundColorStyles","icon","trueIcon","falseIcon","VSelectionControl","name","directives","inheritAttrs","emits","setup","_ref","attrs","slots","uid","isFocused","isFocusVisible","input","id","isInteractive","onForceUpdate","checked","onFocus","e","target","onBlur","onInput","forceUpdate","for","rootAttrs","inputAttrs","inputNode","_createVNode","_mergeProps","type","inline","class","style","default","_withDirectives","_Fragment","_resolveDirective","ripple","stopPropagation"],"sources":["../../../src/components/VSelectionControl/VSelectionControl.tsx"],"sourcesContent":["// Styles\nimport './VSelectionControl.sass'\n\n// Components\nimport { VIcon } from '@/components/VIcon'\nimport { VLabel } from '@/components/VLabel'\nimport { makeSelectionControlGroupProps, VSelectionControlGroupSymbol } from '@/components/VSelectionControlGroup/VSelectionControlGroup'\n\n// Composables\nimport { useBackgroundColor, useTextColor } from '@/composables/color'\nimport { makeComponentProps } from '@/composables/component'\nimport { useDensity } from '@/composables/density'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Directives\nimport { Ripple } from '@/directives/ripple'\n\n// Utilities\nimport { computed, inject, nextTick, ref, shallowRef } from 'vue'\nimport {\n filterInputAttrs,\n genericComponent,\n getUid,\n matchesSelector,\n propsFactory,\n useRender,\n wrapInArray,\n} from '@/util'\n\n// Types\nimport type { CSSProperties, ExtractPropTypes, Ref, VNode, WritableComputedRef } from 'vue'\nimport type { IconValue } from '@/composables/icons'\nimport type { EventProp, GenericProps } from '@/util'\n\nexport type SelectionControlSlot = {\n model: WritableComputedRef<boolean>\n textColorClasses: Ref<string[]>\n textColorStyles: Ref<CSSProperties>\n backgroundColorClasses: Ref<string[]>\n backgroundColorStyles: Ref<CSSProperties>\n inputNode: VNode\n icon: IconValue | undefined\n props: {\n onBlur: (e: Event) => void\n onFocus: (e: FocusEvent) => void\n id: string\n }\n}\n\nexport type VSelectionControlSlots = {\n default: {\n backgroundColorClasses: Ref<string[]>\n backgroundColorStyles: Ref<CSSProperties>\n }\n label: { label: string | undefined, props: Record<string, unknown> }\n input: SelectionControlSlot\n}\n\nexport const makeVSelectionControlProps = propsFactory({\n label: String,\n baseColor: String,\n trueValue: null,\n falseValue: null,\n value: null,\n\n ...makeComponentProps(),\n ...makeSelectionControlGroupProps(),\n}, 'VSelectionControl')\n\nexport function useSelectionControl (\n props: ExtractPropTypes<ReturnType<typeof makeVSelectionControlProps>> & {\n 'onUpdate:modelValue': EventProp | undefined\n }\n) {\n const group = inject(VSelectionControlGroupSymbol, undefined)\n const { densityClasses } = useDensity(props)\n const modelValue = useProxiedModel(props, 'modelValue')\n const trueValue = computed(() => (\n props.trueValue !== undefined ? props.trueValue\n : props.value !== undefined ? props.value\n : true\n ))\n const falseValue = computed(() => props.falseValue !== undefined ? props.falseValue : false)\n const isMultiple = computed(() => (\n !!props.multiple ||\n (props.multiple == null && Array.isArray(modelValue.value))\n ))\n const model = computed({\n get () {\n const val = group ? group.modelValue.value : modelValue.value\n\n return isMultiple.value\n ? wrapInArray(val).some((v: any) => props.valueComparator(v, trueValue.value))\n : props.valueComparator(val, trueValue.value)\n },\n set (val: boolean) {\n if (props.readonly) return\n\n const currentValue = val ? trueValue.value : falseValue.value\n\n let newVal = currentValue\n\n if (isMultiple.value) {\n newVal = val\n ? [...wrapInArray(modelValue.value), currentValue]\n : wrapInArray(modelValue.value).filter((item: any) => !props.valueComparator(item, trueValue.value))\n }\n\n if (group) {\n group.modelValue.value = newVal\n } else {\n modelValue.value = newVal\n }\n },\n })\n const { textColorClasses, textColorStyles } = useTextColor(computed(() => {\n if (props.error || props.disabled) return undefined\n\n return model.value ? props.color : props.baseColor\n }))\n const { backgroundColorClasses, backgroundColorStyles } = useBackgroundColor(computed(() => {\n return (\n model.value &&\n !props.error &&\n !props.disabled\n ) ? props.color : undefined\n }))\n const icon = computed(() => model.value ? props.trueIcon : props.falseIcon)\n\n return {\n group,\n densityClasses,\n trueValue,\n falseValue,\n model,\n textColorClasses,\n textColorStyles,\n backgroundColorClasses,\n backgroundColorStyles,\n icon,\n }\n}\n\nexport const VSelectionControl = genericComponent<new <T>(\n props: {\n modelValue?: T\n 'onUpdate:modelValue'?: (value: T) => void\n },\n slots: VSelectionControlSlots,\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VSelectionControl',\n\n directives: { Ripple },\n\n inheritAttrs: false,\n\n props: makeVSelectionControlProps(),\n\n emits: {\n 'update:modelValue': (value: any) => true,\n },\n\n setup (props, { attrs, slots }) {\n const {\n group,\n densityClasses,\n icon,\n model,\n textColorClasses,\n textColorStyles,\n backgroundColorClasses,\n backgroundColorStyles,\n trueValue,\n } = useSelectionControl(props)\n const uid = getUid()\n const isFocused = shallowRef(false)\n const isFocusVisible = shallowRef(false)\n const input = ref<HTMLInputElement>()\n const id = computed(() => props.id || `input-${uid}`)\n const isInteractive = computed(() => !props.disabled && !props.readonly)\n\n group?.onForceUpdate(() => {\n if (input.value) {\n input.value.checked = model.value\n }\n })\n\n function onFocus (e: FocusEvent) {\n if (!isInteractive.value) return\n\n isFocused.value = true\n if (matchesSelector(e.target as HTMLElement, ':focus-visible') !== false) {\n isFocusVisible.value = true\n }\n }\n\n function onBlur () {\n isFocused.value = false\n isFocusVisible.value = false\n }\n\n function onInput (e: Event) {\n if (!isInteractive.value) return\n\n if (props.readonly && group) {\n nextTick(() => group.forceUpdate())\n }\n model.value = (e.target as HTMLInputElement).checked\n }\n\n useRender(() => {\n const label = slots.label\n ? slots.label({\n label: props.label,\n props: { for: id.value },\n })\n : props.label\n const [rootAttrs, inputAttrs] = filterInputAttrs(attrs)\n\n const inputNode = (\n <input\n ref={ input }\n checked={ model.value }\n disabled={ !!props.disabled }\n id={ id.value }\n onBlur={ onBlur }\n onFocus={ onFocus }\n onInput={ onInput }\n aria-disabled={ !!props.disabled }\n type={ props.type }\n value={ trueValue.value }\n name={ props.name }\n aria-checked={ props.type === 'checkbox' ? model.value : undefined }\n { ...inputAttrs }\n />\n )\n\n return (\n <div\n class={[\n 'v-selection-control',\n {\n 'v-selection-control--dirty': model.value,\n 'v-selection-control--disabled': props.disabled,\n 'v-selection-control--error': props.error,\n 'v-selection-control--focused': isFocused.value,\n 'v-selection-control--focus-visible': isFocusVisible.value,\n 'v-selection-control--inline': props.inline,\n },\n densityClasses.value,\n props.class,\n ]}\n { ...rootAttrs }\n style={ props.style }\n >\n <div\n class={[\n 'v-selection-control__wrapper',\n textColorClasses.value,\n ]}\n style={ textColorStyles.value }\n >\n { slots.default?.({\n backgroundColorClasses,\n backgroundColorStyles,\n })}\n\n <div\n class={[\n 'v-selection-control__input',\n ]}\n v-ripple={ props.ripple && [\n !props.disabled && !props.readonly,\n null,\n ['center', 'circle'],\n ]}\n >\n { slots.input?.({\n model,\n textColorClasses,\n textColorStyles,\n backgroundColorClasses,\n backgroundColorStyles,\n inputNode,\n icon: icon.value,\n props: {\n onFocus,\n onBlur,\n id: id.value,\n },\n } satisfies SelectionControlSlot) ?? (\n <>\n { icon.value && <VIcon key=\"icon\" icon={ icon.value } /> }\n\n { inputNode }\n </>\n )}\n </div>\n </div>\n\n { label && (\n <VLabel for={ id.value } clickable onClick={ (e: Event) => e.stopPropagation() }>\n { label }\n </VLabel>\n )}\n </div>\n )\n })\n\n return {\n isFocused,\n input,\n }\n },\n})\n\nexport type VSelectionControl = InstanceType<typeof VSelectionControl>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,KAAK;AAAA,SACLC,MAAM;AAAA,SACNC,8BAA8B,EAAEC,4BAA4B,gEAErE;AAAA,SACSC,kBAAkB,EAAEC,YAAY;AAAA,SAChCC,kBAAkB;AAAA,SAClBC,UAAU;AAAA,SACVC,eAAe,8CAExB;AAAA,SACSC,MAAM,6CAEf;AACA,SAASC,QAAQ,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,GAAG,EAAEC,UAAU,QAAQ,KAAK;AAAA,SAE/DC,gBAAgB,EAChBC,gBAAgB,EAChBC,MAAM,EACNC,eAAe,EACfC,YAAY,EACZC,SAAS,EACTC,WAAW,gCAGb;AA6BA,OAAO,MAAMC,0BAA0B,GAAGH,YAAY,CAAC;EACrDI,KAAK,EAAEC,MAAM;EACbC,SAAS,EAAED,MAAM;EACjBE,SAAS,EAAE,IAAI;EACfC,UAAU,EAAE,IAAI;EAChBC,KAAK,EAAE,IAAI;EAEX,GAAGtB,kBAAkB,CAAC,CAA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BE,KAAK,EAAE;UACLgD,OAAO;UACPG,MAAM;UACNP,EAAE,EAAEA,EAAE,CAAC9C;QACT;MACF,CAAgC,CAAC,IAAA4D,YAAA,CAAAQ,SAAA,SAE3BtC,IAAI,CAAC9B,KAAK,IAAA4D,YAAA,CAAAxF,KAAA;QAAA;QAAA,QAA6B0D,IAAI,CAAC9B;MAAK,QAAK,EAEtD2D,SAAS,EAEd,MAAAU,iBAAA,YAzBUnE,KAAK,CAACoE,MAAM,IAAI,CACzB,CAACpE,KAAK,CAACwB,QAAQ,IAAI,CAACxB,KAAK,CAACgB,QAAQ,EAClC,IAAI,EACJ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CACrB,OAyBHvB,KAAK,IAAAiE,YAAA,CAAAvF,MAAA;QAAA,OACSyE,EAAE,CAAC9C,KAAK;QAAA;QAAA,WAAwBmD,CAAQ,IAAKA,CAAC,CAACoB,eAAe,CAAC;MAAC;QAAAL,OAAA,EAAAA,CAAA,MAC1EvE,KAAK;MAAA,EAEV;IAGP,CAAC,CAAC;IAEF,OAAO;MACLgD,SAAS;MACTE;IACF,CAAC;EACH;AACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"VSelectionControl.mjs","names":["VIcon","VLabel","makeSelectionControlGroupProps","VSelectionControlGroupSymbol","useBackgroundColor","useTextColor","makeComponentProps","useDensity","useProxiedModel","Ripple","computed","inject","nextTick","ref","shallowRef","filterInputAttrs","genericComponent","getUid","matchesSelector","propsFactory","useRender","wrapInArray","makeVSelectionControlProps","label","String","baseColor","trueValue","falseValue","value","useSelectionControl","props","group","undefined","densityClasses","modelValue","isMultiple","multiple","Array","isArray","model","get","val","some","v","valueComparator","set","readonly","currentValue","newVal","filter","item","textColorClasses","textColorStyles","error","disabled","color","backgroundColorClasses","backgroundColorStyles","icon","trueIcon","falseIcon","VSelectionControl","name","directives","inheritAttrs","emits","setup","_ref","attrs","slots","uid","isFocused","isFocusVisible","input","id","isInteractive","onForceUpdate","checked","onFocus","e","target","onBlur","onClickLabel","stopPropagation","onInput","forceUpdate","for","rootAttrs","inputAttrs","inputNode","_createVNode","_mergeProps","type","inline","class","style","default","_withDirectives","_Fragment","_resolveDirective","ripple"],"sources":["../../../src/components/VSelectionControl/VSelectionControl.tsx"],"sourcesContent":["// Styles\nimport './VSelectionControl.sass'\n\n// Components\nimport { VIcon } from '@/components/VIcon'\nimport { VLabel } from '@/components/VLabel'\nimport { makeSelectionControlGroupProps, VSelectionControlGroupSymbol } from '@/components/VSelectionControlGroup/VSelectionControlGroup'\n\n// Composables\nimport { useBackgroundColor, useTextColor } from '@/composables/color'\nimport { makeComponentProps } from '@/composables/component'\nimport { useDensity } from '@/composables/density'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Directives\nimport { Ripple } from '@/directives/ripple'\n\n// Utilities\nimport { computed, inject, nextTick, ref, shallowRef } from 'vue'\nimport {\n filterInputAttrs,\n genericComponent,\n getUid,\n matchesSelector,\n propsFactory,\n useRender,\n wrapInArray,\n} from '@/util'\n\n// Types\nimport type { CSSProperties, ExtractPropTypes, Ref, VNode, WritableComputedRef } from 'vue'\nimport type { IconValue } from '@/composables/icons'\nimport type { EventProp, GenericProps } from '@/util'\n\nexport type SelectionControlSlot = {\n model: WritableComputedRef<boolean>\n textColorClasses: Ref<string[]>\n textColorStyles: Ref<CSSProperties>\n backgroundColorClasses: Ref<string[]>\n backgroundColorStyles: Ref<CSSProperties>\n inputNode: VNode\n icon: IconValue | undefined\n props: {\n onBlur: (e: Event) => void\n onFocus: (e: FocusEvent) => void\n id: string\n }\n}\n\nexport type VSelectionControlSlots = {\n default: {\n backgroundColorClasses: Ref<string[]>\n backgroundColorStyles: Ref<CSSProperties>\n }\n label: { label: string | undefined, props: Record<string, unknown> }\n input: SelectionControlSlot\n}\n\nexport const makeVSelectionControlProps = propsFactory({\n label: String,\n baseColor: String,\n trueValue: null,\n falseValue: null,\n value: null,\n\n ...makeComponentProps(),\n ...makeSelectionControlGroupProps(),\n}, 'VSelectionControl')\n\nexport function useSelectionControl (\n props: ExtractPropTypes<ReturnType<typeof makeVSelectionControlProps>> & {\n 'onUpdate:modelValue': EventProp | undefined\n }\n) {\n const group = inject(VSelectionControlGroupSymbol, undefined)\n const { densityClasses } = useDensity(props)\n const modelValue = useProxiedModel(props, 'modelValue')\n const trueValue = computed(() => (\n props.trueValue !== undefined ? props.trueValue\n : props.value !== undefined ? props.value\n : true\n ))\n const falseValue = computed(() => props.falseValue !== undefined ? props.falseValue : false)\n const isMultiple = computed(() => (\n !!props.multiple ||\n (props.multiple == null && Array.isArray(modelValue.value))\n ))\n const model = computed({\n get () {\n const val = group ? group.modelValue.value : modelValue.value\n\n return isMultiple.value\n ? wrapInArray(val).some((v: any) => props.valueComparator(v, trueValue.value))\n : props.valueComparator(val, trueValue.value)\n },\n set (val: boolean) {\n if (props.readonly) return\n\n const currentValue = val ? trueValue.value : falseValue.value\n\n let newVal = currentValue\n\n if (isMultiple.value) {\n newVal = val\n ? [...wrapInArray(modelValue.value), currentValue]\n : wrapInArray(modelValue.value).filter((item: any) => !props.valueComparator(item, trueValue.value))\n }\n\n if (group) {\n group.modelValue.value = newVal\n } else {\n modelValue.value = newVal\n }\n },\n })\n const { textColorClasses, textColorStyles } = useTextColor(computed(() => {\n if (props.error || props.disabled) return undefined\n\n return model.value ? props.color : props.baseColor\n }))\n const { backgroundColorClasses, backgroundColorStyles } = useBackgroundColor(computed(() => {\n return (\n model.value &&\n !props.error &&\n !props.disabled\n ) ? props.color : undefined\n }))\n const icon = computed(() => model.value ? props.trueIcon : props.falseIcon)\n\n return {\n group,\n densityClasses,\n trueValue,\n falseValue,\n model,\n textColorClasses,\n textColorStyles,\n backgroundColorClasses,\n backgroundColorStyles,\n icon,\n }\n}\n\nexport const VSelectionControl = genericComponent<new <T>(\n props: {\n modelValue?: T\n 'onUpdate:modelValue'?: (value: T) => void\n },\n slots: VSelectionControlSlots,\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VSelectionControl',\n\n directives: { Ripple },\n\n inheritAttrs: false,\n\n props: makeVSelectionControlProps(),\n\n emits: {\n 'update:modelValue': (value: any) => true,\n },\n\n setup (props, { attrs, slots }) {\n const {\n group,\n densityClasses,\n icon,\n model,\n textColorClasses,\n textColorStyles,\n backgroundColorClasses,\n backgroundColorStyles,\n trueValue,\n } = useSelectionControl(props)\n const uid = getUid()\n const isFocused = shallowRef(false)\n const isFocusVisible = shallowRef(false)\n const input = ref<HTMLInputElement>()\n const id = computed(() => props.id || `input-${uid}`)\n const isInteractive = computed(() => !props.disabled && !props.readonly)\n\n group?.onForceUpdate(() => {\n if (input.value) {\n input.value.checked = model.value\n }\n })\n\n function onFocus (e: FocusEvent) {\n if (!isInteractive.value) return\n\n isFocused.value = true\n if (matchesSelector(e.target as HTMLElement, ':focus-visible') !== false) {\n isFocusVisible.value = true\n }\n }\n\n function onBlur () {\n isFocused.value = false\n isFocusVisible.value = false\n }\n\n function onClickLabel (e: Event) {\n e.stopPropagation()\n }\n\n function onInput (e: Event) {\n if (!isInteractive.value) return\n\n if (props.readonly && group) {\n nextTick(() => group.forceUpdate())\n }\n model.value = (e.target as HTMLInputElement).checked\n }\n\n useRender(() => {\n const label = slots.label\n ? slots.label({\n label: props.label,\n props: { for: id.value },\n })\n : props.label\n const [rootAttrs, inputAttrs] = filterInputAttrs(attrs)\n\n const inputNode = (\n <input\n ref={ input }\n checked={ model.value }\n disabled={ !!props.disabled }\n id={ id.value }\n onBlur={ onBlur }\n onFocus={ onFocus }\n onInput={ onInput }\n aria-disabled={ !!props.disabled }\n type={ props.type }\n value={ trueValue.value }\n name={ props.name }\n aria-checked={ props.type === 'checkbox' ? model.value : undefined }\n { ...inputAttrs }\n />\n )\n\n return (\n <div\n class={[\n 'v-selection-control',\n {\n 'v-selection-control--dirty': model.value,\n 'v-selection-control--disabled': props.disabled,\n 'v-selection-control--error': props.error,\n 'v-selection-control--focused': isFocused.value,\n 'v-selection-control--focus-visible': isFocusVisible.value,\n 'v-selection-control--inline': props.inline,\n },\n densityClasses.value,\n props.class,\n ]}\n { ...rootAttrs }\n style={ props.style }\n >\n <div\n class={[\n 'v-selection-control__wrapper',\n textColorClasses.value,\n ]}\n style={ textColorStyles.value }\n >\n { slots.default?.({\n backgroundColorClasses,\n backgroundColorStyles,\n })}\n\n <div\n class={[\n 'v-selection-control__input',\n ]}\n v-ripple={ props.ripple && [\n !props.disabled && !props.readonly,\n null,\n ['center', 'circle'],\n ]}\n >\n { slots.input?.({\n model,\n textColorClasses,\n textColorStyles,\n backgroundColorClasses,\n backgroundColorStyles,\n inputNode,\n icon: icon.value,\n props: {\n onFocus,\n onBlur,\n id: id.value,\n },\n } satisfies SelectionControlSlot) ?? (\n <>\n { icon.value && <VIcon key=\"icon\" icon={ icon.value } /> }\n\n { inputNode }\n </>\n )}\n </div>\n </div>\n\n { label && (\n <VLabel for={ id.value } onClick={ onClickLabel }>\n { label }\n </VLabel>\n )}\n </div>\n )\n })\n\n return {\n isFocused,\n input,\n }\n },\n})\n\nexport type VSelectionControl = InstanceType<typeof VSelectionControl>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,KAAK;AAAA,SACLC,MAAM;AAAA,SACNC,8BAA8B,EAAEC,4BAA4B,gEAErE;AAAA,SACSC,kBAAkB,EAAEC,YAAY;AAAA,SAChCC,kBAAkB;AAAA,SAClBC,UAAU;AAAA,SACVC,eAAe,8CAExB;AAAA,SACSC,MAAM,6CAEf;AACA,SAASC,QAAQ,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,GAAG,EAAEC,UAAU,QAAQ,KAAK;AAAA,SAE/DC,gBAAgB,EAChBC,gBAAgB,EAChBC,MAAM,EACNC,eAAe,EACfC,YAAY,EACZC,SAAS,EACTC,WAAW,gCAGb;AA6BA,OAAO,MAAMC,0BAA0B,GAAGH,YAAY,CAAC;EACrDI,KAAK,EAAEC,MAAM;EACbC,SAAS,EAAED,MAAM;EACjBE,SAAS,EAAE,IAAI;EACfC,UAAU,EAAE,IAAI;EAChBC,K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AAG;QACdlC,KAAK;QACLY,gBAAgB;QAChBC,eAAe;QACfI,sBAAsB;QACtBC,qBAAqB;QACrBgC,SAAS;QACT/B,IAAI,EAAEA,IAAI,CAAC9B,KAAK;QAChBE,KAAK,EAAE;UACLgD,OAAO;UACPG,MAAM;UACNP,EAAE,EAAEA,EAAE,CAAC9C;QACT;MACF,CAAgC,CAAC,IAAA8D,YAAA,CAAAQ,SAAA,SAE3BxC,IAAI,CAAC9B,KAAK,IAAA8D,YAAA,CAAA1F,KAAA;QAAA;QAAA,QAA6B0D,IAAI,CAAC9B;MAAK,QAAK,EAEtD6D,SAAS,EAEd,MAAAU,iBAAA,YAzBUrE,KAAK,CAACsE,MAAM,IAAI,CACzB,CAACtE,KAAK,CAACwB,QAAQ,IAAI,CAACxB,KAAK,CAACgB,QAAQ,EAClC,IAAI,EACJ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CACrB,OAyBHvB,KAAK,IAAAmE,YAAA,CAAAzF,MAAA;QAAA,OACSyE,EAAE,CAAC9C,KAAK;QAAA,WAAasD;MAAY;QAAAc,OAAA,EAAAA,CAAA,MAC3CzE,KAAK;MAAA,EAEV;IAGP,CAAC,CAAC;IAEF,OAAO;MACLgD,SAAS;MACTE;IACF,CAAC;EACH;AACF,CAAC,CAAC"}
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.v-table {
|
|
48
|
-
--v-table-header-height: 56px;
|
|
49
48
|
border-radius: inherit;
|
|
50
49
|
line-height: 1.5;
|
|
51
50
|
max-width: 100%;
|
|
@@ -67,44 +66,32 @@
|
|
|
67
66
|
transition-property: box-shadow, opacity, background, height;
|
|
68
67
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
69
68
|
}
|
|
69
|
+
.v-table > .v-table__wrapper > table > tbody > tr > td,
|
|
70
|
+
.v-table > .v-table__wrapper > table > thead > tr > td,
|
|
71
|
+
.v-table > .v-table__wrapper > table > tfoot > tr > td {
|
|
72
|
+
height: var(--v-table-row-height);
|
|
73
|
+
}
|
|
70
74
|
.v-table > .v-table__wrapper > table > tbody > tr > th,
|
|
71
75
|
.v-table > .v-table__wrapper > table > thead > tr > th,
|
|
72
76
|
.v-table > .v-table__wrapper > table > tfoot > tr > th {
|
|
77
|
+
height: var(--v-table-header-height);
|
|
73
78
|
font-weight: 500;
|
|
74
79
|
user-select: none;
|
|
75
80
|
text-align: start;
|
|
76
81
|
}
|
|
77
|
-
.v-table--density-default
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
height: calc(var(--v-table-header-height) + 0px);
|
|
81
|
-
}
|
|
82
|
-
.v-table--density-default > .v-table__wrapper > table > tbody > tr > td,
|
|
83
|
-
.v-table--density-default > .v-table__wrapper > table > thead > tr > td,
|
|
84
|
-
.v-table--density-default > .v-table__wrapper > table > tfoot > tr > td {
|
|
85
|
-
height: calc(var(--v-table-row-height, 52px) + 0px);
|
|
82
|
+
.v-table--density-default {
|
|
83
|
+
--v-table-header-height: 56px;
|
|
84
|
+
--v-table-row-height: 52px;
|
|
86
85
|
}
|
|
87
86
|
|
|
88
|
-
.v-table--density-comfortable
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
height: calc(var(--v-table-header-height) - 8px);
|
|
92
|
-
}
|
|
93
|
-
.v-table--density-comfortable > .v-table__wrapper > table > tbody > tr > td,
|
|
94
|
-
.v-table--density-comfortable > .v-table__wrapper > table > thead > tr > td,
|
|
95
|
-
.v-table--density-comfortable > .v-table__wrapper > table > tfoot > tr > td {
|
|
96
|
-
height: calc(var(--v-table-row-height, 52px) - 8px);
|
|
87
|
+
.v-table--density-comfortable {
|
|
88
|
+
--v-table-header-height: 48px;
|
|
89
|
+
--v-table-row-height: 44px;
|
|
97
90
|
}
|
|
98
91
|
|
|
99
|
-
.v-table--density-compact
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
height: calc(var(--v-table-header-height) - 16px);
|
|
103
|
-
}
|
|
104
|
-
.v-table--density-compact > .v-table__wrapper > table > tbody > tr > td,
|
|
105
|
-
.v-table--density-compact > .v-table__wrapper > table > thead > tr > td,
|
|
106
|
-
.v-table--density-compact > .v-table__wrapper > table > tfoot > tr > td {
|
|
107
|
-
height: calc(var(--v-table-row-height, 52px) - 16px);
|
|
92
|
+
.v-table--density-compact {
|
|
93
|
+
--v-table-header-height: 40px;
|
|
94
|
+
--v-table-row-height: 36px;
|
|
108
95
|
}
|
|
109
96
|
|
|
110
97
|
.v-table__wrapper {
|
|
@@ -69,8 +69,6 @@
|
|
|
69
69
|
|
|
70
70
|
// Block
|
|
71
71
|
.v-table
|
|
72
|
-
--v-table-header-height: #{$table-header-height}
|
|
73
|
-
|
|
74
72
|
border-radius: inherit
|
|
75
73
|
// Do not inherit line-height
|
|
76
74
|
line-height: $table-line-height
|
|
@@ -94,24 +92,19 @@
|
|
|
94
92
|
transition-property: $table-transition-property
|
|
95
93
|
transition-timing-function: $table-transition-timing-function
|
|
96
94
|
|
|
95
|
+
> td
|
|
96
|
+
height: var(--v-table-row-height)
|
|
97
|
+
|
|
97
98
|
> th
|
|
99
|
+
height: var(--v-table-header-height)
|
|
98
100
|
font-weight: $table-header-font-weight
|
|
99
101
|
user-select: none
|
|
100
102
|
text-align: start
|
|
101
103
|
|
|
102
104
|
@at-root
|
|
103
105
|
@include tools.density('v-table', $table-density) using ($modifier)
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
> tbody,
|
|
107
|
-
> thead,
|
|
108
|
-
> tfoot
|
|
109
|
-
> tr
|
|
110
|
-
> th
|
|
111
|
-
height: calc(var(--v-table-header-height) + $modifier)
|
|
112
|
-
|
|
113
|
-
> td
|
|
114
|
-
height: calc($table-row-height + $modifier)
|
|
106
|
+
--v-table-header-height: #{$table-header-height + $modifier}
|
|
107
|
+
--v-table-row-height: #{$table-row-height + $modifier}
|
|
115
108
|
|
|
116
109
|
// Elements
|
|
117
110
|
.v-table__wrapper
|
|
@@ -11,7 +11,7 @@ $table-header-height: 56px !default;
|
|
|
11
11
|
$table-header-font-weight: 500 !default;
|
|
12
12
|
$table-header-font-size: tools.map-deep-get(settings.$typography, 'caption', 'size') !default;
|
|
13
13
|
$table-font-size: tools.map-deep-get(settings.$typography, 'body-2', 'size') !default;
|
|
14
|
-
$table-row-height:
|
|
14
|
+
$table-row-height: 52px !default;
|
|
15
15
|
$table-row-font-size: tools.map-deep-get(settings.$typography, 'subtitle-2', 'size') !default;
|
|
16
16
|
$table-border-color: rgba(var(--v-border-color), var(--v-border-opacity)) !default;
|
|
17
17
|
$table-border: thin solid $table-border-color !default;
|
|
@@ -26104,7 +26104,6 @@ declare const VDatePicker: {
|
|
|
26104
26104
|
style: vue.StyleValue;
|
|
26105
26105
|
title: string;
|
|
26106
26106
|
disabled: boolean;
|
|
26107
|
-
range: boolean;
|
|
26108
26107
|
tag: string;
|
|
26109
26108
|
landscape: boolean;
|
|
26110
26109
|
nextIcon: string;
|
|
@@ -26138,7 +26137,7 @@ declare const VDatePicker: {
|
|
|
26138
26137
|
theme?: string | undefined;
|
|
26139
26138
|
rounded?: string | number | boolean | undefined;
|
|
26140
26139
|
bgColor?: string | undefined;
|
|
26141
|
-
allowedDates?:
|
|
26140
|
+
allowedDates?: unknown[] | ((date: unknown) => boolean) | undefined;
|
|
26142
26141
|
displayValue?: unknown;
|
|
26143
26142
|
} & {
|
|
26144
26143
|
"onUpdate:month"?: ((date: any) => any) | undefined;
|
|
@@ -26154,7 +26153,6 @@ declare const VDatePicker: {
|
|
|
26154
26153
|
style: vue.StyleValue;
|
|
26155
26154
|
title: string;
|
|
26156
26155
|
disabled: boolean;
|
|
26157
|
-
range: boolean;
|
|
26158
26156
|
tag: string;
|
|
26159
26157
|
landscape: boolean;
|
|
26160
26158
|
nextIcon: string;
|
|
@@ -26188,7 +26186,7 @@ declare const VDatePicker: {
|
|
|
26188
26186
|
theme?: string | undefined;
|
|
26189
26187
|
rounded?: string | number | boolean | undefined;
|
|
26190
26188
|
bgColor?: string | undefined;
|
|
26191
|
-
allowedDates?:
|
|
26189
|
+
allowedDates?: unknown[] | ((date: unknown) => boolean) | undefined;
|
|
26192
26190
|
displayValue?: unknown;
|
|
26193
26191
|
} & {
|
|
26194
26192
|
"onUpdate:month"?: ((date: any) => any) | undefined;
|
|
@@ -26200,7 +26198,6 @@ declare const VDatePicker: {
|
|
|
26200
26198
|
style: vue.StyleValue;
|
|
26201
26199
|
title: string;
|
|
26202
26200
|
disabled: boolean;
|
|
26203
|
-
range: boolean;
|
|
26204
26201
|
tag: string;
|
|
26205
26202
|
landscape: boolean;
|
|
26206
26203
|
rounded: string | number | boolean;
|
|
@@ -26241,7 +26238,6 @@ declare const VDatePicker: {
|
|
|
26241
26238
|
style: vue.StyleValue;
|
|
26242
26239
|
title: string;
|
|
26243
26240
|
disabled: boolean;
|
|
26244
|
-
range: boolean;
|
|
26245
26241
|
tag: string;
|
|
26246
26242
|
landscape: boolean;
|
|
26247
26243
|
nextIcon: string;
|
|
@@ -26275,7 +26271,7 @@ declare const VDatePicker: {
|
|
|
26275
26271
|
theme?: string | undefined;
|
|
26276
26272
|
rounded?: string | number | boolean | undefined;
|
|
26277
26273
|
bgColor?: string | undefined;
|
|
26278
|
-
allowedDates?:
|
|
26274
|
+
allowedDates?: unknown[] | ((date: unknown) => boolean) | undefined;
|
|
26279
26275
|
displayValue?: unknown;
|
|
26280
26276
|
} & {
|
|
26281
26277
|
"onUpdate:month"?: ((date: any) => any) | undefined;
|
|
@@ -26287,7 +26283,6 @@ declare const VDatePicker: {
|
|
|
26287
26283
|
style: vue.StyleValue;
|
|
26288
26284
|
title: string;
|
|
26289
26285
|
disabled: boolean;
|
|
26290
|
-
range: boolean;
|
|
26291
26286
|
tag: string;
|
|
26292
26287
|
landscape: boolean;
|
|
26293
26288
|
rounded: string | number | boolean;
|
|
@@ -26309,7 +26304,6 @@ declare const VDatePicker: {
|
|
|
26309
26304
|
style: vue.StyleValue;
|
|
26310
26305
|
title: string;
|
|
26311
26306
|
disabled: boolean;
|
|
26312
|
-
range: boolean;
|
|
26313
26307
|
tag: string;
|
|
26314
26308
|
landscape: boolean;
|
|
26315
26309
|
nextIcon: string;
|
|
@@ -26343,7 +26337,7 @@ declare const VDatePicker: {
|
|
|
26343
26337
|
theme?: string | undefined;
|
|
26344
26338
|
rounded?: string | number | boolean | undefined;
|
|
26345
26339
|
bgColor?: string | undefined;
|
|
26346
|
-
allowedDates?:
|
|
26340
|
+
allowedDates?: unknown[] | ((date: unknown) => boolean) | undefined;
|
|
26347
26341
|
displayValue?: unknown;
|
|
26348
26342
|
} & {
|
|
26349
26343
|
"onUpdate:month"?: ((date: any) => any) | undefined;
|
|
@@ -26360,7 +26354,6 @@ declare const VDatePicker: {
|
|
|
26360
26354
|
style: vue.StyleValue;
|
|
26361
26355
|
title: string;
|
|
26362
26356
|
disabled: boolean;
|
|
26363
|
-
range: boolean;
|
|
26364
26357
|
tag: string;
|
|
26365
26358
|
landscape: boolean;
|
|
26366
26359
|
rounded: string | number | boolean;
|
|
@@ -26389,13 +26382,13 @@ declare const VDatePicker: {
|
|
|
26389
26382
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
26390
26383
|
[key: string]: any;
|
|
26391
26384
|
}>[];
|
|
26392
|
-
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T, Multiple extends boolean = false>(props: {
|
|
26393
|
-
modelValue?:
|
|
26394
|
-
'onUpdate:modelValue'?: ((value:
|
|
26385
|
+
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T, Multiple extends number | boolean | "range" | (string & {}) = false, TModel = Multiple extends string | number | true ? T[] : T>(props: {
|
|
26386
|
+
modelValue?: TModel | undefined;
|
|
26387
|
+
'onUpdate:modelValue'?: ((value: TModel) => void) | undefined;
|
|
26395
26388
|
multiple?: Multiple | undefined;
|
|
26396
26389
|
}, slots: VDatePickerSlots) => GenericProps<{
|
|
26397
|
-
modelValue?:
|
|
26398
|
-
'onUpdate:modelValue'?: ((value:
|
|
26390
|
+
modelValue?: TModel | undefined;
|
|
26391
|
+
'onUpdate:modelValue'?: ((value: TModel) => void) | undefined;
|
|
26399
26392
|
multiple?: Multiple | undefined;
|
|
26400
26393
|
}, VDatePickerSlots>) & FilterPropsOptions<{
|
|
26401
26394
|
modelValue: null;
|
|
@@ -26439,7 +26432,7 @@ declare const VDatePicker: {
|
|
|
26439
26432
|
hideHeader: BooleanConstructor;
|
|
26440
26433
|
max: vue.PropType<unknown>;
|
|
26441
26434
|
min: vue.PropType<unknown>;
|
|
26442
|
-
allowedDates:
|
|
26435
|
+
allowedDates: vue.PropType<unknown[] | ((date: unknown) => boolean)>;
|
|
26443
26436
|
disabled: BooleanConstructor;
|
|
26444
26437
|
displayValue: vue.PropType<unknown>;
|
|
26445
26438
|
month: (StringConstructor | NumberConstructor)[];
|
|
@@ -26463,8 +26456,7 @@ declare const VDatePicker: {
|
|
|
26463
26456
|
default: () => number[];
|
|
26464
26457
|
};
|
|
26465
26458
|
hideWeekdays: BooleanConstructor;
|
|
26466
|
-
multiple: vue.PropType<
|
|
26467
|
-
range: BooleanConstructor;
|
|
26459
|
+
multiple: vue.PropType<number | boolean | "range" | (string & {})>;
|
|
26468
26460
|
showWeek: BooleanConstructor;
|
|
26469
26461
|
active: {
|
|
26470
26462
|
type: vue.PropType<string | string[]>;
|
|
@@ -26533,7 +26525,7 @@ declare const VDatePicker: {
|
|
|
26533
26525
|
hideHeader: BooleanConstructor;
|
|
26534
26526
|
max: vue.PropType<unknown>;
|
|
26535
26527
|
min: vue.PropType<unknown>;
|
|
26536
|
-
allowedDates:
|
|
26528
|
+
allowedDates: vue.PropType<unknown[] | ((date: unknown) => boolean)>;
|
|
26537
26529
|
disabled: BooleanConstructor;
|
|
26538
26530
|
displayValue: vue.PropType<unknown>;
|
|
26539
26531
|
month: (StringConstructor | NumberConstructor)[];
|
|
@@ -26557,8 +26549,7 @@ declare const VDatePicker: {
|
|
|
26557
26549
|
default: () => number[];
|
|
26558
26550
|
};
|
|
26559
26551
|
hideWeekdays: BooleanConstructor;
|
|
26560
|
-
multiple: vue.PropType<
|
|
26561
|
-
range: BooleanConstructor;
|
|
26552
|
+
multiple: vue.PropType<number | boolean | "range" | (string & {})>;
|
|
26562
26553
|
showWeek: BooleanConstructor;
|
|
26563
26554
|
active: {
|
|
26564
26555
|
type: vue.PropType<string | string[]>;
|
|
@@ -26944,7 +26935,6 @@ type VDatePickerHeader = InstanceType<typeof VDatePickerHeader>;
|
|
|
26944
26935
|
declare const VDatePickerMonth: {
|
|
26945
26936
|
new (...args: any[]): vue.CreateComponentPublicInstance<{
|
|
26946
26937
|
disabled: boolean;
|
|
26947
|
-
range: boolean;
|
|
26948
26938
|
showAdjacentMonths: boolean;
|
|
26949
26939
|
weekdays: number[];
|
|
26950
26940
|
hideWeekdays: boolean;
|
|
@@ -26953,11 +26943,11 @@ declare const VDatePickerMonth: {
|
|
|
26953
26943
|
max?: unknown;
|
|
26954
26944
|
min?: unknown;
|
|
26955
26945
|
color?: string | undefined;
|
|
26956
|
-
multiple?:
|
|
26946
|
+
multiple?: number | boolean | "range" | (string & {}) | undefined;
|
|
26957
26947
|
month?: string | number | undefined;
|
|
26958
26948
|
year?: string | number | undefined;
|
|
26959
26949
|
modelValue?: unknown[] | undefined;
|
|
26960
|
-
allowedDates?:
|
|
26950
|
+
allowedDates?: unknown[] | ((date: unknown) => boolean) | undefined;
|
|
26961
26951
|
displayValue?: unknown;
|
|
26962
26952
|
} & {
|
|
26963
26953
|
$children?: {} | vue.VNodeChild | {
|
|
@@ -26987,16 +26977,15 @@ declare const VDatePickerMonth: {
|
|
|
26987
26977
|
i: number;
|
|
26988
26978
|
}) => vue.VNodeChild) | undefined;
|
|
26989
26979
|
} & {
|
|
26990
|
-
"onUpdate:modelValue"?: ((date:
|
|
26991
|
-
"onUpdate:month"?: ((date:
|
|
26992
|
-
"onUpdate:year"?: ((date:
|
|
26980
|
+
"onUpdate:modelValue"?: ((date: unknown) => any) | undefined;
|
|
26981
|
+
"onUpdate:month"?: ((date: number) => any) | undefined;
|
|
26982
|
+
"onUpdate:year"?: ((date: number) => any) | undefined;
|
|
26993
26983
|
}, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
26994
|
-
'update:modelValue': (date:
|
|
26995
|
-
'update:month': (date:
|
|
26996
|
-
'update:year': (date:
|
|
26984
|
+
'update:modelValue': (date: unknown) => true;
|
|
26985
|
+
'update:month': (date: number) => true;
|
|
26986
|
+
'update:year': (date: number) => true;
|
|
26997
26987
|
}, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
26998
26988
|
disabled: boolean;
|
|
26999
|
-
range: boolean;
|
|
27000
26989
|
showAdjacentMonths: boolean;
|
|
27001
26990
|
weekdays: number[];
|
|
27002
26991
|
hideWeekdays: boolean;
|
|
@@ -27005,11 +26994,11 @@ declare const VDatePickerMonth: {
|
|
|
27005
26994
|
max?: unknown;
|
|
27006
26995
|
min?: unknown;
|
|
27007
26996
|
color?: string | undefined;
|
|
27008
|
-
multiple?:
|
|
26997
|
+
multiple?: number | boolean | "range" | (string & {}) | undefined;
|
|
27009
26998
|
month?: string | number | undefined;
|
|
27010
26999
|
year?: string | number | undefined;
|
|
27011
27000
|
modelValue?: unknown[] | undefined;
|
|
27012
|
-
allowedDates?:
|
|
27001
|
+
allowedDates?: unknown[] | ((date: unknown) => boolean) | undefined;
|
|
27013
27002
|
displayValue?: unknown;
|
|
27014
27003
|
} & {
|
|
27015
27004
|
$children?: {} | vue.VNodeChild | {
|
|
@@ -27039,12 +27028,11 @@ declare const VDatePickerMonth: {
|
|
|
27039
27028
|
i: number;
|
|
27040
27029
|
}) => vue.VNodeChild) | undefined;
|
|
27041
27030
|
} & {
|
|
27042
|
-
"onUpdate:modelValue"?: ((date:
|
|
27043
|
-
"onUpdate:month"?: ((date:
|
|
27044
|
-
"onUpdate:year"?: ((date:
|
|
27031
|
+
"onUpdate:modelValue"?: ((date: unknown) => any) | undefined;
|
|
27032
|
+
"onUpdate:month"?: ((date: number) => any) | undefined;
|
|
27033
|
+
"onUpdate:year"?: ((date: number) => any) | undefined;
|
|
27045
27034
|
}, {
|
|
27046
27035
|
disabled: boolean;
|
|
27047
|
-
range: boolean;
|
|
27048
27036
|
showAdjacentMonths: boolean;
|
|
27049
27037
|
weekdays: number[];
|
|
27050
27038
|
hideWeekdays: boolean;
|
|
@@ -27068,7 +27056,6 @@ declare const VDatePickerMonth: {
|
|
|
27068
27056
|
Defaults: {};
|
|
27069
27057
|
}, {
|
|
27070
27058
|
disabled: boolean;
|
|
27071
|
-
range: boolean;
|
|
27072
27059
|
showAdjacentMonths: boolean;
|
|
27073
27060
|
weekdays: number[];
|
|
27074
27061
|
hideWeekdays: boolean;
|
|
@@ -27077,11 +27064,11 @@ declare const VDatePickerMonth: {
|
|
|
27077
27064
|
max?: unknown;
|
|
27078
27065
|
min?: unknown;
|
|
27079
27066
|
color?: string | undefined;
|
|
27080
|
-
multiple?:
|
|
27067
|
+
multiple?: number | boolean | "range" | (string & {}) | undefined;
|
|
27081
27068
|
month?: string | number | undefined;
|
|
27082
27069
|
year?: string | number | undefined;
|
|
27083
27070
|
modelValue?: unknown[] | undefined;
|
|
27084
|
-
allowedDates?:
|
|
27071
|
+
allowedDates?: unknown[] | ((date: unknown) => boolean) | undefined;
|
|
27085
27072
|
displayValue?: unknown;
|
|
27086
27073
|
} & {
|
|
27087
27074
|
$children?: {} | vue.VNodeChild | {
|
|
@@ -27111,12 +27098,11 @@ declare const VDatePickerMonth: {
|
|
|
27111
27098
|
i: number;
|
|
27112
27099
|
}) => vue.VNodeChild) | undefined;
|
|
27113
27100
|
} & {
|
|
27114
|
-
"onUpdate:modelValue"?: ((date:
|
|
27115
|
-
"onUpdate:month"?: ((date:
|
|
27116
|
-
"onUpdate:year"?: ((date:
|
|
27101
|
+
"onUpdate:modelValue"?: ((date: unknown) => any) | undefined;
|
|
27102
|
+
"onUpdate:month"?: ((date: number) => any) | undefined;
|
|
27103
|
+
"onUpdate:year"?: ((date: number) => any) | undefined;
|
|
27117
27104
|
}, () => JSX.Element, {}, {}, {}, {
|
|
27118
27105
|
disabled: boolean;
|
|
27119
|
-
range: boolean;
|
|
27120
27106
|
showAdjacentMonths: boolean;
|
|
27121
27107
|
weekdays: number[];
|
|
27122
27108
|
hideWeekdays: boolean;
|
|
@@ -27127,7 +27113,6 @@ declare const VDatePickerMonth: {
|
|
|
27127
27113
|
__isSuspense?: undefined;
|
|
27128
27114
|
} & vue.ComponentOptionsBase<{
|
|
27129
27115
|
disabled: boolean;
|
|
27130
|
-
range: boolean;
|
|
27131
27116
|
showAdjacentMonths: boolean;
|
|
27132
27117
|
weekdays: number[];
|
|
27133
27118
|
hideWeekdays: boolean;
|
|
@@ -27136,11 +27121,11 @@ declare const VDatePickerMonth: {
|
|
|
27136
27121
|
max?: unknown;
|
|
27137
27122
|
min?: unknown;
|
|
27138
27123
|
color?: string | undefined;
|
|
27139
|
-
multiple?:
|
|
27124
|
+
multiple?: number | boolean | "range" | (string & {}) | undefined;
|
|
27140
27125
|
month?: string | number | undefined;
|
|
27141
27126
|
year?: string | number | undefined;
|
|
27142
27127
|
modelValue?: unknown[] | undefined;
|
|
27143
|
-
allowedDates?:
|
|
27128
|
+
allowedDates?: unknown[] | ((date: unknown) => boolean) | undefined;
|
|
27144
27129
|
displayValue?: unknown;
|
|
27145
27130
|
} & {
|
|
27146
27131
|
$children?: {} | vue.VNodeChild | {
|
|
@@ -27170,16 +27155,15 @@ declare const VDatePickerMonth: {
|
|
|
27170
27155
|
i: number;
|
|
27171
27156
|
}) => vue.VNodeChild) | undefined;
|
|
27172
27157
|
} & {
|
|
27173
|
-
"onUpdate:modelValue"?: ((date:
|
|
27174
|
-
"onUpdate:month"?: ((date:
|
|
27175
|
-
"onUpdate:year"?: ((date:
|
|
27158
|
+
"onUpdate:modelValue"?: ((date: unknown) => any) | undefined;
|
|
27159
|
+
"onUpdate:month"?: ((date: number) => any) | undefined;
|
|
27160
|
+
"onUpdate:year"?: ((date: number) => any) | undefined;
|
|
27176
27161
|
}, () => JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
27177
|
-
'update:modelValue': (date:
|
|
27178
|
-
'update:month': (date:
|
|
27179
|
-
'update:year': (date:
|
|
27162
|
+
'update:modelValue': (date: unknown) => true;
|
|
27163
|
+
'update:month': (date: number) => true;
|
|
27164
|
+
'update:year': (date: number) => true;
|
|
27180
27165
|
}, string, {
|
|
27181
27166
|
disabled: boolean;
|
|
27182
|
-
range: boolean;
|
|
27183
27167
|
showAdjacentMonths: boolean;
|
|
27184
27168
|
weekdays: number[];
|
|
27185
27169
|
hideWeekdays: boolean;
|
|
@@ -27195,10 +27179,10 @@ declare const VDatePickerMonth: {
|
|
|
27195
27179
|
[key: string]: any;
|
|
27196
27180
|
}>[];
|
|
27197
27181
|
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
|
27198
|
-
allowedDates:
|
|
27182
|
+
allowedDates: PropType<unknown[] | ((date: unknown) => boolean)>;
|
|
27199
27183
|
disabled: BooleanConstructor;
|
|
27200
27184
|
displayValue: PropType<unknown>;
|
|
27201
|
-
modelValue: PropType<unknown[]
|
|
27185
|
+
modelValue: PropType<unknown[]>;
|
|
27202
27186
|
month: (StringConstructor | NumberConstructor)[];
|
|
27203
27187
|
max: PropType<unknown>;
|
|
27204
27188
|
min: PropType<unknown>;
|
|
@@ -27223,14 +27207,13 @@ declare const VDatePickerMonth: {
|
|
|
27223
27207
|
};
|
|
27224
27208
|
color: StringConstructor;
|
|
27225
27209
|
hideWeekdays: BooleanConstructor;
|
|
27226
|
-
multiple: PropType<
|
|
27227
|
-
range: BooleanConstructor;
|
|
27210
|
+
multiple: PropType<number | boolean | "range" | (string & {})>;
|
|
27228
27211
|
showWeek: BooleanConstructor;
|
|
27229
27212
|
}, vue.ExtractPropTypes<{
|
|
27230
|
-
allowedDates:
|
|
27213
|
+
allowedDates: PropType<unknown[] | ((date: unknown) => boolean)>;
|
|
27231
27214
|
disabled: BooleanConstructor;
|
|
27232
27215
|
displayValue: PropType<unknown>;
|
|
27233
|
-
modelValue: PropType<unknown[]
|
|
27216
|
+
modelValue: PropType<unknown[]>;
|
|
27234
27217
|
month: (StringConstructor | NumberConstructor)[];
|
|
27235
27218
|
max: PropType<unknown>;
|
|
27236
27219
|
min: PropType<unknown>;
|
|
@@ -27255,8 +27238,7 @@ declare const VDatePickerMonth: {
|
|
|
27255
27238
|
};
|
|
27256
27239
|
color: StringConstructor;
|
|
27257
27240
|
hideWeekdays: BooleanConstructor;
|
|
27258
|
-
multiple: PropType<
|
|
27259
|
-
range: BooleanConstructor;
|
|
27241
|
+
multiple: PropType<number | boolean | "range" | (string & {})>;
|
|
27260
27242
|
showWeek: BooleanConstructor;
|
|
27261
27243
|
}>>;
|
|
27262
27244
|
type VDatePickerMonth = InstanceType<typeof VDatePickerMonth>;
|
|
@@ -35561,10 +35543,10 @@ type VKbd = InstanceType<typeof VKbd>;
|
|
|
35561
35543
|
declare const VLabel: {
|
|
35562
35544
|
new (...args: any[]): vue.CreateComponentPublicInstance<{
|
|
35563
35545
|
style: vue.StyleValue;
|
|
35564
|
-
clickable: boolean;
|
|
35565
35546
|
} & {
|
|
35566
35547
|
text?: string | undefined;
|
|
35567
35548
|
class?: any;
|
|
35549
|
+
onClick?: ((args_0: MouseEvent) => void) | undefined;
|
|
35568
35550
|
theme?: string | undefined;
|
|
35569
35551
|
} & {
|
|
35570
35552
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
@@ -35577,10 +35559,10 @@ declare const VLabel: {
|
|
|
35577
35559
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
35578
35560
|
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
|
35579
35561
|
style: vue.StyleValue;
|
|
35580
|
-
clickable: boolean;
|
|
35581
35562
|
} & {
|
|
35582
35563
|
text?: string | undefined;
|
|
35583
35564
|
class?: any;
|
|
35565
|
+
onClick?: ((args_0: MouseEvent) => void) | undefined;
|
|
35584
35566
|
theme?: string | undefined;
|
|
35585
35567
|
} & {
|
|
35586
35568
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
@@ -35593,7 +35575,6 @@ declare const VLabel: {
|
|
|
35593
35575
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
35594
35576
|
}, {
|
|
35595
35577
|
style: vue.StyleValue;
|
|
35596
|
-
clickable: boolean;
|
|
35597
35578
|
}, true, {}, vue.SlotsType<Partial<{
|
|
35598
35579
|
default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
35599
35580
|
[key: string]: any;
|
|
@@ -35607,10 +35588,10 @@ declare const VLabel: {
|
|
|
35607
35588
|
Defaults: {};
|
|
35608
35589
|
}, {
|
|
35609
35590
|
style: vue.StyleValue;
|
|
35610
|
-
clickable: boolean;
|
|
35611
35591
|
} & {
|
|
35612
35592
|
text?: string | undefined;
|
|
35613
35593
|
class?: any;
|
|
35594
|
+
onClick?: ((args_0: MouseEvent) => void) | undefined;
|
|
35614
35595
|
theme?: string | undefined;
|
|
35615
35596
|
} & {
|
|
35616
35597
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
@@ -35623,17 +35604,16 @@ declare const VLabel: {
|
|
|
35623
35604
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
35624
35605
|
}, {}, {}, {}, {}, {
|
|
35625
35606
|
style: vue.StyleValue;
|
|
35626
|
-
clickable: boolean;
|
|
35627
35607
|
}>;
|
|
35628
35608
|
__isFragment?: undefined;
|
|
35629
35609
|
__isTeleport?: undefined;
|
|
35630
35610
|
__isSuspense?: undefined;
|
|
35631
35611
|
} & vue.ComponentOptionsBase<{
|
|
35632
35612
|
style: vue.StyleValue;
|
|
35633
|
-
clickable: boolean;
|
|
35634
35613
|
} & {
|
|
35635
35614
|
text?: string | undefined;
|
|
35636
35615
|
class?: any;
|
|
35616
|
+
onClick?: ((args_0: MouseEvent) => void) | undefined;
|
|
35637
35617
|
theme?: string | undefined;
|
|
35638
35618
|
} & {
|
|
35639
35619
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
@@ -35646,7 +35626,6 @@ declare const VLabel: {
|
|
|
35646
35626
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
|
35647
35627
|
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
|
|
35648
35628
|
style: vue.StyleValue;
|
|
35649
|
-
clickable: boolean;
|
|
35650
35629
|
}, {}, string, vue.SlotsType<Partial<{
|
|
35651
35630
|
default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
35652
35631
|
[key: string]: any;
|
|
@@ -35659,7 +35638,7 @@ declare const VLabel: {
|
|
|
35659
35638
|
default: null;
|
|
35660
35639
|
};
|
|
35661
35640
|
text: StringConstructor;
|
|
35662
|
-
|
|
35641
|
+
onClick: vue.PropType<(args_0: MouseEvent) => void>;
|
|
35663
35642
|
}, vue.ExtractPropTypes<{
|
|
35664
35643
|
theme: StringConstructor;
|
|
35665
35644
|
class: vue.PropType<any>;
|
|
@@ -35668,7 +35647,7 @@ declare const VLabel: {
|
|
|
35668
35647
|
default: null;
|
|
35669
35648
|
};
|
|
35670
35649
|
text: StringConstructor;
|
|
35671
|
-
|
|
35650
|
+
onClick: vue.PropType<(args_0: MouseEvent) => void>;
|
|
35672
35651
|
}>>;
|
|
35673
35652
|
type VLabel = InstanceType<typeof VLabel>;
|
|
35674
35653
|
|