@progress/kendo-vue-layout 3.6.3 → 3.6.4-dev.202210071340
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/cdn/js/kendo-vue-layout.js +1 -1
- package/dist/es/appbar/AppBar.d.ts +44 -0
- package/dist/es/appbar/AppBar.js +90 -0
- package/dist/es/appbar/AppBarSection.d.ts +44 -0
- package/dist/es/appbar/AppBarSection.js +40 -0
- package/dist/es/appbar/AppBarSpacer.d.ts +44 -0
- package/dist/es/appbar/AppBarSpacer.js +57 -0
- package/dist/es/appbar/interfaces/AppBarProps.d.ts +66 -0
- package/dist/es/appbar/interfaces/AppBarProps.js +1 -0
- package/dist/es/appbar/interfaces/AppBarSectionProps.d.ts +5 -0
- package/dist/es/appbar/interfaces/AppBarSectionProps.js +1 -0
- package/dist/es/appbar/interfaces/AppBarSpacerProps.d.ts +7 -0
- package/dist/es/appbar/interfaces/AppBarSpacerProps.js +1 -0
- package/dist/es/bottomnavigation/BottomNavigation.d.ts +45 -0
- package/dist/es/bottomnavigation/BottomNavigation.js +179 -0
- package/dist/es/bottomnavigation/BottomNavigationItem.d.ts +44 -0
- package/dist/es/bottomnavigation/BottomNavigationItem.js +124 -0
- package/dist/es/bottomnavigation/BottomNavigationItemProps.d.ts +54 -0
- package/dist/es/bottomnavigation/BottomNavigationItemProps.js +1 -0
- package/dist/es/bottomnavigation/BottomNavigationProps.d.ts +143 -0
- package/dist/es/bottomnavigation/BottomNavigationProps.js +1 -0
- package/dist/es/bottomnavigation/models/events.d.ts +18 -0
- package/dist/es/bottomnavigation/models/events.js +1 -0
- package/dist/es/bottomnavigation/models/utils.d.ts +36 -0
- package/dist/es/bottomnavigation/models/utils.js +36 -0
- package/dist/es/expansionpanel/ExpansionPanel.d.ts +42 -0
- package/dist/es/expansionpanel/ExpansionPanel.js +185 -0
- package/dist/es/expansionpanel/ExpansionPanelContent.d.ts +19 -0
- package/dist/es/expansionpanel/ExpansionPanelContent.js +39 -0
- package/dist/es/expansionpanel/interfaces.d.ts +79 -0
- package/dist/es/expansionpanel/interfaces.js +1 -0
- package/dist/es/expansionpanel/main.d.ts +3 -0
- package/dist/es/expansionpanel/main.js +3 -0
- package/dist/es/main.d.ts +12 -0
- package/dist/es/main.js +12 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/stepper/interfaces/StepProps.d.ts +0 -4
- package/dist/es/stepper/interfaces/StepperProps.d.ts +0 -4
- package/dist/esm/appbar/AppBar.d.ts +44 -0
- package/dist/esm/appbar/AppBar.js +90 -0
- package/dist/esm/appbar/AppBarSection.d.ts +44 -0
- package/dist/esm/appbar/AppBarSection.js +40 -0
- package/dist/esm/appbar/AppBarSpacer.d.ts +44 -0
- package/dist/esm/appbar/AppBarSpacer.js +57 -0
- package/dist/esm/appbar/interfaces/AppBarProps.d.ts +66 -0
- package/dist/esm/appbar/interfaces/AppBarProps.js +1 -0
- package/dist/esm/appbar/interfaces/AppBarSectionProps.d.ts +5 -0
- package/dist/esm/appbar/interfaces/AppBarSectionProps.js +1 -0
- package/dist/esm/appbar/interfaces/AppBarSpacerProps.d.ts +7 -0
- package/dist/esm/appbar/interfaces/AppBarSpacerProps.js +1 -0
- package/dist/esm/bottomnavigation/BottomNavigation.d.ts +45 -0
- package/dist/esm/bottomnavigation/BottomNavigation.js +179 -0
- package/dist/esm/bottomnavigation/BottomNavigationItem.d.ts +44 -0
- package/dist/esm/bottomnavigation/BottomNavigationItem.js +124 -0
- package/dist/esm/bottomnavigation/BottomNavigationItemProps.d.ts +54 -0
- package/dist/esm/bottomnavigation/BottomNavigationItemProps.js +1 -0
- package/dist/esm/bottomnavigation/BottomNavigationProps.d.ts +143 -0
- package/dist/esm/bottomnavigation/BottomNavigationProps.js +1 -0
- package/dist/esm/bottomnavigation/models/events.d.ts +18 -0
- package/dist/esm/bottomnavigation/models/events.js +1 -0
- package/dist/esm/bottomnavigation/models/utils.d.ts +36 -0
- package/dist/esm/bottomnavigation/models/utils.js +36 -0
- package/dist/esm/expansionpanel/ExpansionPanel.d.ts +42 -0
- package/dist/esm/expansionpanel/ExpansionPanel.js +185 -0
- package/dist/esm/expansionpanel/ExpansionPanelContent.d.ts +19 -0
- package/dist/esm/expansionpanel/ExpansionPanelContent.js +39 -0
- package/dist/esm/expansionpanel/interfaces.d.ts +79 -0
- package/dist/esm/expansionpanel/interfaces.js +1 -0
- package/dist/esm/expansionpanel/main.d.ts +3 -0
- package/dist/esm/expansionpanel/main.js +3 -0
- package/dist/esm/main.d.ts +12 -0
- package/dist/esm/main.js +12 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/stepper/interfaces/StepProps.d.ts +0 -4
- package/dist/esm/stepper/interfaces/StepperProps.d.ts +0 -4
- package/dist/npm/appbar/AppBar.d.ts +44 -0
- package/dist/npm/appbar/AppBar.js +101 -0
- package/dist/npm/appbar/AppBarSection.d.ts +44 -0
- package/dist/npm/appbar/AppBarSection.js +50 -0
- package/dist/npm/appbar/AppBarSpacer.d.ts +44 -0
- package/dist/npm/appbar/AppBarSpacer.js +67 -0
- package/dist/npm/appbar/interfaces/AppBarProps.d.ts +66 -0
- package/dist/npm/appbar/interfaces/AppBarProps.js +2 -0
- package/dist/npm/appbar/interfaces/AppBarSectionProps.d.ts +5 -0
- package/dist/npm/appbar/interfaces/AppBarSectionProps.js +2 -0
- package/dist/npm/appbar/interfaces/AppBarSpacerProps.d.ts +7 -0
- package/dist/npm/appbar/interfaces/AppBarSpacerProps.js +2 -0
- package/dist/npm/bottomnavigation/BottomNavigation.d.ts +45 -0
- package/dist/npm/bottomnavigation/BottomNavigation.js +192 -0
- package/dist/npm/bottomnavigation/BottomNavigationItem.d.ts +44 -0
- package/dist/npm/bottomnavigation/BottomNavigationItem.js +135 -0
- package/dist/npm/bottomnavigation/BottomNavigationItemProps.d.ts +54 -0
- package/dist/npm/bottomnavigation/BottomNavigationItemProps.js +2 -0
- package/dist/npm/bottomnavigation/BottomNavigationProps.d.ts +143 -0
- package/dist/npm/bottomnavigation/BottomNavigationProps.js +2 -0
- package/dist/npm/bottomnavigation/models/events.d.ts +18 -0
- package/dist/npm/bottomnavigation/models/events.js +2 -0
- package/dist/npm/bottomnavigation/models/utils.d.ts +36 -0
- package/dist/npm/bottomnavigation/models/utils.js +39 -0
- package/dist/npm/expansionpanel/ExpansionPanel.d.ts +42 -0
- package/dist/npm/expansionpanel/ExpansionPanel.js +196 -0
- package/dist/npm/expansionpanel/ExpansionPanelContent.d.ts +19 -0
- package/dist/npm/expansionpanel/ExpansionPanelContent.js +50 -0
- package/dist/npm/expansionpanel/interfaces.d.ts +79 -0
- package/dist/npm/expansionpanel/interfaces.js +2 -0
- package/dist/npm/expansionpanel/main.d.ts +3 -0
- package/dist/npm/expansionpanel/main.js +36 -0
- package/dist/npm/main.d.ts +12 -0
- package/dist/npm/main.js +12 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/stepper/interfaces/StepProps.d.ts +0 -4
- package/dist/npm/stepper/interfaces/StepperProps.d.ts +0 -4
- package/package.json +11 -10
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
import { AppBarProps } from './interfaces/AppBarProps';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export interface AppBarState {
|
|
11
|
+
calculatedId: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export interface AppBarComputed {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
wrapperClass: object;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export interface AppBarMethods {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export interface AppBarData {
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export interface AppBarAll extends Vue2type, AppBarMethods, AppBarData, AppBarComputed, AppBarState {
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
declare let AppBarVue2: ComponentOptions<AppBarAll, DefaultData<AppBarData>, DefaultMethods<AppBarAll>, AppBarComputed, RecordPropsDefinition<AppBarProps>>;
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
declare const AppBar: DefineComponent<AppBarProps, any, AppBarData, AppBarComputed, AppBarMethods, {}, {}, {}, string, AppBarProps, AppBarProps, {}>;
|
|
44
|
+
export { AppBar, AppBarVue2 };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import * as Vue from 'vue';
|
|
3
|
+
var allVue = Vue;
|
|
4
|
+
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
+
import { focusFirstFocusableChild, getDefaultSlots, guid, validatePackage } from '@progress/kendo-vue-common';
|
|
7
|
+
import { packageMetadata } from '../package-metadata';
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
var AppBarVue2 = {
|
|
13
|
+
name: 'KendoAppBar',
|
|
14
|
+
props: {
|
|
15
|
+
id: String,
|
|
16
|
+
themeColor: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: 'light'
|
|
19
|
+
},
|
|
20
|
+
position: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: 'top',
|
|
23
|
+
validator: function validator(value) {
|
|
24
|
+
return ['top', 'bottom'].includes(value);
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
positionMode: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: 'static',
|
|
30
|
+
validator: function validator(value) {
|
|
31
|
+
return ['static', 'sticky', 'fixed'].includes(value);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
created: function created() {
|
|
36
|
+
validatePackage(packageMetadata);
|
|
37
|
+
this.calculatedId = guid();
|
|
38
|
+
},
|
|
39
|
+
computed: {
|
|
40
|
+
wrapperClass: function wrapperClass() {
|
|
41
|
+
var _a = this.$props,
|
|
42
|
+
position = _a.position,
|
|
43
|
+
positionMode = _a.positionMode,
|
|
44
|
+
themeColor = _a.themeColor;
|
|
45
|
+
return {
|
|
46
|
+
'k-appbar': true,
|
|
47
|
+
'k-appbar-top': position === 'top',
|
|
48
|
+
'k-appbar-bottom': position === 'bottom',
|
|
49
|
+
'k-appbar-static': positionMode === 'static',
|
|
50
|
+
'k-appbar-sticky': positionMode === 'sticky',
|
|
51
|
+
'k-appbar-fixed': positionMode === 'fixed',
|
|
52
|
+
'k-appbar-light': themeColor === 'light',
|
|
53
|
+
'k-appbar-dark': themeColor === 'dark',
|
|
54
|
+
'k-appbar-inherit': themeColor === 'inherit'
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
setup: !isV3 ? undefined : function () {
|
|
60
|
+
var v3 = !!isV3;
|
|
61
|
+
return {
|
|
62
|
+
v3: v3
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
render: function render(createElement) {
|
|
66
|
+
var h = gh || createElement;
|
|
67
|
+
var defaultSlot = getDefaultSlots(this);
|
|
68
|
+
var id = this.$props.id;
|
|
69
|
+
return h("div", {
|
|
70
|
+
"class": this.wrapperClass,
|
|
71
|
+
id: id || this.calculatedId,
|
|
72
|
+
attrs: this.v3 ? undefined : {
|
|
73
|
+
id: id || this.calculatedId
|
|
74
|
+
}
|
|
75
|
+
}, [defaultSlot]);
|
|
76
|
+
},
|
|
77
|
+
methods: {
|
|
78
|
+
focus: function focus() {
|
|
79
|
+
if (this.$el) {
|
|
80
|
+
focusFirstFocusableChild(this.$el);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* @hidden
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
var AppBar = AppBarVue2;
|
|
90
|
+
export { AppBar, AppBarVue2 };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
import { AppBarSectionProps } from './interfaces/AppBarSectionProps';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export interface AppBarSectionState {
|
|
11
|
+
calculatedId: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export interface AppBarSectionComputed {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
wrapperClass: object;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export interface AppBarSectionMethods {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export interface AppBarSectionData {
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export interface AppBarSectionAll extends Vue2type, AppBarSectionMethods, AppBarSectionData, AppBarSectionComputed, AppBarSectionState {
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
declare let AppBarSectionVue2: ComponentOptions<AppBarSectionAll, DefaultData<AppBarSectionData>, DefaultMethods<AppBarSectionAll>, AppBarSectionComputed, RecordPropsDefinition<AppBarSectionProps>>;
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
declare const AppBarSection: DefineComponent<AppBarSectionProps, any, AppBarSectionData, AppBarSectionComputed, AppBarSectionMethods, {}, {}, {}, string, AppBarSectionProps, AppBarSectionProps, {}>;
|
|
44
|
+
export { AppBarSection, AppBarSectionVue2 };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import * as Vue from 'vue';
|
|
3
|
+
var allVue = Vue;
|
|
4
|
+
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
+
import { focusFirstFocusableChild, getDefaultSlots } from '@progress/kendo-vue-common';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
var AppBarSectionVue2 = {
|
|
12
|
+
name: 'KendoAppBarSection',
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
setup: !isV3 ? undefined : function () {
|
|
15
|
+
var v3 = !!isV3;
|
|
16
|
+
return {
|
|
17
|
+
v3: v3
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
render: function render(createElement) {
|
|
21
|
+
var h = gh || createElement;
|
|
22
|
+
var defaultSlot = getDefaultSlots(this);
|
|
23
|
+
return h("div", {
|
|
24
|
+
"class": 'k-appbar-section'
|
|
25
|
+
}, [defaultSlot]);
|
|
26
|
+
},
|
|
27
|
+
methods: {
|
|
28
|
+
focus: function focus() {
|
|
29
|
+
if (this.$el) {
|
|
30
|
+
focusFirstFocusableChild(this.$el);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
var AppBarSection = AppBarSectionVue2;
|
|
40
|
+
export { AppBarSection, AppBarSectionVue2 };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
import { AppBarSpacerProps } from './interfaces/AppBarSpacerProps';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export interface AppBarSpacerState {
|
|
11
|
+
calculatedId: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export interface AppBarSpacerComputed {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
spacerClasses: object;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export interface AppBarSpacerMethods {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export interface AppBarSpacerData {
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export interface AppBarSpacerAll extends Vue2type, AppBarSpacerMethods, AppBarSpacerData, AppBarSpacerComputed, AppBarSpacerState {
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
declare let AppBarSpacerVue2: ComponentOptions<AppBarSpacerAll, DefaultData<AppBarSpacerData>, DefaultMethods<AppBarSpacerAll>, AppBarSpacerComputed, RecordPropsDefinition<AppBarSpacerProps>>;
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
declare const AppBarSpacer: DefineComponent<AppBarSpacerProps, any, AppBarSpacerData, AppBarSpacerComputed, AppBarSpacerMethods, {}, {}, {}, string, AppBarSpacerProps, AppBarSpacerProps, {}>;
|
|
44
|
+
export { AppBarSpacer, AppBarSpacerVue2 };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import * as Vue from 'vue';
|
|
3
|
+
var allVue = Vue;
|
|
4
|
+
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
+
import { focusFirstFocusableChild, getDefaultSlots } from '@progress/kendo-vue-common';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
var AppBarSpacerVue2 = {
|
|
12
|
+
name: 'KendoAppBarSpacer',
|
|
13
|
+
props: {
|
|
14
|
+
width: [String, Number]
|
|
15
|
+
},
|
|
16
|
+
computed: {
|
|
17
|
+
spacerClasses: function spacerClasses() {
|
|
18
|
+
return {
|
|
19
|
+
'k-appbar-spacer': true,
|
|
20
|
+
'k-appbar-spacer-sized': this.width !== undefined
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
spacerStyles: function spacerStyles() {
|
|
24
|
+
return {
|
|
25
|
+
flexBasis: this.width !== undefined ? this.width : undefined
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
setup: !isV3 ? undefined : function () {
|
|
31
|
+
var v3 = !!isV3;
|
|
32
|
+
return {
|
|
33
|
+
v3: v3
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
render: function render(createElement) {
|
|
37
|
+
var h = gh || createElement;
|
|
38
|
+
var defaultSlot = getDefaultSlots(this);
|
|
39
|
+
return h("span", {
|
|
40
|
+
"class": this.spacerClasses,
|
|
41
|
+
style: this.spacerStyles
|
|
42
|
+
}, [defaultSlot]);
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
focus: function focus() {
|
|
46
|
+
if (this.$el) {
|
|
47
|
+
focusFirstFocusableChild(this.$el);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
var AppBarSpacer = AppBarSpacerVue2;
|
|
57
|
+
export { AppBarSpacer, AppBarSpacerVue2 };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the props of the [Kendo UI for Vue AppBar component]({% slug overview_appbar %}).
|
|
3
|
+
* Used to display information, actions, branding titles and additional navigation on the current screen.
|
|
4
|
+
*/
|
|
5
|
+
export interface AppBarProps {
|
|
6
|
+
/**
|
|
7
|
+
* Sets the `id` property of the root AppBar element.
|
|
8
|
+
*/
|
|
9
|
+
id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the position of the AppBar ([see example]({% slug positioning_appbar %}#toc-position)).
|
|
12
|
+
*
|
|
13
|
+
* * The possible values are:
|
|
14
|
+
* * 'top' (Default)
|
|
15
|
+
* * 'bottom'
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
position?: AppBarPosition | string;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the positionMode of the AppBar ([see example]({% slug positioning_appbar %}#toc-positionmode)).
|
|
21
|
+
*
|
|
22
|
+
* * The possible values are:
|
|
23
|
+
* * 'static' (Default)
|
|
24
|
+
* * 'sticky'
|
|
25
|
+
* * 'fixed'
|
|
26
|
+
*/
|
|
27
|
+
positionMode?: AppBarPositionMode | string;
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the theme color of the AppBar ([see example]({% slug appearance_appbar %})).
|
|
30
|
+
*
|
|
31
|
+
* * The possible values are:
|
|
32
|
+
* * `inherit`
|
|
33
|
+
* * `light` (Default)
|
|
34
|
+
* * `dark`
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
themeColor?: AppBarThemeColor | string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the position of the AppBar ([see example]({% slug positioning_appbar %}#toc-position)).
|
|
41
|
+
*
|
|
42
|
+
* * The possible values are:
|
|
43
|
+
* * 'top' (Default)
|
|
44
|
+
* * 'bottom'
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
export declare type AppBarPosition = 'top' | 'bottom';
|
|
48
|
+
/**
|
|
49
|
+
* Specifies the positionMode of the AppBar ([see example]({% slug positioning_appbar %}#toc-positionmode)).
|
|
50
|
+
*
|
|
51
|
+
* * The possible values are:
|
|
52
|
+
* * 'static' (Default)
|
|
53
|
+
* * 'sticky'
|
|
54
|
+
* * 'fixed'
|
|
55
|
+
*/
|
|
56
|
+
export declare type AppBarPositionMode = 'static' | 'sticky' | 'fixed';
|
|
57
|
+
/**
|
|
58
|
+
* Specifies the theme color of the AppBar ([see example]({% slug appearance_appbar %})).
|
|
59
|
+
*
|
|
60
|
+
* * The possible values are:
|
|
61
|
+
* * `inherit`
|
|
62
|
+
* * `light` (Default)
|
|
63
|
+
* * `dark`
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
export declare type AppBarThemeColor = 'light' | 'dark' | 'inherit';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the props of the [Kendo UI for Vue AppBarSpacer component]({% slug contentarrangement_appbar %}#toc-defining-spacings).
|
|
3
|
+
* Used to give additional white space between the AppBar sections and provides a way for customizing its width.
|
|
4
|
+
*/
|
|
5
|
+
export interface AppBarSpacerProps {
|
|
6
|
+
width?: string | number;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
import { BottomNavigationProps } from './BottomNavigationProps';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export interface BottomNavigationState {
|
|
11
|
+
navId: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export interface BottomNavigationComputed {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
navClasses: object;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export interface BottomNavigationMethods {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
focus: (e: any) => void;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
export interface BottomNavigationData {
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
export interface BottomNavigationAll extends Vue2type, BottomNavigationMethods, BottomNavigationData, BottomNavigationComputed, BottomNavigationState {
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
*/
|
|
40
|
+
declare let BottomNavigationVue2: ComponentOptions<BottomNavigationAll, DefaultData<BottomNavigationData>, DefaultMethods<BottomNavigationAll>, BottomNavigationComputed, RecordPropsDefinition<BottomNavigationProps>>;
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
declare const BottomNavigation: DefineComponent<BottomNavigationProps, any, BottomNavigationData, BottomNavigationComputed, BottomNavigationMethods, {}, {}, {}, string, BottomNavigationProps, BottomNavigationProps, {}>;
|
|
45
|
+
export { BottomNavigation, BottomNavigationVue2 };
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import * as Vue from 'vue';
|
|
3
|
+
var allVue = Vue;
|
|
4
|
+
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
+
import { packageMetadata } from '../package-metadata';
|
|
7
|
+
import { focusFirstFocusableChild, getListeners, guid, Keys, templateRendering, validatePackage } from '@progress/kendo-vue-common';
|
|
8
|
+
import { FILL_CLASSES, ITEM_FLOW_CLASSES, POSITION_MODE_CLASSES, THEME_COLOR_CLASSES } from './models/utils';
|
|
9
|
+
import { BottomNavigationItem } from './BottomNavigationItem';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
var BottomNavigationVue2 = {
|
|
15
|
+
name: 'KendoBottomNavigation',
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
emits: {
|
|
18
|
+
'keydown': null,
|
|
19
|
+
'select': null
|
|
20
|
+
},
|
|
21
|
+
props: {
|
|
22
|
+
dir: String,
|
|
23
|
+
themeColor: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: 'primary',
|
|
26
|
+
validator: function validator(value) {
|
|
27
|
+
return ['primary', 'secondary', 'tertiary', 'info', 'success', 'warning', 'error', 'dark', 'light', 'inverse'].includes(value);
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
fill: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: 'flat',
|
|
33
|
+
validator: function validator(value) {
|
|
34
|
+
return ['solid', 'flat'].includes(value);
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
items: Array,
|
|
38
|
+
itemFlow: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: 'vertical',
|
|
41
|
+
validator: function validator(value) {
|
|
42
|
+
return ['vertical', 'horizontal'].includes(value);
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
positionMode: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: 'fixed',
|
|
48
|
+
validator: function validator(value) {
|
|
49
|
+
return ['sticky', 'fixed'].includes(value);
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
border: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: true
|
|
55
|
+
},
|
|
56
|
+
disabled: Boolean,
|
|
57
|
+
selected: Number
|
|
58
|
+
},
|
|
59
|
+
created: function created() {
|
|
60
|
+
validatePackage(packageMetadata);
|
|
61
|
+
this.navId = guid();
|
|
62
|
+
},
|
|
63
|
+
computed: {
|
|
64
|
+
navClasses: function navClasses() {
|
|
65
|
+
var _a;
|
|
66
|
+
|
|
67
|
+
var _b = this.$props,
|
|
68
|
+
themeColor = _b.themeColor,
|
|
69
|
+
fill = _b.fill,
|
|
70
|
+
positionMode = _b.positionMode,
|
|
71
|
+
itemFlow = _b.itemFlow,
|
|
72
|
+
border = _b.border,
|
|
73
|
+
disabled = _b.disabled;
|
|
74
|
+
return _a = {
|
|
75
|
+
'k-bottom-nav': true
|
|
76
|
+
}, _a[POSITION_MODE_CLASSES[positionMode]] = true, _a[THEME_COLOR_CLASSES[themeColor]] = true, _a[FILL_CLASSES[fill]] = true, _a[ITEM_FLOW_CLASSES[itemFlow]] = true, _a['k-bottom-nav-border'] = border, _a['k-disabled'] = disabled, _a;
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
// @ts-ignore
|
|
80
|
+
setup: !isV3 ? undefined : function () {
|
|
81
|
+
var v3 = !!isV3;
|
|
82
|
+
return {
|
|
83
|
+
v3: v3
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
render: function render(createElement) {
|
|
88
|
+
var h = gh || createElement;
|
|
89
|
+
var _a = this.$props,
|
|
90
|
+
id = _a.id,
|
|
91
|
+
items = _a.items,
|
|
92
|
+
item = _a.item,
|
|
93
|
+
disabled = _a.disabled; // const dir = useDir(elementRef, props.dir);
|
|
94
|
+
|
|
95
|
+
return h("nav", {
|
|
96
|
+
"class": this.navClasses,
|
|
97
|
+
id: id || this.navId,
|
|
98
|
+
attrs: this.v3 ? undefined : {
|
|
99
|
+
id: id || this.navId
|
|
100
|
+
}
|
|
101
|
+
}, [items && items.map(function (element, index) {
|
|
102
|
+
var content = templateRendering.call(this, element.item || item, getListeners.call(this));
|
|
103
|
+
return (// @ts-ignore
|
|
104
|
+
h(BottomNavigationItem, {
|
|
105
|
+
key: index,
|
|
106
|
+
index: index,
|
|
107
|
+
attrs: this.v3 ? undefined : {
|
|
108
|
+
index: index,
|
|
109
|
+
id: "".concat(id || this.navId, "-").concat(index),
|
|
110
|
+
disabled: disabled || element.disabled,
|
|
111
|
+
selected: this.selected === index || element.selected,
|
|
112
|
+
dataItem: element,
|
|
113
|
+
item: content
|
|
114
|
+
},
|
|
115
|
+
style: element.style,
|
|
116
|
+
"class": element.class,
|
|
117
|
+
id: "".concat(id || this.navId, "-").concat(index),
|
|
118
|
+
disabled: disabled || element.disabled,
|
|
119
|
+
selected: this.selected === index || element.selected,
|
|
120
|
+
dataItem: element,
|
|
121
|
+
item: content,
|
|
122
|
+
onSelect: this.handleSelect,
|
|
123
|
+
on: this.v3 ? undefined : {
|
|
124
|
+
"select": this.handleSelect,
|
|
125
|
+
"keydown": this.handleKeyDown
|
|
126
|
+
},
|
|
127
|
+
onKeydown: this.handleKeyDown
|
|
128
|
+
})
|
|
129
|
+
);
|
|
130
|
+
}, this)]);
|
|
131
|
+
},
|
|
132
|
+
methods: {
|
|
133
|
+
focus: function focus() {
|
|
134
|
+
if (this.$el) {
|
|
135
|
+
focusFirstFocusableChild(this.$el);
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
dispatchSelectEvent: function dispatchSelectEvent(dispatchedEvent, index) {
|
|
139
|
+
if (!this.items) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (!this.items[index].disabled) {
|
|
144
|
+
this.$emit('select', {
|
|
145
|
+
event: dispatchedEvent,
|
|
146
|
+
itemTarget: this.items[index],
|
|
147
|
+
itemIndex: index
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
handleSelect: function handleSelect(event, clickedItemIndex) {
|
|
152
|
+
this.dispatchSelectEvent(event, clickedItemIndex);
|
|
153
|
+
},
|
|
154
|
+
handleKeyDown: function handleKeyDown(event, clickedItemIndex) {
|
|
155
|
+
switch (event.keyCode) {
|
|
156
|
+
case Keys.enter:
|
|
157
|
+
case Keys.space:
|
|
158
|
+
this.dispatchSelectEvent(event, clickedItemIndex);
|
|
159
|
+
event.preventDefault();
|
|
160
|
+
break;
|
|
161
|
+
|
|
162
|
+
default:
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
this.$emit('keydown', {
|
|
167
|
+
event: event,
|
|
168
|
+
itemTarget: this.items[clickedItemIndex],
|
|
169
|
+
itemIndex: clickedItemIndex
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* @hidden
|
|
176
|
+
*/
|
|
177
|
+
|
|
178
|
+
var BottomNavigation = BottomNavigationVue2;
|
|
179
|
+
export { BottomNavigation, BottomNavigationVue2 };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
import { BottomNavigationItemProps } from './BottomNavigationItemProps';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export interface BottomNavigationItemState {
|
|
11
|
+
calculatedId: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export interface BottomNavigationItemComputed {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
itemClasses: object;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export interface BottomNavigationItemMethods {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export interface BottomNavigationItemData {
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export interface BottomNavigationItemAll extends Vue2type, BottomNavigationItemMethods, BottomNavigationItemData, BottomNavigationItemComputed, BottomNavigationItemState {
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
declare let BottomNavigationItemVue2: ComponentOptions<BottomNavigationItemAll, DefaultData<BottomNavigationItemData>, DefaultMethods<BottomNavigationItemAll>, BottomNavigationItemComputed, RecordPropsDefinition<BottomNavigationItemProps>>;
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
declare const BottomNavigationItem: DefineComponent<BottomNavigationItemProps, any, BottomNavigationItemData, BottomNavigationItemComputed, BottomNavigationItemMethods, {}, {}, {}, string, BottomNavigationItemProps, BottomNavigationItemProps, {}>;
|
|
44
|
+
export { BottomNavigationItem, BottomNavigationItemVue2 };
|