@progress/kendo-angular-grid 23.0.0-develop.8 → 23.0.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.
- package/codemods/utils.js +285 -39
- package/directives.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-grid.mjs +37 -11
- package/grid.component.d.ts +2 -2
- package/grid.module.d.ts +1 -1
- package/index.d.ts +1 -1
- package/localization/messages.d.ts +9 -1
- package/package-metadata.mjs +2 -2
- package/package.json +24 -24
- package/rendering/toolbar/tools/smartbox/smartbox-history-item.template.d.ts +0 -1
- package/rendering/toolbar/tools/smartbox/smartbox-suggestion.template.d.ts +0 -1
- package/schematics/ngAdd/index.js +7 -7
- /package/rendering/toolbar/tools/smartbox/{smartbox-tool.d.ts → smartbox-tool.component.d.ts} +0 -0
package/codemods/utils.js
CHANGED
|
@@ -775,6 +775,83 @@ const tsPropertyTransformer = (source, root, j, packageName, componentType, prop
|
|
|
775
775
|
localVariables.add(path.node.id.name);
|
|
776
776
|
}
|
|
777
777
|
});
|
|
778
|
+
// Find array variables of type componentType[]
|
|
779
|
+
// This handles cases like: const arr: ChatComponent[] = [...]; arr[0].property = value;
|
|
780
|
+
const arrayVariables = new Set();
|
|
781
|
+
root.find(j.VariableDeclarator).forEach((path) => {
|
|
782
|
+
if (path.node.id.type === 'Identifier' &&
|
|
783
|
+
path.node.id.typeAnnotation &&
|
|
784
|
+
path.node.id.typeAnnotation.typeAnnotation?.type === 'TSArrayType' &&
|
|
785
|
+
path.node.id.typeAnnotation.typeAnnotation.elementType?.type === 'TSTypeReference' &&
|
|
786
|
+
path.node.id.typeAnnotation.typeAnnotation.elementType.typeName?.type === 'Identifier' &&
|
|
787
|
+
path.node.id.typeAnnotation.typeAnnotation.elementType.typeName.name === componentType) {
|
|
788
|
+
arrayVariables.add(path.node.id.name);
|
|
789
|
+
}
|
|
790
|
+
});
|
|
791
|
+
// Find object properties that have componentType (e.g., {chat: ChatComponent})
|
|
792
|
+
// This handles cases like: const config: {chat: ChatComponent} = {...}; config.chat.property = value;
|
|
793
|
+
const objectProperties = new Map(); // Maps variable name to property names
|
|
794
|
+
root.find(j.VariableDeclarator).forEach((path) => {
|
|
795
|
+
if (path.node.id.type === 'Identifier' &&
|
|
796
|
+
path.node.id.typeAnnotation &&
|
|
797
|
+
path.node.id.typeAnnotation.typeAnnotation?.type === 'TSTypeLiteral') {
|
|
798
|
+
const varName = path.node.id.name;
|
|
799
|
+
const members = path.node.id.typeAnnotation.typeAnnotation.members;
|
|
800
|
+
members.forEach((member) => {
|
|
801
|
+
if (member.type === 'TSPropertySignature' &&
|
|
802
|
+
member.key &&
|
|
803
|
+
member.key.type === 'Identifier' &&
|
|
804
|
+
member.typeAnnotation &&
|
|
805
|
+
member.typeAnnotation.typeAnnotation?.type === 'TSTypeReference' &&
|
|
806
|
+
member.typeAnnotation.typeAnnotation.typeName?.type === 'Identifier' &&
|
|
807
|
+
member.typeAnnotation.typeAnnotation.typeName.name === componentType) {
|
|
808
|
+
if (!objectProperties.has(varName)) {
|
|
809
|
+
objectProperties.set(varName, []);
|
|
810
|
+
}
|
|
811
|
+
objectProperties.get(varName).push(member.key.name);
|
|
812
|
+
}
|
|
813
|
+
});
|
|
814
|
+
}
|
|
815
|
+
});
|
|
816
|
+
// Helper function to check if a node is a componentType instance
|
|
817
|
+
const isComponentTypeInstance = (node) => {
|
|
818
|
+
// Direct identifier (parameter or local variable)
|
|
819
|
+
if (node.type === 'Identifier') {
|
|
820
|
+
return parameters.has(node.name) || localVariables.has(node.name);
|
|
821
|
+
}
|
|
822
|
+
// this.property where property is of componentType
|
|
823
|
+
if (node.type === 'MemberExpression' && node.property.type === 'Identifier') {
|
|
824
|
+
if (node.object.type === 'ThisExpression' && properties.has(node.property.name)) {
|
|
825
|
+
return true;
|
|
826
|
+
}
|
|
827
|
+
// Handle nested object properties: objectVar.propertyName where propertyName is of componentType
|
|
828
|
+
if (node.object.type === 'Identifier') {
|
|
829
|
+
const objName = node.object.name;
|
|
830
|
+
const propName = node.property.name;
|
|
831
|
+
if (objectProperties.has(objName)) {
|
|
832
|
+
const props = objectProperties.get(objName);
|
|
833
|
+
return props.includes(propName);
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
// Array element access: arrayVar[index]
|
|
838
|
+
if (node.type === 'MemberExpression' &&
|
|
839
|
+
node.object.type === 'Identifier' &&
|
|
840
|
+
arrayVariables.has(node.object.name)) {
|
|
841
|
+
return true;
|
|
842
|
+
}
|
|
843
|
+
// TypeScript type assertions like (this.componentProperty as ComponentType)
|
|
844
|
+
if (node.type === 'TSAsExpression') {
|
|
845
|
+
if (node.typeAnnotation &&
|
|
846
|
+
node.typeAnnotation.type === 'TSTypeReference' &&
|
|
847
|
+
node.typeAnnotation.typeName &&
|
|
848
|
+
node.typeAnnotation.typeName.type === 'Identifier' &&
|
|
849
|
+
node.typeAnnotation.typeName.name === componentType) {
|
|
850
|
+
return true;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
return false;
|
|
854
|
+
};
|
|
778
855
|
// Find all member expressions where propertyName is accessed on any componentType instance
|
|
779
856
|
root.find(j.MemberExpression, {
|
|
780
857
|
property: {
|
|
@@ -783,31 +860,7 @@ const tsPropertyTransformer = (source, root, j, packageName, componentType, prop
|
|
|
783
860
|
},
|
|
784
861
|
})
|
|
785
862
|
.filter((path) => {
|
|
786
|
-
|
|
787
|
-
if (path.node.object.type === 'MemberExpression' && path.node.object.property.type === 'Identifier') {
|
|
788
|
-
// handle properties of this
|
|
789
|
-
if (path.node.object.object.type === 'ThisExpression' &&
|
|
790
|
-
properties.has(path.node.object.property.name)) {
|
|
791
|
-
return true;
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
// Handle function parameters and local variables
|
|
795
|
-
if (path.node.object.type === 'Identifier') {
|
|
796
|
-
return parameters.has(path.node.object.name) || localVariables.has(path.node.object.name);
|
|
797
|
-
}
|
|
798
|
-
// Handle TypeScript type assertions like (this.componentProperty as ComponentType).property
|
|
799
|
-
if (path.node.object.type === 'TSAsExpression') {
|
|
800
|
-
const typeAssertion = path.node.object;
|
|
801
|
-
// Check if the type assertion is casting to our componentType
|
|
802
|
-
if (typeAssertion.typeAnnotation &&
|
|
803
|
-
typeAssertion.typeAnnotation.type === 'TSTypeReference' &&
|
|
804
|
-
typeAssertion.typeAnnotation.typeName &&
|
|
805
|
-
typeAssertion.typeAnnotation.typeName.type === 'Identifier' &&
|
|
806
|
-
typeAssertion.typeAnnotation.typeName.name === componentType) {
|
|
807
|
-
return true;
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
return false;
|
|
863
|
+
return isComponentTypeInstance(path.node.object);
|
|
811
864
|
})
|
|
812
865
|
.forEach((path) => {
|
|
813
866
|
// Replace old property name with new property name
|
|
@@ -844,6 +897,91 @@ const tsPropertyTransformer = (source, root, j, packageName, componentType, prop
|
|
|
844
897
|
}
|
|
845
898
|
}
|
|
846
899
|
});
|
|
900
|
+
// Transform object literal properties in variable declarations and assignments
|
|
901
|
+
// This handles cases like: const obj: ComponentType = { oldProperty: 'value' }
|
|
902
|
+
root.find(j.VariableDeclarator)
|
|
903
|
+
.filter((path) => {
|
|
904
|
+
// Check if the variable has the componentType type annotation
|
|
905
|
+
return Boolean(path.node.id.type === 'Identifier' &&
|
|
906
|
+
path.node.id.typeAnnotation &&
|
|
907
|
+
path.node.id.typeAnnotation.typeAnnotation?.type === 'TSTypeReference' &&
|
|
908
|
+
path.node.id.typeAnnotation.typeAnnotation.typeName?.type === 'Identifier' &&
|
|
909
|
+
path.node.id.typeAnnotation.typeAnnotation.typeName.name === componentType);
|
|
910
|
+
})
|
|
911
|
+
.forEach((path) => {
|
|
912
|
+
// Check if the initializer is an object expression
|
|
913
|
+
if (path.node.init && path.node.init.type === 'ObjectExpression') {
|
|
914
|
+
path.node.init.properties.forEach((prop) => {
|
|
915
|
+
// Rename the property if it matches
|
|
916
|
+
if (prop.type === 'ObjectProperty' &&
|
|
917
|
+
prop.key &&
|
|
918
|
+
prop.key.type === 'Identifier' &&
|
|
919
|
+
prop.key.name === propertyName) {
|
|
920
|
+
prop.key.name = newPropertyName;
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
});
|
|
925
|
+
// Transform object literal properties in class properties
|
|
926
|
+
// This handles cases like: customMessages: ComponentType = { oldProperty: 'value' }
|
|
927
|
+
root.find(j.ClassProperty)
|
|
928
|
+
.filter((path) => {
|
|
929
|
+
// Check if the property has the componentType type annotation
|
|
930
|
+
return Boolean(path.node.typeAnnotation &&
|
|
931
|
+
path.node.typeAnnotation.typeAnnotation?.type === 'TSTypeReference' &&
|
|
932
|
+
path.node.typeAnnotation.typeAnnotation.typeName?.type === 'Identifier' &&
|
|
933
|
+
path.node.typeAnnotation.typeAnnotation.typeName.name === componentType);
|
|
934
|
+
})
|
|
935
|
+
.forEach((path) => {
|
|
936
|
+
// Check if the value is an object expression
|
|
937
|
+
if (path.node.value && path.node.value.type === 'ObjectExpression') {
|
|
938
|
+
path.node.value.properties.forEach((prop) => {
|
|
939
|
+
// Rename the property if it matches
|
|
940
|
+
if (prop.type === 'ObjectProperty' &&
|
|
941
|
+
prop.key &&
|
|
942
|
+
prop.key.type === 'Identifier' &&
|
|
943
|
+
prop.key.name === propertyName) {
|
|
944
|
+
prop.key.name = newPropertyName;
|
|
945
|
+
}
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
});
|
|
949
|
+
// Transform object literal properties in assignment expressions
|
|
950
|
+
// This handles cases like: this.obj = { oldProperty: 'value' }
|
|
951
|
+
root.find(j.AssignmentExpression)
|
|
952
|
+
.filter((path) => {
|
|
953
|
+
// Check if we're assigning an object literal
|
|
954
|
+
return path.node.right.type === 'ObjectExpression';
|
|
955
|
+
})
|
|
956
|
+
.forEach((path) => {
|
|
957
|
+
// We need to determine if the left side is of componentType
|
|
958
|
+
// This is more complex as we need to check the type of the assignment target
|
|
959
|
+
const leftSide = path.node.left;
|
|
960
|
+
let isTargetComponentType = false;
|
|
961
|
+
// Check if it's a property that we know is of componentType
|
|
962
|
+
if (leftSide.type === 'MemberExpression' && leftSide.property.type === 'Identifier') {
|
|
963
|
+
if (leftSide.object.type === 'ThisExpression' && properties.has(leftSide.property.name)) {
|
|
964
|
+
isTargetComponentType = true;
|
|
965
|
+
}
|
|
966
|
+
else if (leftSide.object.type === 'Identifier' && localVariables.has(leftSide.object.name)) {
|
|
967
|
+
isTargetComponentType = true;
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
else if (leftSide.type === 'Identifier') {
|
|
971
|
+
isTargetComponentType = localVariables.has(leftSide.name) || parameters.has(leftSide.name);
|
|
972
|
+
}
|
|
973
|
+
if (isTargetComponentType && path.node.right.type === 'ObjectExpression') {
|
|
974
|
+
path.node.right.properties.forEach((prop) => {
|
|
975
|
+
// Rename the property if it matches
|
|
976
|
+
if (prop.type === 'ObjectProperty' &&
|
|
977
|
+
prop.key &&
|
|
978
|
+
prop.key.type === 'Identifier' &&
|
|
979
|
+
prop.key.name === propertyName) {
|
|
980
|
+
prop.key.name = newPropertyName;
|
|
981
|
+
}
|
|
982
|
+
});
|
|
983
|
+
}
|
|
984
|
+
});
|
|
847
985
|
}
|
|
848
986
|
};
|
|
849
987
|
exports.tsPropertyTransformer = tsPropertyTransformer;
|
|
@@ -1022,6 +1160,103 @@ const tsInterfaceTransformer = (fileInfo, rootSource, j, packageName, interfaceN
|
|
|
1022
1160
|
path.node.callee.name = newName;
|
|
1023
1161
|
}
|
|
1024
1162
|
});
|
|
1163
|
+
// Helper function to recursively transform type references
|
|
1164
|
+
const transformTypeReference = (typeNode) => {
|
|
1165
|
+
if (!typeNode)
|
|
1166
|
+
return;
|
|
1167
|
+
// Handle TSTypeReference (e.g., FileSelectSettings)
|
|
1168
|
+
if (typeNode.type === 'TSTypeReference' &&
|
|
1169
|
+
typeNode.typeName &&
|
|
1170
|
+
typeNode.typeName.type === 'Identifier' &&
|
|
1171
|
+
typeNode.typeName.name === interfaceName) {
|
|
1172
|
+
typeNode.typeName.name = newName;
|
|
1173
|
+
}
|
|
1174
|
+
// Handle TSArrayType (e.g., FileSelectSettings[])
|
|
1175
|
+
if (typeNode.type === 'TSArrayType' && typeNode.elementType) {
|
|
1176
|
+
transformTypeReference(typeNode.elementType);
|
|
1177
|
+
}
|
|
1178
|
+
// Handle generic Array<T> (e.g., Array<FileSelectSettings>)
|
|
1179
|
+
if (typeNode.type === 'TSTypeReference' &&
|
|
1180
|
+
typeNode.typeParameters &&
|
|
1181
|
+
typeNode.typeParameters.params) {
|
|
1182
|
+
typeNode.typeParameters.params.forEach((param) => {
|
|
1183
|
+
transformTypeReference(param);
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1186
|
+
// Handle TSTypeLiteral (e.g., { primary: FileSelectSettings })
|
|
1187
|
+
if (typeNode.type === 'TSTypeLiteral' && typeNode.members) {
|
|
1188
|
+
typeNode.members.forEach((member) => {
|
|
1189
|
+
if (member.typeAnnotation && member.typeAnnotation.typeAnnotation) {
|
|
1190
|
+
transformTypeReference(member.typeAnnotation.typeAnnotation);
|
|
1191
|
+
}
|
|
1192
|
+
});
|
|
1193
|
+
}
|
|
1194
|
+
// Handle TSFunctionType (e.g., (settings: FileSelectSettings) => void)
|
|
1195
|
+
if (typeNode.type === 'TSFunctionType') {
|
|
1196
|
+
if (typeNode.parameters) {
|
|
1197
|
+
typeNode.parameters.forEach((param) => {
|
|
1198
|
+
if (param.typeAnnotation && param.typeAnnotation.typeAnnotation) {
|
|
1199
|
+
transformTypeReference(param.typeAnnotation.typeAnnotation);
|
|
1200
|
+
}
|
|
1201
|
+
});
|
|
1202
|
+
}
|
|
1203
|
+
if (typeNode.typeAnnotation && typeNode.typeAnnotation.typeAnnotation) {
|
|
1204
|
+
transformTypeReference(typeNode.typeAnnotation.typeAnnotation);
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
};
|
|
1208
|
+
// Apply recursive transformation to all type annotations
|
|
1209
|
+
rootSource.find(j.VariableDeclarator).forEach((path) => {
|
|
1210
|
+
if (path.node.id.type === 'Identifier' &&
|
|
1211
|
+
path.node.id.typeAnnotation &&
|
|
1212
|
+
path.node.id.typeAnnotation.typeAnnotation) {
|
|
1213
|
+
transformTypeReference(path.node.id.typeAnnotation.typeAnnotation);
|
|
1214
|
+
}
|
|
1215
|
+
});
|
|
1216
|
+
rootSource.find(j.ClassProperty).forEach((path) => {
|
|
1217
|
+
if (path.node.typeAnnotation && path.node.typeAnnotation.typeAnnotation) {
|
|
1218
|
+
transformTypeReference(path.node.typeAnnotation.typeAnnotation);
|
|
1219
|
+
}
|
|
1220
|
+
});
|
|
1221
|
+
rootSource.find(j.ClassMethod).forEach((path) => {
|
|
1222
|
+
if (path.node.returnType && path.node.returnType.typeAnnotation) {
|
|
1223
|
+
transformTypeReference(path.node.returnType.typeAnnotation);
|
|
1224
|
+
}
|
|
1225
|
+
// Transform parameter types recursively
|
|
1226
|
+
if (path.node.params) {
|
|
1227
|
+
path.node.params.forEach((param) => {
|
|
1228
|
+
if (param.typeAnnotation && param.typeAnnotation.typeAnnotation) {
|
|
1229
|
+
transformTypeReference(param.typeAnnotation.typeAnnotation);
|
|
1230
|
+
}
|
|
1231
|
+
});
|
|
1232
|
+
}
|
|
1233
|
+
});
|
|
1234
|
+
rootSource.find(j.FunctionDeclaration).forEach((path) => {
|
|
1235
|
+
if (path.node.returnType && path.node.returnType.typeAnnotation) {
|
|
1236
|
+
transformTypeReference(path.node.returnType.typeAnnotation);
|
|
1237
|
+
}
|
|
1238
|
+
// Transform parameter types recursively
|
|
1239
|
+
if (path.node.params) {
|
|
1240
|
+
path.node.params.forEach((param) => {
|
|
1241
|
+
if (param.typeAnnotation && param.typeAnnotation.typeAnnotation) {
|
|
1242
|
+
transformTypeReference(param.typeAnnotation.typeAnnotation);
|
|
1243
|
+
}
|
|
1244
|
+
});
|
|
1245
|
+
}
|
|
1246
|
+
});
|
|
1247
|
+
rootSource.find(j.ArrowFunctionExpression).forEach((path) => {
|
|
1248
|
+
if (path.node.returnType && path.node.returnType.typeAnnotation) {
|
|
1249
|
+
transformTypeReference(path.node.returnType.typeAnnotation);
|
|
1250
|
+
}
|
|
1251
|
+
// Transform parameter types recursively
|
|
1252
|
+
if (path.node.params) {
|
|
1253
|
+
path.node.params.forEach((param) => {
|
|
1254
|
+
if (param.typeAnnotation && param.typeAnnotation.typeAnnotation) {
|
|
1255
|
+
transformTypeReference(param.typeAnnotation.typeAnnotation);
|
|
1256
|
+
}
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
});
|
|
1025
1260
|
}
|
|
1026
1261
|
};
|
|
1027
1262
|
exports.tsInterfaceTransformer = tsInterfaceTransformer;
|
|
@@ -1035,21 +1270,26 @@ function isComponentTypeMatch(root, j, node, componentType) {
|
|
|
1035
1270
|
if (node.type === 'Identifier') {
|
|
1036
1271
|
const paramName = node.name;
|
|
1037
1272
|
// Check function parameters
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1273
|
+
let isParameter = false;
|
|
1274
|
+
root.find(j.Function).forEach((path) => {
|
|
1275
|
+
if (path.node.params && path.node.params.some((param) => param.type === 'Identifier' &&
|
|
1276
|
+
param.name === paramName &&
|
|
1277
|
+
param.typeAnnotation?.typeAnnotation?.typeName?.name === componentType)) {
|
|
1278
|
+
isParameter = true;
|
|
1279
|
+
}
|
|
1043
1280
|
});
|
|
1044
1281
|
if (isParameter)
|
|
1045
1282
|
return true;
|
|
1046
1283
|
// Check local variable declarations
|
|
1047
|
-
|
|
1048
|
-
|
|
1284
|
+
let isLocalVariable = false;
|
|
1285
|
+
root.find(j.VariableDeclarator).forEach((path) => {
|
|
1286
|
+
if (path.node.id.type === 'Identifier' &&
|
|
1049
1287
|
path.node.id.name === paramName &&
|
|
1050
1288
|
path.node.id.typeAnnotation?.typeAnnotation?.type === 'TSTypeReference' &&
|
|
1051
1289
|
path.node.id.typeAnnotation.typeAnnotation.typeName?.type === 'Identifier' &&
|
|
1052
|
-
path.node.id.typeAnnotation.typeAnnotation.typeName.name === componentType)
|
|
1290
|
+
path.node.id.typeAnnotation.typeAnnotation.typeName.name === componentType) {
|
|
1291
|
+
isLocalVariable = true;
|
|
1292
|
+
}
|
|
1053
1293
|
});
|
|
1054
1294
|
return isLocalVariable;
|
|
1055
1295
|
}
|
|
@@ -1072,13 +1312,14 @@ function isComponentTypeMatch(root, j, node, componentType) {
|
|
|
1072
1312
|
const varName = node.object.name;
|
|
1073
1313
|
const propName = node.property.name;
|
|
1074
1314
|
// Check if this is an object with a property of componentType
|
|
1075
|
-
|
|
1315
|
+
let hasMatchingProperty = false;
|
|
1316
|
+
root.find(j.VariableDeclarator).forEach((path) => {
|
|
1076
1317
|
if (path.node.id.type === 'Identifier' &&
|
|
1077
1318
|
path.node.id.name === varName &&
|
|
1078
1319
|
path.node.id.typeAnnotation &&
|
|
1079
1320
|
path.node.id.typeAnnotation.typeAnnotation?.type === 'TSTypeLiteral') {
|
|
1080
1321
|
const members = path.node.id.typeAnnotation.typeAnnotation.members;
|
|
1081
|
-
|
|
1322
|
+
const found = members.some((member) => {
|
|
1082
1323
|
return (member.type === 'TSPropertySignature' &&
|
|
1083
1324
|
member.key?.type === 'Identifier' &&
|
|
1084
1325
|
member.key.name === propName &&
|
|
@@ -1086,8 +1327,10 @@ function isComponentTypeMatch(root, j, node, componentType) {
|
|
|
1086
1327
|
member.typeAnnotation.typeAnnotation.typeName?.type === 'Identifier' &&
|
|
1087
1328
|
member.typeAnnotation.typeAnnotation.typeName.name === componentType);
|
|
1088
1329
|
});
|
|
1330
|
+
if (found) {
|
|
1331
|
+
hasMatchingProperty = true;
|
|
1332
|
+
}
|
|
1089
1333
|
}
|
|
1090
|
-
return false;
|
|
1091
1334
|
});
|
|
1092
1335
|
return hasMatchingProperty;
|
|
1093
1336
|
}
|
|
@@ -1097,13 +1340,16 @@ function isComponentTypeMatch(root, j, node, componentType) {
|
|
|
1097
1340
|
if (node.type === 'MemberExpression' && node.computed === true && node.object.type === 'Identifier') {
|
|
1098
1341
|
const arrayName = node.object.name;
|
|
1099
1342
|
// Check if this array is of type ChatComponent[]
|
|
1100
|
-
|
|
1101
|
-
|
|
1343
|
+
let isComponentArray = false;
|
|
1344
|
+
root.find(j.VariableDeclarator).forEach((path) => {
|
|
1345
|
+
if (path.node.id.type === 'Identifier' &&
|
|
1102
1346
|
path.node.id.name === arrayName &&
|
|
1103
1347
|
path.node.id.typeAnnotation?.typeAnnotation?.type === 'TSArrayType' &&
|
|
1104
1348
|
path.node.id.typeAnnotation.typeAnnotation.elementType?.type === 'TSTypeReference' &&
|
|
1105
1349
|
path.node.id.typeAnnotation.typeAnnotation.elementType.typeName?.type === 'Identifier' &&
|
|
1106
|
-
path.node.id.typeAnnotation.typeAnnotation.elementType.typeName.name === componentType)
|
|
1350
|
+
path.node.id.typeAnnotation.typeAnnotation.elementType.typeName.name === componentType) {
|
|
1351
|
+
isComponentArray = true;
|
|
1352
|
+
}
|
|
1107
1353
|
});
|
|
1108
1354
|
return isComponentArray;
|
|
1109
1355
|
}
|
package/directives.d.ts
CHANGED
|
@@ -154,7 +154,7 @@ import { GroupCommandToolbarDirective } from "./rendering/toolbar/tools/group-co
|
|
|
154
154
|
import { HighlightDirective } from "./highlight/highlight.directive";
|
|
155
155
|
import { AIAssistantToolbarDirective } from "./rendering/toolbar/tools/ai-assistant/ai-tool.directive";
|
|
156
156
|
import { SelectAllToolbarToolComponent } from "./rendering/toolbar/tools/select-all-command-tool.directive";
|
|
157
|
-
import { SmartBoxToolbarToolComponent } from "./rendering/toolbar/tools/smartbox/smartbox-tool";
|
|
157
|
+
import { SmartBoxToolbarToolComponent } from "./rendering/toolbar/tools/smartbox/smartbox-tool.component";
|
|
158
158
|
import { GridSmartBoxHistoryItemTemplateDirective } from "./rendering/toolbar/tools/smartbox/smartbox-history-item.template";
|
|
159
159
|
import { GridSmartBoxPromptSuggestionTemplateDirective } from "./rendering/toolbar/tools/smartbox/smartbox-suggestion.template";
|
|
160
160
|
/**
|
|
@@ -24136,7 +24136,7 @@ const packageMetadata = {
|
|
|
24136
24136
|
productCode: 'KENDOUIANGULAR',
|
|
24137
24137
|
productCodes: ['KENDOUIANGULAR'],
|
|
24138
24138
|
publishDate: 0,
|
|
24139
|
-
version: '23.0.0
|
|
24139
|
+
version: '23.0.0',
|
|
24140
24140
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
24141
24141
|
};
|
|
24142
24142
|
|
|
@@ -29165,8 +29165,16 @@ class GridMessages extends ComponentMessages {
|
|
|
29165
29165
|
* The Semantic Search mode description displayed in the SmartBox tool search modes list.
|
|
29166
29166
|
*/
|
|
29167
29167
|
semanticSearchModeListItemDescription;
|
|
29168
|
+
/**
|
|
29169
|
+
* The text for the Search mode button in the SmartBox tool popup.
|
|
29170
|
+
*/
|
|
29171
|
+
smartBoxSearchModePopupButton;
|
|
29172
|
+
/**
|
|
29173
|
+
* The text for the AI Assistant mode button in the SmartBox tool popup.
|
|
29174
|
+
*/
|
|
29175
|
+
smartBoxAIAssistantModePopupButton;
|
|
29168
29176
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GridMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
29169
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: GridMessages, isStandalone: true, selector: "kendo-grid-messages-base", inputs: { groupPanelEmpty: "groupPanelEmpty", noRecords: "noRecords", pagerLabel: "pagerLabel", pagerFirstPage: "pagerFirstPage", pagerLastPage: "pagerLastPage", pagerPreviousPage: "pagerPreviousPage", pagerNextPage: "pagerNextPage", pagerPage: "pagerPage", pagerItemsPerPage: "pagerItemsPerPage", pagerOf: "pagerOf", pagerItems: "pagerItems", pagerPageNumberInputTitle: "pagerPageNumberInputTitle", pagerInputLabel: "pagerInputLabel", pagerSelectPage: "pagerSelectPage", filter: "filter", filterInputLabel: "filterInputLabel", filterMenuTitle: "filterMenuTitle", filterMenuOperatorsDropDownLabel: "filterMenuOperatorsDropDownLabel", filterMenuLogicDropDownLabel: "filterMenuLogicDropDownLabel", filterCellOperatorLabel: "filterCellOperatorLabel", booleanFilterCellLabel: "booleanFilterCellLabel", aiAssistantApplyButtonText: "aiAssistantApplyButtonText", aiAssistantToolbarToolText: "aiAssistantToolbarToolText", aiAssistantWindowTitle: "aiAssistantWindowTitle", aiAssistantWindowCloseTitle: "aiAssistantWindowCloseTitle", aiAssistantOutputCardTitle: "aiAssistantOutputCardTitle", aiAssistantOutputCardBodyContent: "aiAssistantOutputCardBodyContent", aiAssistantSelectionNotEnabled: "aiAssistantSelectionNotEnabled", aiAssistantSelectionRowModeRequired: "aiAssistantSelectionRowModeRequired", aiAssistantSelectionCellModeRequired: "aiAssistantSelectionCellModeRequired", aiAssistantWindowMaximizeTitle: "aiAssistantWindowMaximizeTitle", aiAssistantWindowMinimizeTitle: "aiAssistantWindowMinimizeTitle", aiAssistantWindowRestoreTitle: "aiAssistantWindowRestoreTitle", filterEqOperator: "filterEqOperator", filterNotEqOperator: "filterNotEqOperator", filterIsNullOperator: "filterIsNullOperator", filterIsNotNullOperator: "filterIsNotNullOperator", filterIsEmptyOperator: "filterIsEmptyOperator", filterIsNotEmptyOperator: "filterIsNotEmptyOperator", filterStartsWithOperator: "filterStartsWithOperator", filterContainsOperator: "filterContainsOperator", filterNotContainsOperator: "filterNotContainsOperator", filterEndsWithOperator: "filterEndsWithOperator", filterGteOperator: "filterGteOperator", filterGtOperator: "filterGtOperator", filterLteOperator: "filterLteOperator", filterLtOperator: "filterLtOperator", filterIsTrue: "filterIsTrue", filterIsFalse: "filterIsFalse", filterBooleanAll: "filterBooleanAll", adaptiveFilterOperatorsTitle: "adaptiveFilterOperatorsTitle", filterAfterOrEqualOperator: "filterAfterOrEqualOperator", filterAfterOperator: "filterAfterOperator", filterBeforeOperator: "filterBeforeOperator", filterBeforeOrEqualOperator: "filterBeforeOrEqualOperator", filterFilterButton: "filterFilterButton", filterClearButton: "filterClearButton", adaptiveCloseButtonTitle: "adaptiveCloseButtonTitle", adaptiveBackButtonTitle: "adaptiveBackButtonTitle", filterAndLogic: "filterAndLogic", filterOrLogic: "filterOrLogic", filterToolbarToolText: "filterToolbarToolText", loading: "loading", gridLabel: "gridLabel", columnMenu: "columnMenu", setColumnPosition: "setColumnPosition", columns: "columns", columnChooserSelectAll: "columnChooserSelectAll", columnChooserSearchLabel: "columnChooserSearchLabel", columnChooserSelectedColumnsCount: "columnChooserSelectedColumnsCount", columnsSubtitle: "columnsSubtitle", adaptiveFilterTitle: "adaptiveFilterTitle", adaptiveSortTitle: "adaptiveSortTitle", adaptiveGroupTitle: "adaptiveGroupTitle", filterClearAllButton: "filterClearAllButton", groupClearButton: "groupClearButton", sortClearButton: "sortClearButton", sortDoneButton: "sortDoneButton", groupDoneButton: "groupDoneButton", lock: "lock", unlock: "unlock", stick: "stick", unstick: "unstick", sortable: "sortable", sortAscending: "sortAscending", sortDescending: "sortDescending", autosizeThisColumn: "autosizeThisColumn", autosizeAllColumns: "autosizeAllColumns", sortedAscending: "sortedAscending", sortedDescending: "sortedDescending", sortedDefault: "sortedDefault", sortToolbarToolText: "sortToolbarToolText", columnsApply: "columnsApply", columnsReset: "columnsReset", detailExpand: "detailExpand", detailCollapse: "detailCollapse", filterDateToday: "filterDateToday", filterDateToggle: "filterDateToggle", filterNumericDecrement: "filterNumericDecrement", filterNumericIncrement: "filterNumericIncrement", selectionCheckboxLabel: "selectionCheckboxLabel", selectAllCheckboxLabel: "selectAllCheckboxLabel", groupCollapse: "groupCollapse", groupExpand: "groupExpand", topToolbarLabel: "topToolbarLabel", bottomToolbarLabel: "bottomToolbarLabel", editToolbarToolText: "editToolbarToolText", saveToolbarToolText: "saveToolbarToolText", addToolbarToolText: "addToolbarToolText", cancelToolbarToolText: "cancelToolbarToolText", removeToolbarToolText: "removeToolbarToolText", excelExportToolbarToolText: "excelExportToolbarToolText", csvExportToolbarToolText: "csvExportToolbarToolText", pdfExportToolbarToolText: "pdfExportToolbarToolText", groupPanelLabel: "groupPanelLabel", dragRowHandleLabel: "dragRowHandleLabel", columnMenuFilterTabTitle: "columnMenuFilterTabTitle", columnMenuGeneralTabTitle: "columnMenuGeneralTabTitle", columnMenuColumnsTabTitle: "columnMenuColumnsTabTitle", groupChipMenuPrevious: "groupChipMenuPrevious", groupChipMenuNext: "groupChipMenuNext", groupToolbarToolText: "groupToolbarToolText", formValidationErrorText: "formValidationErrorText", removeConfirmationDialogTitle: "removeConfirmationDialogTitle", removeConfirmationDialogContent: "removeConfirmationDialogContent", removeConfirmationDialogConfirmText: "removeConfirmationDialogConfirmText", removeConfirmationDialogRejectText: "removeConfirmationDialogRejectText", externalEditingTitle: "externalEditingTitle", externalEditingAddTitle: "externalEditingAddTitle", externalEditingSaveText: "externalEditingSaveText", externalEditingCancelText: "externalEditingCancelText", multiCheckboxFilterSearchPlaceholder: "multiCheckboxFilterSearchPlaceholder", multiCheckboxFilterSelectAllLabel: "multiCheckboxFilterSelectAllLabel", multiCheckboxFilterSelectedItemsCount: "multiCheckboxFilterSelectedItemsCount", smartBoxSpeechToTextButton: "smartBoxSpeechToTextButton", smartBoxSubmitPromptButton: "smartBoxSubmitPromptButton", smartBoxSearchPlaceholder: "smartBoxSearchPlaceholder", smartBoxSemanticSearchPlaceholder: "smartBoxSemanticSearchPlaceholder", smartBoxAIAssistantPlaceholder: "smartBoxAIAssistantPlaceholder", smartBoxSuggestedPrompts: "smartBoxSuggestedPrompts", smartBoxNoPreviousSearches: "smartBoxNoPreviousSearches", smartBoxNoPreviousPrompts: "smartBoxNoPreviousPrompts", smartBoxPreviouslySearched: "smartBoxPreviouslySearched", smartBoxPreviouslyAsked: "smartBoxPreviouslyAsked", searchModeListItemText: "searchModeListItemText", searchModeListItemDescription: "searchModeListItemDescription", semanticSearchModeListItemText: "semanticSearchModeListItemText", semanticSearchModeListItemDescription: "semanticSearchModeListItemDescription" }, usesInheritance: true, ngImport: i0 });
|
|
29177
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: GridMessages, isStandalone: true, selector: "kendo-grid-messages-base", inputs: { groupPanelEmpty: "groupPanelEmpty", noRecords: "noRecords", pagerLabel: "pagerLabel", pagerFirstPage: "pagerFirstPage", pagerLastPage: "pagerLastPage", pagerPreviousPage: "pagerPreviousPage", pagerNextPage: "pagerNextPage", pagerPage: "pagerPage", pagerItemsPerPage: "pagerItemsPerPage", pagerOf: "pagerOf", pagerItems: "pagerItems", pagerPageNumberInputTitle: "pagerPageNumberInputTitle", pagerInputLabel: "pagerInputLabel", pagerSelectPage: "pagerSelectPage", filter: "filter", filterInputLabel: "filterInputLabel", filterMenuTitle: "filterMenuTitle", filterMenuOperatorsDropDownLabel: "filterMenuOperatorsDropDownLabel", filterMenuLogicDropDownLabel: "filterMenuLogicDropDownLabel", filterCellOperatorLabel: "filterCellOperatorLabel", booleanFilterCellLabel: "booleanFilterCellLabel", aiAssistantApplyButtonText: "aiAssistantApplyButtonText", aiAssistantToolbarToolText: "aiAssistantToolbarToolText", aiAssistantWindowTitle: "aiAssistantWindowTitle", aiAssistantWindowCloseTitle: "aiAssistantWindowCloseTitle", aiAssistantOutputCardTitle: "aiAssistantOutputCardTitle", aiAssistantOutputCardBodyContent: "aiAssistantOutputCardBodyContent", aiAssistantSelectionNotEnabled: "aiAssistantSelectionNotEnabled", aiAssistantSelectionRowModeRequired: "aiAssistantSelectionRowModeRequired", aiAssistantSelectionCellModeRequired: "aiAssistantSelectionCellModeRequired", aiAssistantWindowMaximizeTitle: "aiAssistantWindowMaximizeTitle", aiAssistantWindowMinimizeTitle: "aiAssistantWindowMinimizeTitle", aiAssistantWindowRestoreTitle: "aiAssistantWindowRestoreTitle", filterEqOperator: "filterEqOperator", filterNotEqOperator: "filterNotEqOperator", filterIsNullOperator: "filterIsNullOperator", filterIsNotNullOperator: "filterIsNotNullOperator", filterIsEmptyOperator: "filterIsEmptyOperator", filterIsNotEmptyOperator: "filterIsNotEmptyOperator", filterStartsWithOperator: "filterStartsWithOperator", filterContainsOperator: "filterContainsOperator", filterNotContainsOperator: "filterNotContainsOperator", filterEndsWithOperator: "filterEndsWithOperator", filterGteOperator: "filterGteOperator", filterGtOperator: "filterGtOperator", filterLteOperator: "filterLteOperator", filterLtOperator: "filterLtOperator", filterIsTrue: "filterIsTrue", filterIsFalse: "filterIsFalse", filterBooleanAll: "filterBooleanAll", adaptiveFilterOperatorsTitle: "adaptiveFilterOperatorsTitle", filterAfterOrEqualOperator: "filterAfterOrEqualOperator", filterAfterOperator: "filterAfterOperator", filterBeforeOperator: "filterBeforeOperator", filterBeforeOrEqualOperator: "filterBeforeOrEqualOperator", filterFilterButton: "filterFilterButton", filterClearButton: "filterClearButton", adaptiveCloseButtonTitle: "adaptiveCloseButtonTitle", adaptiveBackButtonTitle: "adaptiveBackButtonTitle", filterAndLogic: "filterAndLogic", filterOrLogic: "filterOrLogic", filterToolbarToolText: "filterToolbarToolText", loading: "loading", gridLabel: "gridLabel", columnMenu: "columnMenu", setColumnPosition: "setColumnPosition", columns: "columns", columnChooserSelectAll: "columnChooserSelectAll", columnChooserSearchLabel: "columnChooserSearchLabel", columnChooserSelectedColumnsCount: "columnChooserSelectedColumnsCount", columnsSubtitle: "columnsSubtitle", adaptiveFilterTitle: "adaptiveFilterTitle", adaptiveSortTitle: "adaptiveSortTitle", adaptiveGroupTitle: "adaptiveGroupTitle", filterClearAllButton: "filterClearAllButton", groupClearButton: "groupClearButton", sortClearButton: "sortClearButton", sortDoneButton: "sortDoneButton", groupDoneButton: "groupDoneButton", lock: "lock", unlock: "unlock", stick: "stick", unstick: "unstick", sortable: "sortable", sortAscending: "sortAscending", sortDescending: "sortDescending", autosizeThisColumn: "autosizeThisColumn", autosizeAllColumns: "autosizeAllColumns", sortedAscending: "sortedAscending", sortedDescending: "sortedDescending", sortedDefault: "sortedDefault", sortToolbarToolText: "sortToolbarToolText", columnsApply: "columnsApply", columnsReset: "columnsReset", detailExpand: "detailExpand", detailCollapse: "detailCollapse", filterDateToday: "filterDateToday", filterDateToggle: "filterDateToggle", filterNumericDecrement: "filterNumericDecrement", filterNumericIncrement: "filterNumericIncrement", selectionCheckboxLabel: "selectionCheckboxLabel", selectAllCheckboxLabel: "selectAllCheckboxLabel", groupCollapse: "groupCollapse", groupExpand: "groupExpand", topToolbarLabel: "topToolbarLabel", bottomToolbarLabel: "bottomToolbarLabel", editToolbarToolText: "editToolbarToolText", saveToolbarToolText: "saveToolbarToolText", addToolbarToolText: "addToolbarToolText", cancelToolbarToolText: "cancelToolbarToolText", removeToolbarToolText: "removeToolbarToolText", excelExportToolbarToolText: "excelExportToolbarToolText", csvExportToolbarToolText: "csvExportToolbarToolText", pdfExportToolbarToolText: "pdfExportToolbarToolText", groupPanelLabel: "groupPanelLabel", dragRowHandleLabel: "dragRowHandleLabel", columnMenuFilterTabTitle: "columnMenuFilterTabTitle", columnMenuGeneralTabTitle: "columnMenuGeneralTabTitle", columnMenuColumnsTabTitle: "columnMenuColumnsTabTitle", groupChipMenuPrevious: "groupChipMenuPrevious", groupChipMenuNext: "groupChipMenuNext", groupToolbarToolText: "groupToolbarToolText", formValidationErrorText: "formValidationErrorText", removeConfirmationDialogTitle: "removeConfirmationDialogTitle", removeConfirmationDialogContent: "removeConfirmationDialogContent", removeConfirmationDialogConfirmText: "removeConfirmationDialogConfirmText", removeConfirmationDialogRejectText: "removeConfirmationDialogRejectText", externalEditingTitle: "externalEditingTitle", externalEditingAddTitle: "externalEditingAddTitle", externalEditingSaveText: "externalEditingSaveText", externalEditingCancelText: "externalEditingCancelText", multiCheckboxFilterSearchPlaceholder: "multiCheckboxFilterSearchPlaceholder", multiCheckboxFilterSelectAllLabel: "multiCheckboxFilterSelectAllLabel", multiCheckboxFilterSelectedItemsCount: "multiCheckboxFilterSelectedItemsCount", smartBoxSpeechToTextButton: "smartBoxSpeechToTextButton", smartBoxSubmitPromptButton: "smartBoxSubmitPromptButton", smartBoxSearchPlaceholder: "smartBoxSearchPlaceholder", smartBoxSemanticSearchPlaceholder: "smartBoxSemanticSearchPlaceholder", smartBoxAIAssistantPlaceholder: "smartBoxAIAssistantPlaceholder", smartBoxSuggestedPrompts: "smartBoxSuggestedPrompts", smartBoxNoPreviousSearches: "smartBoxNoPreviousSearches", smartBoxNoPreviousPrompts: "smartBoxNoPreviousPrompts", smartBoxPreviouslySearched: "smartBoxPreviouslySearched", smartBoxPreviouslyAsked: "smartBoxPreviouslyAsked", searchModeListItemText: "searchModeListItemText", searchModeListItemDescription: "searchModeListItemDescription", semanticSearchModeListItemText: "semanticSearchModeListItemText", semanticSearchModeListItemDescription: "semanticSearchModeListItemDescription", smartBoxSearchModePopupButton: "smartBoxSearchModePopupButton", smartBoxAIAssistantModePopupButton: "smartBoxAIAssistantModePopupButton" }, usesInheritance: true, ngImport: i0 });
|
|
29170
29178
|
}
|
|
29171
29179
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GridMessages, decorators: [{
|
|
29172
29180
|
type: Directive,
|
|
@@ -29470,6 +29478,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
29470
29478
|
type: Input
|
|
29471
29479
|
}], semanticSearchModeListItemDescription: [{
|
|
29472
29480
|
type: Input
|
|
29481
|
+
}], smartBoxSearchModePopupButton: [{
|
|
29482
|
+
type: Input
|
|
29483
|
+
}], smartBoxAIAssistantModePopupButton: [{
|
|
29484
|
+
type: Input
|
|
29473
29485
|
}] } });
|
|
29474
29486
|
|
|
29475
29487
|
/**
|
|
@@ -33246,7 +33258,7 @@ class GridComponent {
|
|
|
33246
33258
|
}
|
|
33247
33259
|
/**
|
|
33248
33260
|
* Builds the request body for the AI service based on the provided prompt message.
|
|
33249
|
-
* Allows developers to construct
|
|
33261
|
+
* Allows developers to construct the AI service requests manually ([see example](slug:ai_assistant_tools_setup#manual-integration)).
|
|
33250
33262
|
*
|
|
33251
33263
|
* @param promptMessage - The prompt message to send to the AI service.
|
|
33252
33264
|
* @returns The request body object ready to be sent to the AI service.
|
|
@@ -33266,7 +33278,7 @@ class GridComponent {
|
|
|
33266
33278
|
}
|
|
33267
33279
|
/**
|
|
33268
33280
|
* Processes an AI service response and applies the commands to the Grid.
|
|
33269
|
-
* Allows developers to handle
|
|
33281
|
+
* Allows developers to handle the AI service responses manually ([see example](slug:ai_assistant_tools_setup#manual-integration)).
|
|
33270
33282
|
*
|
|
33271
33283
|
* @param response - The AI service response containing optional message and commands array.
|
|
33272
33284
|
*
|
|
@@ -34973,6 +34985,12 @@ class GridComponent {
|
|
|
34973
34985
|
|
|
34974
34986
|
i18n-semanticSearchModeListItemDescription="kendo.grid.semanticSearchModeListItemDescription|The Semantic Search mode description displayed in the SmartBox tool search modes list."
|
|
34975
34987
|
semanticSearchModeListItemDescription="Understands context to surface the most relevant results."
|
|
34988
|
+
|
|
34989
|
+
i18n-smartBoxSearchModePopupButton="kendo.grid.smartBoxSearchModePopupButton|The text for the Search mode button in the SmartBox tool popup."
|
|
34990
|
+
smartBoxSearchModePopupButton="Search"
|
|
34991
|
+
|
|
34992
|
+
i18n-smartBoxAIAssistantModePopupButton="kendo.grid.smartBoxAIAssistantModePopupButton|The text for the AI Assistant mode button in the SmartBox tool popup."
|
|
34993
|
+
smartBoxAIAssistantModePopupButton="AI Assistant"
|
|
34976
34994
|
>
|
|
34977
34995
|
</ng-container>
|
|
34978
34996
|
@if (showTopToolbar) {
|
|
@@ -35947,6 +35965,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
35947
35965
|
|
|
35948
35966
|
i18n-semanticSearchModeListItemDescription="kendo.grid.semanticSearchModeListItemDescription|The Semantic Search mode description displayed in the SmartBox tool search modes list."
|
|
35949
35967
|
semanticSearchModeListItemDescription="Understands context to surface the most relevant results."
|
|
35968
|
+
|
|
35969
|
+
i18n-smartBoxSearchModePopupButton="kendo.grid.smartBoxSearchModePopupButton|The text for the Search mode button in the SmartBox tool popup."
|
|
35970
|
+
smartBoxSearchModePopupButton="Search"
|
|
35971
|
+
|
|
35972
|
+
i18n-smartBoxAIAssistantModePopupButton="kendo.grid.smartBoxAIAssistantModePopupButton|The text for the AI Assistant mode button in the SmartBox tool popup."
|
|
35973
|
+
smartBoxAIAssistantModePopupButton="AI Assistant"
|
|
35950
35974
|
>
|
|
35951
35975
|
</ng-container>
|
|
35952
35976
|
@if (showTopToolbar) {
|
|
@@ -40062,6 +40086,7 @@ class HighlightDirective {
|
|
|
40062
40086
|
setState(highlightedKeys) {
|
|
40063
40087
|
this.reset();
|
|
40064
40088
|
if (!highlightedKeys || highlightedKeys.length === 0) {
|
|
40089
|
+
this.highlightedKeys = [];
|
|
40065
40090
|
this.notifyChange();
|
|
40066
40091
|
return;
|
|
40067
40092
|
}
|
|
@@ -40075,6 +40100,7 @@ class HighlightDirective {
|
|
|
40075
40100
|
this.rowHighlightState.add(item.itemKey);
|
|
40076
40101
|
});
|
|
40077
40102
|
}
|
|
40103
|
+
this.highlightedKeys = highlightedKeys;
|
|
40078
40104
|
this.notifyChange();
|
|
40079
40105
|
}
|
|
40080
40106
|
notifyChange() {
|
|
@@ -40969,7 +40995,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
40969
40995
|
}] } });
|
|
40970
40996
|
|
|
40971
40997
|
/**
|
|
40972
|
-
* @hidden
|
|
40973
40998
|
* Renders the prompt suggestion content.
|
|
40974
40999
|
*
|
|
40975
41000
|
* To define the suggestion template, nest a `<ng-template>` tag with the `kendoGridSmartBoxPromptSuggestionTemplate` directive inside the component tag.
|
|
@@ -41003,7 +41028,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
41003
41028
|
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
41004
41029
|
|
|
41005
41030
|
/**
|
|
41006
|
-
* @hidden
|
|
41007
41031
|
* Renders the history item content.
|
|
41008
41032
|
*
|
|
41009
41033
|
* To define the history item template, nest a `<ng-template>` tag with the `kendoGridSmartBoxHistoryItemTemplate` directive inside the component tag.
|
|
@@ -41347,15 +41371,15 @@ class SmartBoxComponent {
|
|
|
41347
41371
|
const buttons = [];
|
|
41348
41372
|
if ((this.searchMode?.enabled || this.semanticSearchMode?.enabled) && this.aiAssistantMode?.enabled) {
|
|
41349
41373
|
if (this.searchMode?.enabled && !this.semanticSearchMode?.enabled) {
|
|
41350
|
-
buttons.push({ text: '
|
|
41374
|
+
buttons.push({ text: this.messageFor('smartBoxSearchModePopupButton'), svgIcon: searchIcon, icon: 'search', selected: this.selectedView === 'search' });
|
|
41351
41375
|
}
|
|
41352
41376
|
else if (!this.searchMode?.enabled && this.semanticSearchMode?.enabled) {
|
|
41353
|
-
buttons.push({ text: '
|
|
41377
|
+
buttons.push({ text: this.messageFor('smartBoxSearchModePopupButton'), svgIcon: zoomSparkleIcon, icon: 'zoom-sparkle', selected: this.selectedView === 'semanticSearch', iconInnerCssClass: this.selectedView === 'semanticSearch' ? 'k-accent-icon' : '' });
|
|
41354
41378
|
}
|
|
41355
41379
|
else if (this.searchMode?.enabled && this.semanticSearchMode?.enabled) {
|
|
41356
|
-
buttons.push({ text: '
|
|
41380
|
+
buttons.push({ text: this.messageFor('smartBoxSearchModePopupButton'), svgIcon: searchIcon, icon: 'search', selected: this.selectedView === 'search' || this.selectedView === 'semanticSearch', iconInnerCssClass: this.selectedView === 'semanticSearch' ? 'k-accent-icon' : '' });
|
|
41357
41381
|
}
|
|
41358
|
-
buttons.push({ text: '
|
|
41382
|
+
buttons.push({ text: this.messageFor('smartBoxAIAssistantModePopupButton'), svgIcon: sparklesIcon, icon: 'sparkles', selected: this.selectedView === 'aiAssistant', iconInnerCssClass: this.selectedView === 'aiAssistant' ? 'k-accent-icon' : '' });
|
|
41359
41383
|
}
|
|
41360
41384
|
return buttons;
|
|
41361
41385
|
}
|
|
@@ -41390,6 +41414,7 @@ class SmartBoxComponent {
|
|
|
41390
41414
|
return this.intl.formatDate(date, format);
|
|
41391
41415
|
}
|
|
41392
41416
|
onModeChange(button) {
|
|
41417
|
+
this.clearTypingTimeout();
|
|
41393
41418
|
let previousView;
|
|
41394
41419
|
if (this.searchListData.length > 0) {
|
|
41395
41420
|
previousView = this.searchListData.find(i => i.selected)?.text;
|
|
@@ -41416,6 +41441,7 @@ class SmartBoxComponent {
|
|
|
41416
41441
|
this.cdr.detectChanges();
|
|
41417
41442
|
}
|
|
41418
41443
|
onSearchItemClick(item) {
|
|
41444
|
+
this.clearTypingTimeout();
|
|
41419
41445
|
this.searchListData.forEach(i => i.selected = false);
|
|
41420
41446
|
this.searchListData.find(i => i.text === item.text).selected = true;
|
|
41421
41447
|
this.selectedView = item.text === 'Search' ? 'search' : 'semanticSearch';
|
|
@@ -41669,7 +41695,7 @@ class SmartBoxComponent {
|
|
|
41669
41695
|
this.aiAssistantPromptRequest.emit({ requestData: this.requestData });
|
|
41670
41696
|
});
|
|
41671
41697
|
this.togglePopup(false);
|
|
41672
|
-
this.
|
|
41698
|
+
this.input.nativeElement.value = '';
|
|
41673
41699
|
if (!this.aiAssistantMode.requestUrl) {
|
|
41674
41700
|
return;
|
|
41675
41701
|
}
|
package/grid.component.d.ts
CHANGED
|
@@ -801,7 +801,7 @@ export declare class GridComponent implements AfterContentInit, AfterViewInit, O
|
|
|
801
801
|
resetGroupsState(): void;
|
|
802
802
|
/**
|
|
803
803
|
* Builds the request body for the AI service based on the provided prompt message.
|
|
804
|
-
* Allows developers to construct
|
|
804
|
+
* Allows developers to construct the AI service requests manually ([see example](slug:ai_assistant_tools_setup#manual-integration)).
|
|
805
805
|
*
|
|
806
806
|
* @param promptMessage - The prompt message to send to the AI service.
|
|
807
807
|
* @returns The request body object ready to be sent to the AI service.
|
|
@@ -819,7 +819,7 @@ export declare class GridComponent implements AfterContentInit, AfterViewInit, O
|
|
|
819
819
|
getAIRequest(promptMessage: string): any;
|
|
820
820
|
/**
|
|
821
821
|
* Processes an AI service response and applies the commands to the Grid.
|
|
822
|
-
* Allows developers to handle
|
|
822
|
+
* Allows developers to handle the AI service responses manually ([see example](slug:ai_assistant_tools_setup#manual-integration)).
|
|
823
823
|
*
|
|
824
824
|
* @param response - The AI service response containing optional message and commands array.
|
|
825
825
|
*
|
package/grid.module.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ import * as i44 from "./rendering/toolbar/tools/filter-command-tool.directive";
|
|
|
50
50
|
import * as i45 from "./rendering/toolbar/tools/ai-assistant/ai-tool.directive";
|
|
51
51
|
import * as i46 from "./rendering/toolbar/tools/group-command-tool.directive";
|
|
52
52
|
import * as i47 from "./rendering/toolbar/tools/select-all-command-tool.directive";
|
|
53
|
-
import * as i48 from "./rendering/toolbar/tools/smartbox/smartbox-tool";
|
|
53
|
+
import * as i48 from "./rendering/toolbar/tools/smartbox/smartbox-tool.component";
|
|
54
54
|
import * as i49 from "./rendering/toolbar/tools/smartbox/smartbox-history-item.template";
|
|
55
55
|
import * as i50 from "./rendering/toolbar/tools/smartbox/smartbox-suggestion.template";
|
|
56
56
|
import * as i51 from "./rendering/header/header.component";
|
package/index.d.ts
CHANGED
|
@@ -268,6 +268,6 @@ export { MenuTabbingService } from './filtering/menu/menu-tabbing.service';
|
|
|
268
268
|
export * from './rendering/toolbar/tools/ai-assistant/models';
|
|
269
269
|
export { AdaptiveGridService } from './common/adaptiveness.service';
|
|
270
270
|
export { GridSmartBoxAIAssistantSettings, GridSmartBoxHistorySettings, GridSmartBoxMode, GridSmartBoxRequestEvent, GridSmartBoxResponseErrorEvent, GridSmartBoxResponseSuccessEvent, GridSmartBoxSearchEvent, GridSmartBoxSearchSettings, GridSmartBoxSemanticSearchEvent, GridSmartBoxSemanticSearchSettings } from './rendering/toolbar/tools/smartbox/models';
|
|
271
|
-
export { SmartBoxToolbarToolComponent } from './rendering/toolbar/tools/smartbox/smartbox-tool';
|
|
271
|
+
export { SmartBoxToolbarToolComponent } from './rendering/toolbar/tools/smartbox/smartbox-tool.component';
|
|
272
272
|
export { GridSmartBoxHistoryItemTemplateDirective } from './rendering/toolbar/tools/smartbox/smartbox-history-item.template';
|
|
273
273
|
export { GridSmartBoxPromptSuggestionTemplateDirective } from './rendering/toolbar/tools/smartbox/smartbox-suggestion.template';
|
|
@@ -682,6 +682,14 @@ export declare class GridMessages extends ComponentMessages {
|
|
|
682
682
|
* The Semantic Search mode description displayed in the SmartBox tool search modes list.
|
|
683
683
|
*/
|
|
684
684
|
semanticSearchModeListItemDescription: string;
|
|
685
|
+
/**
|
|
686
|
+
* The text for the Search mode button in the SmartBox tool popup.
|
|
687
|
+
*/
|
|
688
|
+
smartBoxSearchModePopupButton: string;
|
|
689
|
+
/**
|
|
690
|
+
* The text for the AI Assistant mode button in the SmartBox tool popup.
|
|
691
|
+
*/
|
|
692
|
+
smartBoxAIAssistantModePopupButton: string;
|
|
685
693
|
static ɵfac: i0.ɵɵFactoryDeclaration<GridMessages, never>;
|
|
686
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<GridMessages, "kendo-grid-messages-base", never, { "groupPanelEmpty": { "alias": "groupPanelEmpty"; "required": false; }; "noRecords": { "alias": "noRecords"; "required": false; }; "pagerLabel": { "alias": "pagerLabel"; "required": false; }; "pagerFirstPage": { "alias": "pagerFirstPage"; "required": false; }; "pagerLastPage": { "alias": "pagerLastPage"; "required": false; }; "pagerPreviousPage": { "alias": "pagerPreviousPage"; "required": false; }; "pagerNextPage": { "alias": "pagerNextPage"; "required": false; }; "pagerPage": { "alias": "pagerPage"; "required": false; }; "pagerItemsPerPage": { "alias": "pagerItemsPerPage"; "required": false; }; "pagerOf": { "alias": "pagerOf"; "required": false; }; "pagerItems": { "alias": "pagerItems"; "required": false; }; "pagerPageNumberInputTitle": { "alias": "pagerPageNumberInputTitle"; "required": false; }; "pagerInputLabel": { "alias": "pagerInputLabel"; "required": false; }; "pagerSelectPage": { "alias": "pagerSelectPage"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "filterInputLabel": { "alias": "filterInputLabel"; "required": false; }; "filterMenuTitle": { "alias": "filterMenuTitle"; "required": false; }; "filterMenuOperatorsDropDownLabel": { "alias": "filterMenuOperatorsDropDownLabel"; "required": false; }; "filterMenuLogicDropDownLabel": { "alias": "filterMenuLogicDropDownLabel"; "required": false; }; "filterCellOperatorLabel": { "alias": "filterCellOperatorLabel"; "required": false; }; "booleanFilterCellLabel": { "alias": "booleanFilterCellLabel"; "required": false; }; "aiAssistantApplyButtonText": { "alias": "aiAssistantApplyButtonText"; "required": false; }; "aiAssistantToolbarToolText": { "alias": "aiAssistantToolbarToolText"; "required": false; }; "aiAssistantWindowTitle": { "alias": "aiAssistantWindowTitle"; "required": false; }; "aiAssistantWindowCloseTitle": { "alias": "aiAssistantWindowCloseTitle"; "required": false; }; "aiAssistantOutputCardTitle": { "alias": "aiAssistantOutputCardTitle"; "required": false; }; "aiAssistantOutputCardBodyContent": { "alias": "aiAssistantOutputCardBodyContent"; "required": false; }; "aiAssistantSelectionNotEnabled": { "alias": "aiAssistantSelectionNotEnabled"; "required": false; }; "aiAssistantSelectionRowModeRequired": { "alias": "aiAssistantSelectionRowModeRequired"; "required": false; }; "aiAssistantSelectionCellModeRequired": { "alias": "aiAssistantSelectionCellModeRequired"; "required": false; }; "aiAssistantWindowMaximizeTitle": { "alias": "aiAssistantWindowMaximizeTitle"; "required": false; }; "aiAssistantWindowMinimizeTitle": { "alias": "aiAssistantWindowMinimizeTitle"; "required": false; }; "aiAssistantWindowRestoreTitle": { "alias": "aiAssistantWindowRestoreTitle"; "required": false; }; "filterEqOperator": { "alias": "filterEqOperator"; "required": false; }; "filterNotEqOperator": { "alias": "filterNotEqOperator"; "required": false; }; "filterIsNullOperator": { "alias": "filterIsNullOperator"; "required": false; }; "filterIsNotNullOperator": { "alias": "filterIsNotNullOperator"; "required": false; }; "filterIsEmptyOperator": { "alias": "filterIsEmptyOperator"; "required": false; }; "filterIsNotEmptyOperator": { "alias": "filterIsNotEmptyOperator"; "required": false; }; "filterStartsWithOperator": { "alias": "filterStartsWithOperator"; "required": false; }; "filterContainsOperator": { "alias": "filterContainsOperator"; "required": false; }; "filterNotContainsOperator": { "alias": "filterNotContainsOperator"; "required": false; }; "filterEndsWithOperator": { "alias": "filterEndsWithOperator"; "required": false; }; "filterGteOperator": { "alias": "filterGteOperator"; "required": false; }; "filterGtOperator": { "alias": "filterGtOperator"; "required": false; }; "filterLteOperator": { "alias": "filterLteOperator"; "required": false; }; "filterLtOperator": { "alias": "filterLtOperator"; "required": false; }; "filterIsTrue": { "alias": "filterIsTrue"; "required": false; }; "filterIsFalse": { "alias": "filterIsFalse"; "required": false; }; "filterBooleanAll": { "alias": "filterBooleanAll"; "required": false; }; "adaptiveFilterOperatorsTitle": { "alias": "adaptiveFilterOperatorsTitle"; "required": false; }; "filterAfterOrEqualOperator": { "alias": "filterAfterOrEqualOperator"; "required": false; }; "filterAfterOperator": { "alias": "filterAfterOperator"; "required": false; }; "filterBeforeOperator": { "alias": "filterBeforeOperator"; "required": false; }; "filterBeforeOrEqualOperator": { "alias": "filterBeforeOrEqualOperator"; "required": false; }; "filterFilterButton": { "alias": "filterFilterButton"; "required": false; }; "filterClearButton": { "alias": "filterClearButton"; "required": false; }; "adaptiveCloseButtonTitle": { "alias": "adaptiveCloseButtonTitle"; "required": false; }; "adaptiveBackButtonTitle": { "alias": "adaptiveBackButtonTitle"; "required": false; }; "filterAndLogic": { "alias": "filterAndLogic"; "required": false; }; "filterOrLogic": { "alias": "filterOrLogic"; "required": false; }; "filterToolbarToolText": { "alias": "filterToolbarToolText"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "gridLabel": { "alias": "gridLabel"; "required": false; }; "columnMenu": { "alias": "columnMenu"; "required": false; }; "setColumnPosition": { "alias": "setColumnPosition"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "columnChooserSelectAll": { "alias": "columnChooserSelectAll"; "required": false; }; "columnChooserSearchLabel": { "alias": "columnChooserSearchLabel"; "required": false; }; "columnChooserSelectedColumnsCount": { "alias": "columnChooserSelectedColumnsCount"; "required": false; }; "columnsSubtitle": { "alias": "columnsSubtitle"; "required": false; }; "adaptiveFilterTitle": { "alias": "adaptiveFilterTitle"; "required": false; }; "adaptiveSortTitle": { "alias": "adaptiveSortTitle"; "required": false; }; "adaptiveGroupTitle": { "alias": "adaptiveGroupTitle"; "required": false; }; "filterClearAllButton": { "alias": "filterClearAllButton"; "required": false; }; "groupClearButton": { "alias": "groupClearButton"; "required": false; }; "sortClearButton": { "alias": "sortClearButton"; "required": false; }; "sortDoneButton": { "alias": "sortDoneButton"; "required": false; }; "groupDoneButton": { "alias": "groupDoneButton"; "required": false; }; "lock": { "alias": "lock"; "required": false; }; "unlock": { "alias": "unlock"; "required": false; }; "stick": { "alias": "stick"; "required": false; }; "unstick": { "alias": "unstick"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "sortAscending": { "alias": "sortAscending"; "required": false; }; "sortDescending": { "alias": "sortDescending"; "required": false; }; "autosizeThisColumn": { "alias": "autosizeThisColumn"; "required": false; }; "autosizeAllColumns": { "alias": "autosizeAllColumns"; "required": false; }; "sortedAscending": { "alias": "sortedAscending"; "required": false; }; "sortedDescending": { "alias": "sortedDescending"; "required": false; }; "sortedDefault": { "alias": "sortedDefault"; "required": false; }; "sortToolbarToolText": { "alias": "sortToolbarToolText"; "required": false; }; "columnsApply": { "alias": "columnsApply"; "required": false; }; "columnsReset": { "alias": "columnsReset"; "required": false; }; "detailExpand": { "alias": "detailExpand"; "required": false; }; "detailCollapse": { "alias": "detailCollapse"; "required": false; }; "filterDateToday": { "alias": "filterDateToday"; "required": false; }; "filterDateToggle": { "alias": "filterDateToggle"; "required": false; }; "filterNumericDecrement": { "alias": "filterNumericDecrement"; "required": false; }; "filterNumericIncrement": { "alias": "filterNumericIncrement"; "required": false; }; "selectionCheckboxLabel": { "alias": "selectionCheckboxLabel"; "required": false; }; "selectAllCheckboxLabel": { "alias": "selectAllCheckboxLabel"; "required": false; }; "groupCollapse": { "alias": "groupCollapse"; "required": false; }; "groupExpand": { "alias": "groupExpand"; "required": false; }; "topToolbarLabel": { "alias": "topToolbarLabel"; "required": false; }; "bottomToolbarLabel": { "alias": "bottomToolbarLabel"; "required": false; }; "editToolbarToolText": { "alias": "editToolbarToolText"; "required": false; }; "saveToolbarToolText": { "alias": "saveToolbarToolText"; "required": false; }; "addToolbarToolText": { "alias": "addToolbarToolText"; "required": false; }; "cancelToolbarToolText": { "alias": "cancelToolbarToolText"; "required": false; }; "removeToolbarToolText": { "alias": "removeToolbarToolText"; "required": false; }; "excelExportToolbarToolText": { "alias": "excelExportToolbarToolText"; "required": false; }; "csvExportToolbarToolText": { "alias": "csvExportToolbarToolText"; "required": false; }; "pdfExportToolbarToolText": { "alias": "pdfExportToolbarToolText"; "required": false; }; "groupPanelLabel": { "alias": "groupPanelLabel"; "required": false; }; "dragRowHandleLabel": { "alias": "dragRowHandleLabel"; "required": false; }; "columnMenuFilterTabTitle": { "alias": "columnMenuFilterTabTitle"; "required": false; }; "columnMenuGeneralTabTitle": { "alias": "columnMenuGeneralTabTitle"; "required": false; }; "columnMenuColumnsTabTitle": { "alias": "columnMenuColumnsTabTitle"; "required": false; }; "groupChipMenuPrevious": { "alias": "groupChipMenuPrevious"; "required": false; }; "groupChipMenuNext": { "alias": "groupChipMenuNext"; "required": false; }; "groupToolbarToolText": { "alias": "groupToolbarToolText"; "required": false; }; "formValidationErrorText": { "alias": "formValidationErrorText"; "required": false; }; "removeConfirmationDialogTitle": { "alias": "removeConfirmationDialogTitle"; "required": false; }; "removeConfirmationDialogContent": { "alias": "removeConfirmationDialogContent"; "required": false; }; "removeConfirmationDialogConfirmText": { "alias": "removeConfirmationDialogConfirmText"; "required": false; }; "removeConfirmationDialogRejectText": { "alias": "removeConfirmationDialogRejectText"; "required": false; }; "externalEditingTitle": { "alias": "externalEditingTitle"; "required": false; }; "externalEditingAddTitle": { "alias": "externalEditingAddTitle"; "required": false; }; "externalEditingSaveText": { "alias": "externalEditingSaveText"; "required": false; }; "externalEditingCancelText": { "alias": "externalEditingCancelText"; "required": false; }; "multiCheckboxFilterSearchPlaceholder": { "alias": "multiCheckboxFilterSearchPlaceholder"; "required": false; }; "multiCheckboxFilterSelectAllLabel": { "alias": "multiCheckboxFilterSelectAllLabel"; "required": false; }; "multiCheckboxFilterSelectedItemsCount": { "alias": "multiCheckboxFilterSelectedItemsCount"; "required": false; }; "smartBoxSpeechToTextButton": { "alias": "smartBoxSpeechToTextButton"; "required": false; }; "smartBoxSubmitPromptButton": { "alias": "smartBoxSubmitPromptButton"; "required": false; }; "smartBoxSearchPlaceholder": { "alias": "smartBoxSearchPlaceholder"; "required": false; }; "smartBoxSemanticSearchPlaceholder": { "alias": "smartBoxSemanticSearchPlaceholder"; "required": false; }; "smartBoxAIAssistantPlaceholder": { "alias": "smartBoxAIAssistantPlaceholder"; "required": false; }; "smartBoxSuggestedPrompts": { "alias": "smartBoxSuggestedPrompts"; "required": false; }; "smartBoxNoPreviousSearches": { "alias": "smartBoxNoPreviousSearches"; "required": false; }; "smartBoxNoPreviousPrompts": { "alias": "smartBoxNoPreviousPrompts"; "required": false; }; "smartBoxPreviouslySearched": { "alias": "smartBoxPreviouslySearched"; "required": false; }; "smartBoxPreviouslyAsked": { "alias": "smartBoxPreviouslyAsked"; "required": false; }; "searchModeListItemText": { "alias": "searchModeListItemText"; "required": false; }; "searchModeListItemDescription": { "alias": "searchModeListItemDescription"; "required": false; }; "semanticSearchModeListItemText": { "alias": "semanticSearchModeListItemText"; "required": false; }; "semanticSearchModeListItemDescription": { "alias": "semanticSearchModeListItemDescription"; "required": false; }; }, {}, never, never, true, never>;
|
|
694
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GridMessages, "kendo-grid-messages-base", never, { "groupPanelEmpty": { "alias": "groupPanelEmpty"; "required": false; }; "noRecords": { "alias": "noRecords"; "required": false; }; "pagerLabel": { "alias": "pagerLabel"; "required": false; }; "pagerFirstPage": { "alias": "pagerFirstPage"; "required": false; }; "pagerLastPage": { "alias": "pagerLastPage"; "required": false; }; "pagerPreviousPage": { "alias": "pagerPreviousPage"; "required": false; }; "pagerNextPage": { "alias": "pagerNextPage"; "required": false; }; "pagerPage": { "alias": "pagerPage"; "required": false; }; "pagerItemsPerPage": { "alias": "pagerItemsPerPage"; "required": false; }; "pagerOf": { "alias": "pagerOf"; "required": false; }; "pagerItems": { "alias": "pagerItems"; "required": false; }; "pagerPageNumberInputTitle": { "alias": "pagerPageNumberInputTitle"; "required": false; }; "pagerInputLabel": { "alias": "pagerInputLabel"; "required": false; }; "pagerSelectPage": { "alias": "pagerSelectPage"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "filterInputLabel": { "alias": "filterInputLabel"; "required": false; }; "filterMenuTitle": { "alias": "filterMenuTitle"; "required": false; }; "filterMenuOperatorsDropDownLabel": { "alias": "filterMenuOperatorsDropDownLabel"; "required": false; }; "filterMenuLogicDropDownLabel": { "alias": "filterMenuLogicDropDownLabel"; "required": false; }; "filterCellOperatorLabel": { "alias": "filterCellOperatorLabel"; "required": false; }; "booleanFilterCellLabel": { "alias": "booleanFilterCellLabel"; "required": false; }; "aiAssistantApplyButtonText": { "alias": "aiAssistantApplyButtonText"; "required": false; }; "aiAssistantToolbarToolText": { "alias": "aiAssistantToolbarToolText"; "required": false; }; "aiAssistantWindowTitle": { "alias": "aiAssistantWindowTitle"; "required": false; }; "aiAssistantWindowCloseTitle": { "alias": "aiAssistantWindowCloseTitle"; "required": false; }; "aiAssistantOutputCardTitle": { "alias": "aiAssistantOutputCardTitle"; "required": false; }; "aiAssistantOutputCardBodyContent": { "alias": "aiAssistantOutputCardBodyContent"; "required": false; }; "aiAssistantSelectionNotEnabled": { "alias": "aiAssistantSelectionNotEnabled"; "required": false; }; "aiAssistantSelectionRowModeRequired": { "alias": "aiAssistantSelectionRowModeRequired"; "required": false; }; "aiAssistantSelectionCellModeRequired": { "alias": "aiAssistantSelectionCellModeRequired"; "required": false; }; "aiAssistantWindowMaximizeTitle": { "alias": "aiAssistantWindowMaximizeTitle"; "required": false; }; "aiAssistantWindowMinimizeTitle": { "alias": "aiAssistantWindowMinimizeTitle"; "required": false; }; "aiAssistantWindowRestoreTitle": { "alias": "aiAssistantWindowRestoreTitle"; "required": false; }; "filterEqOperator": { "alias": "filterEqOperator"; "required": false; }; "filterNotEqOperator": { "alias": "filterNotEqOperator"; "required": false; }; "filterIsNullOperator": { "alias": "filterIsNullOperator"; "required": false; }; "filterIsNotNullOperator": { "alias": "filterIsNotNullOperator"; "required": false; }; "filterIsEmptyOperator": { "alias": "filterIsEmptyOperator"; "required": false; }; "filterIsNotEmptyOperator": { "alias": "filterIsNotEmptyOperator"; "required": false; }; "filterStartsWithOperator": { "alias": "filterStartsWithOperator"; "required": false; }; "filterContainsOperator": { "alias": "filterContainsOperator"; "required": false; }; "filterNotContainsOperator": { "alias": "filterNotContainsOperator"; "required": false; }; "filterEndsWithOperator": { "alias": "filterEndsWithOperator"; "required": false; }; "filterGteOperator": { "alias": "filterGteOperator"; "required": false; }; "filterGtOperator": { "alias": "filterGtOperator"; "required": false; }; "filterLteOperator": { "alias": "filterLteOperator"; "required": false; }; "filterLtOperator": { "alias": "filterLtOperator"; "required": false; }; "filterIsTrue": { "alias": "filterIsTrue"; "required": false; }; "filterIsFalse": { "alias": "filterIsFalse"; "required": false; }; "filterBooleanAll": { "alias": "filterBooleanAll"; "required": false; }; "adaptiveFilterOperatorsTitle": { "alias": "adaptiveFilterOperatorsTitle"; "required": false; }; "filterAfterOrEqualOperator": { "alias": "filterAfterOrEqualOperator"; "required": false; }; "filterAfterOperator": { "alias": "filterAfterOperator"; "required": false; }; "filterBeforeOperator": { "alias": "filterBeforeOperator"; "required": false; }; "filterBeforeOrEqualOperator": { "alias": "filterBeforeOrEqualOperator"; "required": false; }; "filterFilterButton": { "alias": "filterFilterButton"; "required": false; }; "filterClearButton": { "alias": "filterClearButton"; "required": false; }; "adaptiveCloseButtonTitle": { "alias": "adaptiveCloseButtonTitle"; "required": false; }; "adaptiveBackButtonTitle": { "alias": "adaptiveBackButtonTitle"; "required": false; }; "filterAndLogic": { "alias": "filterAndLogic"; "required": false; }; "filterOrLogic": { "alias": "filterOrLogic"; "required": false; }; "filterToolbarToolText": { "alias": "filterToolbarToolText"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "gridLabel": { "alias": "gridLabel"; "required": false; }; "columnMenu": { "alias": "columnMenu"; "required": false; }; "setColumnPosition": { "alias": "setColumnPosition"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "columnChooserSelectAll": { "alias": "columnChooserSelectAll"; "required": false; }; "columnChooserSearchLabel": { "alias": "columnChooserSearchLabel"; "required": false; }; "columnChooserSelectedColumnsCount": { "alias": "columnChooserSelectedColumnsCount"; "required": false; }; "columnsSubtitle": { "alias": "columnsSubtitle"; "required": false; }; "adaptiveFilterTitle": { "alias": "adaptiveFilterTitle"; "required": false; }; "adaptiveSortTitle": { "alias": "adaptiveSortTitle"; "required": false; }; "adaptiveGroupTitle": { "alias": "adaptiveGroupTitle"; "required": false; }; "filterClearAllButton": { "alias": "filterClearAllButton"; "required": false; }; "groupClearButton": { "alias": "groupClearButton"; "required": false; }; "sortClearButton": { "alias": "sortClearButton"; "required": false; }; "sortDoneButton": { "alias": "sortDoneButton"; "required": false; }; "groupDoneButton": { "alias": "groupDoneButton"; "required": false; }; "lock": { "alias": "lock"; "required": false; }; "unlock": { "alias": "unlock"; "required": false; }; "stick": { "alias": "stick"; "required": false; }; "unstick": { "alias": "unstick"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "sortAscending": { "alias": "sortAscending"; "required": false; }; "sortDescending": { "alias": "sortDescending"; "required": false; }; "autosizeThisColumn": { "alias": "autosizeThisColumn"; "required": false; }; "autosizeAllColumns": { "alias": "autosizeAllColumns"; "required": false; }; "sortedAscending": { "alias": "sortedAscending"; "required": false; }; "sortedDescending": { "alias": "sortedDescending"; "required": false; }; "sortedDefault": { "alias": "sortedDefault"; "required": false; }; "sortToolbarToolText": { "alias": "sortToolbarToolText"; "required": false; }; "columnsApply": { "alias": "columnsApply"; "required": false; }; "columnsReset": { "alias": "columnsReset"; "required": false; }; "detailExpand": { "alias": "detailExpand"; "required": false; }; "detailCollapse": { "alias": "detailCollapse"; "required": false; }; "filterDateToday": { "alias": "filterDateToday"; "required": false; }; "filterDateToggle": { "alias": "filterDateToggle"; "required": false; }; "filterNumericDecrement": { "alias": "filterNumericDecrement"; "required": false; }; "filterNumericIncrement": { "alias": "filterNumericIncrement"; "required": false; }; "selectionCheckboxLabel": { "alias": "selectionCheckboxLabel"; "required": false; }; "selectAllCheckboxLabel": { "alias": "selectAllCheckboxLabel"; "required": false; }; "groupCollapse": { "alias": "groupCollapse"; "required": false; }; "groupExpand": { "alias": "groupExpand"; "required": false; }; "topToolbarLabel": { "alias": "topToolbarLabel"; "required": false; }; "bottomToolbarLabel": { "alias": "bottomToolbarLabel"; "required": false; }; "editToolbarToolText": { "alias": "editToolbarToolText"; "required": false; }; "saveToolbarToolText": { "alias": "saveToolbarToolText"; "required": false; }; "addToolbarToolText": { "alias": "addToolbarToolText"; "required": false; }; "cancelToolbarToolText": { "alias": "cancelToolbarToolText"; "required": false; }; "removeToolbarToolText": { "alias": "removeToolbarToolText"; "required": false; }; "excelExportToolbarToolText": { "alias": "excelExportToolbarToolText"; "required": false; }; "csvExportToolbarToolText": { "alias": "csvExportToolbarToolText"; "required": false; }; "pdfExportToolbarToolText": { "alias": "pdfExportToolbarToolText"; "required": false; }; "groupPanelLabel": { "alias": "groupPanelLabel"; "required": false; }; "dragRowHandleLabel": { "alias": "dragRowHandleLabel"; "required": false; }; "columnMenuFilterTabTitle": { "alias": "columnMenuFilterTabTitle"; "required": false; }; "columnMenuGeneralTabTitle": { "alias": "columnMenuGeneralTabTitle"; "required": false; }; "columnMenuColumnsTabTitle": { "alias": "columnMenuColumnsTabTitle"; "required": false; }; "groupChipMenuPrevious": { "alias": "groupChipMenuPrevious"; "required": false; }; "groupChipMenuNext": { "alias": "groupChipMenuNext"; "required": false; }; "groupToolbarToolText": { "alias": "groupToolbarToolText"; "required": false; }; "formValidationErrorText": { "alias": "formValidationErrorText"; "required": false; }; "removeConfirmationDialogTitle": { "alias": "removeConfirmationDialogTitle"; "required": false; }; "removeConfirmationDialogContent": { "alias": "removeConfirmationDialogContent"; "required": false; }; "removeConfirmationDialogConfirmText": { "alias": "removeConfirmationDialogConfirmText"; "required": false; }; "removeConfirmationDialogRejectText": { "alias": "removeConfirmationDialogRejectText"; "required": false; }; "externalEditingTitle": { "alias": "externalEditingTitle"; "required": false; }; "externalEditingAddTitle": { "alias": "externalEditingAddTitle"; "required": false; }; "externalEditingSaveText": { "alias": "externalEditingSaveText"; "required": false; }; "externalEditingCancelText": { "alias": "externalEditingCancelText"; "required": false; }; "multiCheckboxFilterSearchPlaceholder": { "alias": "multiCheckboxFilterSearchPlaceholder"; "required": false; }; "multiCheckboxFilterSelectAllLabel": { "alias": "multiCheckboxFilterSelectAllLabel"; "required": false; }; "multiCheckboxFilterSelectedItemsCount": { "alias": "multiCheckboxFilterSelectedItemsCount"; "required": false; }; "smartBoxSpeechToTextButton": { "alias": "smartBoxSpeechToTextButton"; "required": false; }; "smartBoxSubmitPromptButton": { "alias": "smartBoxSubmitPromptButton"; "required": false; }; "smartBoxSearchPlaceholder": { "alias": "smartBoxSearchPlaceholder"; "required": false; }; "smartBoxSemanticSearchPlaceholder": { "alias": "smartBoxSemanticSearchPlaceholder"; "required": false; }; "smartBoxAIAssistantPlaceholder": { "alias": "smartBoxAIAssistantPlaceholder"; "required": false; }; "smartBoxSuggestedPrompts": { "alias": "smartBoxSuggestedPrompts"; "required": false; }; "smartBoxNoPreviousSearches": { "alias": "smartBoxNoPreviousSearches"; "required": false; }; "smartBoxNoPreviousPrompts": { "alias": "smartBoxNoPreviousPrompts"; "required": false; }; "smartBoxPreviouslySearched": { "alias": "smartBoxPreviouslySearched"; "required": false; }; "smartBoxPreviouslyAsked": { "alias": "smartBoxPreviouslyAsked"; "required": false; }; "searchModeListItemText": { "alias": "searchModeListItemText"; "required": false; }; "searchModeListItemDescription": { "alias": "searchModeListItemDescription"; "required": false; }; "semanticSearchModeListItemText": { "alias": "semanticSearchModeListItemText"; "required": false; }; "semanticSearchModeListItemDescription": { "alias": "semanticSearchModeListItemDescription"; "required": false; }; "smartBoxSearchModePopupButton": { "alias": "smartBoxSearchModePopupButton"; "required": false; }; "smartBoxAIAssistantModePopupButton": { "alias": "smartBoxAIAssistantModePopupButton"; "required": false; }; }, {}, never, never, true, never>;
|
|
687
695
|
}
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "23.0.0
|
|
10
|
+
"publishDate": 1770742291,
|
|
11
|
+
"version": "23.0.0",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-grid",
|
|
3
|
-
"version": "23.0.0
|
|
3
|
+
"version": "23.0.0",
|
|
4
4
|
"description": "Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"package": {
|
|
74
74
|
"productName": "Kendo UI for Angular",
|
|
75
75
|
"productCode": "KENDOUIANGULAR",
|
|
76
|
-
"publishDate":
|
|
76
|
+
"publishDate": 1770742291,
|
|
77
77
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
78
78
|
}
|
|
79
79
|
},
|
|
@@ -86,32 +86,32 @@
|
|
|
86
86
|
"@progress/kendo-data-query": "^1.7.3",
|
|
87
87
|
"@progress/kendo-drawing": "^1.24.0",
|
|
88
88
|
"@progress/kendo-licensing": "^1.10.0",
|
|
89
|
-
"@progress/kendo-angular-buttons": "23.0.0
|
|
90
|
-
"@progress/kendo-angular-common": "23.0.0
|
|
91
|
-
"@progress/kendo-angular-dateinputs": "23.0.0
|
|
92
|
-
"@progress/kendo-angular-layout": "23.0.0
|
|
93
|
-
"@progress/kendo-angular-navigation": "23.0.0
|
|
94
|
-
"@progress/kendo-angular-dropdowns": "23.0.0
|
|
95
|
-
"@progress/kendo-angular-excel-export": "23.0.0
|
|
96
|
-
"@progress/kendo-angular-icons": "23.0.0
|
|
97
|
-
"@progress/kendo-angular-indicators": "23.0.0
|
|
98
|
-
"@progress/kendo-angular-inputs": "23.0.0
|
|
99
|
-
"@progress/kendo-angular-conversational-ui": "23.0.0
|
|
100
|
-
"@progress/kendo-angular-intl": "23.0.0
|
|
101
|
-
"@progress/kendo-angular-l10n": "23.0.0
|
|
102
|
-
"@progress/kendo-angular-label": "23.0.0
|
|
103
|
-
"@progress/kendo-angular-menu": "23.0.0
|
|
104
|
-
"@progress/kendo-angular-pager": "23.0.0
|
|
105
|
-
"@progress/kendo-angular-pdf-export": "23.0.0
|
|
106
|
-
"@progress/kendo-angular-popup": "23.0.0
|
|
107
|
-
"@progress/kendo-angular-toolbar": "23.0.0
|
|
108
|
-
"@progress/kendo-angular-upload": "23.0.0
|
|
109
|
-
"@progress/kendo-angular-utils": "23.0.0
|
|
89
|
+
"@progress/kendo-angular-buttons": "23.0.0",
|
|
90
|
+
"@progress/kendo-angular-common": "23.0.0",
|
|
91
|
+
"@progress/kendo-angular-dateinputs": "23.0.0",
|
|
92
|
+
"@progress/kendo-angular-layout": "23.0.0",
|
|
93
|
+
"@progress/kendo-angular-navigation": "23.0.0",
|
|
94
|
+
"@progress/kendo-angular-dropdowns": "23.0.0",
|
|
95
|
+
"@progress/kendo-angular-excel-export": "23.0.0",
|
|
96
|
+
"@progress/kendo-angular-icons": "23.0.0",
|
|
97
|
+
"@progress/kendo-angular-indicators": "23.0.0",
|
|
98
|
+
"@progress/kendo-angular-inputs": "23.0.0",
|
|
99
|
+
"@progress/kendo-angular-conversational-ui": "23.0.0",
|
|
100
|
+
"@progress/kendo-angular-intl": "23.0.0",
|
|
101
|
+
"@progress/kendo-angular-l10n": "23.0.0",
|
|
102
|
+
"@progress/kendo-angular-label": "23.0.0",
|
|
103
|
+
"@progress/kendo-angular-menu": "23.0.0",
|
|
104
|
+
"@progress/kendo-angular-pager": "23.0.0",
|
|
105
|
+
"@progress/kendo-angular-pdf-export": "23.0.0",
|
|
106
|
+
"@progress/kendo-angular-popup": "23.0.0",
|
|
107
|
+
"@progress/kendo-angular-toolbar": "23.0.0",
|
|
108
|
+
"@progress/kendo-angular-upload": "23.0.0",
|
|
109
|
+
"@progress/kendo-angular-utils": "23.0.0",
|
|
110
110
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
111
111
|
},
|
|
112
112
|
"dependencies": {
|
|
113
113
|
"tslib": "^2.3.1",
|
|
114
|
-
"@progress/kendo-angular-schematics": "23.0.0
|
|
114
|
+
"@progress/kendo-angular-schematics": "23.0.0",
|
|
115
115
|
"@progress/kendo-common": "^1.0.1",
|
|
116
116
|
"@progress/kendo-file-saver": "^1.0.0",
|
|
117
117
|
"@progress/kendo-csv": "^1.0.0"
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* @hidden
|
|
9
8
|
* Renders the history item content.
|
|
10
9
|
*
|
|
11
10
|
* To define the history item template, nest a `<ng-template>` tag with the `kendoGridSmartBoxHistoryItemTemplate` directive inside the component tag.
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import { TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* @hidden
|
|
9
8
|
* Renders the prompt suggestion content.
|
|
10
9
|
*
|
|
11
10
|
* To define the suggestion template, nest a `<ng-template>` tag with the `kendoGridSmartBoxPromptSuggestionTemplate` directive inside the component tag.
|
|
@@ -9,19 +9,19 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
9
9
|
function default_1(options) {
|
|
10
10
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'GridModule', package: 'grid', peerDependencies: {
|
|
11
11
|
// peer deps of the dropdowns
|
|
12
|
-
'@progress/kendo-angular-treeview': '23.0.0
|
|
13
|
-
'@progress/kendo-angular-navigation': '23.0.0
|
|
12
|
+
'@progress/kendo-angular-treeview': '23.0.0',
|
|
13
|
+
'@progress/kendo-angular-navigation': '23.0.0',
|
|
14
14
|
// peer dependency of kendo-angular-inputs
|
|
15
|
-
'@progress/kendo-angular-dialog': '23.0.0
|
|
15
|
+
'@progress/kendo-angular-dialog': '23.0.0',
|
|
16
16
|
// peer dependency of kendo-angular-icons
|
|
17
17
|
'@progress/kendo-svg-icons': '^4.0.0',
|
|
18
18
|
// peer dependency of kendo-angular-layout
|
|
19
|
-
'@progress/kendo-angular-progressbar': '23.0.0
|
|
19
|
+
'@progress/kendo-angular-progressbar': '23.0.0',
|
|
20
20
|
// transitive peer dependencies from toolbar
|
|
21
|
-
'@progress/kendo-angular-indicators': '23.0.0
|
|
21
|
+
'@progress/kendo-angular-indicators': '23.0.0',
|
|
22
22
|
// transitive peer dependencies from conversational-ui
|
|
23
|
-
'@progress/kendo-angular-menu': '23.0.0
|
|
24
|
-
'@progress/kendo-angular-upload': '23.0.0
|
|
23
|
+
'@progress/kendo-angular-menu': '23.0.0',
|
|
24
|
+
'@progress/kendo-angular-upload': '23.0.0'
|
|
25
25
|
} });
|
|
26
26
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
27
27
|
}
|
/package/rendering/toolbar/tools/smartbox/{smartbox-tool.d.ts → smartbox-tool.component.d.ts}
RENAMED
|
File without changes
|