@progress/kendo-vue-layout 3.7.3-dev.202211021251 → 3.7.3-dev.202211021441
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/main.d.ts +2 -0
- package/dist/es/main.js +2 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/tilelayout/ResizeHandlers.d.ts +53 -0
- package/dist/es/tilelayout/ResizeHandlers.js +79 -0
- package/dist/es/tilelayout/Tile.d.ts +51 -0
- package/dist/es/tilelayout/Tile.js +353 -0
- package/dist/es/tilelayout/TileLayout.d.ts +108 -0
- package/dist/es/tilelayout/TileLayout.js +222 -0
- package/dist/es/tilelayout/interfaces/main.d.ts +1 -1
- package/dist/esm/main.d.ts +2 -0
- package/dist/esm/main.js +2 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/tilelayout/ResizeHandlers.d.ts +53 -0
- package/dist/esm/tilelayout/ResizeHandlers.js +79 -0
- package/dist/esm/tilelayout/Tile.d.ts +51 -0
- package/dist/esm/tilelayout/Tile.js +353 -0
- package/dist/esm/tilelayout/TileLayout.d.ts +108 -0
- package/dist/esm/tilelayout/TileLayout.js +222 -0
- package/dist/esm/tilelayout/interfaces/main.d.ts +1 -1
- package/dist/npm/main.d.ts +2 -0
- package/dist/npm/main.js +2 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/tilelayout/ResizeHandlers.d.ts +53 -0
- package/dist/npm/tilelayout/ResizeHandlers.js +86 -0
- package/dist/npm/tilelayout/Tile.d.ts +51 -0
- package/dist/npm/tilelayout/Tile.js +361 -0
- package/dist/npm/tilelayout/TileLayout.d.ts +108 -0
- package/dist/npm/tilelayout/TileLayout.js +229 -0
- package/dist/npm/tilelayout/interfaces/main.d.ts +1 -1
- package/package.json +11 -11
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) {
|
|
6
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
import * as Vue from 'vue';
|
|
15
|
+
var allVue = Vue;
|
|
16
|
+
var gh = allVue.h;
|
|
17
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
|
+
import { getter, classNames, validatePackage } from '@progress/kendo-vue-common';
|
|
19
|
+
import { packageMetadata } from '../package-metadata';
|
|
20
|
+
import { Tile } from './Tile';
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
var AUTO_FLOW_CLASSES = {
|
|
25
|
+
'column': 'k-grid-flow-col',
|
|
26
|
+
'row': 'k-grid-flow-row',
|
|
27
|
+
'column dense': 'k-grid-flow-col-dense',
|
|
28
|
+
'row dense': 'k-grid-flow-row-dense',
|
|
29
|
+
'unset': 'k-grid-flow-unset'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
var TileLayoutVue2 = {
|
|
35
|
+
name: 'KendoTileLayout',
|
|
36
|
+
props: {
|
|
37
|
+
id: String,
|
|
38
|
+
dir: String,
|
|
39
|
+
gap: Object,
|
|
40
|
+
columns: Number,
|
|
41
|
+
columnWidth: [Number, String],
|
|
42
|
+
rowHeight: [Number, String],
|
|
43
|
+
dataItemKey: String,
|
|
44
|
+
items: Array,
|
|
45
|
+
positions: Array,
|
|
46
|
+
autoFlow: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: 'column',
|
|
49
|
+
validator: function validator(value) {
|
|
50
|
+
return ['column', 'row', 'column dense', 'row dense', 'unset'].includes(value);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
// onReposition: PropTypes.func,
|
|
54
|
+
// ignoreDrag: PropTypes.func
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
created: function created() {
|
|
58
|
+
validatePackage(packageMetadata);
|
|
59
|
+
},
|
|
60
|
+
computed: {
|
|
61
|
+
positions: function positions() {
|
|
62
|
+
return (this.$props.items || []).map(function (p, i) {
|
|
63
|
+
return Object.assign({
|
|
64
|
+
order: i,
|
|
65
|
+
rowSpan: 1,
|
|
66
|
+
colSpan: 1
|
|
67
|
+
}, p.defaultPosition);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
// /**
|
|
72
|
+
// * @hidden
|
|
73
|
+
// */
|
|
74
|
+
// static getDerivedStateFromProps(props: TileLayoutProps, state: TileLayoutState) {
|
|
75
|
+
// if (props.positions) {
|
|
76
|
+
// // The component is in controlled mode.
|
|
77
|
+
// return {
|
|
78
|
+
// positions: props.positions.map((p, i) => (Object.assign({ order: i, rowSpan: 1, colSpan: 1 }, p)))
|
|
79
|
+
// };
|
|
80
|
+
// }
|
|
81
|
+
// if (props.items && (!state.positions || (props.items.length !== state.positions.length))) {
|
|
82
|
+
// // The component is in uncontrolled mode.
|
|
83
|
+
// return {
|
|
84
|
+
// positions: props.items.map((p, i) => (Object.assign(
|
|
85
|
+
// { order: i, rowSpan: 1, colSpan: 1 }, p.defaultPosition)))
|
|
86
|
+
// };
|
|
87
|
+
// }
|
|
88
|
+
// return null;
|
|
89
|
+
// }
|
|
90
|
+
// /**
|
|
91
|
+
// * @hidden
|
|
92
|
+
// */
|
|
93
|
+
// update = (index: number, dOrder: number, dCol: number, dRowSpan = 0, dColSpan = 0) => {
|
|
94
|
+
// if (dOrder === 0 && dCol === 0 && !dColSpan && !dRowSpan) {
|
|
95
|
+
// return;
|
|
96
|
+
// }
|
|
97
|
+
// let shouldUpdate = false;
|
|
98
|
+
// const positions: Array<TileStrictPosition> = this.state.positions.map(p => Object.assign({}, p));
|
|
99
|
+
// // reordering:
|
|
100
|
+
// const current = positions[index];
|
|
101
|
+
// const other = positions.find(item => (item.order === current.order + dOrder));
|
|
102
|
+
// if (other && other !== current) {
|
|
103
|
+
// current.order += dOrder;
|
|
104
|
+
// other.order += -dOrder;
|
|
105
|
+
// shouldUpdate = true;
|
|
106
|
+
// }
|
|
107
|
+
// const proposedCol = current.col + dCol;
|
|
108
|
+
// if (dCol !== 0 && proposedCol >= 1 && proposedCol + current.colSpan <= (this.$props.columns || 3) + 1) {
|
|
109
|
+
// current.col = proposedCol;
|
|
110
|
+
// shouldUpdate = true;
|
|
111
|
+
// }
|
|
112
|
+
// // resizing:
|
|
113
|
+
// const proposedColSpan = current.colSpan + dColSpan;
|
|
114
|
+
// if (dColSpan && proposedColSpan >= 1 && proposedColSpan + current.col <= (this.$props.columns || 3) + 1) {
|
|
115
|
+
// current.colSpan = proposedColSpan;
|
|
116
|
+
// shouldUpdate = true;
|
|
117
|
+
// }
|
|
118
|
+
// const proposedRowSpan = current.rowSpan + dRowSpan;
|
|
119
|
+
// if (dRowSpan && proposedRowSpan >= 1) {
|
|
120
|
+
// current.rowSpan = proposedRowSpan;
|
|
121
|
+
// shouldUpdate = true;
|
|
122
|
+
// }
|
|
123
|
+
// if (shouldUpdate) {
|
|
124
|
+
// this.setState({ positions: positions });
|
|
125
|
+
// dispatchEvent(this.$props.onReposition, {} as any, this, { value: positions });
|
|
126
|
+
// }
|
|
127
|
+
// };
|
|
128
|
+
// @ts-ignore
|
|
129
|
+
setup: !isV3 ? undefined : function () {
|
|
130
|
+
var v3 = !!isV3;
|
|
131
|
+
return {
|
|
132
|
+
v3: v3
|
|
133
|
+
};
|
|
134
|
+
},
|
|
135
|
+
render: function render(createElement) {
|
|
136
|
+
var h = gh || createElement;
|
|
137
|
+
var _a = this.$props,
|
|
138
|
+
className = _a.className,
|
|
139
|
+
_b = _a.columns,
|
|
140
|
+
columns = _b === void 0 ? 3 : _b,
|
|
141
|
+
_c = _a.columnWidth,
|
|
142
|
+
columnWidth = _c === void 0 ? '1fr' : _c,
|
|
143
|
+
gap = _a.gap,
|
|
144
|
+
_d = _a.rowHeight,
|
|
145
|
+
rowHeight = _d === void 0 ? '1fr' : _d,
|
|
146
|
+
style = _a.style,
|
|
147
|
+
_e = _a.autoFlow,
|
|
148
|
+
autoFlow = _e === void 0 ? 'column' : _e,
|
|
149
|
+
_f = _a.items,
|
|
150
|
+
items = _f === void 0 ? [] : _f;
|
|
151
|
+
var gapValue = gap ? "".concat(typeof gap.rows === 'number' ? gap.rows + 'px' : gap.rows) + ' ' + "".concat(typeof gap.columns === 'number' ? gap.columns + 'px' : gap.columns) : 16;
|
|
152
|
+
var tileLayoutStyles = __assign({
|
|
153
|
+
gridTemplateColumns: "repeat(".concat(columns, ", minmax(0px, ").concat(typeof columnWidth === 'number' ? columnWidth + 'px' : columnWidth, "))"),
|
|
154
|
+
gridAutoRows: "minmax(0px, ".concat(typeof rowHeight === 'number' ? rowHeight + 'px' : rowHeight, ")"),
|
|
155
|
+
gap: gapValue,
|
|
156
|
+
padding: gapValue
|
|
157
|
+
}, style);
|
|
158
|
+
return h("div", {
|
|
159
|
+
dir: this.$props.dir,
|
|
160
|
+
attrs: this.v3 ? undefined : {
|
|
161
|
+
dir: this.$props.dir,
|
|
162
|
+
id: this.$props.id
|
|
163
|
+
},
|
|
164
|
+
"class": classNames('k-tilelayout', AUTO_FLOW_CLASSES[autoFlow], className),
|
|
165
|
+
style: tileLayoutStyles,
|
|
166
|
+
id: this.$props.id
|
|
167
|
+
}, [items.map(function (tile, index) {
|
|
168
|
+
return (
|
|
169
|
+
// @ts-ignore function children
|
|
170
|
+
h(Tile, {
|
|
171
|
+
key: this.$props.dataItemKey ? getter(this.$props.dataItemKey)(tile) : index,
|
|
172
|
+
update: this.update,
|
|
173
|
+
attrs: this.v3 ? undefined : {
|
|
174
|
+
update: this.update,
|
|
175
|
+
defaultPosition: this.state.positions[index],
|
|
176
|
+
index: index,
|
|
177
|
+
resizable: tile.resizable,
|
|
178
|
+
reorderable: tile.reorderable,
|
|
179
|
+
hintClassName: tile.hintClassName,
|
|
180
|
+
hintStyle: tile.hintStyle,
|
|
181
|
+
ignoreDrag: this.$props.ignoreDrag
|
|
182
|
+
},
|
|
183
|
+
defaultPosition: this.state.positions[index],
|
|
184
|
+
index: index,
|
|
185
|
+
resizable: tile.resizable,
|
|
186
|
+
reorderable: tile.reorderable,
|
|
187
|
+
style: tile.style,
|
|
188
|
+
"class": tile.className,
|
|
189
|
+
hintClassName: tile.hintClassName,
|
|
190
|
+
hintStyle: tile.hintStyle,
|
|
191
|
+
ignoreDrag: this.$props.ignoreDrag
|
|
192
|
+
}, this.v3 ? function () {
|
|
193
|
+
return [tile.item ? tile.item : [h("div", {
|
|
194
|
+
"class": "k-tilelayout-item-header k-card-header"
|
|
195
|
+
}, [tile.header ? tile.header : h("h5", {
|
|
196
|
+
"class": 'k-card-title'
|
|
197
|
+
}, [tile.header])]), h("div", {
|
|
198
|
+
"class": 'k-tilelayout-item-body k-card-body'
|
|
199
|
+
}, [tile.body])]];
|
|
200
|
+
} : [tile.item ? tile.item : [h("div", {
|
|
201
|
+
"class": "k-tilelayout-item-header k-card-header"
|
|
202
|
+
}, [tile.header ? tile.header : h("h5", {
|
|
203
|
+
"class": 'k-card-title'
|
|
204
|
+
}, [tile.header])]), h("div", {
|
|
205
|
+
"class": 'k-tilelayout-item-body k-card-body'
|
|
206
|
+
}, [tile.body])]])
|
|
207
|
+
);
|
|
208
|
+
}, this)]);
|
|
209
|
+
},
|
|
210
|
+
methods: {
|
|
211
|
+
focus: function focus() {
|
|
212
|
+
if (this.$el) {
|
|
213
|
+
this.$el.focus();
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* @hidden
|
|
220
|
+
*/
|
|
221
|
+
var TileLayout = TileLayoutVue2;
|
|
222
|
+
export { TileLayout, TileLayoutVue2 };
|
|
@@ -39,7 +39,7 @@ export interface TileLayoutItem {
|
|
|
39
39
|
* ([see example]({% slug tiles_tilelayout %}#toc-resizing)).
|
|
40
40
|
* If `resizable` is not specified, the resizing of the TileLayoutItem will be enabled for both directions.
|
|
41
41
|
*/
|
|
42
|
-
resizable?: TileResizeMode;
|
|
42
|
+
resizable?: TileResizeMode | string | boolean;
|
|
43
43
|
/**
|
|
44
44
|
* Specifies if the user is allowed to reorder the TileLayoutItem by dragging and dropping it
|
|
45
45
|
* ([see example]({% slug tiles_tilelayout %}#toc-reordering)).
|
package/dist/esm/main.d.ts
CHANGED
|
@@ -47,6 +47,8 @@ export * from './panelbar/interfaces/PanelBarProps';
|
|
|
47
47
|
export * from './panelbar/interfaces/PanelBarItemProps';
|
|
48
48
|
export * from './panelbar/interfaces/RenderPanelBarItem';
|
|
49
49
|
export * from './panelbar/interfaces/PanelBarSelectEventArguments';
|
|
50
|
+
export * from './tilelayout/TileLayout';
|
|
51
|
+
export * from './tilelayout/interfaces/main';
|
|
50
52
|
export * from './appbar/AppBar';
|
|
51
53
|
export * from './appbar/interfaces/AppBarProps';
|
|
52
54
|
export * from './appbar/AppBarSection';
|
package/dist/esm/main.js
CHANGED
|
@@ -47,6 +47,8 @@ export * from './panelbar/interfaces/PanelBarProps.js';
|
|
|
47
47
|
export * from './panelbar/interfaces/PanelBarItemProps.js';
|
|
48
48
|
export * from './panelbar/interfaces/RenderPanelBarItem.js';
|
|
49
49
|
export * from './panelbar/interfaces/PanelBarSelectEventArguments.js';
|
|
50
|
+
export * from './tilelayout/TileLayout.js';
|
|
51
|
+
export * from './tilelayout/interfaces/main.js';
|
|
50
52
|
export * from './appbar/AppBar.js';
|
|
51
53
|
export * from './appbar/interfaces/AppBarProps.js';
|
|
52
54
|
export * from './appbar/AppBarSection.js';
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-layout',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1667399417,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
2
|
+
declare type DefaultMethods<V> = {
|
|
3
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
4
|
+
};
|
|
5
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export interface ResizeHandlersProps {
|
|
10
|
+
resizable: string | boolean;
|
|
11
|
+
onResize?: (e: any, args: {
|
|
12
|
+
end: boolean;
|
|
13
|
+
direction: any;
|
|
14
|
+
}) => void;
|
|
15
|
+
onPress?: (e: any) => void;
|
|
16
|
+
rtl: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
interface ResizeHandlersState {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
interface ResizeHandlersData {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export interface ResizeHandlersMethods {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
export interface ResizeHandlersComputed {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
export interface ResizeHandlersAll extends ResizeHandlersMethods, ResizeHandlersState, ResizeHandlersData, ResizeHandlersComputed, Vue2type {
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
declare const ResizeHandlersVue2: ComponentOptions<Vue2type, DefaultData<ResizeHandlersData>, DefaultMethods<ResizeHandlersAll>, ResizeHandlersComputed, RecordPropsDefinition<ResizeHandlersProps>>;
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
declare const ResizeHandlers: DefineComponent<ResizeHandlersProps, any, ResizeHandlersData, ResizeHandlersComputed, ResizeHandlersMethods, {}, {}, {}, string, ResizeHandlersProps, ResizeHandlersProps, {}>;
|
|
53
|
+
export { ResizeHandlers, ResizeHandlersVue2 };
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
var ResizeHandlersVue2 = {
|
|
10
|
+
name: 'KendoResizeHandlers',
|
|
11
|
+
props: {
|
|
12
|
+
resizable: [String, Boolean],
|
|
13
|
+
rtl: Boolean
|
|
14
|
+
},
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
setup: !isV3 ? undefined : function () {
|
|
17
|
+
var v3 = !!isV3;
|
|
18
|
+
return {
|
|
19
|
+
v3: v3
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
render: function render(createElement) {
|
|
23
|
+
var h = gh || createElement;
|
|
24
|
+
var _a = this.$props,
|
|
25
|
+
resizable = _a.resizable,
|
|
26
|
+
onPress = _a.onPress,
|
|
27
|
+
rtl = _a.rtl;
|
|
28
|
+
if (!resizable) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
// const Handle = (props: { onResize: any; style: {}; d: string; onPress: any }) => (
|
|
32
|
+
// // @ts-ignore
|
|
33
|
+
// <Draggable
|
|
34
|
+
// onPress={props.onPress}
|
|
35
|
+
// onDrag={(data: any) => { props.onResize(data.event, false, props.d); }}
|
|
36
|
+
// onRelease={(data: any) => { props.onResize(data.event, true, props.d); }}
|
|
37
|
+
// >
|
|
38
|
+
// <div className={'k-resize-handle k-cursor-' + props.d + '-resize'}
|
|
39
|
+
// style={{ bottom: 0, right: 0, ...props.style }} />
|
|
40
|
+
// </Draggable>
|
|
41
|
+
// );
|
|
42
|
+
return h("div")
|
|
43
|
+
// <React.Fragment>
|
|
44
|
+
// {resizable !== 'vertical' && (
|
|
45
|
+
// <Handle
|
|
46
|
+
// onPress={onPress}
|
|
47
|
+
// onResize={this.handleResize}
|
|
48
|
+
// d="ew"
|
|
49
|
+
// style={rtl ? { top: 0, width: 9, left: 0, right: '' } : { top: 0, width: 9, right: 0, left: '' }}
|
|
50
|
+
// />
|
|
51
|
+
// )}
|
|
52
|
+
// {resizable !== 'horizontal' && (
|
|
53
|
+
// <Handle onPress={onPress} onResize={this.handleResize} d="ns" style={{ left: 0, height: 9 }} />)}
|
|
54
|
+
// {(resizable === true) && (
|
|
55
|
+
// <Handle
|
|
56
|
+
// onPress={onPress}
|
|
57
|
+
// onResize={this.handleResize}
|
|
58
|
+
// d={rtl ? 'nesw' : 'nwse'}
|
|
59
|
+
// style={rtl ? { width: 9, height: 9, right: '', left: 0 } : { width: 9, height: 9, right: 0, left: '' }}
|
|
60
|
+
// />)}
|
|
61
|
+
// </React.Fragment>
|
|
62
|
+
;
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
methods: {
|
|
66
|
+
handleResize: function handleResize(event, isEnd, direction) {
|
|
67
|
+
event.originalEvent.preventDefault();
|
|
68
|
+
this.$props.onResize(event, {
|
|
69
|
+
end: isEnd,
|
|
70
|
+
direction: direction
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* @hidden
|
|
77
|
+
*/
|
|
78
|
+
var ResizeHandlers = ResizeHandlersVue2;
|
|
79
|
+
export { ResizeHandlers, ResizeHandlersVue2 };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
2
|
+
declare type DefaultMethods<V> = {
|
|
3
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
4
|
+
};
|
|
5
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
6
|
+
import { TileStrictPosition, TileLayoutItem } from './interfaces/main';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export interface TileProps extends TileLayoutItem {
|
|
11
|
+
update?: (index: number, dRow: number, dCol: number, row: number, col: number) => void;
|
|
12
|
+
index: number;
|
|
13
|
+
defaultPosition: TileStrictPosition;
|
|
14
|
+
ignoreDrag?: (event: any) => boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
interface TileState {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
interface TileData {
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export interface TileMethods {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
export interface TileComputed {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
export interface TileAll extends TileMethods, TileState, TileData, TileComputed, Vue2type {
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
46
|
+
declare const TileVue2: ComponentOptions<Vue2type, DefaultData<TileData>, DefaultMethods<TileAll>, TileComputed, RecordPropsDefinition<TileProps>>;
|
|
47
|
+
/**
|
|
48
|
+
* @hidden
|
|
49
|
+
*/
|
|
50
|
+
declare const Tile: DefineComponent<TileProps, any, TileData, TileComputed, TileMethods, {}, {}, {}, string, TileProps, TileProps, {}>;
|
|
51
|
+
export { Tile, TileVue2 };
|