bootstrap-vue-next
Version:
BootstrapVueNext is an early and lovely component library for Vue 3 & Nuxt 3 based on Bootstrap 5 and Typescript.
59 lines (58 loc) • 1.42 kB
JavaScript
import { t as titleCase } from "./stringUtils-gJJ6T6UC.mjs";
const getTableFieldHeadLabel = (field) => typeof field === "string" ? titleCase(field) : field.label !== void 0 ? field.label : typeof field.key === "string" ? titleCase(field.key) : field.key;
const btableSimpleProps = Object.freeze(
Object.keys({
bordered: 0,
borderless: 0,
borderVariant: 0,
captionTop: 0,
dark: 0,
fixed: 0,
hover: 0,
id: 0,
noBorderCollapse: 0,
outlined: 0,
responsive: 0,
small: 0,
stacked: 0,
stickyHeader: 0,
striped: 0,
stripedColumns: 0,
variant: 0,
tableAttrs: 0,
tableClass: 0
})
);
const btableLiteProps = Object.freeze(
Object.keys({
align: 0,
caption: 0,
detailsTdClass: 0,
fieldColumnClass: 0,
fields: 0,
footClone: 0,
footRowVariant: 0,
footVariant: 0,
headRowVariant: 0,
headVariant: 0,
items: 0,
labelStacked: 0,
modelValue: 0,
primaryKey: 0,
tbodyClass: 0,
tbodyTrAttrs: 0,
tbodyTrClass: 0,
tfootClass: 0,
tfootTrClass: 0,
theadClass: 0,
theadTrClass: 0
})
);
const getDataLabelAttr = (props, label) => props.stacked && props.labelStacked !== true ? { "data-label": label } : void 0;
export {
getTableFieldHeadLabel as a,
btableSimpleProps as b,
btableLiteProps as c,
getDataLabelAttr as g
};
//# sourceMappingURL=tableUtils-Jp7dzXjS.mjs.map