@progress/kendo-vue-data-tools 10.2.0-develop.8 → 11.0.0-develop.1
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/codemods/v8/datatools-appearance-null-props.js +12 -0
- package/codemods/v8/datatools-default-appearance-rendering-changes.js +12 -0
- package/codemods/v8/index.js +8 -0
- package/codemods/v8/utils.js +8 -0
- package/codemods/v9/datatools-rendering-changes.js +12 -0
- package/codemods/v9/index.js +8 -0
- package/codemods/v9/utils.js +8 -0
- package/dist/cdn/js/kendo-vue-datatools.js +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +40 -11
- package/EULA.pdf +0 -0
- package/EULA.rtf +0 -2730
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./utils.js"),a=`The size prop of the Pager no longer has a default value ('medium'). The codemod removed (or replaced with undefined when an earlier spread / v-bind object may provide the prop) the literal null values (size={null}, :size="null") that it could locate statically; omitting the prop is equivalent to the previous null.
|
|
9
|
+
Review the places it cannot reach: values that evaluate to null at runtime (for example :size="compact ? 'small' : null"), props passed through v-bind="obj" or JSX spreads, and wrappers that forward size to a Pager.
|
|
10
|
+
Before: <Pager :size="null" /> rendered no size classes, while an omitted size rendered the default k-pager-md class.
|
|
11
|
+
After: the prop is omitted and no size class is rendered; use undefined (or omit the prop) instead of null.
|
|
12
|
+
Replace null with undefined, or omit the prop, in the remaining places.`,o={Pager:["size"]};function i(t,r){return e.removeNullProps(t,r,e.DATATOOLS_PACKAGE,o)}exports.aiInstructions=a;exports.default=i;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("@progress/kendo-vue-common/codemods"),a=require("@progress/kendo-vue-common/codemods/detect"),n=require("./utils.js"),s=`The Pager size prop no longer has a default value ('medium'), so the size classes that the default produced are not rendered unless size is set explicitly. The Pager passes its size to the navigation buttons, the numeric buttons, the responsive page select and the page size DropDownList, and the FilterCell passes its size to its child controls, so these controls no longer receive a default size and lose the default appearance classes of the buttons and dropdowns packages as well. The size type of the Pager and FilterCell no longer accepts arbitrary strings (and the FilterCell no longer accepts null).
|
|
9
|
+
Review your stylesheets, tests, snapshots and templates that reference the classes below, and every Pager or FilterCell that relies on the previous default look.
|
|
10
|
+
Before: the Pager rendered k-pager-md and, in the responsive numeric select, k-picker-md; its navigation and numeric buttons rendered k-button-md and the page size DropDownList rendered k-picker-md k-picker-solid k-rounded-md.
|
|
11
|
+
After: none of these classes is rendered unless size is set explicitly on the Pager (or FilterCell).
|
|
12
|
+
Set size explicitly (for example size="medium") wherever the previous appearance must be kept, and update the CSS selectors, test queries and snapshots that depend on the removed classes.`,i={imports:["Pager","PagerInput","PagerNavigationButton","PagerNumericButtons","PagerPageSizes","FilterCell"],classes:["k-pager-md","k-picker-md"]};function o(e,r){return t.isRenderingChangeTarget(e.path)&&a.detectChange(e,r,n.DATATOOLS_PACKAGE,i)&&t.writeInstructionMarker(s,__filename,e.path),e.source}exports.aiInstructions=s;exports.default=o;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./datatools-appearance-null-props.js"),a=require("./datatools-default-appearance-rendering-changes.js");exports.DatatoolsAppearanceNullProps=e.default;exports.DatatoolsDefaultAppearanceRenderingChanges=a.default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("node:path"),d=require("@progress/kendo-vue-common/codemods/sfc");function O(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const h=O(E),P="@progress/kendo-vue-data-tools",x=new Set([".ts",".tsx",".js",".jsx",".vue"]),m=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0,v=e=>e?.type==="NullLiteral"||e?.type==="Literal"&&e.value===null&&!e.regex,b=(e,r)=>r.includes(d.camelize(e));function j(e,r){if(e.type!=="ObjectProperty"&&e.type!=="Property"||e.computed)return!1;const n=e.key;return n?.type==="Identifier"?b(n.name,r):(n?.type==="StringLiteral"||n?.type==="Literal")&&b(String(n.value),r)}function I(e,r){return e.type===7&&e.name==="bind"&&!!e.arg?.isStatic&&b(e.arg.content,r)&&e.exp?.content.trim()==="null"}const L=new Set(["JSXSpreadAttribute","SpreadElement","SpreadProperty","ExperimentalSpreadProperty"]),g=e=>L.has(e?.type),A=e=>e.type===7&&e.name==="bind"&&!e.arg;function J(e,r,n,c){const a=new Map,l=new Set;if(r.find(e.ImportDeclaration,{source:{value:n}}).forEach(t=>{const i=t.node;if(i.importKind!=="type")for(const s of i.specifiers??[])s.type==="ImportSpecifier"&&s.importKind!=="type"?m(c,s.imported.name)&&a.set(s.local?.name??s.imported.name,s.imported.name):s.type==="ImportNamespaceSpecifier"&&s.local&&l.add(s.local.name)}),!a.size&&!l.size)return;const y=(t,i)=>t.type==="JSXIdentifier"?d.isModuleLevelReference(i,t.name)?a.get(t.name):void 0:t.type==="JSXMemberExpression"&&t.object.type==="JSXIdentifier"&&l.has(t.object.name)&&d.isModuleLevelReference(i,t.object.name)&&m(c,t.property.name)?t.property.name:void 0,S=(t,i)=>t?.type==="Identifier"?d.isModuleLevelReference(i,t.name)?a.get(t.name):void 0:t?.type==="MemberExpression"&&!t.computed&&t.object.type==="Identifier"&&l.has(t.object.name)&&d.isModuleLevelReference(i,t.object.name)&&t.property.type==="Identifier"&&m(c,t.property.name)?t.property.name:void 0;r.find(e.JSXOpeningElement).forEach(t=>{const i=y(t.node.name,t),s=i?m(c,i):void 0;if(!s)return;const p=t.node.attributes??[];for(let u=p.length-1;u>=0;u--){const o=p[u];o.type==="JSXAttribute"&&o.name.type==="JSXIdentifier"&&b(o.name.name,s)&&o.value?.type==="JSXExpressionContainer"&&v(o.value.expression)&&(p.slice(0,u).some(g)?o.value.expression=e.identifier("undefined"):p.splice(u,1))}}),r.find(e.CallExpression).forEach(t=>{const{callee:i,arguments:s}=t.node;if(i.type!=="Identifier"||!["h","createVNode"].includes(i.name))return;const p=S(s[0],t),u=p?m(c,p):void 0;if(!u||s[1]?.type!=="ObjectExpression")return;const o=s[1].properties;for(let f=o.length-1;f>=0;f--)j(o[f],u)&&v(o[f].value)&&(o.slice(0,f).some(g)?o[f].value=e.identifier("undefined"):o.splice(f,1))})}function M(e,r,n,c){if(!x.has(h.extname(e.path))||!e.source.includes(n)||!/\bnull\b/.test(e.source))return e.source;try{return d.transformFile(e,r,{script:(a,l)=>J(a,l,n,c),template:a=>{const l=new Set;for(const y of Object.keys(c))for(const S of a.findElements(y,n))S.props.forEach((t,i)=>{!I(t,c[y])||l.has(t)||(l.add(t),S.props.slice(0,i).some(A)?a.setValue(t,"undefined"):a.removeAttribute(t))})}})}catch{return e.source}}exports.DATATOOLS_PACKAGE=P;exports.removeNullProps=M;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("@progress/kendo-vue-common/codemods"),s=require("@progress/kendo-vue-common/codemods/detect"),n=require("./utils.js"),r=`The default icons of the Pager navigation buttons changed, and the Pager wrapper renders a new class when it is responsive. The Grid renders the Pager, so the same applies to the Grid pager.
|
|
9
|
+
Review your stylesheets, tests and any code that references the caret-alt icons of the Pager first, previous, next and last page buttons.
|
|
10
|
+
Before: the buttons use the caret-alt-to-left, caret-alt-left, caret-alt-right and caret-alt-to-right icons (k-i-caret-alt-to-left, k-i-caret-alt-left, k-i-caret-alt-right and k-i-caret-alt-to-right font classes; k-svg-i-caret-alt-* SVG classes), mirrored in RTL. The wrapper renders k-pager and the size class.
|
|
11
|
+
After: the buttons use the chevron-double-left, chevron-left, chevron-right and chevron-double-right icons (k-i-chevron-double-left, k-i-chevron-left, k-i-chevron-right and k-i-chevron-double-right font classes; k-svg-i-chevron-* SVG classes), mirrored in RTL. When the responsive prop is set, the wrapper also renders k-pager-responsive.
|
|
12
|
+
Update CSS selectors, test queries and snapshots that depend on the previous icon classes. Change only the selectors that target Pager (or Grid pager) buttons; k-i-caret-alt-left and k-i-caret-alt-right can also belong to other components.`,o={classes:["k-i-caret-alt-to-left","k-i-caret-alt-to-right","k-i-caret-alt-left","k-i-caret-alt-right","k-svg-i-caret-alt-to-left","k-svg-i-caret-alt-to-right","k-svg-i-caret-alt-left","k-svg-i-caret-alt-right"]};function i(e,a){return t.isRenderingChangeTarget(e.path)&&s.detectChange(e,a,n.DATATOOLS_PACKAGE,o)&&t.writeInstructionMarker(r,__filename,e.path),e.source}exports.aiInstructions=r;exports.default=i;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./datatools-rendering-changes.js");exports.DatatoolsRenderingChanges=e.default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="@progress/kendo-vue-data-tools";exports.DATATOOLS_PACKAGE=e;
|