161 lines
3.7 KiB
JavaScript
161 lines
3.7 KiB
JavaScript
import {
|
|
makeGroupProps,
|
|
useGroup
|
|
} from "./chunk-W6DJL42A.js";
|
|
import {
|
|
makeVariantProps
|
|
} from "./chunk-ADXDXPPR.js";
|
|
import {
|
|
makeBorderProps,
|
|
useBorder
|
|
} from "./chunk-X7YBE6PF.js";
|
|
import {
|
|
makeElevationProps,
|
|
useElevation
|
|
} from "./chunk-YJD2PNP6.js";
|
|
import {
|
|
makeDensityProps,
|
|
useDensity
|
|
} from "./chunk-TM3MIDYC.js";
|
|
import {
|
|
makeRoundedProps,
|
|
useRounded
|
|
} from "./chunk-AQK3CYVW.js";
|
|
import {
|
|
makeTagProps
|
|
} from "./chunk-2HZIACSB.js";
|
|
import {
|
|
makeThemeProps,
|
|
provideTheme
|
|
} from "./chunk-3DSR7NCB.js";
|
|
import {
|
|
genericComponent,
|
|
makeComponentProps,
|
|
propsFactory,
|
|
provideDefaults,
|
|
useRender
|
|
} from "./chunk-LZ5T2ERG.js";
|
|
import {
|
|
createVNode,
|
|
mergeProps,
|
|
normalizeClass,
|
|
normalizeStyle,
|
|
toRef
|
|
} from "./chunk-2MKFL3BX.js";
|
|
|
|
// node_modules/vuetify/lib/components/VBtnGroup/VBtnGroup.js
|
|
import "/home/david/gitea_repo/personal_development/ServerManagerWebApp/frontend/node_modules/vuetify/lib/components/VBtnGroup/VBtnGroup.css";
|
|
var makeVBtnGroupProps = propsFactory({
|
|
baseColor: String,
|
|
divided: Boolean,
|
|
direction: {
|
|
type: String,
|
|
default: "horizontal"
|
|
},
|
|
...makeBorderProps(),
|
|
...makeComponentProps(),
|
|
...makeDensityProps(),
|
|
...makeElevationProps(),
|
|
...makeRoundedProps(),
|
|
...makeTagProps(),
|
|
...makeThemeProps(),
|
|
...makeVariantProps()
|
|
}, "VBtnGroup");
|
|
var VBtnGroup = genericComponent()({
|
|
name: "VBtnGroup",
|
|
props: makeVBtnGroupProps(),
|
|
setup(props, _ref) {
|
|
let {
|
|
slots
|
|
} = _ref;
|
|
const {
|
|
themeClasses
|
|
} = provideTheme(props);
|
|
const {
|
|
densityClasses
|
|
} = useDensity(props);
|
|
const {
|
|
borderClasses
|
|
} = useBorder(props);
|
|
const {
|
|
elevationClasses
|
|
} = useElevation(props);
|
|
const {
|
|
roundedClasses
|
|
} = useRounded(props);
|
|
provideDefaults({
|
|
VBtn: {
|
|
height: toRef(() => props.direction === "horizontal" ? "auto" : null),
|
|
baseColor: toRef(() => props.baseColor),
|
|
color: toRef(() => props.color),
|
|
density: toRef(() => props.density),
|
|
flat: true,
|
|
variant: toRef(() => props.variant)
|
|
}
|
|
});
|
|
useRender(() => {
|
|
return createVNode(props.tag, {
|
|
"class": normalizeClass(["v-btn-group", `v-btn-group--${props.direction}`, {
|
|
"v-btn-group--divided": props.divided
|
|
}, themeClasses.value, borderClasses.value, densityClasses.value, elevationClasses.value, roundedClasses.value, props.class]),
|
|
"style": normalizeStyle(props.style)
|
|
}, slots);
|
|
});
|
|
}
|
|
});
|
|
|
|
// node_modules/vuetify/lib/components/VBtnToggle/VBtnToggle.js
|
|
import "/home/david/gitea_repo/personal_development/ServerManagerWebApp/frontend/node_modules/vuetify/lib/components/VBtnToggle/VBtnToggle.css";
|
|
var VBtnToggleSymbol = /* @__PURE__ */ Symbol.for("vuetify:v-btn-toggle");
|
|
var makeVBtnToggleProps = propsFactory({
|
|
...makeVBtnGroupProps(),
|
|
...makeGroupProps()
|
|
}, "VBtnToggle");
|
|
var VBtnToggle = genericComponent()({
|
|
name: "VBtnToggle",
|
|
props: makeVBtnToggleProps(),
|
|
emits: {
|
|
"update:modelValue": (value) => true
|
|
},
|
|
setup(props, _ref) {
|
|
let {
|
|
slots
|
|
} = _ref;
|
|
const {
|
|
isSelected,
|
|
next,
|
|
prev,
|
|
select,
|
|
selected
|
|
} = useGroup(props, VBtnToggleSymbol);
|
|
useRender(() => {
|
|
const btnGroupProps = VBtnGroup.filterProps(props);
|
|
return createVNode(VBtnGroup, mergeProps({
|
|
"class": ["v-btn-toggle", props.class]
|
|
}, btnGroupProps, {
|
|
"style": props.style
|
|
}), {
|
|
default: () => [slots.default?.({
|
|
isSelected,
|
|
next,
|
|
prev,
|
|
select,
|
|
selected
|
|
})]
|
|
});
|
|
});
|
|
return {
|
|
next,
|
|
prev,
|
|
select
|
|
};
|
|
}
|
|
});
|
|
|
|
export {
|
|
VBtnGroup,
|
|
VBtnToggleSymbol,
|
|
VBtnToggle
|
|
};
|
|
//# sourceMappingURL=chunk-5AQLTWWS.js.map
|