@progress/kendo-vue-layout 3.8.4-dev.202302221027 → 3.8.4-dev.202302231256

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.
Files changed (59) hide show
  1. package/dist/cdn/js/kendo-vue-layout.js +1 -1
  2. package/dist/es/gridlayout/GridLayout.d.ts +44 -0
  3. package/dist/es/gridlayout/GridLayout.js +125 -0
  4. package/dist/es/gridlayout/GridLayoutItem.d.ts +47 -0
  5. package/dist/es/gridlayout/GridLayoutItem.js +69 -0
  6. package/dist/es/gridlayout/interfaces/GridLayoutColumnProps.d.ts +10 -0
  7. package/dist/es/gridlayout/interfaces/GridLayoutColumnProps.js +1 -0
  8. package/dist/es/gridlayout/interfaces/GridLayoutItemProps.d.ts +39 -0
  9. package/dist/es/gridlayout/interfaces/GridLayoutItemProps.js +1 -0
  10. package/dist/es/gridlayout/interfaces/GridLayoutProps.d.ts +94 -0
  11. package/dist/es/gridlayout/interfaces/GridLayoutProps.js +1 -0
  12. package/dist/es/gridlayout/interfaces/GridLayoutRowProps.d.ts +10 -0
  13. package/dist/es/gridlayout/interfaces/GridLayoutRowProps.js +1 -0
  14. package/dist/es/main.d.ts +8 -0
  15. package/dist/es/main.js +8 -0
  16. package/dist/es/package-metadata.js +1 -1
  17. package/dist/es/stacklayout/StackLayout.d.ts +44 -0
  18. package/dist/es/stacklayout/StackLayout.js +93 -0
  19. package/dist/es/stacklayout/StackLayoutProps.d.ts +75 -0
  20. package/dist/es/stacklayout/StackLayoutProps.js +1 -0
  21. package/dist/esm/gridlayout/GridLayout.d.ts +44 -0
  22. package/dist/esm/gridlayout/GridLayout.js +125 -0
  23. package/dist/esm/gridlayout/GridLayoutItem.d.ts +47 -0
  24. package/dist/esm/gridlayout/GridLayoutItem.js +69 -0
  25. package/dist/esm/gridlayout/interfaces/GridLayoutColumnProps.d.ts +10 -0
  26. package/dist/esm/gridlayout/interfaces/GridLayoutColumnProps.js +1 -0
  27. package/dist/esm/gridlayout/interfaces/GridLayoutItemProps.d.ts +39 -0
  28. package/dist/esm/gridlayout/interfaces/GridLayoutItemProps.js +1 -0
  29. package/dist/esm/gridlayout/interfaces/GridLayoutProps.d.ts +94 -0
  30. package/dist/esm/gridlayout/interfaces/GridLayoutProps.js +1 -0
  31. package/dist/esm/gridlayout/interfaces/GridLayoutRowProps.d.ts +10 -0
  32. package/dist/esm/gridlayout/interfaces/GridLayoutRowProps.js +1 -0
  33. package/dist/esm/main.d.ts +8 -0
  34. package/dist/esm/main.js +8 -0
  35. package/dist/esm/package-metadata.js +1 -1
  36. package/dist/esm/stacklayout/StackLayout.d.ts +44 -0
  37. package/dist/esm/stacklayout/StackLayout.js +93 -0
  38. package/dist/esm/stacklayout/StackLayoutProps.d.ts +75 -0
  39. package/dist/esm/stacklayout/StackLayoutProps.js +1 -0
  40. package/dist/npm/gridlayout/GridLayout.d.ts +44 -0
  41. package/dist/npm/gridlayout/GridLayout.js +132 -0
  42. package/dist/npm/gridlayout/GridLayoutItem.d.ts +47 -0
  43. package/dist/npm/gridlayout/GridLayoutItem.js +76 -0
  44. package/dist/npm/gridlayout/interfaces/GridLayoutColumnProps.d.ts +10 -0
  45. package/dist/npm/gridlayout/interfaces/GridLayoutColumnProps.js +2 -0
  46. package/dist/npm/gridlayout/interfaces/GridLayoutItemProps.d.ts +39 -0
  47. package/dist/npm/gridlayout/interfaces/GridLayoutItemProps.js +2 -0
  48. package/dist/npm/gridlayout/interfaces/GridLayoutProps.d.ts +94 -0
  49. package/dist/npm/gridlayout/interfaces/GridLayoutProps.js +2 -0
  50. package/dist/npm/gridlayout/interfaces/GridLayoutRowProps.d.ts +10 -0
  51. package/dist/npm/gridlayout/interfaces/GridLayoutRowProps.js +2 -0
  52. package/dist/npm/main.d.ts +8 -0
  53. package/dist/npm/main.js +8 -0
  54. package/dist/npm/package-metadata.js +1 -1
  55. package/dist/npm/stacklayout/StackLayout.d.ts +44 -0
  56. package/dist/npm/stacklayout/StackLayout.js +100 -0
  57. package/dist/npm/stacklayout/StackLayoutProps.d.ts +75 -0
  58. package/dist/npm/stacklayout/StackLayoutProps.js +2 -0
  59. package/package.json +13 -13
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-layout',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1677060858,
11
+ publishDate: 1677156185,
12
12
  version: '',
13
13
  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'
14
14
  };
@@ -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 { StackLayoutProps } from './StackLayoutProps';
7
+ /**
8
+ * @hidden
9
+ */
10
+ export interface StackLayoutData {
11
+ }
12
+ /**
13
+ * @hidden
14
+ */
15
+ export interface StackLayoutState {
16
+ v3: boolean;
17
+ }
18
+ /**
19
+ * @hidden
20
+ */
21
+ export interface StackLayoutMethods {
22
+ [key: string]: any;
23
+ }
24
+ /**
25
+ * @hidden
26
+ */
27
+ export interface StackLayoutComputed {
28
+ [key: string]: any;
29
+ }
30
+ /**
31
+ * @hidden
32
+ */
33
+ export interface StackLayoutAll extends Vue2type, StackLayoutMethods, StackLayoutState, StackLayoutData, StackLayoutComputed {
34
+ }
35
+ /**
36
+ * @hidden
37
+ */
38
+ declare let StackLayoutVue2: ComponentOptions<StackLayoutAll, DefaultData<StackLayoutData>, DefaultMethods<StackLayoutAll>, StackLayoutComputed, RecordPropsDefinition<StackLayoutProps>>;
39
+ /**
40
+ * Represents the [Kendo UI for Vue StackLayout component]({% slug overview_stacklayout %}).
41
+ * Arranges its inner elements horizontally, or vertically in a stack. Nesting stack layouts is supported to build more complex layouts.
42
+ */
43
+ declare const StackLayout: DefineComponent<StackLayoutProps, any, StackLayoutData, StackLayoutComputed, StackLayoutMethods, {}, {}, {}, string, StackLayoutProps, StackLayoutProps, {}>;
44
+ export { StackLayout, StackLayoutVue2 };
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.StackLayoutVue2 = exports.StackLayout = void 0;
7
+ // @ts-ignore
8
+ var Vue = require("vue");
9
+ var allVue = Vue;
10
+ var gh = allVue.h;
11
+ var isV3 = allVue.version && allVue.version[0] === '3';
12
+ var kendo_licensing_1 = require("@progress/kendo-licensing");
13
+ var package_metadata_1 = require("../package-metadata");
14
+ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
15
+ /**
16
+ * @hidden
17
+ */
18
+ var StackLayoutVue2 = {
19
+ name: 'KendoStackLayout',
20
+ props: {
21
+ id: String,
22
+ orientation: {
23
+ type: String,
24
+ default: 'horizontal',
25
+ validator: function validator(value) {
26
+ return ['horizontal', 'vertical'].includes(value);
27
+ }
28
+ },
29
+ gap: {
30
+ type: [String, Number]
31
+ },
32
+ align: {
33
+ type: Object,
34
+ validator: function validator(value) {
35
+ return ['top', 'middle', 'bottom', 'stretch'].includes(value.vertical) && ['start', 'center', 'end', 'stretch'].includes(value.horizontal);
36
+ }
37
+ }
38
+ },
39
+ created: function created() {
40
+ (0, kendo_licensing_1.validatePackage)(package_metadata_1.packageMetadata);
41
+ this.layoutId = (0, kendo_vue_common_1.guid)();
42
+ },
43
+ computed: {
44
+ hAlign: function hAlign() {
45
+ return this.$props.align && this.$props.align.horizontal ? this.$props.align.horizontal : 'stretch';
46
+ },
47
+ vAlign: function vAlign() {
48
+ return this.$props.align && this.$props.align.vertical ? this.$props.align.vertical : 'stretch';
49
+ },
50
+ stackLayoutClasses: function stackLayoutClasses() {
51
+ var orientation = this.$props.orientation;
52
+ var isHorizontal = orientation === 'horizontal';
53
+ return {
54
+ 'k-stack-layout': true,
55
+ 'k-hstack': orientation === 'horizontal',
56
+ 'k-vstack': orientation === 'vertical',
57
+ 'k-justify-content-start': isHorizontal && this.hAlign === 'start' || !isHorizontal && this.vAlign === 'top',
58
+ 'k-justify-content-center': isHorizontal && this.hAlign === 'center' || !isHorizontal && this.vAlign === 'middle',
59
+ 'k-justify-content-end': isHorizontal && this.hAlign === 'end' || !isHorizontal && this.vAlign === 'bottom',
60
+ 'k-justify-content-stretch': isHorizontal && this.hAlign === 'stretch' || !isHorizontal && this.vAlign === 'stretch',
61
+ 'k-align-items-start': !isHorizontal && this.hAlign === 'start' || isHorizontal && this.vAlign === 'top',
62
+ 'k-align-items-center': !isHorizontal && this.hAlign === 'center' || isHorizontal && this.vAlign === 'middle',
63
+ 'k-align-items-end': !isHorizontal && this.hAlign === 'end' || isHorizontal && this.vAlign === 'bottom',
64
+ 'k-align-items-stretch': !isHorizontal && this.hAlign === 'stretch' || isHorizontal && this.vAlign === 'stretch'
65
+ };
66
+ },
67
+ stackLayoutStyles: function stackLayoutStyles() {
68
+ return {
69
+ gap: "".concat(typeof this.$props.gap === 'number' ? this.$props.gap + 'px' : this.$props.gap)
70
+ };
71
+ }
72
+ },
73
+ // @ts-ignore
74
+ setup: !isV3 ? undefined : function () {
75
+ var v3 = !!isV3;
76
+ return {
77
+ v3: v3
78
+ };
79
+ },
80
+ render: function render(createElement) {
81
+ var h = gh || createElement;
82
+ var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
83
+ var id = this.$props.id;
84
+ return h("div", {
85
+ "class": this.stackLayoutClasses,
86
+ style: this.stackLayoutStyles,
87
+ id: id || this.layoutId,
88
+ attrs: this.v3 ? undefined : {
89
+ id: id || this.layoutId
90
+ }
91
+ }, [defaultSlot]);
92
+ }
93
+ };
94
+ exports.StackLayoutVue2 = StackLayoutVue2;
95
+ /**
96
+ * Represents the [Kendo UI for Vue StackLayout component]({% slug overview_stacklayout %}).
97
+ * Arranges its inner elements horizontally, or vertically in a stack. Nesting stack layouts is supported to build more complex layouts.
98
+ */
99
+ var StackLayout = StackLayoutVue2;
100
+ exports.StackLayout = StackLayout;
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Represents the props of the [Kendo UI for Vue StackLayout component]({% slug overview_stacklayout %}).
3
+ */
4
+ export interface StackLayoutProps {
5
+ /**
6
+ * Sets the `id` property of the root StackLayout element.
7
+ */
8
+ id?: string;
9
+ /**
10
+ * Specifies the gap between the inner elements ([see example]({% slug layout_stacklayout %}#toc-gaps)).
11
+ */
12
+ gap?: number | string;
13
+ /**
14
+ * Specifies the orientation of the StackLayout.
15
+ * ([see example]({% slug layout_stacklayout %}#toc-orientation)).
16
+ *
17
+ * The possible values are:
18
+ * * (Default)`horizontal`
19
+ * * `vertical`
20
+ */
21
+ orientation?: StackLayoutOrientation | string;
22
+ /**
23
+ * Specifies the horizontal and vertical alignment of the inner StackLayout elements.
24
+ * Demo ([here]({% slug layout_stacklayout %}#toc-horizontal-align)) and ([here]({% slug layout_stacklayout %}#toc-vertical-align)).
25
+ *
26
+ * The possible keys are:
27
+ * * `horizontal`&mdash;Defines the possible horizontal alignment of the inner StackLayout elements.
28
+ * * `start`&mdash;Uses the start point of the container.
29
+ * * `center`&mdash;Uses the central point of the container.
30
+ * * `end`&mdash;Uses the end point of the container.
31
+ * * (Default)`stretch`&mdash;Stretches the items to fill the width of the container.
32
+ * * `vertical`&mdash;Defines the possible vertical alignment of the inner StackLayout elements.
33
+ * * `top`&mdash;Uses the top point of the container.
34
+ * * `middle`&mdash;Uses the middle point of the container.
35
+ * * `bottom`&mdash;Uses the bottom point of the container.
36
+ * * (Default)`stretch`&mdash;Stretches the items to fill the height of the container.
37
+ */
38
+ align?: StackLayoutAlign;
39
+ }
40
+ /**
41
+ * Specifies the orientation of the StackLayout ([see example]({% slug layout_stacklayout %}#toc-orientation)).
42
+ *
43
+ * The possible values are:
44
+ * * (Default)`horizontal`
45
+ * * `vertical`
46
+ *
47
+ */
48
+ export declare type StackLayoutOrientation = 'horizontal' | 'vertical';
49
+ /**
50
+ * Specifies the horizontal and vertical alignment of the inner StackLayout elements.
51
+ */
52
+ export interface StackLayoutAlign {
53
+ /**
54
+ * Defines the possible horizontal alignment of the inner StackLayout elements
55
+ * ([see example]({% slug layout_stacklayout %}#toc-horizontal-align)).
56
+ *
57
+ * The available values are:
58
+ * - `start`&mdash;Uses the start point of the container.
59
+ * - `center`&mdash;Uses the center point of the container.
60
+ * - `end`&mdash;Uses the end point of the container.
61
+ * - (Default)`stretch`&mdash;Stretches the items to fill the width of the container.
62
+ */
63
+ horizontal?: 'start' | 'center' | 'end' | 'stretch';
64
+ /**
65
+ * Defines the possible vertical alignment of the inner StackLayout elements
66
+ * ([see example]({% slug layout_stacklayout %}#toc-vertical-align)).
67
+ *
68
+ * The available values are:
69
+ * - `top`&mdash;Uses the top point of the container.
70
+ * - `middle`&mdash;Uses the middle point of the container.
71
+ * - `bottom`&mdash;Uses the bottom point of the container.
72
+ * - (Default)`stretch`&mdash;Stretches the items to fill the height of the container.
73
+ */
74
+ vertical?: 'top' | 'middle' | 'bottom' | 'stretch';
75
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-layout",
3
3
  "description": "Kendo UI for Vue Layouts package",
4
- "version": "3.8.4-dev.202302221027",
4
+ "version": "3.8.4-dev.202302231256",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -44,9 +44,9 @@
44
44
  "vue": "^2.6.12 || ^3.0.2"
45
45
  },
46
46
  "dependencies": {
47
- "@progress/kendo-vue-animation": "3.8.4-dev.202302221027",
48
- "@progress/kendo-vue-common": "3.8.4-dev.202302221027",
49
- "@progress/kendo-vue-popup": "3.8.4-dev.202302221027"
47
+ "@progress/kendo-vue-animation": "3.8.4-dev.202302231256",
48
+ "@progress/kendo-vue-common": "3.8.4-dev.202302231256",
49
+ "@progress/kendo-vue-popup": "3.8.4-dev.202302231256"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@progress/kendo-data-query": "^1.5.0",
@@ -54,15 +54,15 @@
54
54
  "@progress/kendo-drawing": "^1.8.0",
55
55
  "@progress/kendo-licensing": "^1.3.0",
56
56
  "@progress/kendo-svg-icons": "^1.0.0",
57
- "@progress/kendo-vue-buttons": "3.8.4-dev.202302221027",
58
- "@progress/kendo-vue-charts": "3.8.4-dev.202302221027",
59
- "@progress/kendo-vue-dateinputs": "3.8.4-dev.202302221027",
60
- "@progress/kendo-vue-dropdowns": "3.8.4-dev.202302221027",
61
- "@progress/kendo-vue-grid": "3.8.4-dev.202302221027",
62
- "@progress/kendo-vue-indicators": "3.8.4-dev.202302221027",
63
- "@progress/kendo-vue-inputs": "3.8.4-dev.202302221027",
64
- "@progress/kendo-vue-intl": "3.8.4-dev.202302221027",
65
- "@progress/kendo-vue-progressbars": "3.8.4-dev.202302221027"
57
+ "@progress/kendo-vue-buttons": "3.8.4-dev.202302231256",
58
+ "@progress/kendo-vue-charts": "3.8.4-dev.202302231256",
59
+ "@progress/kendo-vue-dateinputs": "3.8.4-dev.202302231256",
60
+ "@progress/kendo-vue-dropdowns": "3.8.4-dev.202302231256",
61
+ "@progress/kendo-vue-grid": "3.8.4-dev.202302231256",
62
+ "@progress/kendo-vue-indicators": "3.8.4-dev.202302231256",
63
+ "@progress/kendo-vue-inputs": "3.8.4-dev.202302231256",
64
+ "@progress/kendo-vue-intl": "3.8.4-dev.202302231256",
65
+ "@progress/kendo-vue-progressbars": "3.8.4-dev.202302231256"
66
66
  },
67
67
  "@progress": {
68
68
  "friendlyName": "Layouts",