@progress/kendo-react-listview 12.0.1 → 12.0.2-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.
@@ -12,4 +12,4 @@
12
12
  * Licensed under commercial license. See LICENSE.md in the package root for more information
13
13
  *-------------------------------------------------------------------------------------------
14
14
  */
15
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@progress/kendo-react-common")):"function"==typeof define&&define.amd?define(["exports","react","@progress/kendo-react-common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactListview={},e.React,e.KendoReactCommon)}(this,(function(e,t,s){"use strict";function a(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(s){if("default"!==s){var a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:function(){return e[s]}})}})),t.default=e,Object.freeze(t)}var r=a(t);const n=Object.freeze({name:"@progress/kendo-react-listview",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:0,version:"12.0.1",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"}),l="k-focus",o=r.forwardRef(((e,t)=>{const a=!s.validatePackage(n,{component:"ListView"}),o=s.getLicenseMessage(n),{data:i=[],item:c,footer:d,header:m,className:u,style:f,onScroll:v,navigatable:p}=e,w=r.useRef(null),E=r.useRef(null),b=r.useCallback((()=>({onScroll:v,props:e,context:{},state:{},refs:{}})),[]);r.useImperativeHandle(E,b),r.useImperativeHandle(t,(()=>E.current));const k=r.useCallback((e=>s.dispatchEvent(v,e,b(),void 0)),[]),y=(e,t,s)=>{s.preventDefault(),t.focusNext(e),t.next(e).classList.add(l),t.previous(e).classList.remove(l)},g=(e,t,s)=>{s.preventDefault(),t.focusPrevious(e),t.next(e).classList.remove(l),t.previous(e).classList.add(l)},N=r.useMemo((()=>new s.Navigation({root:w,selectors:[".k-listview-item"],rovingTabIndex:!0,keyboardEvents:{keydown:{ArrowDown:y,ArrowRight:y,ArrowUp:g,ArrowLeft:g,Home:(e,t,s)=>{s.preventDefault();const a=t.first;a&&t.focusElement(a,e)},End:(e,t,s)=>{s.preventDefault();const a=t.last;a&&t.focusElement(a,e)},Tab:(e,t,s)=>{t.removeFocusClass(e)}}},tabIndex:0,focusClass:l})),[]),L=r.useCallback(N.triggerKeyboardEvent.bind(N),[]),h=r.useCallback((e=>{e.nativeEvent.target.classList.add(l),N.elements.forEach((t=>{t!==e.nativeEvent.target&&t.classList.remove(l)}))}),[]);return r.useEffect((()=>{if(p)return N.initializeRovingTab(),()=>N.removeFocusListener()}),[]),r.createElement("div",{className:s.classNames("k-listview",u),style:f,onKeyDown:e=>p&&L(e),onClick:h},m?r.createElement(m,null):null,r.createElement("div",{role:"list",className:"k-listview-content",onScroll:k,ref:w},c&&i.map(((e,t)=>r.createElement(c,{dataItem:e,index:t,key:t})))),d?r.createElement(d,null):null,a&&r.createElement(s.WatermarkOverlay,{message:o}))}));o.displayName="KendoReactListView";e.ListView=o,e.ListViewFooter=e=>r.createElement("div",{className:s.classNames("k-listview-footer",e.className),style:e.style},e.children),e.ListViewHeader=e=>r.createElement("div",{className:s.classNames("k-listview-header",e.className),style:e.style},e.children),e.ListViewItemWrapper=e=>{const{children:t,style:a,className:n}=e;return r.createElement("div",{role:"listitem",style:a,className:s.classNames("k-listview-item",n)},t)}}));
15
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@progress/kendo-react-common")):"function"==typeof define&&define.amd?define(["exports","react","@progress/kendo-react-common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactListview={},e.React,e.KendoReactCommon)}(this,(function(e,t,s){"use strict";function a(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(s){if("default"!==s){var a=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:function(){return e[s]}})}})),t.default=e,Object.freeze(t)}var r=a(t);const n=Object.freeze({name:"@progress/kendo-react-listview",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:0,version:"12.0.2-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"}),l="k-focus",o=r.forwardRef(((e,t)=>{const a=!s.validatePackage(n,{component:"ListView"}),o=s.getLicenseMessage(n),{data:i=[],item:c,footer:d,header:m,className:u,style:f,onScroll:v,navigatable:p}=e,w=r.useRef(null),E=r.useRef(null),b=r.useCallback((()=>({onScroll:v,props:e,context:{},state:{},refs:{}})),[]);r.useImperativeHandle(E,b),r.useImperativeHandle(t,(()=>E.current));const k=r.useCallback((e=>s.dispatchEvent(v,e,b(),void 0)),[]),y=(e,t,s)=>{s.preventDefault(),t.focusNext(e),t.next(e).classList.add(l),t.previous(e).classList.remove(l)},g=(e,t,s)=>{s.preventDefault(),t.focusPrevious(e),t.next(e).classList.remove(l),t.previous(e).classList.add(l)},N=r.useMemo((()=>new s.Navigation({root:w,selectors:[".k-listview-item"],rovingTabIndex:!0,keyboardEvents:{keydown:{ArrowDown:y,ArrowRight:y,ArrowUp:g,ArrowLeft:g,Home:(e,t,s)=>{s.preventDefault();const a=t.first;a&&t.focusElement(a,e)},End:(e,t,s)=>{s.preventDefault();const a=t.last;a&&t.focusElement(a,e)},Tab:(e,t,s)=>{t.removeFocusClass(e)}}},tabIndex:0,focusClass:l})),[]),L=r.useCallback(N.triggerKeyboardEvent.bind(N),[]),h=r.useCallback((e=>{e.nativeEvent.target.classList.add(l),N.elements.forEach((t=>{t!==e.nativeEvent.target&&t.classList.remove(l)}))}),[]);return r.useEffect((()=>{if(p)return N.initializeRovingTab(),()=>N.removeFocusListener()}),[]),r.createElement("div",{className:s.classNames("k-listview",u),style:f,onKeyDown:e=>p&&L(e),onClick:h},m?r.createElement(m,null):null,r.createElement("div",{role:"list",className:"k-listview-content",onScroll:k,ref:w},c&&i.map(((e,t)=>r.createElement(c,{dataItem:e,index:t,key:t})))),d?r.createElement(d,null):null,a&&r.createElement(s.WatermarkOverlay,{message:o}))}));o.displayName="KendoReactListView";e.ListView=o,e.ListViewFooter=e=>r.createElement("div",{className:s.classNames("k-listview-footer",e.className),style:e.style},e.children),e.ListViewHeader=e=>r.createElement("div",{className:s.classNames("k-listview-header",e.className),style:e.style},e.children),e.ListViewItemWrapper=e=>{const{children:t,style:a,className:n}=e;return r.createElement("div",{role:"listitem",style:a,className:s.classNames("k-listview-item",n)},t)}}));
package/index.d.mts CHANGED
@@ -13,11 +13,20 @@ export declare const ListView: React_2.ForwardRefExoticComponent<ListViewProps &
13
13
  /** @hidden */
14
14
  export declare type ListView = ListViewHandle;
15
15
 
16
+ /**
17
+ * The base event for ListView operations.
18
+ */
16
19
  export declare interface ListViewEvent extends BaseEvent<ListView> {
17
20
  }
18
21
 
22
+ /**
23
+ * The ListViewFooter component.
24
+ */
19
25
  export declare const ListViewFooter: React_2.FunctionComponent<ListViewFooterProps>;
20
26
 
27
+ /**
28
+ * Represents the props of the ListViewFooter component.
29
+ */
21
30
  export declare interface ListViewFooterProps {
22
31
  /**
23
32
  * Sets the ListViewFooter children elements.
@@ -28,7 +37,7 @@ export declare interface ListViewFooterProps {
28
37
  */
29
38
  style?: React.CSSProperties;
30
39
  /**
31
- * Add additional classes to the ListViewFooter.
40
+ * Adds additional classes to the ListViewFooter.
32
41
  */
33
42
  className?: string;
34
43
  }
@@ -42,8 +51,14 @@ declare interface ListViewHandle {
42
51
  refs: {};
43
52
  }
44
53
 
54
+ /**
55
+ * The ListViewHeader component.
56
+ */
45
57
  export declare const ListViewHeader: React_2.FunctionComponent<ListViewHeaderProps>;
46
58
 
59
+ /**
60
+ * Represents the props of the ListViewHeader component.
61
+ */
47
62
  export declare interface ListViewHeaderProps {
48
63
  /**
49
64
  * Sets the ListViewHeader children elements.
@@ -54,13 +69,13 @@ export declare interface ListViewHeaderProps {
54
69
  */
55
70
  style?: React.CSSProperties;
56
71
  /**
57
- * Add additional classes to the ListViewHeader.
72
+ * Adds additional classes to the ListViewHeader.
58
73
  */
59
74
  className?: string;
60
75
  }
61
76
 
62
77
  /**
63
- * Represents the props of the each ListView item.
78
+ * Represents the props of each ListView item.
64
79
  */
65
80
  export declare interface ListViewItemProps {
66
81
  /**
@@ -73,10 +88,13 @@ export declare interface ListViewItemProps {
73
88
  index?: number;
74
89
  }
75
90
 
91
+ /**
92
+ * The ListViewItemWrapper component.
93
+ */
76
94
  export declare const ListViewItemWrapper: React_2.FunctionComponent<ListViewItemWrapperProps>;
77
95
 
78
96
  /**
79
- * Represents the props of the each ListViewWrapper item.
97
+ * Represents the props of each ListViewWrapper item.
80
98
  */
81
99
  declare interface ListViewItemWrapperProps {
82
100
  /**
@@ -116,7 +134,7 @@ export declare interface ListViewProps {
116
134
  */
117
135
  data?: any[];
118
136
  /**
119
- * Defines the component that will be rendered for each item of the data collection.
137
+ * Defines the component that renders for each item of the data collection.
120
138
  *
121
139
  * @example
122
140
  * ```jsx
@@ -127,7 +145,7 @@ export declare interface ListViewProps {
127
145
  */
128
146
  item?: React.ComponentType<ListViewItemProps>;
129
147
  /**
130
- * Defines the component that will be rendered for the ListView header.
148
+ * Defines the component that renders for the ListView header.
131
149
  *
132
150
  * @example
133
151
  * ```jsx
@@ -138,7 +156,7 @@ export declare interface ListViewProps {
138
156
  */
139
157
  header?: React.ComponentType<any>;
140
158
  /**
141
- * Defines the component that will be rendered for the ListView footer.
159
+ * Defines the component that renders for the ListView footer.
142
160
  *
143
161
  * @example
144
162
  * ```jsx
@@ -170,6 +188,8 @@ export declare interface ListViewProps {
170
188
  * If set to `true`, the user can use dedicated shortcuts to interact with the ListView.
171
189
  * By default, navigation is disabled.
172
190
  *
191
+ * @default false
192
+ *
173
193
  * @example
174
194
  * ```jsx
175
195
  * <ListView navigatable={true} />
package/index.d.ts CHANGED
@@ -13,11 +13,20 @@ export declare const ListView: React_2.ForwardRefExoticComponent<ListViewProps &
13
13
  /** @hidden */
14
14
  export declare type ListView = ListViewHandle;
15
15
 
16
+ /**
17
+ * The base event for ListView operations.
18
+ */
16
19
  export declare interface ListViewEvent extends BaseEvent<ListView> {
17
20
  }
18
21
 
22
+ /**
23
+ * The ListViewFooter component.
24
+ */
19
25
  export declare const ListViewFooter: React_2.FunctionComponent<ListViewFooterProps>;
20
26
 
27
+ /**
28
+ * Represents the props of the ListViewFooter component.
29
+ */
21
30
  export declare interface ListViewFooterProps {
22
31
  /**
23
32
  * Sets the ListViewFooter children elements.
@@ -28,7 +37,7 @@ export declare interface ListViewFooterProps {
28
37
  */
29
38
  style?: React.CSSProperties;
30
39
  /**
31
- * Add additional classes to the ListViewFooter.
40
+ * Adds additional classes to the ListViewFooter.
32
41
  */
33
42
  className?: string;
34
43
  }
@@ -42,8 +51,14 @@ declare interface ListViewHandle {
42
51
  refs: {};
43
52
  }
44
53
 
54
+ /**
55
+ * The ListViewHeader component.
56
+ */
45
57
  export declare const ListViewHeader: React_2.FunctionComponent<ListViewHeaderProps>;
46
58
 
59
+ /**
60
+ * Represents the props of the ListViewHeader component.
61
+ */
47
62
  export declare interface ListViewHeaderProps {
48
63
  /**
49
64
  * Sets the ListViewHeader children elements.
@@ -54,13 +69,13 @@ export declare interface ListViewHeaderProps {
54
69
  */
55
70
  style?: React.CSSProperties;
56
71
  /**
57
- * Add additional classes to the ListViewHeader.
72
+ * Adds additional classes to the ListViewHeader.
58
73
  */
59
74
  className?: string;
60
75
  }
61
76
 
62
77
  /**
63
- * Represents the props of the each ListView item.
78
+ * Represents the props of each ListView item.
64
79
  */
65
80
  export declare interface ListViewItemProps {
66
81
  /**
@@ -73,10 +88,13 @@ export declare interface ListViewItemProps {
73
88
  index?: number;
74
89
  }
75
90
 
91
+ /**
92
+ * The ListViewItemWrapper component.
93
+ */
76
94
  export declare const ListViewItemWrapper: React_2.FunctionComponent<ListViewItemWrapperProps>;
77
95
 
78
96
  /**
79
- * Represents the props of the each ListViewWrapper item.
97
+ * Represents the props of each ListViewWrapper item.
80
98
  */
81
99
  declare interface ListViewItemWrapperProps {
82
100
  /**
@@ -116,7 +134,7 @@ export declare interface ListViewProps {
116
134
  */
117
135
  data?: any[];
118
136
  /**
119
- * Defines the component that will be rendered for each item of the data collection.
137
+ * Defines the component that renders for each item of the data collection.
120
138
  *
121
139
  * @example
122
140
  * ```jsx
@@ -127,7 +145,7 @@ export declare interface ListViewProps {
127
145
  */
128
146
  item?: React.ComponentType<ListViewItemProps>;
129
147
  /**
130
- * Defines the component that will be rendered for the ListView header.
148
+ * Defines the component that renders for the ListView header.
131
149
  *
132
150
  * @example
133
151
  * ```jsx
@@ -138,7 +156,7 @@ export declare interface ListViewProps {
138
156
  */
139
157
  header?: React.ComponentType<any>;
140
158
  /**
141
- * Defines the component that will be rendered for the ListView footer.
159
+ * Defines the component that renders for the ListView footer.
142
160
  *
143
161
  * @example
144
162
  * ```jsx
@@ -170,6 +188,8 @@ export declare interface ListViewProps {
170
188
  * If set to `true`, the user can use dedicated shortcuts to interact with the ListView.
171
189
  * By default, navigation is disabled.
172
190
  *
191
+ * @default false
192
+ *
173
193
  * @example
174
194
  * ```jsx
175
195
  * <ListView navigatable={true} />
@@ -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 e=Object.freeze({name:"@progress/kendo-react-listview",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1756397328,version:"12.0.1",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-listview",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1757073146,version:"12.0.2-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
@@ -10,8 +10,8 @@ const e = Object.freeze({
10
10
  productName: "KendoReact",
11
11
  productCode: "KENDOUIREACT",
12
12
  productCodes: ["KENDOUIREACT"],
13
- publishDate: 1756397328,
14
- version: "12.0.1",
13
+ publishDate: 1757073146,
14
+ version: "12.0.2-develop.2",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
16
16
  });
17
17
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-listview",
3
- "version": "12.0.1",
3
+ "version": "12.0.2-develop.2",
4
4
  "description": "React ListView enables you to display a custom layout of data items. KendoReact ListView package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -26,7 +26,7 @@
26
26
  "sideEffects": false,
27
27
  "peerDependencies": {
28
28
  "@progress/kendo-licensing": "^1.7.0",
29
- "@progress/kendo-react-common": "12.0.1",
29
+ "@progress/kendo-react-common": "12.0.2-develop.2",
30
30
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
31
31
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
32
32
  },
@@ -51,7 +51,7 @@
51
51
  "package": {
52
52
  "productName": "KendoReact",
53
53
  "productCode": "KENDOUIREACT",
54
- "publishDate": 1756397328,
54
+ "publishDate": 1757073146,
55
55
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
56
56
  }
57
57
  },