@progress/kendo-react-dropdowns 13.4.0-develop.4 → 13.4.0-develop.5

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.
@@ -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";const f=require("react"),m=require("@progress/kendo-react-buttons");function g(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const s=g(f),v=e=>e.syntheticEvent.preventDefault(),h=e=>e.syntheticEvent.stopPropagation();class y extends s.Component{render(){const{data:o,guid:n,focused:r,tagRender:c,tag:i,onTagDelete:l,size:p}=this.props;return s.createElement(s.Fragment,null,o.map((t,a)=>{const u=i?s.createElement(i,{key:t.text+a,tagData:t,guid:n,focusedTag:r,onTagDelete:l}):s.createElement(m.Chip,{id:`tag-${n}-${t.text.replace(/\s+/g,"-")}`,"aria-selected":!0,role:"option","aria-setsize":o.length,key:t.text+a,text:t.text,removable:!0,onRemove:d=>l.call(void 0,t.data,d.syntheticEvent),onMouseDown:v,onClick:h,className:t===r?"k-focus":void 0,size:p});return c?c(t,u):u}),this.props.children)}}module.exports=y;
8
+ "use strict";const f=require("react"),m=require("@progress/kendo-react-buttons");function g(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const s=g(f),v=e=>e.syntheticEvent.preventDefault(),h=e=>e.syntheticEvent.stopPropagation();class y extends s.Component{render(){const{data:o,guid:n,focused:r,tagRender:i,tag:l,onTagDelete:u,size:p}=this.props;return s.createElement(s.Fragment,null,o.map((t,c)=>{const a=l?s.createElement(l,{key:t.text+c,tagData:t,guid:n,focusedTag:r,onTagDelete:u}):s.createElement(m.Chip,{id:`tag-${n}-${t.text?t.text.replace(/\s+/g,"-"):c}`,"aria-selected":!0,role:"option","aria-setsize":o.length,key:t.text+c,text:t.text,removable:!0,onRemove:d=>u.call(void 0,t.data,d.syntheticEvent),onMouseDown:v,onClick:h,className:t===r?"k-focus":void 0,size:p});return i?i(t,a):a}),this.props.children)}}module.exports=y;
@@ -6,39 +6,39 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import * as t from "react";
9
- import { Chip as u } from "@progress/kendo-react-buttons";
9
+ import { Chip as d } from "@progress/kendo-react-buttons";
10
10
  const v = (o) => o.syntheticEvent.preventDefault(), f = (o) => o.syntheticEvent.stopPropagation();
11
11
  class g extends t.Component {
12
12
  render() {
13
- const { data: n, guid: r, focused: s, tagRender: c, tag: i, onTagDelete: l, size: m } = this.props;
14
- return /* @__PURE__ */ t.createElement(t.Fragment, null, n.map((e, p) => {
15
- const a = i ? /* @__PURE__ */ t.createElement(
16
- i,
13
+ const { data: r, guid: s, focused: c, tagRender: i, tag: l, onTagDelete: p, size: a } = this.props;
14
+ return /* @__PURE__ */ t.createElement(t.Fragment, null, r.map((e, n) => {
15
+ const m = l ? /* @__PURE__ */ t.createElement(
16
+ l,
17
17
  {
18
- key: e.text + p,
18
+ key: e.text + n,
19
19
  tagData: e,
20
- guid: r,
21
- focusedTag: s,
22
- onTagDelete: l
20
+ guid: s,
21
+ focusedTag: c,
22
+ onTagDelete: p
23
23
  }
24
24
  ) : /* @__PURE__ */ t.createElement(
25
- u,
25
+ d,
26
26
  {
27
- id: `tag-${r}-${e.text.replace(/\s+/g, "-")}`,
27
+ id: `tag-${s}-${e.text ? e.text.replace(/\s+/g, "-") : n}`,
28
28
  "aria-selected": !0,
29
29
  role: "option",
30
- "aria-setsize": n.length,
31
- key: e.text + p,
30
+ "aria-setsize": r.length,
31
+ key: e.text + n,
32
32
  text: e.text,
33
33
  removable: !0,
34
- onRemove: (d) => l.call(void 0, e.data, d.syntheticEvent),
34
+ onRemove: (u) => p.call(void 0, e.data, u.syntheticEvent),
35
35
  onMouseDown: v,
36
36
  onClick: f,
37
- className: e === s ? "k-focus" : void 0,
38
- size: m
37
+ className: e === c ? "k-focus" : void 0,
38
+ size: a
39
39
  }
40
40
  );
41
- return c ? c(e, a) : a;
41
+ return i ? i(e, m) : m;
42
42
  }), this.props.children);
43
43
  }
44
44
  }