@progress/kendo-vue-buttons 7.0.1-develop.2 → 7.0.1-develop.3
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/Button.js +1 -1
- package/Button.mjs +42 -38
- package/Chip/Chip.js +1 -1
- package/Chip/Chip.mjs +5 -5
- package/Chip/ChipList.js +1 -1
- package/Chip/ChipList.mjs +41 -37
- package/FloatingActionButton/FloatingActionButton.js +1 -1
- package/FloatingActionButton/FloatingActionButton.mjs +45 -41
- package/FloatingActionButton/FloatingActionButtonItem.js +1 -1
- package/FloatingActionButton/FloatingActionButtonItem.mjs +14 -14
- package/ListButton/ButtonItem.js +1 -1
- package/ListButton/ButtonItem.mjs +16 -16
- package/ListButton/DropDownButton.js +1 -1
- package/ListButton/DropDownButton.mjs +41 -34
- package/ListButton/SplitButton.js +1 -1
- package/ListButton/SplitButton.mjs +47 -38
- package/dist/cdn/js/kendo-vue-buttons.js +1 -1
- package/index.d.mts +193 -96
- package/index.d.ts +193 -96
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +5 -5
- package/toolbar/Toolbar.js +1 -1
- package/toolbar/Toolbar.mjs +6 -3
- package/toolbar/tools/ToolbarOverflowSection.js +1 -1
- package/toolbar/tools/ToolbarOverflowSection.mjs +11 -9
- package/toolbar/tools/ToolbarScrollButton.js +1 -1
- package/toolbar/tools/ToolbarScrollButton.mjs +7 -5
- package/toolbar/tools/ToolbarScrollable.js +1 -1
- package/toolbar/tools/ToolbarScrollable.mjs +12 -10
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { defineComponent as m, createVNode as o, Fragment as r } from "vue";
|
|
9
9
|
import { Popup as f } from "@progress/kendo-vue-popup";
|
|
10
10
|
import { ToolbarSeparator as c } from "./ToolbarSeparator.mjs";
|
|
11
|
-
import { Button as
|
|
12
|
-
import { moreHorizontalIcon as
|
|
11
|
+
import { Button as d } from "../../Button.mjs";
|
|
12
|
+
import { moreHorizontalIcon as b } from "@progress/kendo-svg-icons";
|
|
13
13
|
import { provideLocalizationService as h } from "@progress/kendo-vue-intl";
|
|
14
14
|
import { moreButtonTitle as i, messages as u } from "../messages/index.mjs";
|
|
15
15
|
import { kendoThemeMaps as g } from "@progress/kendo-vue-common";
|
|
@@ -25,7 +25,9 @@ const C = /* @__PURE__ */ m({
|
|
|
25
25
|
opened: Boolean,
|
|
26
26
|
allTools: Array
|
|
27
27
|
},
|
|
28
|
-
emits:
|
|
28
|
+
emits: {
|
|
29
|
+
toggleoverflow: (e) => !0
|
|
30
|
+
},
|
|
29
31
|
inject: {
|
|
30
32
|
kendoLocalizationService: {
|
|
31
33
|
default: null
|
|
@@ -42,22 +44,22 @@ const C = /* @__PURE__ */ m({
|
|
|
42
44
|
overFlowTools: s,
|
|
43
45
|
allTools: t
|
|
44
46
|
} = this.$props, {
|
|
45
|
-
toolbarRef:
|
|
47
|
+
toolbarRef: n,
|
|
46
48
|
toolbarWidth: l,
|
|
47
|
-
fillMode:
|
|
49
|
+
fillMode: a,
|
|
48
50
|
size: p
|
|
49
51
|
} = this.$props;
|
|
50
52
|
return o(r, null, [e && [...t].splice(0, e.length), s.length > 0 && o(r, null, [o(c, {
|
|
51
53
|
class: "k-toolbar-button-separator"
|
|
52
|
-
}, null), o(
|
|
54
|
+
}, null), o(d, {
|
|
53
55
|
ref: "buttonRef",
|
|
54
56
|
class: "k-toolbar-overflow-button",
|
|
55
57
|
fillMode: "flat",
|
|
56
|
-
svgIcon:
|
|
58
|
+
svgIcon: b,
|
|
57
59
|
title: h(this).toLanguageString(i, u[i]),
|
|
58
60
|
onClick: this.handleClick
|
|
59
61
|
}, null), o(f, {
|
|
60
|
-
anchor:
|
|
62
|
+
anchor: n,
|
|
61
63
|
show: this.$props.opened,
|
|
62
64
|
popupClass: "k-toolbar-popup",
|
|
63
65
|
key: l,
|
|
@@ -66,7 +68,7 @@ const C = /* @__PURE__ */ m({
|
|
|
66
68
|
}
|
|
67
69
|
}, {
|
|
68
70
|
default: () => [o("span", {
|
|
69
|
-
class: `k-toolbar-items-list k-toolbar-items-list-${g.sizeMap[p]} k-toolbar-items-list-${
|
|
71
|
+
class: `k-toolbar-items-list k-toolbar-items-list-${g.sizeMap[p]} k-toolbar-items-list-${a}`
|
|
70
72
|
}, [e && [...t].splice(e.length, t.length)])]
|
|
71
73
|
})])]);
|
|
72
74
|
}
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),s=require("@progress/kendo-vue-common"),e=require("../messages/index.js"),c=require("@progress/kendo-svg-icons"),r=require("@progress/kendo-vue-intl"),u=i.defineComponent({name:"KendoToolbarScrollButton",props:{buttonScrollSpeed:Number,disabled:Boolean,scrollContentRef:Object,type:String,prevButton:Object,nextButton:Object,dir:String},inject:{kendoLocalizationService:{default:null}},emits:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),s=require("@progress/kendo-vue-common"),e=require("../messages/index.js"),c=require("@progress/kendo-svg-icons"),r=require("@progress/kendo-vue-intl"),u=i.defineComponent({name:"KendoToolbarScrollButton",props:{buttonScrollSpeed:Number,disabled:Boolean,scrollContentRef:Object,type:String,prevButton:Object,nextButton:Object,dir:String},inject:{kendoLocalizationService:{default:null}},emits:{contentscroll:o=>!0},methods:{getScrollButtonTitle(){const{dir:o,type:t}=this.$props;return o!=="rtl"?t==="prev"?r.provideLocalizationService(this).toLanguageString(e.prevArrowTitle,e.messages[e.prevArrowTitle]):r.provideLocalizationService(this).toLanguageString(e.nextArrowTitle,e.messages[e.nextArrowTitle]):t==="prev"?r.provideLocalizationService(this).toLanguageString(e.nextArrowTitle,e.messages[e.nextArrowTitle]):r.provideLocalizationService(this).toLanguageString(e.prevArrowTitle,e.messages[e.prevArrowTitle])}},render(){const{disabled:o,type:t,scrollContentRef:l,buttonScrollSpeed:n,prevButton:d,nextButton:p}=this.$props,a=()=>{l&&n&&(l.scrollBy({left:t==="next"?n:-n,behavior:"smooth"}),this.$emit("contentscroll",t))};return i.createVNode("span",{class:s.classNames("k-button","k-button-md","k-button-solid","k-button-solid-base","k-rounded-md","k-icon-button",`k-toolbar-${t}`,{"k-disabled":o}),title:this.getScrollButtonTitle(),"aria-hidden":!0,tabindex:o?-1:void 0,onClick:a},[i.createVNode(s.SvgIcon,{icon:t==="prev"?c.caretAltLeftIcon:c.caretAltRightIcon,class:"k-button-icon"},null)])}});exports.ToolbarScrollButton=u;
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as
|
|
9
|
-
import { classNames as
|
|
8
|
+
import { defineComponent as u, createVNode as c } from "vue";
|
|
9
|
+
import { classNames as d, SvgIcon as p } from "@progress/kendo-vue-common";
|
|
10
10
|
import { prevArrowTitle as e, messages as n, nextArrowTitle as r } from "../messages/index.mjs";
|
|
11
11
|
import { caretAltLeftIcon as b, caretAltRightIcon as m } from "@progress/kendo-svg-icons";
|
|
12
12
|
import { provideLocalizationService as l } from "@progress/kendo-vue-intl";
|
|
13
|
-
const L = /* @__PURE__ */
|
|
13
|
+
const L = /* @__PURE__ */ u({
|
|
14
14
|
name: "KendoToolbarScrollButton",
|
|
15
15
|
props: {
|
|
16
16
|
buttonScrollSpeed: Number,
|
|
@@ -26,7 +26,9 @@ const L = /* @__PURE__ */ d({
|
|
|
26
26
|
default: null
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
emits:
|
|
29
|
+
emits: {
|
|
30
|
+
contentscroll: (o) => !0
|
|
31
|
+
},
|
|
30
32
|
methods: {
|
|
31
33
|
getScrollButtonTitle() {
|
|
32
34
|
const {
|
|
@@ -54,7 +56,7 @@ const L = /* @__PURE__ */ d({
|
|
|
54
56
|
// Using span instead of real Button component is intentional.
|
|
55
57
|
// Ref: https://progresssoftware.atlassian.net/wiki/spaces/DE/pages/edit-v2/544997922#Hidden-interactive-elements
|
|
56
58
|
c("span", {
|
|
57
|
-
class:
|
|
59
|
+
class: d("k-button", "k-button-md", "k-button-solid", "k-button-solid-base", "k-rounded-md", "k-icon-button", `k-toolbar-${t}`, {
|
|
58
60
|
"k-disabled": o
|
|
59
61
|
}),
|
|
60
62
|
title: this.getScrollButtonTitle(),
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),s=require("./ToolbarSeparator.js"),m=require("./ToolbarScrollButton.js"),B=t.defineComponent({name:"ToolbarScrollable",props:{scrollButtons:String,scrollButtonsPosition:String,isOverflowing:Boolean,buttonScrollSpeed:Number,dir:String,isScrollStartPosition:Boolean,isScrollEndPosition:Boolean,prevButton:Object,nextButton:Object,toolbarItems:Object},emits:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),s=require("./ToolbarSeparator.js"),m=require("./ToolbarScrollButton.js"),B=t.defineComponent({name:"ToolbarScrollable",props:{scrollButtons:String,scrollButtonsPosition:String,isOverflowing:Boolean,buttonScrollSpeed:Number,dir:String,isScrollStartPosition:Boolean,isScrollEndPosition:Boolean,prevButton:Object,nextButton:Object,toolbarItems:Object},emits:{contentscroll:r=>!0},data(){return{scrollContentRef:null}},mounted(){this.scrollContentRef=this.$refs.scrollContentRef},methods:{onContentScroll(r){this.$emit("contentscroll",r)}},render(){const{scrollButtons:r,buttonScrollSpeed:i,prevButton:u,nextButton:b,scrollButtonsPosition:l,dir:o,isScrollStartPosition:a,isScrollEndPosition:c,toolbarItems:p}=this.$props,e=(S,d)=>t.createVNode(m.ToolbarScrollButton,{type:S,dir:o,disabled:d,scrollContentRef:this.scrollContentRef,buttonScrollSpeed:i,prevButton:u,nextButton:b,onContentscroll:this.onContentScroll},null),n=r==="visible"||r==="auto"&&this.$props.isOverflowing;return t.createVNode(t.Fragment,null,[n&&l==="split"&&t.createVNode(t.Fragment,null,[e(o!=="rtl"?"prev":"next",a),t.createVNode(s.ToolbarSeparator,{class:"k-toolbar-button-separator"},null)]),n&&l==="start"&&t.createVNode(t.Fragment,null,[e(o!=="rtl"?"prev":"next",a),e(o!=="rtl"?"next":"prev",c),t.createVNode(s.ToolbarSeparator,{class:"k-toolbar-button-separator"},null)]),t.createVNode("span",{class:"k-toolbar-items k-toolbar-items-scroll",ref:"scrollContentRef"},[p]),n&&l==="split"&&t.createVNode(t.Fragment,null,[t.createVNode(s.ToolbarSeparator,{class:"k-toolbar-button-separator"},null),e(o!=="rtl"?"next":"prev",c)]),n&&l==="end"&&t.createVNode(t.Fragment,null,[t.createVNode(s.ToolbarSeparator,{class:"k-toolbar-button-separator"},null),e(o!=="rtl"?"prev":"next",a),e(o!=="rtl"?"next":"prev",c)])])}});exports.ToolbarScrollable=B;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as B, createVNode as t, Fragment as
|
|
8
|
+
import { defineComponent as B, createVNode as t, Fragment as n } from "vue";
|
|
9
9
|
import { ToolbarSeparator as i } from "./ToolbarSeparator.mjs";
|
|
10
10
|
import { ToolbarScrollButton as f } from "./ToolbarScrollButton.mjs";
|
|
11
11
|
const h = /* @__PURE__ */ B({
|
|
@@ -22,7 +22,9 @@ const h = /* @__PURE__ */ B({
|
|
|
22
22
|
nextButton: Object,
|
|
23
23
|
toolbarItems: Object
|
|
24
24
|
},
|
|
25
|
-
emits:
|
|
25
|
+
emits: {
|
|
26
|
+
contentscroll: (r) => !0
|
|
27
|
+
},
|
|
26
28
|
data() {
|
|
27
29
|
return {
|
|
28
30
|
scrollContentRef: null
|
|
@@ -32,13 +34,13 @@ const h = /* @__PURE__ */ B({
|
|
|
32
34
|
this.scrollContentRef = this.$refs.scrollContentRef;
|
|
33
35
|
},
|
|
34
36
|
methods: {
|
|
35
|
-
onContentScroll(
|
|
36
|
-
this.$emit("contentscroll",
|
|
37
|
+
onContentScroll(r) {
|
|
38
|
+
this.$emit("contentscroll", r);
|
|
37
39
|
}
|
|
38
40
|
},
|
|
39
41
|
render() {
|
|
40
42
|
const {
|
|
41
|
-
scrollButtons:
|
|
43
|
+
scrollButtons: r,
|
|
42
44
|
buttonScrollSpeed: u,
|
|
43
45
|
prevButton: p,
|
|
44
46
|
nextButton: b,
|
|
@@ -56,17 +58,17 @@ const h = /* @__PURE__ */ B({
|
|
|
56
58
|
prevButton: p,
|
|
57
59
|
nextButton: b,
|
|
58
60
|
onContentscroll: this.onContentScroll
|
|
59
|
-
}, null), s =
|
|
60
|
-
return t(
|
|
61
|
+
}, null), s = r === "visible" || r === "auto" && this.$props.isOverflowing;
|
|
62
|
+
return t(n, null, [s && e === "split" && t(n, null, [l(o !== "rtl" ? "prev" : "next", a), t(i, {
|
|
61
63
|
class: "k-toolbar-button-separator"
|
|
62
|
-
}, null)]), s && e === "start" && t(
|
|
64
|
+
}, null)]), s && e === "start" && t(n, null, [l(o !== "rtl" ? "prev" : "next", a), l(o !== "rtl" ? "next" : "prev", c), t(i, {
|
|
63
65
|
class: "k-toolbar-button-separator"
|
|
64
66
|
}, null)]), t("span", {
|
|
65
67
|
class: "k-toolbar-items k-toolbar-items-scroll",
|
|
66
68
|
ref: "scrollContentRef"
|
|
67
|
-
}, [S]), s && e === "split" && t(
|
|
69
|
+
}, [S]), s && e === "split" && t(n, null, [t(i, {
|
|
68
70
|
class: "k-toolbar-button-separator"
|
|
69
|
-
}, null), l(o !== "rtl" ? "next" : "prev", c)]), s && e === "end" && t(
|
|
71
|
+
}, null), l(o !== "rtl" ? "next" : "prev", c)]), s && e === "end" && t(n, null, [t(i, {
|
|
70
72
|
class: "k-toolbar-button-separator"
|
|
71
73
|
}, null), l(o !== "rtl" ? "prev" : "next", a), l(o !== "rtl" ? "next" : "prev", c)])]);
|
|
72
74
|
}
|