@progress/kendo-react-common 16.2.0-develop.9 → 16.2.0

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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={prefix:"k",important:"!",rtl:"rtl",rounded:"rounded",value:"value",state:"state",filter:"filter",virtual:"virtual",infinite:"infinite",clear:"clear",reset:"reset",data:"data",nodata:"nodata",scroller:"scroller"},n={center:"center",hbox:"hbox",vstack:"vstack",hstack:"hstack",overflow:"overflow"},t={actionsheet:"actionsheet",calendar:"calendar",buttongroup:"buttongroup",dateinput:"dateinput",datetime:"datetime",datetimepicker:"datetimepicker",dropdownlist:"dropdownlist",combobox:"combobox",maskedtextbox:"maskedtextbox",menu:"menu",searchbox:"searchbox",timepicker:"timepicker"},l={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",xxlarge:"xxl",xxxlarge:"xxxl"},s={solid:"solid",outline:"outline",flat:"flat",link:"link",clear:"clear"},c={base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inherit:"inherit",inverse:"inverse"},d={small:"sm",medium:"md",large:"lg",full:"full",none:"none"},p={vertical:"vertical",horizontal:"horizontal"},m={height:"height",width:"width"},f={up:"up",down:"down",left:"left",right:"right",start:"start",mid:"mid",end:"end"},r={actions:"actions",container:"container",content:"content",group:"group",row:"row",nav:"nav",wrap:"wrap",wrapper:"wrapper",list:"list",placeholder:"placeholder",popup:"popup",item:"item",part:"part",picker:"picker",separator:"separator",spacer:"spacer",tab:"tab",titlebar:"titlebar",optionLabel:"optionlabel",view:"view"},o={table:"table",text:"text",button:"button",tbody:"tbody",thead:"thead",tr:"tr",th:"th",td:"td",header:"header",footer:"footer",icon:"icon",title:"title",subtitle:"subtitle",link:"link",label:"label",ul:"ul",caption:"caption"},h={increase:"increase",decrease:"decrease",cancel:"cancel",accept:"accept",split:"split"},x={active:"active",adaptive:"adaptive",first:"first",focus:"focus",pending:"pending",last:"last",draggable:"draggable",filterable:"filterable",grouping:"grouping",selected:"selected",highlighted:"highlighted",disabled:"disabled",hidden:"hidden",highlight:"highlight",invalid:"invalid",loading:"loading",required:"required",checked:"checked",empty:"empty",scrollable:"scrollable",sorted:"sorted",sortable:"sortable",sort:"sort",sticky:"sticky",stretched:"stretched",order:"order",alt:"alt",edit:"edit",template:"template",shown:"shown",horizontal:"horizontal",vertical:"vertical",fullscreen:"fullscreen",bottom:"bottom"},u={prefix:"animation",child:"child",relative:"relative",slide:"slide",appear:"appear",active:"active",enter:"enter",exit:"exit",pushRight:"push-right",pushLeft:"push-left",pushDown:"push-down",pushUp:"push-up",expandVertical:"expand-vertical",expandHorizontal:"expand-horizontal",fade:"fade",zoomIn:"zoom-in",zoomOut:"zoom-out",slideIn:"slide-in",slideDown:"slide-down",slideUp:"slide-up",slideRight:"slide-right",slideLeft:"slide-left",revealVertical:"reveal-vertical",revealHorizontal:"reveal-horizontal","animation-container":"animation-container","animation-container-shown":"animation-container-shown","animation-container-relative":"animation-container-relative","animation-container-fixed":"animation-container-fixed","child-animation-container":"child-animation-container"},i={input:"input",inner:"inner",spin:"spin",spinner:"spinner",maskedtextbox:"maskedtextbox",radio:"radio",textbox:"textbox",prefix:"prefix",suffix:"suffix"},b={week:"week",weekdays:"weekdays",weekend:"weekend",month:"month",year:"year",decade:"decade",century:"century",number:"number",navigation:"navigation",marker:"marker",now:"now",range:"range",today:"today",other:"other",date:"date",time:"time",selector:"selector",timeselector:"timeselector"},g={prefix:"icon",svg:"svg",i:"i",color:"color",flipH:"flip-h",flipV:"flip-v"},v={label:"label",text:"text",floatingLabel:"floating-label",container:"container",hint:"form-hint",error:"form-error"},w={form:"form",fieldset:"fieldset",legend:"legend",separator:"separator",field:"field"},k={prefix:"popup"},a={prefix:"grid",ariaRoot:"aria-root",tableWrap:"table-wrap",master:"master",column:"column",cell:"cell",cellInner:"cell-inner",row:"row",group:"group",hierarchy:"hierarchy",detail:"detail",noRecords:"norecords",pager:"pager"},y={drop:"drop",drag:"drag",hint:"hint",vertical:"v",horizontal:"h",clue:"clue",reorder:"reorder"},P=`${e.prefix}-${i.input}`,$=`${e.prefix}-${t.calendar}`,z=`${e.prefix}-${t.maskedtextbox}`,M=`${e.prefix}-${i.radio}`,R=`${e.prefix}-${o.button}`,L=`${e.prefix}-${t.menu}`,I=`${e.prefix}-${r.picker}`,D=`${e.prefix}-${t.dropdownlist}`,S=`${e.prefix}-${t.combobox}`,U=`${e.prefix}-${a.prefix}`,j={base:e,actions:h,animation:u,sizeMap:l,components:t,cssUtils:n,directionMap:f,fillModeMap:s,themeColorMap:c,roundedMap:d,orientationMap:p,elements:o,states:x,dimensions:m,containers:r,inputs:i,dateInputs:b,labels:v,forms:w,popup:k,icon:g,grid:a};exports.actions=h;exports.animationStyles=u;exports.base=e;exports.buttonPrefix=R;exports.calendarPrefix=$;exports.comboBoxPrefix=S;exports.components=t;exports.containers=r;exports.cssUtils=n;exports.dateInputs=b;exports.ddbPrefix=L;exports.dimensions=m;exports.directionMap=f;exports.dropDownListPrefix=D;exports.elements=o;exports.fillModeMap=s;exports.forms=w;exports.grid=a;exports.gridPrefix=U;exports.gridRowReorder=y;exports.icon=g;exports.inputPrefix=P;exports.inputs=i;exports.jsonTheme=j;exports.labels=v;exports.maskedPrefix=z;exports.orientationMap=p;exports.pickerPrefix=I;exports.popup=k;exports.radioPrefix=M;exports.roundedMap=d;exports.sizeMap=l;exports.states=x;exports.themeColorMap=c;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={prefix:"k",important:"!",rtl:"rtl",rounded:"rounded",value:"value",state:"state",filter:"filter",virtual:"virtual",infinite:"infinite",clear:"clear",reset:"reset",data:"data",nodata:"no-data",scroller:"scroller"},n={center:"center",hbox:"hbox",vstack:"vstack",hstack:"hstack",overflow:"overflow"},t={actionsheet:"actionsheet",calendar:"calendar",buttongroup:"buttongroup",dateinput:"dateinput",datetime:"datetime",datetimepicker:"datetimepicker",dropdownlist:"dropdownlist",combobox:"combobox",maskedtextbox:"maskedtextbox",menu:"menu",searchbox:"searchbox",timepicker:"timepicker"},l={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",xxlarge:"xxl",xxxlarge:"xxxl"},s={solid:"solid",outline:"outline",flat:"flat",link:"link",clear:"clear"},c={base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inherit:"inherit",inverse:"inverse"},d={small:"sm",medium:"md",large:"lg",full:"full",none:"none"},p={vertical:"vertical",horizontal:"horizontal"},m={height:"height",width:"width"},f={up:"up",down:"down",left:"left",right:"right",start:"start",mid:"mid",end:"end"},r={actions:"actions",container:"container",content:"content",group:"group",row:"row",nav:"nav",wrap:"wrap",wrapper:"wrapper",list:"list",placeholder:"placeholder",popup:"popup",item:"item",part:"part",picker:"picker",separator:"separator",spacer:"spacer",tab:"tab",titlebar:"titlebar",optionLabel:"optionlabel",view:"view"},o={table:"table",text:"text",button:"button",tbody:"tbody",thead:"thead",tr:"tr",th:"th",td:"td",header:"header",footer:"footer",icon:"icon",title:"title",subtitle:"subtitle",link:"link",label:"label",ul:"ul",caption:"caption"},h={increase:"increase",decrease:"decrease",cancel:"cancel",accept:"accept",split:"split"},x={active:"active",adaptive:"adaptive",first:"first",focus:"focus",pending:"pending",last:"last",draggable:"draggable",filterable:"filterable",grouping:"grouping",selected:"selected",highlighted:"highlighted",disabled:"disabled",hidden:"hidden",highlight:"highlight",invalid:"invalid",loading:"loading",required:"required",checked:"checked",empty:"empty",scrollable:"scrollable",sorted:"sorted",sortable:"sortable",sort:"sort",sticky:"sticky",stretched:"stretched",order:"order",alt:"alt",edit:"edit",template:"template",shown:"shown",horizontal:"horizontal",vertical:"vertical",fullscreen:"fullscreen",bottom:"bottom"},u={prefix:"animation",child:"child",relative:"relative",slide:"slide",appear:"appear",active:"active",enter:"enter",exit:"exit",pushRight:"push-right",pushLeft:"push-left",pushDown:"push-down",pushUp:"push-up",expandVertical:"expand-vertical",expandHorizontal:"expand-horizontal",fade:"fade",zoomIn:"zoom-in",zoomOut:"zoom-out",slideIn:"slide-in",slideDown:"slide-down",slideUp:"slide-up",slideRight:"slide-right",slideLeft:"slide-left",revealVertical:"reveal-vertical",revealHorizontal:"reveal-horizontal","animation-container":"animation-container","animation-container-shown":"animation-container-shown","animation-container-relative":"animation-container-relative","animation-container-fixed":"animation-container-fixed","child-animation-container":"child-animation-container"},i={input:"input",inner:"inner",spin:"spin",spinner:"spinner",maskedtextbox:"maskedtextbox",radio:"radio",textbox:"textbox",prefix:"prefix",suffix:"suffix"},b={week:"week",weekdays:"weekdays",weekend:"weekend",month:"month",year:"year",decade:"decade",century:"century",number:"number",navigation:"navigation",marker:"marker",now:"now",range:"range",today:"today",other:"other",date:"date",time:"time",selector:"selector",timeselector:"timeselector"},g={prefix:"icon",svg:"svg",i:"i",color:"color",flipH:"flip-h",flipV:"flip-v"},v={label:"label",text:"text",floatingLabel:"floating-label",container:"container",hint:"form-hint",error:"form-error"},w={form:"form",fieldset:"fieldset",legend:"legend",separator:"separator",field:"field"},k={prefix:"popup"},a={prefix:"grid",ariaRoot:"aria-root",tableWrap:"table-wrap",master:"master",column:"column",cell:"cell",cellInner:"cell-inner",row:"row",group:"group",hierarchy:"hierarchy",detail:"detail",noRecords:"norecords",pager:"pager"},y={drop:"drop",drag:"drag",hint:"hint",vertical:"v",horizontal:"h",clue:"clue",reorder:"reorder"},P=`${e.prefix}-${i.input}`,$=`${e.prefix}-${t.calendar}`,z=`${e.prefix}-${t.maskedtextbox}`,M=`${e.prefix}-${i.radio}`,R=`${e.prefix}-${o.button}`,L=`${e.prefix}-${t.menu}`,I=`${e.prefix}-${r.picker}`,D=`${e.prefix}-${t.dropdownlist}`,S=`${e.prefix}-${t.combobox}`,U=`${e.prefix}-${a.prefix}`,j={base:e,actions:h,animation:u,sizeMap:l,components:t,cssUtils:n,directionMap:f,fillModeMap:s,themeColorMap:c,roundedMap:d,orientationMap:p,elements:o,states:x,dimensions:m,containers:r,inputs:i,dateInputs:b,labels:v,forms:w,popup:k,icon:g,grid:a};exports.actions=h;exports.animationStyles=u;exports.base=e;exports.buttonPrefix=R;exports.calendarPrefix=$;exports.comboBoxPrefix=S;exports.components=t;exports.containers=r;exports.cssUtils=n;exports.dateInputs=b;exports.ddbPrefix=L;exports.dimensions=m;exports.directionMap=f;exports.dropDownListPrefix=D;exports.elements=o;exports.fillModeMap=s;exports.forms=w;exports.grid=a;exports.gridPrefix=U;exports.gridRowReorder=y;exports.icon=g;exports.inputPrefix=P;exports.inputs=i;exports.jsonTheme=j;exports.labels=v;exports.maskedPrefix=z;exports.orientationMap=p;exports.pickerPrefix=I;exports.popup=k;exports.radioPrefix=M;exports.roundedMap=d;exports.sizeMap=l;exports.states=x;exports.themeColorMap=c;
@@ -18,7 +18,7 @@ const e = {
18
18
  clear: "clear",
19
19
  reset: "reset",
20
20
  data: "data",
21
- nodata: "nodata",
21
+ nodata: "no-data",
22
22
  scroller: "scroller"
23
23
  }, n = {
24
24
  center: "center",
@@ -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
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@progress/kendo-licensing"),g=require("./canUseDOM.js"),d=["telerik.com","progress.com","stackblitz.io","csb.app","webcontainer.io"],h="https://www.telerik.com/kendo-react-ui/components/getting-started/free-vs-premium?utm_medium=product&utm_source=console&utm_campaign=dt_kendoreact_freemium",n=new Map,k=()=>{const t=Array.from(n,([e,c])=>`- ${e}: ${Array.from(c).join(", ")||"all"}`).join(`
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@progress/kendo-licensing"),g=require("./canUseDOM.js"),d=["telerik.com","progress.com","stackblitz.io","csb.app","webcontainer.io"],h="https://www.telerik.com/kendo-react-ui/components/getting-started/free-vs-premium?utm_medium=product&utm_source=console&utm_campaign=dt_kendoreact_freemium",c=new Map,k=()=>{const t=Array.from(c,([e,o])=>`- ${e}: ${Array.from(o).join(", ")||"all"}`).join(`
9
9
  `);console.group("[WARN][Telerik and Kendo UI Licensing] KendoReact"),console.warn(`License check was triggered by these premium KendoReact components/features
10
10
  ${t}
11
- See the full list of free and premium components here: ${h}`),console.groupEnd(),n.clear()},L=(t,e)=>{const c=i.validatePackage(t),o=d.some(s=>{var r;return(r=globalThis.document)==null?void 0:r.location.hostname.endsWith(s)});if(!c&&g.canUseDOM&&e)if(n.size===0&&setTimeout(k,1e3),n.has(e.component)){const s=n.get(e.component)||[];n.set(e.component,new Set([...e.features||[],...s]))}else n.set(e.component,e.features||[]);return c||o},w=t=>i.getLicenseStatus(t).isLicenseValid,a=new WeakMap,f=t=>{var m;if(a.has(t))return a.get(t);const{version:e,productName:c}=t,o=i.getLicenseStatus(t),s=o.message,r=o.licenseType,p=(m=o.expiration)==null?void 0:m.toDateString(),l=s&&"code"in s?s.code:void 0,u={...s,code:l,licenseType:r,version:e,productName:(s==null?void 0:s.productName)||c,expiration:p};return a.set(t,u),u};exports.getLicenseMessage=f;exports.hasValidLicense=w;exports.validatePackage=L;
11
+ See the full list of free and premium components here: ${h}`),console.groupEnd(),c.clear()},L=(t,e)=>{var a;const o=u.validatePackage(t),n=(a=globalThis.document)==null?void 0:a.location.hostname,s=!!n&&d.some(r=>n===r||n.endsWith("."+r));if(!o&&g.canUseDOM&&e)if(c.size===0&&setTimeout(k,1e3),c.has(e.component)){const r=c.get(e.component)||[];c.set(e.component,new Set([...e.features||[],...r]))}else c.set(e.component,e.features||[]);return o||s},w=t=>u.getLicenseStatus(t).isLicenseValid,i=new WeakMap,f=t=>{var p;if(i.has(t))return i.get(t);const{version:e,productName:o}=t,n=u.getLicenseStatus(t),s=n.message,a=n.licenseType,r=(p=n.expiration)==null?void 0:p.toDateString(),l=s&&"code"in s?s.code:void 0,m={...s,code:l,licenseType:a,version:e,productName:(s==null?void 0:s.productName)||o,expiration:r};return i.set(t,m),m};exports.getLicenseMessage=f;exports.hasValidLicense=w;exports.validatePackage=L;
@@ -5,43 +5,39 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { getLicenseStatus as u, validatePackage as d } from "@progress/kendo-licensing";
8
+ import { getLicenseStatus as p, validatePackage as d } from "@progress/kendo-licensing";
9
9
  import { canUseDOM as g } from "./canUseDOM.mjs";
10
- const h = ["telerik.com", "progress.com", "stackblitz.io", "csb.app", "webcontainer.io"], k = "https://www.telerik.com/kendo-react-ui/components/getting-started/free-vs-premium?utm_medium=product&utm_source=console&utm_campaign=dt_kendoreact_freemium", o = /* @__PURE__ */ new Map(), f = () => {
11
- const t = Array.from(o, ([e, n]) => `- ${e}: ${Array.from(n).join(", ") || "all"}`).join(`
10
+ const h = ["telerik.com", "progress.com", "stackblitz.io", "csb.app", "webcontainer.io"], k = "https://www.telerik.com/kendo-react-ui/components/getting-started/free-vs-premium?utm_medium=product&utm_source=console&utm_campaign=dt_kendoreact_freemium", n = /* @__PURE__ */ new Map(), f = () => {
11
+ const t = Array.from(n, ([e, c]) => `- ${e}: ${Array.from(c).join(", ") || "all"}`).join(`
12
12
  `);
13
13
  console.group("[WARN][Telerik and Kendo UI Licensing] KendoReact"), console.warn(
14
14
  `License check was triggered by these premium KendoReact components/features
15
15
  ${t}
16
16
  See the full list of free and premium components here: ${k}`
17
- ), console.groupEnd(), o.clear();
17
+ ), console.groupEnd(), n.clear();
18
18
  }, _ = (t, e) => {
19
- const n = d(t), c = h.some(
20
- (s) => {
21
- var r;
22
- return (r = globalThis.document) == null ? void 0 : r.location.hostname.endsWith(s);
23
- }
24
- );
25
- if (!n && g && e)
26
- if (o.size === 0 && setTimeout(f, 1e3), o.has(e.component)) {
27
- const s = o.get(e.component) || [];
28
- o.set(e.component, /* @__PURE__ */ new Set([...e.features || [], ...s]));
19
+ var a;
20
+ const c = d(t), o = (a = globalThis.document) == null ? void 0 : a.location.hostname, s = !!o && h.some((r) => o === r || o.endsWith("." + r));
21
+ if (!c && g && e)
22
+ if (n.size === 0 && setTimeout(f, 1e3), n.has(e.component)) {
23
+ const r = n.get(e.component) || [];
24
+ n.set(e.component, /* @__PURE__ */ new Set([...e.features || [], ...r]));
29
25
  } else
30
- o.set(e.component, e.features || []);
31
- return n || c;
32
- }, v = (t) => u(t).isLicenseValid, a = /* @__PURE__ */ new WeakMap(), M = (t) => {
33
- var m;
34
- if (a.has(t))
35
- return a.get(t);
36
- const { version: e, productName: n } = t, c = u(t), s = c.message, r = c.licenseType, p = (m = c.expiration) == null ? void 0 : m.toDateString(), l = s && "code" in s ? s.code : void 0, i = {
26
+ n.set(e.component, e.features || []);
27
+ return c || s;
28
+ }, v = (t) => p(t).isLicenseValid, i = /* @__PURE__ */ new WeakMap(), M = (t) => {
29
+ var u;
30
+ if (i.has(t))
31
+ return i.get(t);
32
+ const { version: e, productName: c } = t, o = p(t), s = o.message, a = o.licenseType, r = (u = o.expiration) == null ? void 0 : u.toDateString(), l = s && "code" in s ? s.code : void 0, m = {
37
33
  ...s,
38
34
  code: l,
39
- licenseType: r,
35
+ licenseType: a,
40
36
  version: e,
41
- productName: (s == null ? void 0 : s.productName) || n,
42
- expiration: p
37
+ productName: (s == null ? void 0 : s.productName) || c,
38
+ expiration: r
43
39
  };
44
- return a.set(t, i), i;
40
+ return i.set(t, m), m;
45
41
  };
46
42
  export {
47
43
  M as getLicenseMessage,