@progress/kendo-angular-dropdowns 25.1.1-develop.4 → 25.2.0-develop.10
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/fesm2022/progress-kendo-angular-dropdowns.mjs +32 -12
- package/index.d.ts +4 -2
- package/package-metadata.mjs +2 -2
- package/package.json +11 -11
- package/schematics/ngAdd/index.js +2 -2
|
@@ -37,8 +37,8 @@ const packageMetadata = {
|
|
|
37
37
|
productName: 'Kendo UI for Angular',
|
|
38
38
|
productCode: 'KENDOUIANGULAR',
|
|
39
39
|
productCodes: ['KENDOUIANGULAR'],
|
|
40
|
-
publishDate:
|
|
41
|
-
version: '25.
|
|
40
|
+
publishDate: 1789740252,
|
|
41
|
+
version: '25.2.0-develop.10',
|
|
42
42
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -3632,7 +3632,7 @@ class Messages extends ComponentMessages {
|
|
|
3632
3632
|
* For example, when adding a custom value **Test**, the default text is **Use "Test"**.
|
|
3633
3633
|
*
|
|
3634
3634
|
* You can reorder the custom value and the localizable part by using a placeholder in `useCustomValueText`.
|
|
3635
|
-
|
|
3635
|
+
* Use `[[customValue]]` to insert the value, for example, **Add: [[customValue]]**.
|
|
3636
3636
|
*/
|
|
3637
3637
|
set useCustomValueText(value) {
|
|
3638
3638
|
this._useCustomValueText.set(value);
|
|
@@ -6254,9 +6254,16 @@ class ComboBoxComponent extends MultiTabStop {
|
|
|
6254
6254
|
.pipe(tap(() => {
|
|
6255
6255
|
this._filtering = false;
|
|
6256
6256
|
this.togglePopup(false);
|
|
6257
|
-
})
|
|
6258
|
-
.subscribe(
|
|
6259
|
-
|
|
6257
|
+
}))
|
|
6258
|
+
.subscribe((event) => {
|
|
6259
|
+
const index = event.indices[0];
|
|
6260
|
+
// index -1 is the "Use `text`" custom value item, not a data item
|
|
6261
|
+
if (this.allowCustom && index === -1) {
|
|
6262
|
+
this.change(this.text, true);
|
|
6263
|
+
}
|
|
6264
|
+
else {
|
|
6265
|
+
this.change(this.dataService.itemAt(index));
|
|
6266
|
+
}
|
|
6260
6267
|
}));
|
|
6261
6268
|
this.subs.add(this.selectionService.onSelect.pipe(filter(() => this.isOpen), tap(() => this._filtering = false), map((event) => this.dataService.itemAt(event.indices[0])))
|
|
6262
6269
|
.subscribe(dataItem => {
|
|
@@ -8315,8 +8322,13 @@ class DropDownListComponent {
|
|
|
8315
8322
|
get text() {
|
|
8316
8323
|
return this._text();
|
|
8317
8324
|
}
|
|
8325
|
+
set dataItem(value) {
|
|
8326
|
+
this._dataItem.set(value);
|
|
8327
|
+
}
|
|
8328
|
+
get dataItem() {
|
|
8329
|
+
return this._dataItem();
|
|
8330
|
+
}
|
|
8318
8331
|
direction;
|
|
8319
|
-
dataItem;
|
|
8320
8332
|
popupRef;
|
|
8321
8333
|
onTouchedCallback = (_) => { };
|
|
8322
8334
|
onChangeCallback = (_) => { };
|
|
@@ -8359,6 +8371,7 @@ class DropDownListComponent {
|
|
|
8359
8371
|
_size = signal(undefined, ...(ngDevMode ? [{ debugName: "_size" }] : []));
|
|
8360
8372
|
_rounded = signal(undefined, ...(ngDevMode ? [{ debugName: "_rounded" }] : []));
|
|
8361
8373
|
_fillMode = signal(undefined, ...(ngDevMode ? [{ debugName: "_fillMode" }] : []));
|
|
8374
|
+
_dataItem = signal(undefined, ...(ngDevMode ? [{ debugName: "_dataItem" }] : []));
|
|
8362
8375
|
constructor(wrapper, localization, popupService, selectionService, navigationService, disabledItemsService, dataService, _zone, renderer, cdr, injector, adaptiveService) {
|
|
8363
8376
|
this.wrapper = wrapper;
|
|
8364
8377
|
this.localization = localization;
|
|
@@ -8681,7 +8694,7 @@ class DropDownListComponent {
|
|
|
8681
8694
|
}
|
|
8682
8695
|
}
|
|
8683
8696
|
updateState({ dataItem, confirm = false }) {
|
|
8684
|
-
this.dataItem
|
|
8697
|
+
this._dataItem.set(dataItem);
|
|
8685
8698
|
this._text.set(getter(dataItem, this.textField));
|
|
8686
8699
|
if (confirm) {
|
|
8687
8700
|
this._previousDataItem = dataItem;
|
|
@@ -8689,7 +8702,7 @@ class DropDownListComponent {
|
|
|
8689
8702
|
}
|
|
8690
8703
|
clearState() {
|
|
8691
8704
|
this._text.set(undefined);
|
|
8692
|
-
this.
|
|
8705
|
+
this._dataItem.set(undefined);
|
|
8693
8706
|
}
|
|
8694
8707
|
resetSelection(index) {
|
|
8695
8708
|
const clear = !isPresent(index);
|
|
@@ -8831,8 +8844,8 @@ class DropDownListComponent {
|
|
|
8831
8844
|
}
|
|
8832
8845
|
currentOrDefault(selectedIndex) {
|
|
8833
8846
|
const defaultItemIndex = -1;
|
|
8834
|
-
if (isPresent(this.
|
|
8835
|
-
return this.
|
|
8847
|
+
if (isPresent(this._dataItem()) && selectedIndex !== defaultItemIndex) {
|
|
8848
|
+
return this._dataItem();
|
|
8836
8849
|
}
|
|
8837
8850
|
else {
|
|
8838
8851
|
return this.defaultItem;
|
|
@@ -9891,7 +9904,14 @@ class TagListComponent {
|
|
|
9891
9904
|
}
|
|
9892
9905
|
else if (this.valueDepth) {
|
|
9893
9906
|
const depth = this.valueDepth[index];
|
|
9894
|
-
|
|
9907
|
+
const depthField = fieldsCount < depth ? prop[fieldsCount] : prop[depth];
|
|
9908
|
+
if (!isObject(tag)) {
|
|
9909
|
+
return depthField;
|
|
9910
|
+
}
|
|
9911
|
+
if (isPresent(depthField) && depthField in tag) {
|
|
9912
|
+
return depthField;
|
|
9913
|
+
}
|
|
9914
|
+
return prop.find(item => item in tag) || depthField;
|
|
9895
9915
|
}
|
|
9896
9916
|
else {
|
|
9897
9917
|
return prop.find(item => item in tag);
|
package/index.d.ts
CHANGED
|
@@ -2571,8 +2571,9 @@ declare class DropDownListComponent implements ControlValueAccessor, AfterViewIn
|
|
|
2571
2571
|
set isFocused(isFocused: boolean);
|
|
2572
2572
|
get isFocused(): boolean;
|
|
2573
2573
|
get text(): string;
|
|
2574
|
+
set dataItem(value: any);
|
|
2575
|
+
get dataItem(): any;
|
|
2574
2576
|
direction: Direction;
|
|
2575
|
-
dataItem: any;
|
|
2576
2577
|
popupRef: PopupRef;
|
|
2577
2578
|
protected onTouchedCallback: Function;
|
|
2578
2579
|
protected onChangeCallback: Function;
|
|
@@ -2615,6 +2616,7 @@ declare class DropDownListComponent implements ControlValueAccessor, AfterViewIn
|
|
|
2615
2616
|
private _size;
|
|
2616
2617
|
private _rounded;
|
|
2617
2618
|
private _fillMode;
|
|
2619
|
+
private _dataItem;
|
|
2618
2620
|
constructor(wrapper: ElementRef, localization: LocalizationService, popupService: PopupService, selectionService: SelectionService, navigationService: NavigationService, disabledItemsService: DisabledItemsService, dataService: DataService, _zone: NgZone, renderer: Renderer2, cdr: ChangeDetectorRef, injector: Injector, adaptiveService: AdaptiveService);
|
|
2619
2621
|
ngOnInit(): void;
|
|
2620
2622
|
ngAfterViewInit(): void;
|
|
@@ -5536,7 +5538,7 @@ declare class Messages extends ComponentMessages {
|
|
|
5536
5538
|
* For example, when adding a custom value **Test**, the default text is **Use "Test"**.
|
|
5537
5539
|
*
|
|
5538
5540
|
* You can reorder the custom value and the localizable part by using a placeholder in `useCustomValueText`.
|
|
5539
|
-
|
|
5541
|
+
* Use `[[customValue]]` to insert the value, for example, **Add: [[customValue]]**.
|
|
5540
5542
|
*/
|
|
5541
5543
|
set useCustomValueText(value: string);
|
|
5542
5544
|
get useCustomValueText(): string;
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "25.
|
|
10
|
+
"publishDate": 1789740252,
|
|
11
|
+
"version": "25.2.0-develop.10",
|
|
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-dropdowns",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.2.0-develop.10",
|
|
4
4
|
"description": "A wide variety of native Angular dropdown components including AutoComplete, ComboBox, DropDownList, DropDownTree, MultiColumnComboBox, MultiSelect, and MultiSelectTree ",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"package": {
|
|
133
133
|
"productName": "Kendo UI for Angular",
|
|
134
134
|
"productCode": "KENDOUIANGULAR",
|
|
135
|
-
"publishDate":
|
|
135
|
+
"publishDate": 1789740252,
|
|
136
136
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
137
137
|
}
|
|
138
138
|
},
|
|
@@ -143,19 +143,19 @@
|
|
|
143
143
|
"@angular/forms": "20 - 22",
|
|
144
144
|
"@angular/platform-browser": "20 - 22",
|
|
145
145
|
"@progress/kendo-licensing": "^1.11.0",
|
|
146
|
-
"@progress/kendo-angular-common": "25.
|
|
147
|
-
"@progress/kendo-angular-utils": "25.
|
|
148
|
-
"@progress/kendo-angular-l10n": "25.
|
|
149
|
-
"@progress/kendo-angular-navigation": "25.
|
|
150
|
-
"@progress/kendo-angular-popup": "25.
|
|
151
|
-
"@progress/kendo-angular-icons": "25.
|
|
152
|
-
"@progress/kendo-angular-inputs": "25.
|
|
153
|
-
"@progress/kendo-angular-treeview": "25.
|
|
146
|
+
"@progress/kendo-angular-common": "25.2.0-develop.10",
|
|
147
|
+
"@progress/kendo-angular-utils": "25.2.0-develop.10",
|
|
148
|
+
"@progress/kendo-angular-l10n": "25.2.0-develop.10",
|
|
149
|
+
"@progress/kendo-angular-navigation": "25.2.0-develop.10",
|
|
150
|
+
"@progress/kendo-angular-popup": "25.2.0-develop.10",
|
|
151
|
+
"@progress/kendo-angular-icons": "25.2.0-develop.10",
|
|
152
|
+
"@progress/kendo-angular-inputs": "25.2.0-develop.10",
|
|
153
|
+
"@progress/kendo-angular-treeview": "25.2.0-develop.10",
|
|
154
154
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
155
155
|
},
|
|
156
156
|
"dependencies": {
|
|
157
157
|
"tslib": "^2.3.1",
|
|
158
|
-
"@progress/kendo-angular-schematics": "25.
|
|
158
|
+
"@progress/kendo-angular-schematics": "25.2.0-develop.10",
|
|
159
159
|
"@progress/kendo-common": "^1.0.1"
|
|
160
160
|
},
|
|
161
161
|
"schematics": "./schematics/collection.json",
|
|
@@ -9,9 +9,9 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
9
9
|
function default_1(options) {
|
|
10
10
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'DropDownsModule', package: 'dropdowns', peerDependencies: {
|
|
11
11
|
// peers of the treeview
|
|
12
|
-
'@progress/kendo-angular-inputs': '25.
|
|
12
|
+
'@progress/kendo-angular-inputs': '25.2.0-develop.10',
|
|
13
13
|
// peers of inputs
|
|
14
|
-
'@progress/kendo-angular-intl': '25.
|
|
14
|
+
'@progress/kendo-angular-intl': '25.2.0-develop.10',
|
|
15
15
|
'@progress/kendo-drawing': '^1.17.2',
|
|
16
16
|
// Peer dependency of icons
|
|
17
17
|
'@progress/kendo-svg-icons': '^4.0.0'
|