vuetify eingebunden + erster Versuch Combobox
This commit is contained in:
1 parent
24642ca1a8
commit
56f4a3f940
1846 files changed
+219701
-53848
No files matched your search
+118
@@ -0,0 +1,118 @@
|
||||
// Styles
|
||||
import '../../../src/stylus/components/_windows.styl';
|
||||
// Components
|
||||
import { BaseItemGroup } from '../VItemGroup/VItemGroup';
|
||||
// Directives
|
||||
import Touch from '../../directives/touch';
|
||||
/* @vue/component */
|
||||
export default BaseItemGroup.extend({
|
||||
name: 'v-window',
|
||||
provide: function provide() {
|
||||
return {
|
||||
windowGroup: this
|
||||
};
|
||||
},
|
||||
|
||||
directives: { Touch: Touch },
|
||||
props: {
|
||||
mandatory: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
reverse: {
|
||||
type: Boolean,
|
||||
default: undefined
|
||||
},
|
||||
touch: Object,
|
||||
touchless: Boolean,
|
||||
value: {
|
||||
required: false
|
||||
},
|
||||
vertical: Boolean
|
||||
},
|
||||
data: function data() {
|
||||
return {
|
||||
internalHeight: undefined,
|
||||
isActive: false,
|
||||
isBooted: false,
|
||||
isReverse: false
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
computedTransition: function computedTransition() {
|
||||
if (!this.isBooted) return '';
|
||||
var axis = this.vertical ? 'y' : 'x';
|
||||
var direction = this.internalReverse === !this.$vuetify.rtl ? '-reverse' : '';
|
||||
return 'v-window-' + axis + direction + '-transition';
|
||||
},
|
||||
internalIndex: function internalIndex() {
|
||||
var _this = this;
|
||||
|
||||
return this.items.findIndex(function (item, i) {
|
||||
return _this.internalValue === _this.getValue(item, i);
|
||||
});
|
||||
},
|
||||
internalReverse: function internalReverse() {
|
||||
if (this.reverse !== undefined) return this.reverse;
|
||||
return this.isReverse;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
internalIndex: 'updateReverse'
|
||||
},
|
||||
mounted: function mounted() {
|
||||
var _this2 = this;
|
||||
|
||||
this.$nextTick(function () {
|
||||
return _this2.isBooted = true;
|
||||
});
|
||||
},
|
||||
|
||||
methods: {
|
||||
genContainer: function genContainer() {
|
||||
return this.$createElement('div', {
|
||||
staticClass: 'v-window__container',
|
||||
class: {
|
||||
'v-window__container--is-active': this.isActive
|
||||
},
|
||||
style: {
|
||||
height: this.internalHeight
|
||||
}
|
||||
}, this.$slots.default);
|
||||
},
|
||||
next: function next() {
|
||||
this.isReverse = false;
|
||||
var nextIndex = (this.internalIndex + 1) % this.items.length;
|
||||
var item = this.items[nextIndex];
|
||||
this.internalValue = this.getValue(item, nextIndex);
|
||||
},
|
||||
prev: function prev() {
|
||||
this.isReverse = true;
|
||||
var lastIndex = (this.internalIndex + this.items.length - 1) % this.items.length;
|
||||
var item = this.items[lastIndex];
|
||||
this.internalValue = this.getValue(item, lastIndex);
|
||||
},
|
||||
updateReverse: function updateReverse(val, oldVal) {
|
||||
this.isReverse = val < oldVal;
|
||||
}
|
||||
},
|
||||
render: function render(h) {
|
||||
var data = {
|
||||
staticClass: 'v-window',
|
||||
directives: []
|
||||
};
|
||||
if (!this.touchless) {
|
||||
var value = this.touch || {
|
||||
left: this.next,
|
||||
right: this.prev
|
||||
};
|
||||
data.directives.push({
|
||||
name: 'touch',
|
||||
value: value
|
||||
});
|
||||
}
|
||||
return h('div', data, [this.genContainer()]);
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=VWindow.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/components/VWindow/VWindow.ts"],"names":[],"mappings":";AACA,OAAO,8CAAP;AAEA;AACA,SAAS,aAAT,QAA8B,0BAA9B;AAEA;AACA,OAAO,KAAP,MAAkB,wBAAlB;AAKA;AACA,eAAe,cAAc,MAAd,CAAqB;AAClC,UAAM,UAD4B;AAGlC,WAHkC,qBAG3B;AACL,eAAO;AACL,yBAAa;AADR,SAAP;AAGD,KAPiC;;AASlC,gBAAY,EAAE,YAAF,EATsB;AAWlC,WAAO;AACL,mBAAW;AACT,kBAAM,OADG;AAET,qBAAS;AAFA,SADN;AAKL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import { BaseItemGroup } from '../VItemGroup/VItemGroup'\n\n// Directives\nimport Touch from '../../directives/touch'\n\n// Types\nimport { VNode, VNodeDirective } from 'vue/types/vnode'\n\n/* @vue/component */\nexport default BaseItemGroup.extend({\n name: 'v-window',\n\n provide (): object {\n return {\n windowGroup: this\n }\n },\n\n directives: { Touch },\n\n props: {\n mandatory: {\n type: Boolean,\n default: true\n },\n reverse: {\n type: Boolean,\n default: undefined\n },\n touch: Object,\n touchless: Boolean,\n value: {\n required: false\n },\n vertical: Boolean\n },\n\n data () {\n return {\n internalHeight: undefined as undefined | string,\n isActive: false,\n isBooted: false,\n isReverse: false\n }\n },\n\n computed: {\n computedTransition (): string {\n if (!this.isBooted) return ''\n\n const axis = this.vertical ? 'y' : 'x'\n const direction = this.internalReverse === !this.$vuetify.rtl\n ? '-reverse'\n : ''\n\n return `v-window-${axis}${direction}-transition`\n },\n internalIndex (): number {\n return this.items.findIndex((item, i) => {\n return this.internalValue === this.getValue(item, i)\n })\n },\n internalReverse (): boolean {\n if (this.reverse !== undefined) return this.reverse\n\n return this.isReverse\n }\n },\n\n watch: {\n internalIndex: 'updateReverse'\n },\n\n mounted () {\n this.$nextTick(() => (this.isBooted = true))\n },\n\n methods: {\n genContainer (): VNode {\n return this.$createElement('div', {\n staticClass: 'v-window__container',\n class: {\n 'v-window__container--is-active': this.isActive\n },\n style: {\n height: this.internalHeight\n }\n }, this.$slots.default)\n },\n next () {\n this.isReverse = false\n const nextIndex = (this.internalIndex + 1) % this.items.length\n const item = this.items[nextIndex]\n\n this.internalValue = this.getValue(item, nextIndex)\n },\n prev () {\n this.isReverse = true\n const lastIndex = (this.internalIndex + this.items.length - 1) % this.items.length\n const item = this.items[lastIndex]\n\n this.internalValue = this.getValue(item, lastIndex)\n },\n updateReverse (val: number, oldVal: number) {\n this.isReverse = val < oldVal\n Line truncated
|
||||
+123
@@ -0,0 +1,123 @@
|
||||
// Mixins
|
||||
import Bootable from '../../mixins/bootable';
|
||||
import { factory as GroupableFactory } from '../../mixins/groupable';
|
||||
// Directives
|
||||
import Touch from '../../directives/touch';
|
||||
// Utilities
|
||||
import { convertToUnit } from '../../util/helpers';
|
||||
import mixins from '../../util/mixins';
|
||||
export default mixins(Bootable, GroupableFactory('windowGroup', 'v-window-item', 'v-window')
|
||||
/* @vue/component */
|
||||
).extend({
|
||||
name: 'v-window-item',
|
||||
directives: {
|
||||
Touch: Touch
|
||||
},
|
||||
props: {
|
||||
reverseTransition: {
|
||||
type: [Boolean, String],
|
||||
default: undefined
|
||||
},
|
||||
transition: {
|
||||
type: [Boolean, String],
|
||||
default: undefined
|
||||
},
|
||||
value: {
|
||||
required: false
|
||||
}
|
||||
},
|
||||
data: function data() {
|
||||
return {
|
||||
done: null,
|
||||
isActive: false,
|
||||
wasCancelled: false
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
computedTransition: function computedTransition() {
|
||||
if (!this.windowGroup.internalReverse) {
|
||||
return typeof this.transition !== 'undefined' ? this.transition || '' : this.windowGroup.computedTransition;
|
||||
}
|
||||
return typeof this.reverseTransition !== 'undefined' ? this.reverseTransition || '' : this.windowGroup.computedTransition;
|
||||
}
|
||||
},
|
||||
mounted: function mounted() {
|
||||
this.$el.addEventListener('transitionend', this.onTransitionEnd, false);
|
||||
},
|
||||
beforeDestroy: function beforeDestroy() {
|
||||
this.$el.removeEventListener('transitionend', this.onTransitionEnd, false);
|
||||
},
|
||||
|
||||
methods: {
|
||||
genDefaultSlot: function genDefaultSlot() {
|
||||
return this.$slots.default;
|
||||
},
|
||||
onAfterEnter: function onAfterEnter() {
|
||||
var _this = this;
|
||||
|
||||
if (this.wasCancelled) {
|
||||
this.wasCancelled = false;
|
||||
return;
|
||||
}
|
||||
requestAnimationFrame(function () {
|
||||
_this.windowGroup.internalHeight = undefined;
|
||||
_this.windowGroup.isActive = false;
|
||||
});
|
||||
},
|
||||
onBeforeEnter: function onBeforeEnter() {
|
||||
this.windowGroup.isActive = true;
|
||||
},
|
||||
onLeave: function onLeave(el) {
|
||||
this.windowGroup.internalHeight = convertToUnit(el.clientHeight);
|
||||
},
|
||||
onEnterCancelled: function onEnterCancelled() {
|
||||
this.wasCancelled = true;
|
||||
},
|
||||
onEnter: function onEnter(el, done) {
|
||||
var _this2 = this;
|
||||
|
||||
var isBooted = this.windowGroup.isBooted;
|
||||
if (isBooted) this.done = done;
|
||||
requestAnimationFrame(function () {
|
||||
if (!_this2.computedTransition) return done();
|
||||
_this2.windowGroup.internalHeight = convertToUnit(el.clientHeight);
|
||||
// On initial render, there is no transition
|
||||
// Vue leaves a `enter` transition class
|
||||
// if done is called too fast
|
||||
!isBooted && setTimeout(done, 100);
|
||||
});
|
||||
},
|
||||
onTransitionEnd: function onTransitionEnd(e) {
|
||||
// This ensures we only call done
|
||||
// when the element transform
|
||||
// completes
|
||||
if (e.propertyName !== 'transform' || e.target !== this.$el || !this.done) return;
|
||||
this.done();
|
||||
this.done = null;
|
||||
}
|
||||
},
|
||||
render: function render(h) {
|
||||
var div = h('div', {
|
||||
staticClass: 'v-window-item',
|
||||
directives: [{
|
||||
name: 'show',
|
||||
value: this.isActive
|
||||
}],
|
||||
on: this.$listeners
|
||||
}, this.showLazyContent(this.genDefaultSlot()));
|
||||
return h('transition', {
|
||||
props: {
|
||||
name: this.computedTransition
|
||||
},
|
||||
on: {
|
||||
afterEnter: this.onAfterEnter,
|
||||
beforeEnter: this.onBeforeEnter,
|
||||
leave: this.onLeave,
|
||||
enter: this.onEnter,
|
||||
enterCancelled: this.onEnterCancelled
|
||||
}
|
||||
}, [div]);
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=VWindowItem.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/components/VWindow/VWindowItem.ts"],"names":[],"mappings":";AAIA,OAAO,QAAP,MAAqB,uBAArB;AACA,SAAS,WAAW,gBAApB,QAA4C,wBAA5C;AAEA;AACA,OAAO,KAAP,MAAkB,wBAAlB;AAEA;AACA,SAAS,aAAT,Q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,SAAT,EAOT,KAAK,eAAL,CAAqB,KAAK,cAAL,EAArB,CAPS,CAAZ;AASA,eAAO,EAAE,YAAF,EAAgB;AACrB,mBAAO;AACL,sBAAM,KAAK;AADN,aADc;AAIrB,gBAAI;AACF,4BAAY,KAAK,YADf;AAEF,6BAAa,KAAK,aAFhB;AAGF,uBAAO,KAAK,OAHV;AAIF,uBAAO,KAAK,OAJV;AAKF,gCAAgB,KAAK;AALnB;AAJiB,SAAhB,EAWJ,CAAC,GAAD,CAXI,CAAP;AAYD;AAhIM,CAJM,CAAf","sourcesContent":["// Components\nimport VWindow from './VWindow'\n\n// Mixins\nimport Bootable from '../../mixins/bootable'\nimport { factory as GroupableFactory } from '../../mixins/groupable'\n\n// Directives\nimport Touch from '../../directives/touch'\n\n// Utilities\nimport { convertToUnit } from '../../util/helpers'\nimport { ExtractVue } from './../../util/mixins'\nimport mixins from '../../util/mixins'\n\n// Types\nimport Vue, { VNode } from 'vue'\n\ntype VBaseWindow = InstanceType<typeof VWindow>\n\ninterface options extends Vue {\n $el: HTMLElement\n windowGroup: VBaseWindow\n}\n\nexport default mixins<options & ExtractVue<[typeof Bootable]>>(\n Bootable,\n GroupableFactory('windowGroup', 'v-window-item', 'v-window')\n /* @vue/component */\n).extend({\n name: 'v-window-item',\n\n directives: {\n Touch\n },\n\n props: {\n reverseTransition: {\n type: [Boolean, String],\n default: undefined\n },\n transition: {\n type: [Boolean, String],\n default: undefined\n },\n value: {\n required: false\n }\n },\n\n data () {\n return {\n done: null as null | (() => void),\n isActive: false,\n wasCancelled: false\n }\n },\n\n computed: {\n computedTransition (): string | boolean {\n if (!this.windowGroup.internalReverse) {\n return typeof this.transition !== 'undefined'\n ? this.transition || ''\n : this.windowGroup.computedTransition\n }\n\n return typeof this.reverseTransition !== 'undefined'\n ? this.reverseTransition || ''\n : this.windowGroup.computedTransition\n }\n },\n\n mounted () {\n this.$el.addEventListener('transitionend', this.onTransitionEnd, false)\n },\n\n beforeDestroy () {\n this.$el.removeEventListener('transitionend', this.onTransitionEnd, false)\n },\n\n methods: {\n genDefaultSlot () {\n return this.$slots.default\n },\n onAfterEnter () {\n if (this.wasCancelled) {\n this.wasCancelled = false\n return\n }\n\n requestAnimationFrame(() => {\n this.windowGroup.internalHeight = undefined\n this.windowGroup.isActive = false\n })\n },\n onBeforeEnter () {\n this.windowGroup.isActive = true\n },\n onLeave (el: HTMLElement) {\n this.windowGroup.internalHeight = convertToUnit(el.clLine truncated
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import VWindow from './VWindow';
|
||||
import VWindowItem from './VWindowItem';
|
||||
export { VWindow, VWindowItem };
|
||||
export default {
|
||||
$_vuetify_subcomponents: {
|
||||
VWindow: VWindow,
|
||||
VWindowItem: VWindowItem
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=index.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/components/VWindow/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAP,MAAoB,WAApB;AACA,OAAO,WAAP,MAAwB,eAAxB;AAEA,SAAS,OAAT,EAAkB,WAAlB;AAEA,eAAe;AACb,6BAAyB;AACvB,wBADuB;AAEvB;AAFuB;AADZ,CAAf","sourcesContent":["import VWindow from './VWindow'\nimport VWindowItem from './VWindowItem'\n\nexport { VWindow, VWindowItem }\n\nexport default {\n $_vuetify_subcomponents: {\n VWindow,\n VWindowItem\n }\n}\n"],"sourceRoot":""}
|
||||
Reference in new issue
Block a user