@progress/kendo-angular-dropdowns 19.0.0-develop.2 → 19.0.0-develop.20
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/autocomplete/autocomplete.component.d.ts +11 -17
- package/comboboxes/combobox.component.d.ts +12 -14
- package/common/{action-sheet.component.d.ts → adaptive-renderer.component.d.ts} +10 -13
- package/common/list.component.d.ts +8 -1
- package/common/localization/messages.d.ts +5 -5
- package/common/util.d.ts +0 -6
- package/dropdownlist/dropdownlist.component.d.ts +7 -19
- package/dropdowntrees/dropdowntree.component.d.ts +9 -16
- package/dropdowntrees/multiselecttree.component.d.ts +9 -28
- package/esm2022/autocomplete/autocomplete.component.mjs +71 -94
- package/esm2022/comboboxes/combobox.component.mjs +85 -100
- package/esm2022/comboboxes/multicolumncombobox.component.mjs +23 -26
- package/esm2022/common/{action-sheet.component.mjs → adaptive-renderer.component.mjs} +71 -107
- package/esm2022/common/list.component.mjs +300 -213
- package/esm2022/common/localization/messages.mjs +7 -7
- package/esm2022/common/searchbar.component.mjs +2 -3
- package/esm2022/common/util.mjs +0 -22
- package/esm2022/dropdownlist/dropdownlist.component.mjs +50 -123
- package/esm2022/dropdowntrees/dropdowntree.component.mjs +63 -72
- package/esm2022/dropdowntrees/multiselecttree.component.mjs +65 -122
- package/esm2022/index.mjs +1 -1
- package/esm2022/multiselect/multiselect.component.mjs +133 -190
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-dropdowns.mjs +920 -1130
- package/index.d.ts +1 -1
- package/multiselect/multiselect.component.d.ts +13 -26
- package/package.json +10 -10
- package/schematics/ngAdd/index.js +2 -2
|
@@ -20,7 +20,7 @@ import { merge, of, Subject, Subscription } from 'rxjs';
|
|
|
20
20
|
import { catchError, filter, map, partition, tap, throttleTime } from 'rxjs/operators';
|
|
21
21
|
import { isChanged, isDocumentAvailable, KendoInput, hasObservers, anyChanged, SuffixTemplateDirective, PrefixTemplateDirective, isControlRequired, MultiTabStop, SeparatorComponent, EventsOutsideAngularDirective, ResizeSensorComponent, Keys, TemplateContextDirective } from '@progress/kendo-angular-common';
|
|
22
22
|
import { AdaptiveService } from '@progress/kendo-angular-utils';
|
|
23
|
-
import { isPresent, guid, getter, isEmptyString, isUntouched, inDropDown, getSizeClass, getRoundedClass, getFillModeClass, isTruthy, setListBoxAriaLabelledBy, setActionSheetTitle,
|
|
23
|
+
import { isPresent, guid, getter, isEmptyString, isUntouched, inDropDown, getSizeClass, getRoundedClass, getFillModeClass, isTruthy, setListBoxAriaLabelledBy, setActionSheetTitle, animationDuration } from '../common/util';
|
|
24
24
|
import { NavigationAction } from '../common/navigation/navigation-action';
|
|
25
25
|
import { PreventableEvent } from '../common/models/preventable-event';
|
|
26
26
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
@@ -32,7 +32,7 @@ import { ListComponent } from '../common/list.component';
|
|
|
32
32
|
import { normalizeVirtualizationSettings } from '../common/models/virtualization-settings';
|
|
33
33
|
import { pointers, touchEnabled } from '@progress/kendo-common';
|
|
34
34
|
import { caretAltDownIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
35
|
-
import {
|
|
35
|
+
import { AdaptiveRendererComponent } from '../common/adaptive-renderer.component';
|
|
36
36
|
import { NgIf, NgTemplateOutlet, NgClass } from '@angular/common';
|
|
37
37
|
import { SharedDropDownEventsDirective } from '../common/shared-events.directive';
|
|
38
38
|
import { LocalizedMessagesDirective } from '../common/localization/localized-messages.directive';
|
|
@@ -110,18 +110,18 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
110
110
|
/**
|
|
111
111
|
* @hidden
|
|
112
112
|
*/
|
|
113
|
-
|
|
113
|
+
adaptiveRendererComponent;
|
|
114
114
|
/**
|
|
115
115
|
* @hidden
|
|
116
116
|
*/
|
|
117
117
|
get actionSheet() {
|
|
118
|
-
return this.
|
|
118
|
+
return this.adaptiveRendererComponent?.actionSheet;
|
|
119
119
|
}
|
|
120
120
|
/**
|
|
121
121
|
* @hidden
|
|
122
122
|
*/
|
|
123
123
|
get actionSheetSearchBar() {
|
|
124
|
-
return this.
|
|
124
|
+
return this.adaptiveRendererComponent?.actionSheetSearchBar;
|
|
125
125
|
}
|
|
126
126
|
/**
|
|
127
127
|
* @hidden
|
|
@@ -321,19 +321,14 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
321
321
|
adaptiveMode = 'none';
|
|
322
322
|
/**
|
|
323
323
|
* Sets the title of the ActionSheet that is rendered instead of the Popup when using small screen devices.
|
|
324
|
-
* By default the ActionSheet title uses the text provided for the label of the
|
|
324
|
+
* By default the ActionSheet title uses the text provided for the label of the Combobox.
|
|
325
325
|
*/
|
|
326
|
-
|
|
326
|
+
adaptiveTitle = '';
|
|
327
327
|
/**
|
|
328
328
|
* Sets the subtitle of the ActionSheet that is rendered instead of the Popup when using small screen devices.
|
|
329
|
-
* By default the ActionSheet
|
|
329
|
+
* By default the ActionSheet does not render a subtitle.
|
|
330
330
|
*/
|
|
331
|
-
|
|
332
|
-
this._subtitle = _subtitle;
|
|
333
|
-
}
|
|
334
|
-
get subtitle() {
|
|
335
|
-
return this._subtitle || this.placeholder;
|
|
336
|
-
}
|
|
331
|
+
adaptiveSubtitle;
|
|
337
332
|
/**
|
|
338
333
|
* @hidden
|
|
339
334
|
*/
|
|
@@ -663,7 +658,6 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
663
658
|
backspacePressed;
|
|
664
659
|
_popupSettings = { animate: true };
|
|
665
660
|
_virtualSettings;
|
|
666
|
-
_subtitle;
|
|
667
661
|
popupMouseDownHandler = (event) => event.preventDefault();
|
|
668
662
|
customValueSubject = new Subject();
|
|
669
663
|
valueSubject = new Subject();
|
|
@@ -705,11 +699,6 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
705
699
|
ngAfterViewInit() {
|
|
706
700
|
this.windowSize = this.adaptiveService.size;
|
|
707
701
|
this.cdr.detectChanges();
|
|
708
|
-
if (this.actionSheet && isDocumentAvailable()) {
|
|
709
|
-
// The following syntax is used as it does not violate CSP compliance
|
|
710
|
-
this.actionSheet.element.nativeElement.style.setProperty('--kendo-actionsheet-height', '60vh');
|
|
711
|
-
this.actionSheet.element.nativeElement.style.setProperty('--kendo-actionsheet-max-height', 'none');
|
|
712
|
-
}
|
|
713
702
|
}
|
|
714
703
|
createValueStream() {
|
|
715
704
|
const valueStream = this.valueSubject.pipe(filter((candidate) => {
|
|
@@ -1144,18 +1133,6 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
1144
1133
|
}
|
|
1145
1134
|
}
|
|
1146
1135
|
}
|
|
1147
|
-
/**
|
|
1148
|
-
* @hidden
|
|
1149
|
-
*/
|
|
1150
|
-
onAdaptiveTextBoxChange(text) {
|
|
1151
|
-
if (this.filterable && this.filterText !== text) {
|
|
1152
|
-
this.filterText = text;
|
|
1153
|
-
this.filterChange.emit(text);
|
|
1154
|
-
}
|
|
1155
|
-
else {
|
|
1156
|
-
this.search(text);
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
1136
|
/**
|
|
1160
1137
|
* @hidden
|
|
1161
1138
|
*/
|
|
@@ -1260,36 +1237,7 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
1260
1237
|
*/
|
|
1261
1238
|
handleBlur() {
|
|
1262
1239
|
if (!this.isActionSheetExpanded) {
|
|
1263
|
-
this.
|
|
1264
|
-
this.searchbar.input.nativeElement.scrollLeft = 0; // Firefox doesn't auto-scroll to the left on blur like other browsers
|
|
1265
|
-
this.isFocused = false;
|
|
1266
|
-
const unresolvedSelection = getter(this.dataItem, this.valueField) !== getter(this.value, this.valueField);
|
|
1267
|
-
const currentText = this.searchbar.value;
|
|
1268
|
-
const textHasChanged = currentText !== (getter(this.dataItem, this.textField) || '');
|
|
1269
|
-
const valueHasChanged = unresolvedSelection || textHasChanged;
|
|
1270
|
-
const runInZone = valueHasChanged ||
|
|
1271
|
-
hasObservers(this.onBlur) ||
|
|
1272
|
-
hasObservers(this.close) ||
|
|
1273
|
-
isUntouched(this.wrapper.nativeElement);
|
|
1274
|
-
if (runInZone) {
|
|
1275
|
-
this.zone.run(() => {
|
|
1276
|
-
if (valueHasChanged) {
|
|
1277
|
-
const lowerCaseMatch = isPresent(this.focusedItemText) && this.focusedItemText.toLowerCase() === currentText.toLowerCase();
|
|
1278
|
-
if (lowerCaseMatch || unresolvedSelection) {
|
|
1279
|
-
this.selectionService.change(this.selectionService.focused);
|
|
1280
|
-
}
|
|
1281
|
-
else {
|
|
1282
|
-
this.change(currentText, true);
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
this.onBlur.emit();
|
|
1286
|
-
this.onTouchedCallback();
|
|
1287
|
-
this.togglePopup(false);
|
|
1288
|
-
});
|
|
1289
|
-
}
|
|
1290
|
-
else {
|
|
1291
|
-
this.togglePopup(false);
|
|
1292
|
-
}
|
|
1240
|
+
this.blurComponent();
|
|
1293
1241
|
}
|
|
1294
1242
|
}
|
|
1295
1243
|
/**
|
|
@@ -1354,7 +1302,7 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
1354
1302
|
*/
|
|
1355
1303
|
searchBarChange(text) {
|
|
1356
1304
|
const currentTextLength = this.text ? this.text.length : 0;
|
|
1357
|
-
this.backspacePressed = (text.length < currentTextLength)
|
|
1305
|
+
this.backspacePressed = Boolean(text.length < currentTextLength);
|
|
1358
1306
|
this.text = text;
|
|
1359
1307
|
// Reset the selection prior to filter. If a match is present, it will be resolved. If a match is not present, it is not needed.
|
|
1360
1308
|
this.selectionService.resetSelection([]);
|
|
@@ -1384,6 +1332,13 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
1384
1332
|
const virtual = this.virtual;
|
|
1385
1333
|
virtual.skip = event.skip;
|
|
1386
1334
|
}
|
|
1335
|
+
/**
|
|
1336
|
+
* @hidden
|
|
1337
|
+
*/
|
|
1338
|
+
closeActionSheet() {
|
|
1339
|
+
this.blurComponent();
|
|
1340
|
+
this.closed.emit();
|
|
1341
|
+
}
|
|
1387
1342
|
change(candidate, isCustom = false) {
|
|
1388
1343
|
if (isCustom) {
|
|
1389
1344
|
this.customValueSubject.next(candidate);
|
|
@@ -1513,7 +1468,8 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
1513
1468
|
this._open = open;
|
|
1514
1469
|
this.destroyPopup();
|
|
1515
1470
|
if (this.isActionSheetExpanded) {
|
|
1516
|
-
this.
|
|
1471
|
+
this.actionSheet.toggle(false);
|
|
1472
|
+
this.focus();
|
|
1517
1473
|
}
|
|
1518
1474
|
if (this._open) {
|
|
1519
1475
|
this.windowSize = this.adaptiveService.size;
|
|
@@ -1582,27 +1538,52 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
1582
1538
|
}
|
|
1583
1539
|
return index;
|
|
1584
1540
|
}
|
|
1585
|
-
closeActionSheet() {
|
|
1586
|
-
this.actionSheet.toggle(false);
|
|
1587
|
-
this.searchbar.input.nativeElement.focus();
|
|
1588
|
-
this.responsiveRendererComponent.searchBarValue = '';
|
|
1589
|
-
this.closed.emit();
|
|
1590
|
-
}
|
|
1591
1541
|
openActionSheet() {
|
|
1592
1542
|
this.windowSize = this.adaptiveService.size;
|
|
1593
1543
|
this.actionSheet.toggle(true);
|
|
1594
1544
|
this.cdr.detectChanges();
|
|
1595
1545
|
setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
|
|
1596
|
-
this.
|
|
1597
|
-
updateActionSheetAdaptiveAppearance(this.actionSheet, this.windowSize, this.renderer);
|
|
1546
|
+
this.adaptiveTitle = setActionSheetTitle(this.searchbar.input, this.adaptiveTitle);
|
|
1598
1547
|
this.cdr.detectChanges();
|
|
1599
1548
|
this.opened.emit();
|
|
1600
1549
|
this.optionsList.scrollToItem(this.selectionService.focused);
|
|
1601
1550
|
this.selectionService.focus(this.selectionService.focused);
|
|
1602
1551
|
this.actionSheetSearchBar.focus();
|
|
1603
1552
|
}
|
|
1553
|
+
blurComponent() {
|
|
1554
|
+
this._filtering = false;
|
|
1555
|
+
this.searchbar.input.nativeElement.scrollLeft = 0; // Firefox doesn't auto-scroll to the left on blur like other browsers
|
|
1556
|
+
this.isFocused = false;
|
|
1557
|
+
const unresolvedSelection = getter(this.dataItem, this.valueField) !== getter(this.value, this.valueField);
|
|
1558
|
+
const currentText = this.searchbar.value;
|
|
1559
|
+
const textHasChanged = currentText !== (getter(this.dataItem, this.textField) || '');
|
|
1560
|
+
const valueHasChanged = unresolvedSelection || textHasChanged;
|
|
1561
|
+
const runInZone = valueHasChanged ||
|
|
1562
|
+
hasObservers(this.onBlur) ||
|
|
1563
|
+
hasObservers(this.close) ||
|
|
1564
|
+
isUntouched(this.wrapper.nativeElement);
|
|
1565
|
+
if (runInZone) {
|
|
1566
|
+
this.zone.run(() => {
|
|
1567
|
+
if (valueHasChanged) {
|
|
1568
|
+
const lowerCaseMatch = isPresent(this.focusedItemText) && this.focusedItemText.toLowerCase() === currentText.toLowerCase();
|
|
1569
|
+
if (lowerCaseMatch || unresolvedSelection) {
|
|
1570
|
+
this.selectionService.change(this.selectionService.focused);
|
|
1571
|
+
}
|
|
1572
|
+
else {
|
|
1573
|
+
this.change(currentText, true);
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
this.onBlur.emit();
|
|
1577
|
+
this.onTouchedCallback();
|
|
1578
|
+
this.togglePopup(false);
|
|
1579
|
+
});
|
|
1580
|
+
}
|
|
1581
|
+
else {
|
|
1582
|
+
this.togglePopup(false);
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1604
1585
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComboBoxComponent, deps: [{ token: i0.ElementRef }, { token: i1.LocalizationService }, { token: i2.PopupService }, { token: i3.SelectionService }, { token: i4.NavigationService }, { token: i5.DisabledItemsService }, { token: i6.DataService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.Injector }, { token: i0.ElementRef }, { token: i7.AdaptiveService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1605
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ComboBoxComponent, isStandalone: true, selector: "kendo-combobox", inputs: { icon: "icon", svgIcon: "svgIcon", inputAttributes: "inputAttributes", showStickyHeader: "showStickyHeader", focusableId: "focusableId", allowCustom: "allowCustom", data: "data", value: "value", textField: "textField", valueField: "valueField", valuePrimitive: "valuePrimitive", valueNormalizer: "valueNormalizer", placeholder: "placeholder", adaptiveMode: "adaptiveMode",
|
|
1586
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ComboBoxComponent, isStandalone: true, selector: "kendo-combobox", inputs: { icon: "icon", svgIcon: "svgIcon", inputAttributes: "inputAttributes", showStickyHeader: "showStickyHeader", focusableId: "focusableId", allowCustom: "allowCustom", data: "data", value: "value", textField: "textField", valueField: "valueField", valuePrimitive: "valuePrimitive", valueNormalizer: "valueNormalizer", placeholder: "placeholder", adaptiveMode: "adaptiveMode", adaptiveTitle: "adaptiveTitle", adaptiveSubtitle: "adaptiveSubtitle", popupSettings: "popupSettings", listHeight: "listHeight", loading: "loading", suggest: "suggest", clearButton: "clearButton", disabled: "disabled", itemDisabled: "itemDisabled", readonly: "readonly", tabindex: "tabindex", tabIndex: "tabIndex", filterable: "filterable", virtual: "virtual", size: "size", rounded: "rounded", fillMode: "fillMode" }, outputs: { valueChange: "valueChange", selectionChange: "selectionChange", filterChange: "filterChange", open: "open", opened: "opened", close: "close", closed: "closed", onFocus: "focus", onBlur: "blur", inputFocus: "inputFocus", inputBlur: "inputBlur", escape: "escape" }, host: { properties: { "class.k-readonly": "this.readonly", "class.k-combobox": "this.widgetClasses", "class.k-input": "this.widgetClasses", "class.k-disabled": "this.isDisabled", "class.k-loading": "this.isLoading", "attr.dir": "this.dir" } }, providers: [
|
|
1606
1587
|
COMBOBOX_VALUE_ACCESSOR,
|
|
1607
1588
|
DataService,
|
|
1608
1589
|
SelectionService,
|
|
@@ -1622,7 +1603,7 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
1622
1603
|
{
|
|
1623
1604
|
provide: MultiTabStop, useExisting: forwardRef(() => ComboBoxComponent)
|
|
1624
1605
|
}
|
|
1625
|
-
], queries: [{ propertyName: "template", first: true, predicate: ItemTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: HeaderTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: FooterTemplateDirective, descendants: true }, { propertyName: "noDataTemplate", first: true, predicate: NoDataTemplateDirective, descendants: true }, { propertyName: "groupTemplate", first: true, predicate: GroupTemplateDirective, descendants: true }, { propertyName: "fixedGroupTemplate", first: true, predicate: FixedGroupTemplateDirective, descendants: true }, { propertyName: "suffixTemplate", first: true, predicate: SuffixTemplateDirective, descendants: true }, { propertyName: "prefixTemplate", first: true, predicate: PrefixTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "
|
|
1606
|
+
], queries: [{ propertyName: "template", first: true, predicate: ItemTemplateDirective, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: HeaderTemplateDirective, descendants: true }, { propertyName: "footerTemplate", first: true, predicate: FooterTemplateDirective, descendants: true }, { propertyName: "noDataTemplate", first: true, predicate: NoDataTemplateDirective, descendants: true }, { propertyName: "groupTemplate", first: true, predicate: GroupTemplateDirective, descendants: true }, { propertyName: "fixedGroupTemplate", first: true, predicate: FixedGroupTemplateDirective, descendants: true }, { propertyName: "suffixTemplate", first: true, predicate: SuffixTemplateDirective, descendants: true }, { propertyName: "prefixTemplate", first: true, predicate: PrefixTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "adaptiveRendererComponent", first: true, predicate: AdaptiveRendererComponent, descendants: true }, { propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "searchbar", first: true, predicate: SearchBarComponent, descendants: true, static: true }, { propertyName: "optionsList", first: true, predicate: ["optionsList"], descendants: true }, { propertyName: "select", first: true, predicate: ["select"], descendants: true, static: true }], exportAs: ["kendoComboBox"], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
1626
1607
|
<ng-container kendoComboBoxLocalizedMessages
|
|
1627
1608
|
i18n-noDataText="kendo.combobox.noDataText|The text displayed in the popup when there are no items"
|
|
1628
1609
|
noDataText="NO DATA FOUND"
|
|
@@ -1635,6 +1616,9 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
1635
1616
|
|
|
1636
1617
|
i18n-popupLabel="kendo.combobox.popupLabel|The label of the popup element that contains the list of options when its role is 'region'"
|
|
1637
1618
|
popupLabel="Options list"
|
|
1619
|
+
|
|
1620
|
+
i18n-adaptiveCloseButtonTitle="kendo.combobox.adaptiveCloseButtonTitle|The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode"
|
|
1621
|
+
adaptiveCloseButtonTitle="Close"
|
|
1638
1622
|
>
|
|
1639
1623
|
</ng-container>
|
|
1640
1624
|
|
|
@@ -1725,19 +1709,18 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
1725
1709
|
<kendo-resize-sensor *ngIf="isOpen || isAdaptiveModeEnabled" (resize)="onResize()"></kendo-resize-sensor>
|
|
1726
1710
|
<ng-container #container></ng-container>
|
|
1727
1711
|
|
|
1728
|
-
|
|
1729
|
-
<responsive-renderer
|
|
1712
|
+
<kendo-adaptive-renderer
|
|
1730
1713
|
[sharedPopupActionSheetTemplate]="sharedPopupActionSheetTemplate"
|
|
1731
|
-
[
|
|
1732
|
-
[title]="title"
|
|
1714
|
+
[title]="adaptiveTitle"
|
|
1733
1715
|
[showTextInput]="true"
|
|
1734
|
-
[subtitle]="
|
|
1735
|
-
(closePopup)="
|
|
1736
|
-
(textInputChange)="
|
|
1716
|
+
[subtitle]="adaptiveSubtitle"
|
|
1717
|
+
(closePopup)="closeActionSheet()"
|
|
1718
|
+
(textInputChange)="searchBarChange($event)"
|
|
1737
1719
|
(navigate)="handleNavigate($event)"
|
|
1738
1720
|
[placeholder]="placeholder"
|
|
1739
|
-
|
|
1740
|
-
|
|
1721
|
+
[searchBarValue]="text"
|
|
1722
|
+
>
|
|
1723
|
+
</kendo-adaptive-renderer>
|
|
1741
1724
|
<ng-template #sharedPopupActionSheetTemplate>
|
|
1742
1725
|
<!--header template-->
|
|
1743
1726
|
<ng-template *ngIf="headerTemplate"
|
|
@@ -1748,7 +1731,7 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
1748
1731
|
<!--list-->
|
|
1749
1732
|
<kendo-list
|
|
1750
1733
|
#optionsList
|
|
1751
|
-
[size]="size"
|
|
1734
|
+
[size]="isAdaptive ? 'large' : size"
|
|
1752
1735
|
[rounded]="rounded"
|
|
1753
1736
|
[id]="listBoxId"
|
|
1754
1737
|
[optionPrefix]="optionPrefix"
|
|
@@ -1783,7 +1766,7 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
1783
1766
|
}">
|
|
1784
1767
|
</ng-template>
|
|
1785
1768
|
</ng-template>
|
|
1786
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n " }, { kind: "directive", type: SharedDropDownEventsDirective, selector: "[kendoDropDownSharedEvents]", inputs: ["hostElement", "clearButtonClicked", "isFocused"], outputs: ["isFocusedChange", "onFocus", "handleBlur"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SeparatorComponent, selector: "kendo-separator", inputs: ["orientation"] }, { kind: "component", type: SearchBarComponent, selector: "input[kendoSearchbar]", inputs: ["tagListId", "readonly", "disabled", "isRequired", "isSuggestable", "isFilterable", "userInput", "suggestedText", "inputAttributes", "id", "activeDescendant", "tabIndex", "isLoading", "ariaControls", "ariaExpanded", "placeholder"], outputs: ["valueChange", "onBlur", "onFocus", "onClick", "onNavigate"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type:
|
|
1769
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n " }, { kind: "directive", type: SharedDropDownEventsDirective, selector: "[kendoDropDownSharedEvents]", inputs: ["hostElement", "clearButtonClicked", "isFocused"], outputs: ["isFocusedChange", "onFocus", "handleBlur"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SeparatorComponent, selector: "kendo-separator", inputs: ["orientation"] }, { kind: "component", type: SearchBarComponent, selector: "input[kendoSearchbar]", inputs: ["tagListId", "readonly", "disabled", "isRequired", "isSuggestable", "isFilterable", "userInput", "suggestedText", "inputAttributes", "id", "activeDescendant", "tabIndex", "isLoading", "ariaControls", "ariaExpanded", "placeholder"], outputs: ["valueChange", "onBlur", "onFocus", "onClick", "onNavigate"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: AdaptiveRendererComponent, selector: "kendo-adaptive-renderer", inputs: ["title", "subtitle", "showTextInput", "sharedPopupActionSheetTemplate", "text", "placeholder", "searchBarValue", "filterable"], outputs: ["closePopup", "textInputChange", "navigate", "onExpand"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { kind: "component", type: ListComponent, selector: "kendo-list", inputs: ["selected", "focused", "textField", "valueField", "height", "template", "groupTemplate", "fixedGroupTemplate", "show", "id", "optionPrefix", "multipleSelection", "virtual", "type", "checkboxes", "ariaLive", "isMultiselect", "isActionSheetExpanded", "showStickyHeader", "rowWidth", "customItemTemplate", "text", "allowCustom", "defaultItem", "data", "size", "rounded"], outputs: ["onClick", "pageChange", "listResize", "popupListScroll"] }] });
|
|
1787
1770
|
}
|
|
1788
1771
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComboBoxComponent, decorators: [{
|
|
1789
1772
|
type: Component,
|
|
@@ -1824,6 +1807,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1824
1807
|
|
|
1825
1808
|
i18n-popupLabel="kendo.combobox.popupLabel|The label of the popup element that contains the list of options when its role is 'region'"
|
|
1826
1809
|
popupLabel="Options list"
|
|
1810
|
+
|
|
1811
|
+
i18n-adaptiveCloseButtonTitle="kendo.combobox.adaptiveCloseButtonTitle|The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode"
|
|
1812
|
+
adaptiveCloseButtonTitle="Close"
|
|
1827
1813
|
>
|
|
1828
1814
|
</ng-container>
|
|
1829
1815
|
|
|
@@ -1914,19 +1900,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1914
1900
|
<kendo-resize-sensor *ngIf="isOpen || isAdaptiveModeEnabled" (resize)="onResize()"></kendo-resize-sensor>
|
|
1915
1901
|
<ng-container #container></ng-container>
|
|
1916
1902
|
|
|
1917
|
-
|
|
1918
|
-
<responsive-renderer
|
|
1903
|
+
<kendo-adaptive-renderer
|
|
1919
1904
|
[sharedPopupActionSheetTemplate]="sharedPopupActionSheetTemplate"
|
|
1920
|
-
[
|
|
1921
|
-
[title]="title"
|
|
1905
|
+
[title]="adaptiveTitle"
|
|
1922
1906
|
[showTextInput]="true"
|
|
1923
|
-
[subtitle]="
|
|
1924
|
-
(closePopup)="
|
|
1925
|
-
(textInputChange)="
|
|
1907
|
+
[subtitle]="adaptiveSubtitle"
|
|
1908
|
+
(closePopup)="closeActionSheet()"
|
|
1909
|
+
(textInputChange)="searchBarChange($event)"
|
|
1926
1910
|
(navigate)="handleNavigate($event)"
|
|
1927
1911
|
[placeholder]="placeholder"
|
|
1928
|
-
|
|
1929
|
-
|
|
1912
|
+
[searchBarValue]="text"
|
|
1913
|
+
>
|
|
1914
|
+
</kendo-adaptive-renderer>
|
|
1930
1915
|
<ng-template #sharedPopupActionSheetTemplate>
|
|
1931
1916
|
<!--header template-->
|
|
1932
1917
|
<ng-template *ngIf="headerTemplate"
|
|
@@ -1937,7 +1922,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1937
1922
|
<!--list-->
|
|
1938
1923
|
<kendo-list
|
|
1939
1924
|
#optionsList
|
|
1940
|
-
[size]="size"
|
|
1925
|
+
[size]="isAdaptive ? 'large' : size"
|
|
1941
1926
|
[rounded]="rounded"
|
|
1942
1927
|
[id]="listBoxId"
|
|
1943
1928
|
[optionPrefix]="optionPrefix"
|
|
@@ -1974,7 +1959,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1974
1959
|
</ng-template>
|
|
1975
1960
|
`,
|
|
1976
1961
|
standalone: true,
|
|
1977
|
-
imports: [LocalizedMessagesDirective, SharedDropDownEventsDirective, NgIf, NgTemplateOutlet, SeparatorComponent, SearchBarComponent, EventsOutsideAngularDirective, IconWrapperComponent, NgClass, ResizeSensorComponent,
|
|
1962
|
+
imports: [LocalizedMessagesDirective, SharedDropDownEventsDirective, NgIf, NgTemplateOutlet, SeparatorComponent, SearchBarComponent, EventsOutsideAngularDirective, IconWrapperComponent, NgClass, ResizeSensorComponent, AdaptiveRendererComponent, TemplateContextDirective, ListComponent]
|
|
1978
1963
|
}]
|
|
1979
1964
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.LocalizationService }, { type: i2.PopupService }, { type: i3.SelectionService }, { type: i4.NavigationService }, { type: i5.DisabledItemsService }, { type: i6.DataService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i0.Injector }, { type: i0.ElementRef }, { type: i7.AdaptiveService }]; }, propDecorators: { icon: [{
|
|
1980
1965
|
type: Input
|
|
@@ -1982,9 +1967,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1982
1967
|
type: Input
|
|
1983
1968
|
}], inputAttributes: [{
|
|
1984
1969
|
type: Input
|
|
1985
|
-
}],
|
|
1970
|
+
}], adaptiveRendererComponent: [{
|
|
1986
1971
|
type: ViewChild,
|
|
1987
|
-
args: [
|
|
1972
|
+
args: [AdaptiveRendererComponent]
|
|
1988
1973
|
}], showStickyHeader: [{
|
|
1989
1974
|
type: Input
|
|
1990
1975
|
}], focusableId: [{
|
|
@@ -2007,9 +1992,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2007
1992
|
type: Input
|
|
2008
1993
|
}], adaptiveMode: [{
|
|
2009
1994
|
type: Input
|
|
2010
|
-
}],
|
|
1995
|
+
}], adaptiveTitle: [{
|
|
2011
1996
|
type: Input
|
|
2012
|
-
}],
|
|
1997
|
+
}], adaptiveSubtitle: [{
|
|
2013
1998
|
type: Input
|
|
2014
1999
|
}], popupSettings: [{
|
|
2015
2000
|
type: Input
|
|
@@ -19,7 +19,7 @@ import { getRowWidthFromColumnsMeta, scrollbarWidth } from './combobox-column/ut
|
|
|
19
19
|
import { FilterableComponent } from '../common/filtering/filterable-component';
|
|
20
20
|
import { MultiColumnComboBoxMessages } from '../common/constants/error-messages';
|
|
21
21
|
import { ListComponent } from '../common/list.component';
|
|
22
|
-
import {
|
|
22
|
+
import { AdaptiveRendererComponent } from '../common/adaptive-renderer.component';
|
|
23
23
|
import { SearchBarComponent } from '../common/searchbar.component';
|
|
24
24
|
import { NgIf, NgTemplateOutlet, NgClass, NgFor, NgStyle } from '@angular/common';
|
|
25
25
|
import { SharedDropDownEventsDirective } from '../common/shared-events.directive';
|
|
@@ -140,11 +140,6 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
140
140
|
this.totalColumnsWidth = this.columns.reduce((total, currentColumn) => total + currentColumn.width, 0);
|
|
141
141
|
});
|
|
142
142
|
this.cdr.detectChanges();
|
|
143
|
-
if (this.actionSheet && isDocumentAvailable()) {
|
|
144
|
-
// The following syntax is used as it does not violate CSP compliance
|
|
145
|
-
this.actionSheet.element.nativeElement.style.setProperty('--kendo-actionsheet-height', '60vh');
|
|
146
|
-
this.actionSheet.element.nativeElement.style.setProperty('--kendo-actionsheet-max-height', 'none');
|
|
147
|
-
}
|
|
148
143
|
}
|
|
149
144
|
ngOnDestroy() {
|
|
150
145
|
super.ngOnDestroy();
|
|
@@ -273,6 +268,8 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
273
268
|
when its role is 'region'
|
|
274
269
|
"
|
|
275
270
|
popupLabel="Options list"
|
|
271
|
+
i18n-adaptiveCloseButtonTitle="kendo.multicolumncombobox.adaptiveCloseButtonTitle|The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode"
|
|
272
|
+
adaptiveCloseButtonTitle="Close"
|
|
276
273
|
></ng-container>
|
|
277
274
|
|
|
278
275
|
<ng-container
|
|
@@ -363,19 +360,17 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
363
360
|
<!-- when the popupSettings.appendTo value is set to 'component', this container is used -->
|
|
364
361
|
<ng-container #container></ng-container>
|
|
365
362
|
|
|
366
|
-
|
|
367
|
-
<responsive-renderer
|
|
363
|
+
<kendo-adaptive-renderer
|
|
368
364
|
[sharedPopupActionSheetTemplate]="sharedPopupActionSheetTemplate"
|
|
369
|
-
[
|
|
370
|
-
[title]="title"
|
|
365
|
+
[title]="adaptiveTitle"
|
|
371
366
|
[showTextInput]="true"
|
|
372
|
-
[subtitle]="
|
|
373
|
-
(closePopup)="
|
|
374
|
-
(textInputChange)="
|
|
367
|
+
[subtitle]="adaptiveSubtitle"
|
|
368
|
+
(closePopup)="closeActionSheet()"
|
|
369
|
+
(textInputChange)="searchBarChange($event)"
|
|
375
370
|
(navigate)="handleNavigate($event)"
|
|
376
371
|
[placeholder]="placeholder"
|
|
377
|
-
>
|
|
378
|
-
</
|
|
372
|
+
[searchBarValue]="text">
|
|
373
|
+
</kendo-adaptive-renderer>
|
|
379
374
|
|
|
380
375
|
<ng-template #sharedPopupActionSheetTemplate>
|
|
381
376
|
<!--user-defined header template -->
|
|
@@ -457,6 +452,7 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
457
452
|
#optionsList
|
|
458
453
|
[optionPrefix]="optionPrefix"
|
|
459
454
|
[data]="data"
|
|
455
|
+
[size]="isAdaptive ? 'large' : size"
|
|
460
456
|
[textField]="textField"
|
|
461
457
|
[valueField]="valueField"
|
|
462
458
|
[template]="{ templateRef: rowTemplate }"
|
|
@@ -510,7 +506,7 @@ export class MultiColumnComboBoxComponent extends ComboBoxComponent {
|
|
|
510
506
|
</ng-container>
|
|
511
507
|
</div>
|
|
512
508
|
</ng-template>
|
|
513
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n " }, { kind: "directive", type: SharedDropDownEventsDirective, selector: "[kendoDropDownSharedEvents]", inputs: ["hostElement", "clearButtonClicked", "isFocused"], outputs: ["isFocusedChange", "onFocus", "handleBlur"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SeparatorComponent, selector: "kendo-separator", inputs: ["orientation"] }, { kind: "component", type: SearchBarComponent, selector: "input[kendoSearchbar]", inputs: ["tagListId", "readonly", "disabled", "isRequired", "isSuggestable", "isFilterable", "userInput", "suggestedText", "inputAttributes", "id", "activeDescendant", "tabIndex", "isLoading", "ariaControls", "ariaExpanded", "placeholder"], outputs: ["valueChange", "onBlur", "onFocus", "onClick", "onNavigate"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type:
|
|
509
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "\n [kendoDropDownListLocalizedMessages],\n [kendoDropDownTreeLocalizedMessages],\n [kendoComboBoxLocalizedMessages],\n [kendoMultiColumnComboBoxLocalizedMessages],\n [kendoAutoCompleteLocalizedMessages],\n [kendoMultiSelectLocalizedMessages],\n [kendoMultiSelectTreeLocalizedMessages]\n " }, { kind: "directive", type: SharedDropDownEventsDirective, selector: "[kendoDropDownSharedEvents]", inputs: ["hostElement", "clearButtonClicked", "isFocused"], outputs: ["isFocusedChange", "onFocus", "handleBlur"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SeparatorComponent, selector: "kendo-separator", inputs: ["orientation"] }, { kind: "component", type: SearchBarComponent, selector: "input[kendoSearchbar]", inputs: ["tagListId", "readonly", "disabled", "isRequired", "isSuggestable", "isFilterable", "userInput", "suggestedText", "inputAttributes", "id", "activeDescendant", "tabIndex", "isLoading", "ariaControls", "ariaExpanded", "placeholder"], outputs: ["valueChange", "onBlur", "onFocus", "onClick", "onNavigate"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: AdaptiveRendererComponent, selector: "kendo-adaptive-renderer", inputs: ["title", "subtitle", "showTextInput", "sharedPopupActionSheetTemplate", "text", "placeholder", "searchBarValue", "filterable"], outputs: ["closePopup", "textInputChange", "navigate", "onExpand"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ListComponent, selector: "kendo-list", inputs: ["selected", "focused", "textField", "valueField", "height", "template", "groupTemplate", "fixedGroupTemplate", "show", "id", "optionPrefix", "multipleSelection", "virtual", "type", "checkboxes", "ariaLive", "isMultiselect", "isActionSheetExpanded", "showStickyHeader", "rowWidth", "customItemTemplate", "text", "allowCustom", "defaultItem", "data", "size", "rounded"], outputs: ["onClick", "pageChange", "listResize", "popupListScroll"] }] });
|
|
514
510
|
}
|
|
515
511
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultiColumnComboBoxComponent, decorators: [{
|
|
516
512
|
type: Component,
|
|
@@ -560,6 +556,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
560
556
|
when its role is 'region'
|
|
561
557
|
"
|
|
562
558
|
popupLabel="Options list"
|
|
559
|
+
i18n-adaptiveCloseButtonTitle="kendo.multicolumncombobox.adaptiveCloseButtonTitle|The title of the Close button of the ActionSheet that is rendered instead of the Popup when using small screen devices in adaptive mode"
|
|
560
|
+
adaptiveCloseButtonTitle="Close"
|
|
563
561
|
></ng-container>
|
|
564
562
|
|
|
565
563
|
<ng-container
|
|
@@ -650,19 +648,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
650
648
|
<!-- when the popupSettings.appendTo value is set to 'component', this container is used -->
|
|
651
649
|
<ng-container #container></ng-container>
|
|
652
650
|
|
|
653
|
-
|
|
654
|
-
<responsive-renderer
|
|
651
|
+
<kendo-adaptive-renderer
|
|
655
652
|
[sharedPopupActionSheetTemplate]="sharedPopupActionSheetTemplate"
|
|
656
|
-
[
|
|
657
|
-
[title]="title"
|
|
653
|
+
[title]="adaptiveTitle"
|
|
658
654
|
[showTextInput]="true"
|
|
659
|
-
[subtitle]="
|
|
660
|
-
(closePopup)="
|
|
661
|
-
(textInputChange)="
|
|
655
|
+
[subtitle]="adaptiveSubtitle"
|
|
656
|
+
(closePopup)="closeActionSheet()"
|
|
657
|
+
(textInputChange)="searchBarChange($event)"
|
|
662
658
|
(navigate)="handleNavigate($event)"
|
|
663
659
|
[placeholder]="placeholder"
|
|
664
|
-
>
|
|
665
|
-
</
|
|
660
|
+
[searchBarValue]="text">
|
|
661
|
+
</kendo-adaptive-renderer>
|
|
666
662
|
|
|
667
663
|
<ng-template #sharedPopupActionSheetTemplate>
|
|
668
664
|
<!--user-defined header template -->
|
|
@@ -744,6 +740,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
744
740
|
#optionsList
|
|
745
741
|
[optionPrefix]="optionPrefix"
|
|
746
742
|
[data]="data"
|
|
743
|
+
[size]="isAdaptive ? 'large' : size"
|
|
747
744
|
[textField]="textField"
|
|
748
745
|
[valueField]="valueField"
|
|
749
746
|
[template]="{ templateRef: rowTemplate }"
|
|
@@ -799,7 +796,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
799
796
|
</ng-template>
|
|
800
797
|
`,
|
|
801
798
|
standalone: true,
|
|
802
|
-
imports: [LocalizedMessagesDirective, SharedDropDownEventsDirective, NgIf, NgTemplateOutlet, SeparatorComponent, SearchBarComponent, EventsOutsideAngularDirective, IconWrapperComponent, NgClass, ResizeSensorComponent,
|
|
799
|
+
imports: [LocalizedMessagesDirective, SharedDropDownEventsDirective, NgIf, NgTemplateOutlet, SeparatorComponent, SearchBarComponent, EventsOutsideAngularDirective, IconWrapperComponent, NgClass, ResizeSensorComponent, AdaptiveRendererComponent, TemplateContextDirective, NgFor, NgStyle, ListComponent]
|
|
803
800
|
}]
|
|
804
801
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i2.PopupService }, { type: i3.SelectionService }, { type: i4.NavigationService }, { type: i5.DisabledItemsService }, { type: i6.DataService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.Injector }, { type: i0.ElementRef }, { type: i7.AdaptiveService }]; }, propDecorators: { hostClasses: [{
|
|
805
802
|
type: HostBinding,
|