@progress/kendo-react-editor 14.5.0-develop.9 → 15.0.0-develop.2

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/tools/indent.js CHANGED
@@ -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 h=require("react"),q=require("@progress/kendo-react-buttons"),c=require("@progress/kendo-editor-common"),y=require("./utils.js"),k=require("@progress/kendo-react-intl"),L=require("../messages/index.js"),O=require("@progress/kendo-react-common");function j(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>o[s]})}}return e.default=o,Object.freeze(e)}const S=j(h);exports.IndentToolNS=void 0;(o=>{o.createIndentTool=e=>{const s=class extends S.Component{render(){const{view:t,render:m,...d}=this.props,p=d.dir,n=t&&t.state,a=n&&n.schema.nodes,r=a&&a[e.listsTypes.listItem],l=e.actions,I=!!n&&!!r&&(c.isIndented(n,l,p)||l.some(v=>a&&a[v.node]&&c.hasNode(n,a[v.node])))&&!c.hasNode(n,r),b=!!n&&c.canIndentAsListItem(n,r),T=I||b,g=k.provideLocalizationService(this),f=e.messages.title,u=!T,N=S.createElement(q.Button,{onClick:u?void 0:()=>{t&&b&&r?c.sinkListItem(r)(t.state,t.dispatch):t&&I&&c.indentBlocks(l,e.commandName,p)(t.state,t.dispatch)},"aria-disabled":u?!0:void 0,title:g.toLanguageString(f,L.messages[f]),...y.onDownPreventDefault,...e.props,...d,className:O.classNames(d.className,e.props.className,{"k-disabled":u})});return m?m.call(void 0,N,{view:t}):N}};return k.registerForLocalization(s),s}})(exports.IndentToolNS||(exports.IndentToolNS={}));
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),y=require("@progress/kendo-react-buttons"),a=require("@progress/kendo-editor-common"),L=require("./utils.js"),S=require("@progress/kendo-react-intl"),k=require("../messages/index.js"),O=require("@progress/kendo-react-common");function j(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const d=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(e,s,d.get?d:{enumerable:!0,get:()=>o[s]})}}return e.default=o,Object.freeze(e)}const T=j(q);exports.IndentToolNS=void 0;(o=>{o.createIndentTool=e=>{const s=class extends T.Component{render(){const{view:t,render:p,...l}=this.props,I=l.dir,n=t&&t.state,c=n&&n.schema.nodes,r=c&&c[e.listsTypes.listItem],u=e.actions,b=!!n&&!!r&&(a.isIndented(n,u,I)||u.some(v=>c&&c[v.node]&&a.hasNode(n,c[v.node])))&&!a.hasNode(n,r),f=!!n&&a.canIndentAsListItem(n,r),h=b||f,g=S.provideLocalizationService(this),i=e.messages.title,m=!h,N=T.createElement(y.Button,{onClick:m?void 0:()=>{t&&f&&r?a.sinkListItem(r)(t.state,t.dispatch):t&&b&&a.indentBlocks(u,e.commandName,I)(t.state,t.dispatch)},"aria-disabled":m?!0:void 0,title:g.toLanguageString(i,k.messages[i]),"aria-label":g.toLanguageString(i,k.messages[i]),...L.onDownPreventDefault,...e.props,...l,className:O.classNames(l.className,e.props.className,{"k-disabled":m})});return p?p.call(void 0,N,{view:t}):N}};return S.registerForLocalization(s),s}})(exports.IndentToolNS||(exports.IndentToolNS={}));
package/tools/indent.mjs CHANGED
@@ -5,38 +5,39 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import * as v from "react";
8
+ import * as L from "react";
9
9
  import { Button as k } from "@progress/kendo-react-buttons";
10
- import { isIndented as z, hasNode as N, canIndentAsListItem as S, sinkListItem as w, indentBlocks as x } from "@progress/kendo-editor-common";
10
+ import { isIndented as S, hasNode as N, canIndentAsListItem as z, sinkListItem as w, indentBlocks as x } from "@progress/kendo-editor-common";
11
11
  import { onDownPreventDefault as y } from "./utils.mjs";
12
12
  import { registerForLocalization as B, provideLocalizationService as C } from "@progress/kendo-react-intl";
13
- import { messages as D } from "../messages/index.mjs";
14
- import { classNames as P } from "@progress/kendo-react-common";
13
+ import { messages as b } from "../messages/index.mjs";
14
+ import { classNames as D } from "@progress/kendo-react-common";
15
15
  var h;
16
- ((L) => {
17
- L.createIndentTool = (e) => {
18
- const c = class extends v.Component {
16
+ ((T) => {
17
+ T.createIndentTool = (e) => {
18
+ const d = class extends L.Component {
19
19
  render() {
20
- const { view: t, render: d, ...a } = this.props, m = a.dir, o = t && t.state, n = o && o.schema.nodes, s = n && n[e.listsTypes.listItem], i = e.actions, l = !!o && !!s && (z(o, i, m) || i.some((u) => n && n[u.node] && N(o, n[u.node]))) && !N(o, s), p = !!o && S(o, s), b = l || p, T = C(this), I = e.messages.title, r = !b, f = /* @__PURE__ */ v.createElement(
20
+ const { view: t, render: l, ...i } = this.props, m = i.dir, o = t && t.state, n = o && o.schema.nodes, s = n && n[e.listsTypes.listItem], r = e.actions, p = !!o && !!s && (S(o, r, m) || r.some((v) => n && n[v.node] && N(o, n[v.node]))) && !N(o, s), I = !!o && z(o, s), g = p || I, f = C(this), a = e.messages.title, c = !g, u = /* @__PURE__ */ L.createElement(
21
21
  k,
22
22
  {
23
- onClick: r ? void 0 : () => {
24
- t && p && s ? w(s)(t.state, t.dispatch) : t && l && x(i, e.commandName, m)(t.state, t.dispatch);
23
+ onClick: c ? void 0 : () => {
24
+ t && I && s ? w(s)(t.state, t.dispatch) : t && p && x(r, e.commandName, m)(t.state, t.dispatch);
25
25
  },
26
- "aria-disabled": r ? !0 : void 0,
27
- title: T.toLanguageString(I, D[I]),
26
+ "aria-disabled": c ? !0 : void 0,
27
+ title: f.toLanguageString(a, b[a]),
28
+ "aria-label": f.toLanguageString(a, b[a]),
28
29
  ...y,
29
30
  ...e.props,
30
- ...a,
31
- className: P(a.className, e.props.className, {
32
- "k-disabled": r
31
+ ...i,
32
+ className: D(i.className, e.props.className, {
33
+ "k-disabled": c
33
34
  })
34
35
  }
35
36
  );
36
- return d ? d.call(void 0, f, { view: t }) : f;
37
+ return l ? l.call(void 0, u, { view: t }) : u;
37
38
  }
38
39
  };
39
- return B(c), c;
40
+ return B(d), d;
40
41
  };
41
42
  })(h || (h = {}));
42
43
  export {
@@ -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 k=require("react"),v=require("@progress/kendo-react-buttons"),u=require("@progress/kendo-editor-common"),T=require("./utils.js"),m=require("@progress/kendo-react-intl"),y=require("../messages/index.js");function I(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const d=I(k);exports.InlineFormatToolNS=void 0;(t=>{t.createInlineFormatTool=e=>{const o=class extends d.Component{render(){const{view:n,render:c,...p}=this.props,r=n&&n.state,{mark:g,altMarks:b,altStyle:f}=e,l={mark:g,altMarks:b,altStyle:f},S=m.provideLocalizationService(this),i=e.messages.title,s=d.createElement(v.Button,{onClick:()=>n&&u.toggleInlineFormat(l,r&&r.tr.setMeta("commandName",e.commandName))(n.state,n.dispatch),selected:!!r&&u.hasMark(r,l),togglable:!0,...T.onDownPreventDefault,title:S.toLanguageString(i,y.messages[i]),...e.props,...p});return c?c.call(void 0,s,{view:n}):s}};return m.registerForLocalization(o),o}})(exports.InlineFormatToolNS||(exports.InlineFormatToolNS={}));
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),T=require("@progress/kendo-react-buttons"),m=require("@progress/kendo-editor-common"),y=require("./utils.js"),d=require("@progress/kendo-react-intl"),g=require("../messages/index.js");function I(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const l=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const p=I(v);exports.InlineFormatToolNS=void 0;(t=>{t.createInlineFormatTool=e=>{const o=class extends p.Component{render(){const{view:n,render:c,...b}=this.props,r=n&&n.state,{mark:f,altMarks:S,altStyle:k}=e,i={mark:f,altMarks:S,altStyle:k},s=d.provideLocalizationService(this),a=e.messages.title,u=p.createElement(T.Button,{onClick:()=>n&&m.toggleInlineFormat(i,r&&r.tr.setMeta("commandName",e.commandName))(n.state,n.dispatch),selected:!!r&&m.hasMark(r,i),togglable:!0,...y.onDownPreventDefault,title:s.toLanguageString(a,g.messages[a]),"aria-label":s.toLanguageString(a,g.messages[a]),...e.props,...b});return c?c.call(void 0,u,{view:n}):u}};return d.registerForLocalization(o),o}})(exports.InlineFormatToolNS||(exports.InlineFormatToolNS={}));
@@ -5,38 +5,39 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import * as s from "react";
9
- import { Button as v } from "@progress/kendo-react-buttons";
10
- import { hasMark as h, toggleInlineFormat as k } from "@progress/kendo-editor-common";
11
- import { onDownPreventDefault as F } from "./utils.mjs";
12
- import { registerForLocalization as I, provideLocalizationService as S } from "@progress/kendo-react-intl";
13
- import { messages as T } from "../messages/index.mjs";
14
- var m;
15
- ((c) => {
16
- c.createInlineFormatTool = (o) => {
17
- const r = class extends s.Component {
8
+ import * as m from "react";
9
+ import { Button as S } from "@progress/kendo-react-buttons";
10
+ import { hasMark as b, toggleInlineFormat as h } from "@progress/kendo-editor-common";
11
+ import { onDownPreventDefault as k } from "./utils.mjs";
12
+ import { registerForLocalization as F, provideLocalizationService as I } from "@progress/kendo-react-intl";
13
+ import { messages as c } from "../messages/index.mjs";
14
+ var p;
15
+ ((g) => {
16
+ g.createInlineFormatTool = (o) => {
17
+ const a = class extends m.Component {
18
18
  render() {
19
- const { view: t, render: a, ...p } = this.props, e = t && t.state, { mark: d, altMarks: u, altStyle: f } = o, n = { mark: d, altMarks: u, altStyle: f }, g = S(this), l = o.messages.title, i = /* @__PURE__ */ s.createElement(
20
- v,
19
+ const { view: t, render: n, ...u } = this.props, e = t && t.state, { mark: d, altMarks: f, altStyle: v } = o, l = { mark: d, altMarks: f, altStyle: v }, i = I(this), r = o.messages.title, s = /* @__PURE__ */ m.createElement(
20
+ S,
21
21
  {
22
- onClick: () => t && k(
23
- n,
22
+ onClick: () => t && h(
23
+ l,
24
24
  e && e.tr.setMeta("commandName", o.commandName)
25
25
  )(t.state, t.dispatch),
26
- selected: !!e && h(e, n),
26
+ selected: !!e && b(e, l),
27
27
  togglable: !0,
28
- ...F,
29
- title: g.toLanguageString(l, T[l]),
28
+ ...k,
29
+ title: i.toLanguageString(r, c[r]),
30
+ "aria-label": i.toLanguageString(r, c[r]),
30
31
  ...o.props,
31
- ...p
32
+ ...u
32
33
  }
33
34
  );
34
- return a ? a.call(void 0, i, { view: t }) : i;
35
+ return n ? n.call(void 0, s, { view: t }) : s;
35
36
  }
36
37
  };
37
- return I(r), r;
38
+ return F(a), a;
38
39
  };
39
- })(m || (m = {}));
40
+ })(p || (p = {}));
40
41
  export {
41
- m as InlineFormatToolNS
42
+ p as InlineFormatToolNS
42
43
  };
package/tools/outdent.js CHANGED
@@ -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 N=require("react"),S=require("@progress/kendo-react-buttons"),c=require("@progress/kendo-editor-common"),k=require("./utils.js"),b=require("@progress/kendo-react-intl"),q=require("../messages/index.js"),I=require("@progress/kendo-react-common");function L(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:()=>o[n]})}}return e.default=o,Object.freeze(e)}const T=L(N);exports.OutdentToolNS=void 0;(o=>{o.createOutdentTool=e=>{const n=class extends T.Component{render(){const{view:t,render:l,...i}=this.props,s=t&&t.state,d=i.dir,u=!!s&&c.isIndented(s,e.actions,d),m=s&&s.schema.nodes[e.listsTypes.listItem],p=!!s&&c.canOutdentAsListItem(s,{nodes:e.actions,listsTypes:e.listsTypes}),v=u||p,y=b.provideLocalizationService(this),f=e.messages.title,r=!v,O=T.createElement(S.Button,{onClick:r?void 0:()=>{t&&p&&m?c.liftListItem(m)(t.state,t.dispatch):t&&u&&c.indentBlocks(e.actions,e.commandName,d)(t.state,t.dispatch)},"aria-disabled":r?!0:void 0,title:y.toLanguageString(f,q.messages[f]),...k.onDownPreventDefault,...e.props,...i,className:I.classNames(i.className,e.props.className,{"k-disabled":r})});return l?l.call(void 0,O,{view:t}):O}};return b.registerForLocalization(n),n}})(exports.OutdentToolNS||(exports.OutdentToolNS={}));
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),N=require("@progress/kendo-react-buttons"),c=require("@progress/kendo-editor-common"),k=require("./utils.js"),T=require("@progress/kendo-react-intl"),v=require("../messages/index.js"),q=require("@progress/kendo-react-common");function L(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>o[n]})}}return e.default=o,Object.freeze(e)}const S=L(y);exports.OutdentToolNS=void 0;(o=>{o.createOutdentTool=e=>{const n=class extends S.Component{render(){const{view:t,render:d,...r}=this.props,s=t&&t.state,u=r.dir,m=!!s&&c.isIndented(s,e.actions,u),p=s&&s.schema.nodes[e.listsTypes.listItem],b=!!s&&c.canOutdentAsListItem(s,{nodes:e.actions,listsTypes:e.listsTypes}),g=m||b,f=T.provideLocalizationService(this),a=e.messages.title,l=!g,O=S.createElement(N.Button,{onClick:l?void 0:()=>{t&&b&&p?c.liftListItem(p)(t.state,t.dispatch):t&&m&&c.indentBlocks(e.actions,e.commandName,u)(t.state,t.dispatch)},"aria-disabled":l?!0:void 0,title:f.toLanguageString(a,v.messages[a]),"aria-label":f.toLanguageString(a,v.messages[a]),...k.onDownPreventDefault,...e.props,...r,className:q.classNames(r.className,e.props.className,{"k-disabled":l})});return d?d.call(void 0,O,{view:t}):O}};return T.registerForLocalization(n),n}})(exports.OutdentToolNS||(exports.OutdentToolNS={}));
package/tools/outdent.mjs CHANGED
@@ -5,44 +5,45 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import * as u from "react";
8
+ import * as f from "react";
9
9
  import { Button as N } from "@progress/kendo-react-buttons";
10
- import { isIndented as O, canOutdentAsListItem as b, liftListItem as h, indentBlocks as I } from "@progress/kendo-editor-common";
11
- import { onDownPreventDefault as y } from "./utils.mjs";
10
+ import { isIndented as O, canOutdentAsListItem as h, liftListItem as I, indentBlocks as y } from "@progress/kendo-editor-common";
11
+ import { onDownPreventDefault as S } from "./utils.mjs";
12
12
  import { registerForLocalization as k, provideLocalizationService as z } from "@progress/kendo-react-intl";
13
- import { messages as S } from "../messages/index.mjs";
13
+ import { messages as v } from "../messages/index.mjs";
14
14
  import { classNames as w } from "@progress/kendo-react-common";
15
- var f;
16
- ((v) => {
17
- v.createOutdentTool = (t) => {
18
- const n = class extends u.Component {
15
+ var L;
16
+ ((T) => {
17
+ T.createOutdentTool = (t) => {
18
+ const i = class extends f.Component {
19
19
  render() {
20
- const { view: o, render: i, ...s } = this.props, e = o && o.state, r = s.dir, c = !!e && O(e, t.actions, r), l = e && e.schema.nodes[t.listsTypes.listItem], d = !!e && b(e, { nodes: t.actions, listsTypes: t.listsTypes }), T = c || d, L = z(this), m = t.messages.title, a = !T, p = /* @__PURE__ */ u.createElement(
20
+ const { view: o, render: r, ...a } = this.props, e = o && o.state, c = a.dir, l = !!e && O(e, t.actions, c), d = e && e.schema.nodes[t.listsTypes.listItem], m = !!e && h(e, { nodes: t.actions, listsTypes: t.listsTypes }), b = l || m, p = z(this), s = t.messages.title, n = !b, u = /* @__PURE__ */ f.createElement(
21
21
  N,
22
22
  {
23
- onClick: a ? void 0 : () => {
24
- o && d && l ? h(l)(o.state, o.dispatch) : o && c && I(
23
+ onClick: n ? void 0 : () => {
24
+ o && m && d ? I(d)(o.state, o.dispatch) : o && l && y(
25
25
  t.actions,
26
26
  t.commandName,
27
- r
27
+ c
28
28
  )(o.state, o.dispatch);
29
29
  },
30
- "aria-disabled": a ? !0 : void 0,
31
- title: L.toLanguageString(m, S[m]),
32
- ...y,
30
+ "aria-disabled": n ? !0 : void 0,
31
+ title: p.toLanguageString(s, v[s]),
32
+ "aria-label": p.toLanguageString(s, v[s]),
33
+ ...S,
33
34
  ...t.props,
34
- ...s,
35
- className: w(s.className, t.props.className, {
36
- "k-disabled": a
35
+ ...a,
36
+ className: w(a.className, t.props.className, {
37
+ "k-disabled": n
37
38
  })
38
39
  }
39
40
  );
40
- return i ? i.call(void 0, p, { view: o }) : p;
41
+ return r ? r.call(void 0, u, { view: o }) : u;
41
42
  }
42
43
  };
43
- return k(n), n;
44
+ return k(i), i;
44
45
  };
45
- })(f || (f = {}));
46
+ })(L || (L = {}));
46
47
  export {
47
- f as OutdentToolNS
48
+ L as OutdentToolNS
48
49
  };
@@ -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 f=require("react"),g=require("@progress/kendo-react-buttons"),v=require("./utils.js"),d=require("@progress/kendo-react-intl"),P=require("../messages/index.js"),N=require("@progress/kendo-react-common");function k(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const m=k(f),q=(e,o)=>{const t=class extends m.Component{render(){const{view:r,render:s,...c}=this.props,p=d.provideLocalizationService(this),i=e.messages.title,l=r&&r.state,a=l?!o(l):!1,u=m.createElement(g.Button,{onClick:a?void 0:()=>r&&o(r.state,b=>r.dispatch(b.setMeta("commandName",e.commandName))),"aria-disabled":a?!0:void 0,...v.onDownPreventDefault,title:p.toLanguageString(i,P.messages[i]),...e.props,...c,className:N.classNames(c.className,e.props.className,{"k-disabled":a})});return s?s.call(void 0,u,{view:r}):u}};return d.registerForLocalization(t),t};exports.createProseMirrorTool=q;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),v=require("@progress/kendo-react-buttons"),P=require("./utils.js"),m=require("@progress/kendo-react-intl"),p=require("../messages/index.js"),N=require("@progress/kendo-react-common");function S(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const b=S(f),k=(e,o)=>{const t=class extends b.Component{render(){const{view:r,render:c,...i}=this.props,l=m.provideLocalizationService(this),a=e.messages.title,u=r&&r.state,s=u?!o(u):!1,d=b.createElement(v.Button,{onClick:s?void 0:()=>r&&o(r.state,g=>r.dispatch(g.setMeta("commandName",e.commandName))),"aria-disabled":s?!0:void 0,...P.onDownPreventDefault,title:l.toLanguageString(a,p.messages[a]),"aria-label":l.toLanguageString(a,p.messages[a]),...e.props,...i,className:N.classNames(i.className,e.props.className,{"k-disabled":s})});return c?c.call(void 0,d,{view:r}):d}};return m.registerForLocalization(t),t};exports.createProseMirrorTool=k;
@@ -5,35 +5,36 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import * as m from "react";
8
+ import * as p from "react";
9
9
  import { Button as f } from "@progress/kendo-react-buttons";
10
- import { onDownPreventDefault as u } from "./utils.mjs";
11
- import { registerForLocalization as v, provideLocalizationService as N } from "@progress/kendo-react-intl";
12
- import { messages as b } from "../messages/index.mjs";
13
- import { classNames as P } from "@progress/kendo-react-common";
14
- const k = (e, r) => {
15
- const a = class extends m.Component {
10
+ import { onDownPreventDefault as v } from "./utils.mjs";
11
+ import { registerForLocalization as b, provideLocalizationService as g } from "@progress/kendo-react-intl";
12
+ import { messages as d } from "../messages/index.mjs";
13
+ import { classNames as N } from "@progress/kendo-react-common";
14
+ const T = (e, a) => {
15
+ const s = class extends p.Component {
16
16
  render() {
17
- const { view: o, render: s, ...i } = this.props, p = N(this), n = e.messages.title, c = o && o.state, t = c ? !r(c) : !1, l = /* @__PURE__ */ m.createElement(
17
+ const { view: o, render: i, ...n } = this.props, l = g(this), t = e.messages.title, c = o && o.state, r = c ? !a(c) : !1, m = /* @__PURE__ */ p.createElement(
18
18
  f,
19
19
  {
20
- onClick: t ? void 0 : () => o && r(
20
+ onClick: r ? void 0 : () => o && a(
21
21
  o.state,
22
- (d) => o.dispatch(d.setMeta("commandName", e.commandName))
22
+ (u) => o.dispatch(u.setMeta("commandName", e.commandName))
23
23
  ),
24
- "aria-disabled": t ? !0 : void 0,
25
- ...u,
26
- title: p.toLanguageString(n, b[n]),
24
+ "aria-disabled": r ? !0 : void 0,
25
+ ...v,
26
+ title: l.toLanguageString(t, d[t]),
27
+ "aria-label": l.toLanguageString(t, d[t]),
27
28
  ...e.props,
28
- ...i,
29
- className: P(i.className, e.props.className, { "k-disabled": t })
29
+ ...n,
30
+ className: N(n.className, e.props.className, { "k-disabled": r })
30
31
  }
31
32
  );
32
- return s ? s.call(void 0, l, { view: o }) : l;
33
+ return i ? i.call(void 0, m, { view: o }) : m;
33
34
  }
34
35
  };
35
- return v(a), a;
36
+ return b(s), s;
36
37
  };
37
38
  export {
38
- k as createProseMirrorTool
39
+ T as createProseMirrorTool
39
40
  };