@progress/kendo-react-listview 15.0.1-develop.1 → 15.0.1-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 n=a(t);const r=Object.freeze({name:"@progress/kendo-react-listview",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:0,version:"15.0.1-develop.1",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"}),o=n.createContext(null),l="k-focus",i=n.forwardRef((e,t)=>{const a=!s.validatePackage(r,{component:"ListView"}),o=s.getLicenseMessage(r),{data:i=[],item:u,footer:d,header:m,className:v,style:f,onScroll:p,navigatable:w}=e,E=n.useRef(null),b=n.useRef(null),g=n.useCallback(()=>({onScroll:p,props:e,context:{},state:{},refs:{}}),[]);n.useImperativeHandle(b,g),n.useImperativeHandle(t,()=>b.current),s.useWebMcpRegister("listview",b,e,e.webMcp);const k=n.useCallback(e=>s.dispatchEvent(p,e,g(),void 0),[]),y=(e,t,s)=>{s.preventDefault(),t.focusNext(e),t.next(e).classList.add(l),t.previous(e).classList.remove(l)},N=(e,t,s)=>{s.preventDefault(),t.focusPrevious(e),t.next(e).classList.remove(l),t.previous(e).classList.add(l)},C=n.useMemo(()=>new s.Navigation({root:E,selectors:[".k-listview-item"],rovingTabIndex:!0,keyboardEvents:{keydown:{ArrowDown:y,ArrowRight:y,ArrowUp:N,ArrowLeft:N,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}),[]),x=n.useCallback(C.triggerKeyboardEvent.bind(C),[]),L=n.useCallback(e=>{e.nativeEvent.target.classList.add(l),C.elements.forEach(t=>{t!==e.nativeEvent.target&&t.classList.remove(l)})},[]);return n.useEffect(()=>{if(w)return C.initializeRovingTab(),()=>C.removeFocusListener()},[]),n.createElement("div",{className:s.classNames("k-listview",v),style:f,onKeyDown:e=>w&&x(e),onClick:L},m?n.createElement(m,null):null,n.createElement("div",{role:"list",className:"k-listview-content",onScroll:k,ref:E},u&&i.map((e,t)=>{var s;return n.createElement(c,{key:null!=(s=e.id)?s:t,Item:u,dataItem:e,index:t,totalCount:i.length})})),d?n.createElement(d,null):null,a&&n.createElement(s.WatermarkOverlay,{message:o}))});i.displayName="KendoReactListView";const c=({Item:e,dataItem:t,index:s,totalCount:a})=>{const r=n.useMemo(()=>({index:s,totalCount:a}),[s,a]);return n.createElement(o.Provider,{value:r},n.createElement(e,{dataItem:t,index:s}))};e.ListView=i,e.ListViewFooter=e=>n.createElement("div",{className:s.classNames("k-listview-footer",e.className),style:e.style},e.children),e.ListViewHeader=e=>n.createElement("div",{className:s.classNames("k-listview-header",e.className),style:e.style},e.children),e.ListViewItemWrapper=e=>{const{children:t,style:a,className:r}=e,l=n.useContext(o);return n.createElement("div",{role:"listitem",style:a,className:s.classNames("k-listview-item",r),"aria-posinset":l?l.index+1:void 0,"aria-setsize":l?l.totalCount:void 0},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 n=a(t);const r=Object.freeze({name:"@progress/kendo-react-listview",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:0,version:"15.0.1-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"}),o=n.createContext(null),l="k-focus",i=n.forwardRef((e,t)=>{const a=!s.validatePackage(r,{component:"ListView"}),o=s.getLicenseMessage(r),{data:i=[],item:u,footer:d,header:m,className:v,style:f,onScroll:p,navigatable:w}=e,E=n.useRef(null),b=n.useRef(null),g=n.useCallback(()=>({onScroll:p,props:e,context:{},state:{},refs:{}}),[]);n.useImperativeHandle(b,g),n.useImperativeHandle(t,()=>b.current),s.useWebMcpRegister("listview",b,e,e.webMcp);const k=n.useCallback(e=>s.dispatchEvent(p,e,g(),void 0),[]),y=(e,t,s)=>{s.preventDefault(),t.focusNext(e),t.next(e).classList.add(l),t.previous(e).classList.remove(l)},N=(e,t,s)=>{s.preventDefault(),t.focusPrevious(e),t.next(e).classList.remove(l),t.previous(e).classList.add(l)},C=n.useMemo(()=>new s.Navigation({root:E,selectors:[".k-listview-item"],rovingTabIndex:!0,keyboardEvents:{keydown:{ArrowDown:y,ArrowRight:y,ArrowUp:N,ArrowLeft:N,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}),[]),x=n.useCallback(C.triggerKeyboardEvent.bind(C),[]),L=n.useCallback(e=>{e.nativeEvent.target.classList.add(l),C.elements.forEach(t=>{t!==e.nativeEvent.target&&t.classList.remove(l)})},[]);return n.useEffect(()=>{if(w)return C.initializeRovingTab(),()=>C.removeFocusListener()},[]),n.createElement("div",{className:s.classNames("k-listview",v),style:f,onKeyDown:e=>w&&x(e),onClick:L},m?n.createElement(m,null):null,n.createElement("div",{role:"list",className:"k-listview-content",onScroll:k,ref:E},u&&i.map((e,t)=>{var s;return n.createElement(c,{key:null!=(s=e.id)?s:t,Item:u,dataItem:e,index:t,totalCount:i.length})})),d?n.createElement(d,null):null,a&&n.createElement(s.WatermarkOverlay,{message:o}))});i.displayName="KendoReactListView";const c=({Item:e,dataItem:t,index:s,totalCount:a})=>{const r=n.useMemo(()=>({index:s,totalCount:a}),[s,a]);return n.createElement(o.Provider,{value:r},n.createElement(e,{dataItem:t,index:s}))};e.ListView=i,e.ListViewFooter=e=>n.createElement("div",{className:s.classNames("k-listview-footer",e.className),style:e.style},e.children),e.ListViewHeader=e=>n.createElement("div",{className:s.classNames("k-listview-header",e.className),style:e.style},e.children),e.ListViewItemWrapper=e=>{const{children:t,style:a,className:r}=e,l=n.useContext(o);return n.createElement("div",{role:"listitem",style:a,className:s.classNames("k-listview-item",r),"aria-posinset":l?l.index+1:void 0,"aria-setsize":l?l.totalCount:void 0},t)}});
@@ -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: 1779805676,version:"15.0.1-develop.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: 1779865751,version:"15.0.1-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
@@ -7,7 +7,7 @@ export const packageMetadata = Object.freeze({
7
7
  productName: 'KendoReact',
8
8
  productCode: 'KENDOUIREACT',
9
9
  productCodes: ['KENDOUIREACT'],
10
- publishDate: 1779805676,
11
- version: '15.0.1-develop.1',
10
+ publishDate: 1779865751,
11
+ version: '15.0.1-develop.2',
12
12
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/components/my-license/'
13
13
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-listview",
3
- "version": "15.0.1-develop.1",
3
+ "version": "15.0.1-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.2",
29
- "@progress/kendo-react-common": "15.0.1-develop.1",
29
+ "@progress/kendo-react-common": "15.0.1-develop.2",
30
30
  "react": "^18.0.0 || ^19.0.0",
31
31
  "react-dom": "^18.0.0 || ^19.0.0"
32
32
  },
@@ -51,7 +51,7 @@
51
51
  "package": {
52
52
  "productName": "KendoReact",
53
53
  "productCode": "KENDOUIREACT",
54
- "publishDate": 1779805676,
54
+ "publishDate": 1779865751,
55
55
  "licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
56
56
  }
57
57
  },