拿掉 build files

This commit is contained in:
2022-07-18 16:33:23 +08:00
parent 41e2287bcb
commit 3707f158a3
31953 changed files with 0 additions and 4411796 deletions
-146
View File
@@ -1,146 +0,0 @@
import "../../../src/components/VGrid/VGrid.sass";
import Vue from 'vue';
import mergeData from '../../util/mergeData';
import { upperFirst } from '../../util/helpers'; // no xs
const breakpoints = ['sm', 'md', 'lg', 'xl'];
const breakpointProps = (() => {
return breakpoints.reduce((props, val) => {
props[val] = {
type: [Boolean, String, Number],
default: false
};
return props;
}, {});
})();
const offsetProps = (() => {
return breakpoints.reduce((props, val) => {
props['offset' + upperFirst(val)] = {
type: [String, Number],
default: null
};
return props;
}, {});
})();
const orderProps = (() => {
return breakpoints.reduce((props, val) => {
props['order' + upperFirst(val)] = {
type: [String, Number],
default: null
};
return props;
}, {});
})();
const propMap = {
col: Object.keys(breakpointProps),
offset: Object.keys(offsetProps),
order: Object.keys(orderProps)
};
function breakpointClass(type, prop, val) {
let className = type;
if (val == null || val === false) {
return undefined;
}
if (prop) {
const breakpoint = prop.replace(type, '');
className += `-${breakpoint}`;
} // Handling the boolean style prop when accepting [Boolean, String, Number]
// means Vue will not convert <v-col sm></v-col> to sm: true for us.
// Since the default is false, an empty string indicates the prop's presence.
if (type === 'col' && (val === '' || val === true)) {
// .col-md
return className.toLowerCase();
} // .order-md-6
className += `-${val}`;
return className.toLowerCase();
}
const cache = new Map();
export default Vue.extend({
name: 'v-col',
functional: true,
props: {
cols: {
type: [Boolean, String, Number],
default: false
},
...breakpointProps,
offset: {
type: [String, Number],
default: null
},
...offsetProps,
order: {
type: [String, Number],
default: null
},
...orderProps,
alignSelf: {
type: String,
default: null,
validator: str => ['auto', 'start', 'end', 'center', 'baseline', 'stretch'].includes(str)
},
tag: {
type: String,
default: 'div'
}
},
render(h, {
props,
data,
children,
parent
}) {
// Super-fast memoization based on props, 5x faster than JSON.stringify
let cacheKey = '';
for (const prop in props) {
cacheKey += String(props[prop]);
}
let classList = cache.get(cacheKey);
if (!classList) {
classList = []; // Loop through `col`, `offset`, `order` breakpoint props
let type;
for (type in propMap) {
propMap[type].forEach(prop => {
const value = props[prop];
const className = breakpointClass(type, prop, value);
if (className) classList.push(className);
});
}
const hasColClasses = classList.some(className => className.startsWith('col-'));
classList.push({
// Default to .col if no other col-{bp}-* classes generated nor `cols` specified.
col: !hasColClasses || !props.cols,
[`col-${props.cols}`]: props.cols,
[`offset-${props.offset}`]: props.offset,
[`order-${props.order}`]: props.order,
[`align-self-${props.alignSelf}`]: props.alignSelf
});
cache.set(cacheKey, classList);
}
return h(props.tag, mergeData(data, {
class: classList
}), children);
}
});
//# sourceMappingURL=VCol.js.map
File diff suppressed because one or more lines are too long
-65
View File
@@ -1,65 +0,0 @@
import "../../../src/components/VGrid/_grid.sass";
import "../../../src/components/VGrid/VGrid.sass";
import Grid from './grid';
import mergeData from '../../util/mergeData';
/* @vue/component */
export default Grid('container').extend({
name: 'v-container',
functional: true,
props: {
id: String,
tag: {
type: String,
default: 'div'
},
fluid: {
type: Boolean,
default: false
}
},
render(h, {
props,
data,
children
}) {
let classes;
const {
attrs
} = data;
if (attrs) {
// reset attrs to extract utility clases like pa-3
data.attrs = {};
classes = Object.keys(attrs).filter(key => {
// TODO: Remove once resolved
// https://github.com/vuejs/vue/issues/7841
if (key === 'slot') return false;
const value = attrs[key]; // add back data attributes like data-test="foo" but do not
// add them as classes
if (key.startsWith('data-')) {
data.attrs[key] = value;
return false;
}
return value || typeof value === 'string';
});
}
if (props.id) {
data.domProps = data.domProps || {};
data.domProps.id = props.id;
}
return h(props.tag, mergeData(data, {
staticClass: 'container',
class: Array({
'container--fluid': props.fluid
}).concat(classes || [])
}), children);
}
});
//# sourceMappingURL=VContainer.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../src/components/VGrid/VContainer.ts"],"names":[],"mappings":"AAAA,OAAO,0CAAP;AACA,OAAO,0CAAP;AAEA,OAAO,IAAP,MAAiB,QAAjB;AAEA,OAAO,SAAP,MAAsB,s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CACN,KAAK,CAAC,GADA,EAEN,SAAS,CAAC,IAAD,EAAO;AACd,MAAA,WAAW,EAAE,WADC;AAEd,MAAA,KAAK,EAAE,KAAK,CAAM;AAChB,4BAAoB,KAAK,CAAC;AADV,OAAN,CAAL,CAEJ,MAFI,CAEG,OAAO,IAAI,EAFd;AAFO,KAAP,CAFH,EAQN,QARM,CAAR;AAUD;;AArDqC,CAAzB,CAAf","sourcesContent":["import './_grid.sass'\nimport './VGrid.sass'\n\nimport Grid from './grid'\n\nimport mergeData from '../../util/mergeData'\n\n/* @vue/component */\nexport default Grid('container').extend({\n name: 'v-container',\n functional: true,\n props: {\n id: String,\n tag: {\n type: String,\n default: 'div',\n },\n fluid: {\n type: Boolean,\n default: false,\n },\n },\n render (h, { props, data, children }) {\n let classes\n const { attrs } = data\n if (attrs) {\n // reset attrs to extract utility clases like pa-3\n data.attrs = {}\n classes = Object.keys(attrs).filter(key => {\n // TODO: Remove once resolved\n // https://github.com/vuejs/vue/issues/7841\n if (key === 'slot') return false\n\n const value = attrs[key]\n\n // add back data attributes like data-test=\"foo\" but do not\n // add them as classes\n if (key.startsWith('data-')) {\n data.attrs![key] = value\n return false\n }\n\n return value || typeof value === 'string'\n })\n }\n\n if (props.id) {\n data.domProps = data.domProps || {}\n data.domProps.id = props.id\n }\n\n return h(\n props.tag,\n mergeData(data, {\n staticClass: 'container',\n class: Array<any>({\n 'container--fluid': props.fluid,\n }).concat(classes || []),\n }),\n children\n )\n },\n})\n"],"sourceRoot":"","file":"VContainer.js"}
-4
View File
@@ -1,4 +0,0 @@
import "../../../src/components/VGrid/_grid.sass";
import Grid from './grid';
export default Grid('flex');
//# sourceMappingURL=VFlex.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../src/components/VGrid/VFlex.ts"],"names":[],"mappings":"AAAA,OAAO,0CAAP;AAEA,OAAO,IAAP,MAAiB,QAAjB;AAEA,eAAe,IAAI,CAAC,MAAD,CAAnB","sourcesContent":["import './_grid.sass'\n\nimport Grid from './grid'\n\nexport default Grid('flex')\n"],"sourceRoot":"","file":"VFlex.js"}
-4
View File
@@ -1,4 +0,0 @@
import "../../../src/components/VGrid/_grid.sass";
import Grid from './grid';
export default Grid('layout');
//# sourceMappingURL=VLayout.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../src/components/VGrid/VLayout.ts"],"names":[],"mappings":"AAAA,OAAO,0CAAP;AAEA,OAAO,IAAP,MAAiB,QAAjB;AAEA,eAAe,IAAI,CAAC,QAAD,CAAnB","sourcesContent":["import './_grid.sass'\n\nimport Grid from './grid'\n\nexport default Grid('layout')\n"],"sourceRoot":"","file":"VLayout.js"}
-143
View File
@@ -1,143 +0,0 @@
import "../../../src/components/VGrid/VGrid.sass";
import Vue from 'vue';
import mergeData from '../../util/mergeData';
import { upperFirst } from '../../util/helpers'; // no xs
const breakpoints = ['sm', 'md', 'lg', 'xl'];
const ALIGNMENT = ['start', 'end', 'center'];
function makeProps(prefix, def) {
return breakpoints.reduce((props, val) => {
props[prefix + upperFirst(val)] = def();
return props;
}, {});
}
const alignValidator = str => [...ALIGNMENT, 'baseline', 'stretch'].includes(str);
const alignProps = makeProps('align', () => ({
type: String,
default: null,
validator: alignValidator
}));
const justifyValidator = str => [...ALIGNMENT, 'space-between', 'space-around'].includes(str);
const justifyProps = makeProps('justify', () => ({
type: String,
default: null,
validator: justifyValidator
}));
const alignContentValidator = str => [...ALIGNMENT, 'space-between', 'space-around', 'stretch'].includes(str);
const alignContentProps = makeProps('alignContent', () => ({
type: String,
default: null,
validator: alignContentValidator
}));
const propMap = {
align: Object.keys(alignProps),
justify: Object.keys(justifyProps),
alignContent: Object.keys(alignContentProps)
};
const classMap = {
align: 'align',
justify: 'justify',
alignContent: 'align-content'
};
function breakpointClass(type, prop, val) {
let className = classMap[type];
if (val == null) {
return undefined;
}
if (prop) {
// alignSm -> Sm
const breakpoint = prop.replace(type, '');
className += `-${breakpoint}`;
} // .align-items-sm-center
className += `-${val}`;
return className.toLowerCase();
}
const cache = new Map();
export default Vue.extend({
name: 'v-row',
functional: true,
props: {
tag: {
type: String,
default: 'div'
},
dense: Boolean,
noGutters: Boolean,
align: {
type: String,
default: null,
validator: alignValidator
},
...alignProps,
justify: {
type: String,
default: null,
validator: justifyValidator
},
...justifyProps,
alignContent: {
type: String,
default: null,
validator: alignContentValidator
},
...alignContentProps
},
render(h, {
props,
data,
children
}) {
// Super-fast memoization based on props, 5x faster than JSON.stringify
let cacheKey = '';
for (const prop in props) {
cacheKey += String(props[prop]);
}
let classList = cache.get(cacheKey);
if (!classList) {
classList = []; // Loop through `align`, `justify`, `alignContent` breakpoint props
let type;
for (type in propMap) {
propMap[type].forEach(prop => {
const value = props[prop];
const className = breakpointClass(type, prop, value);
if (className) classList.push(className);
});
}
classList.push({
'no-gutters': props.noGutters,
'row--dense': props.dense,
[`align-${props.align}`]: props.align,
[`justify-${props.justify}`]: props.justify,
[`align-content-${props.alignContent}`]: props.alignContent
});
cache.set(cacheKey, classList);
}
return h(props.tag, mergeData(data, {
staticClass: 'row',
class: classList
}), children);
}
});
//# sourceMappingURL=VRow.js.map
File diff suppressed because one or more lines are too long
-4
View File
@@ -1,4 +0,0 @@
import "../../../src/components/VGrid/_grid.sass";
import { createSimpleFunctional } from '../../util/helpers';
export default createSimpleFunctional('spacer', 'div', 'v-spacer');
//# sourceMappingURL=VSpacer.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../src/components/VGrid/VSpacer.ts"],"names":[],"mappings":"AAAA,OAAO,0CAAP;AACA,SAAS,sBAAT,QAAuC,oBAAvC;AAEA,eAAe,sBAAsB,CAAC,QAAD,EAAW,KAAX,EAAkB,UAAlB,CAArC","sourcesContent":["import './_grid.sass'\nimport { createSimpleFunctional } from '../../util/helpers'\n\nexport default createSimpleFunctional('spacer', 'div', 'v-spacer')\n"],"sourceRoot":"","file":"VSpacer.js"}
-56
View File
@@ -1,56 +0,0 @@
// Types
import Vue from 'vue';
export default function VGrid(name) {
/* @vue/component */
return Vue.extend({
name: `v-${name}`,
functional: true,
props: {
id: String,
tag: {
type: String,
default: 'div'
}
},
render(h, {
props,
data,
children
}) {
data.staticClass = `${name} ${data.staticClass || ''}`.trim();
const {
attrs
} = data;
if (attrs) {
// reset attrs to extract utility clases like pa-3
data.attrs = {};
const classes = Object.keys(attrs).filter(key => {
// TODO: Remove once resolved
// https://github.com/vuejs/vue/issues/7841
if (key === 'slot') return false;
const value = attrs[key]; // add back data attributes like data-test="foo" but do not
// add them as classes
if (key.startsWith('data-')) {
data.attrs[key] = value;
return false;
}
return value || typeof value === 'string';
});
if (classes.length) data.staticClass += ` ${classes.join(' ')}`;
}
if (props.id) {
data.domProps = data.domProps || {};
data.domProps.id = props.id;
}
return h(props.tag, data, children);
}
});
}
//# sourceMappingURL=grid.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../src/components/VGrid/grid.ts"],"names":[],"mappings":"AAAA;AACA,OAAO,GAAP,MAA2B,KAA3B;AAEA,eAAc,SAAU,KAAV,CAAiB,IAAjB,EAA6B;AACzC;AACA,SAAO,GAAG,CAAC,MAAJ,CAAW;AAChB,IAAA,IAAI,EAAE,KAAK,IAAI,EADC;AAGhB,IAAA,UAAU,EAAE,IAHI;AAKhB,IAAA,KAAK,EAAE;AACL,MAAA,EAAE,EAAE,MADC;AAEL,MAAA,GAAG,EAAE;AACH,QAAA,IAAI,EAAE,MADH;AAEH,QAAA,OAAO,EAAE;AAFN;AAFA,KALS;;AAahB,IAAA,MAAM,CAAE,CAAF,EAAK;AAAE,MAAA,KAAF;AAAS,MAAA,IAAT;AAAe,MAAA;AAAf,KAAL,EAA8B;AAClC,MAAA,IAAI,CAAC,WAAL,GAAoB,GAAG,IAAI,IAAI,IAAI,CAAC,WAAL,IAAoB,EAAE,EAAlC,CAAsC,IAAtC,EAAnB;AAEA,YAAM;AAAE,QAAA;AAAF,UAAY,IAAlB;;AACA,UAAI,KAAJ,EAAW;AACT;AACA,QAAA,IAAI,CAAC,KAAL,GAAa,EAAb;AACA,cAAM,OAAO,GAAG,MAAM,CAAC,IAAP,CAAY,KAAZ,EAAmB,MAAnB,CAA0B,GAAG,IAAG;AAC9C;AACA;AACA,cAAI,GAAG,KAAK,MAAZ,EAAoB,OAAO,KAAP;AAEpB,gBAAM,KAAK,GAAG,KAAK,CAAC,GAAD,CAAnB,CAL8C,CAO9C;AACA;;AACA,cAAI,GAAG,CAAC,UAAJ,CAAe,OAAf,CAAJ,EAA6B;AAC3B,YAAA,IAAI,CAAC,KAAL,CAAY,GAAZ,IAAmB,KAAnB;AACA,mBAAO,KAAP;AACD;;AAED,iBAAO,KAAK,IAAI,OAAO,KAAP,KAAiB,QAAjC;AACD,SAfe,CAAhB;AAiBA,YAAI,OAAO,CAAC,MAAZ,EAAoB,IAAI,CAAC,WAAL,IAAoB,IAAI,OAAO,CAAC,IAAR,CAAa,GAAb,CAAiB,EAAzC;AACrB;;AAED,UAAI,KAAK,CAAC,EAAV,EAAc;AACZ,QAAA,IAAI,CAAC,QAAL,GAAgB,IAAI,CAAC,QAAL,IAAiB,EAAjC;AACA,QAAA,IAAI,CAAC,QAAL,CAAc,EAAd,GAAmB,KAAK,CAAC,EAAzB;AACD;;AAED,aAAO,CAAC,CAAC,KAAK,CAAC,GAAP,EAAY,IAAZ,EAAkB,QAAlB,CAAR;AACD;;AA9Ce,GAAX,CAAP;AAgDD","sourcesContent":["// Types\nimport Vue, { VNode } from 'vue'\n\nexport default function VGrid (name: string) {\n /* @vue/component */\n return Vue.extend({\n name: `v-${name}`,\n\n functional: true,\n\n props: {\n id: String,\n tag: {\n type: String,\n default: 'div',\n },\n },\n\n render (h, { props, data, children }): VNode {\n data.staticClass = (`${name} ${data.staticClass || ''}`).trim()\n\n const { attrs } = data\n if (attrs) {\n // reset attrs to extract utility clases like pa-3\n data.attrs = {}\n const classes = Object.keys(attrs).filter(key => {\n // TODO: Remove once resolved\n // https://github.com/vuejs/vue/issues/7841\n if (key === 'slot') return false\n\n const value = attrs[key]\n\n // add back data attributes like data-test=\"foo\" but do not\n // add them as classes\n if (key.startsWith('data-')) {\n data.attrs![key] = value\n return false\n }\n\n return value || typeof value === 'string'\n })\n\n if (classes.length) data.staticClass += ` ${classes.join(' ')}`\n }\n\n if (props.id) {\n data.domProps = data.domProps || {}\n data.domProps.id = props.id\n }\n\n return h(props.tag, data, children)\n },\n })\n}\n"],"sourceRoot":"","file":"grid.js"}
-18
View File
@@ -1,18 +0,0 @@
import VContainer from './VContainer';
import VCol from './VCol';
import VRow from './VRow';
import VSpacer from './VSpacer';
import VLayout from './VLayout';
import VFlex from './VFlex';
export { VContainer, VCol, VRow, VSpacer, VLayout, VFlex };
export default {
$_vuetify_subcomponents: {
VContainer,
VCol,
VRow,
VSpacer,
VLayout,
VFlex
}
};
//# sourceMappingURL=index.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"sources":["../../../src/components/VGrid/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAP,MAAuB,cAAvB;AACA,OAAO,IAAP,MAAiB,QAAjB;AACA,OAAO,IAAP,MAAiB,QAAjB;AACA,OAAO,OAAP,MAAoB,WAApB;AACA,OAAO,OAAP,MAAoB,WAApB;AACA,OAAO,KAAP,MAAkB,SAAlB;AAEA,SACE,UADF,EAEE,IAFF,EAGE,IAHF,EAIE,OAJF,EAKE,OALF,EAME,KANF;AASA,eAAe;AACb,EAAA,uBAAuB,EAAE;AACvB,IAAA,UADuB;AAEvB,IAAA,IAFuB;AAGvB,IAAA,IAHuB;AAIvB,IAAA,OAJuB;AAKvB,IAAA,OALuB;AAMvB,IAAA;AANuB;AADZ,CAAf","sourcesContent":["import VContainer from './VContainer'\nimport VCol from './VCol'\nimport VRow from './VRow'\nimport VSpacer from './VSpacer'\nimport VLayout from './VLayout'\nimport VFlex from './VFlex'\n\nexport {\n VContainer,\n VCol,\n VRow,\n VSpacer,\n VLayout,\n VFlex,\n}\n\nexport default {\n $_vuetify_subcomponents: {\n VContainer,\n VCol,\n VRow,\n VSpacer,\n VLayout,\n VFlex,\n },\n}\n"],"sourceRoot":"","file":"index.js"}