@progress/kendo-angular-treelist 14.0.0-develop.1 → 14.0.0-develop.11
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/common/single-popup.service.d.ts +1 -1
- package/esm2020/common/single-popup.service.mjs +1 -1
- package/esm2020/dragdrop/drag-hint.service.mjs +6 -6
- package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +1 -1
- package/esm2020/filtering/cell/date-filter-cell.component.mjs +1 -1
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +10 -4
- package/esm2020/filtering/filter.service.mjs +1 -1
- package/esm2020/filtering/menu/date-filter-menu-input.component.mjs +1 -1
- package/esm2020/filtering/menu/date-filter-menu.component.mjs +1 -1
- package/esm2020/filtering/menu/filter-menu-input-wrapper.component.mjs +1 -1
- package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +1 -1
- package/esm2020/filtering/menu/string-filter-menu.component.mjs +1 -1
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-page-sizes.component.mjs +1 -1
- package/esm2020/rendering/cell.component.mjs +10 -5
- package/esm2020/rendering/constants.mjs +1 -1
- package/esm2020/rendering/table-body.component.mjs +14 -8
- package/fesm2015/progress-kendo-angular-treelist.mjs +47 -31
- package/fesm2020/progress-kendo-angular-treelist.mjs +47 -31
- package/filtering/cell/filter-cell-operators.component.d.ts +4 -0
- package/filtering/filter.service.d.ts +1 -1
- package/package.json +16 -16
- package/rendering/cell.component.d.ts +1 -0
- package/rendering/constants.d.ts +1 -1
- package/rendering/table-body.component.d.ts +2 -0
- package/schematics/ngAdd/index.js +3 -3
- package/scrolling/scrollmode.d.ts +4 -3
|
@@ -24,7 +24,7 @@ export declare class PopupCloseEvent extends PreventableEvent {
|
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* The service that is used for the popups of the filter and column menus
|
|
27
|
-
* ([see example]({% slug
|
|
27
|
+
* ([see example]({% slug filter_menu_treelist %}#toc-filter-menu-with-popup)).
|
|
28
28
|
*/
|
|
29
29
|
export declare class SinglePopupService implements OnDestroy {
|
|
30
30
|
private popupService;
|
|
@@ -38,7 +38,7 @@ export class PopupCloseEvent extends PreventableEvent {
|
|
|
38
38
|
const DEFAULT_POPUP_CLASS = 'k-grid-filter-popup';
|
|
39
39
|
/**
|
|
40
40
|
* The service that is used for the popups of the filter and column menus
|
|
41
|
-
* ([see example]({% slug
|
|
41
|
+
* ([see example]({% slug filter_menu_treelist %}#toc-filter-menu-with-popup)).
|
|
42
42
|
*/
|
|
43
43
|
export class SinglePopupService {
|
|
44
44
|
/**
|
|
@@ -12,7 +12,7 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
import * as i1 from "@angular/platform-browser";
|
|
13
13
|
import * as i2 from "@progress/kendo-angular-icons";
|
|
14
14
|
const updateClass = (element, valid, svg) => {
|
|
15
|
-
const icon = element.querySelector('.k-icon
|
|
15
|
+
const icon = element.querySelector('.k-icon');
|
|
16
16
|
if (svg) {
|
|
17
17
|
const svg = icon.firstElementChild;
|
|
18
18
|
svg.removeChild(svg.firstElementChild);
|
|
@@ -22,7 +22,7 @@ const updateClass = (element, valid, svg) => {
|
|
|
22
22
|
icon.setAttribute('class', icon.getAttribute('class').replace(/(plus|cancel)/, valid ? 'plus' : 'cancel'));
|
|
23
23
|
};
|
|
24
24
|
const updateLock = (element, locked = null, svg) => {
|
|
25
|
-
const icon = element.querySelectorAll('.k-icon
|
|
25
|
+
const icon = element.querySelectorAll('.k-icon')[1];
|
|
26
26
|
const value = locked === null ? '' : (locked ? `k${svg ? '-svg' : ''}-i-lock` : `k${svg ? '-svg' : ''}-i-unlock`);
|
|
27
27
|
if (svg) {
|
|
28
28
|
icon.setAttribute('class', icon.getAttribute('class').replace(/(k-svg-i-unlock|k-svg-i-lock)/, '').trim() + ` ${value}`);
|
|
@@ -38,7 +38,7 @@ const decorate = (element) => {
|
|
|
38
38
|
element.style.zIndex = '20000';
|
|
39
39
|
};
|
|
40
40
|
const svgIconsMarkup = (viewBox, content, safeTitle) => `
|
|
41
|
-
<span class="k-svg-icon k-drag-status k-svg-i-cancel">
|
|
41
|
+
<span class="k-icon k-svg-icon k-drag-status k-svg-i-cancel">
|
|
42
42
|
<svg
|
|
43
43
|
xmlns="http://www.w3.org/2000/svg"
|
|
44
44
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
@@ -46,7 +46,7 @@ const svgIconsMarkup = (viewBox, content, safeTitle) => `
|
|
|
46
46
|
aria-hidden="true">
|
|
47
47
|
${content}
|
|
48
48
|
</svg>
|
|
49
|
-
<span class="k-svg-icon k-icon-modifier">
|
|
49
|
+
<span class="k-icon k-svg-icon k-icon-modifier">
|
|
50
50
|
<svg
|
|
51
51
|
xmlns="http://www.w3.org/2000/svg"
|
|
52
52
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
@@ -57,8 +57,8 @@ const svgIconsMarkup = (viewBox, content, safeTitle) => `
|
|
|
57
57
|
</span>
|
|
58
58
|
${safeTitle}`;
|
|
59
59
|
const fontIconsMarkup = (safeTitle) => `
|
|
60
|
-
<span class="k-icon k-drag-status k-i-cancel">
|
|
61
|
-
<span class="k-icon k-icon-modifier"></span>
|
|
60
|
+
<span class="k-icon k-font-icon k-drag-status k-i-cancel">
|
|
61
|
+
<span class="k-icon k-font-icon k-icon-modifier"></span>
|
|
62
62
|
</span>
|
|
63
63
|
${safeTitle}`;
|
|
64
64
|
/**
|
|
@@ -72,7 +72,7 @@ BooleanFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
72
72
|
[value]="currentFilter?.value">
|
|
73
73
|
</kendo-dropdownlist>
|
|
74
74
|
</kendo-treelist-filter-wrapper-cell>
|
|
75
|
-
`, isInline: true, components: [{ type: i3.FilterCellWrapperComponent, selector: "kendo-treelist-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i4.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["showStickyHeader", "
|
|
75
|
+
`, isInline: true, components: [{ type: i3.FilterCellWrapperComponent, selector: "kendo-treelist-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i4.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], directives: [{ type: i5.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "columnLabel", "column", "value"] }] });
|
|
76
76
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BooleanFilterCellComponent, decorators: [{
|
|
77
77
|
type: Component,
|
|
78
78
|
args: [{
|
|
@@ -74,7 +74,7 @@ DateFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
74
74
|
>
|
|
75
75
|
</kendo-datepicker>
|
|
76
76
|
</kendo-treelist-filter-wrapper-cell>
|
|
77
|
-
`, isInline: true, components: [{ type: i3.FilterCellWrapperComponent, selector: "kendo-treelist-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i4.DatePickerComponent, selector: "kendo-datepicker", inputs: ["focusableId", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate", "activeView", "bottomView", "topView", "calendarType", "animateCalendarNavigation", "disabled", "readonly", "readOnlyInput", "popupSettings", "navigation", "min", "max", "incompleteDateValidation", "focusedDate", "value", "format", "twoDigitYearMax", "formatPlaceholder", "placeholder", "tabindex", "tabIndex", "disabledDates", "title", "subtitle", "rangeValidation", "disabledDatesValidation", "weekNumber", "size", "rounded", "fillMode", "adaptiveMode"], outputs: ["valueChange", "focus", "blur", "open", "close"], exportAs: ["kendo-datepicker"] }], directives: [{ type: i5.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "columnLabel", "column", "value"] }] });
|
|
77
|
+
`, isInline: true, components: [{ type: i3.FilterCellWrapperComponent, selector: "kendo-treelist-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i4.DatePickerComponent, selector: "kendo-datepicker", inputs: ["focusableId", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate", "activeView", "bottomView", "topView", "calendarType", "animateCalendarNavigation", "disabled", "readonly", "readOnlyInput", "popupSettings", "navigation", "min", "max", "incompleteDateValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "enableMouseWheel", "allowCaretMode", "autoFill", "focusedDate", "value", "format", "twoDigitYearMax", "formatPlaceholder", "placeholder", "tabindex", "tabIndex", "disabledDates", "title", "subtitle", "rangeValidation", "disabledDatesValidation", "weekNumber", "size", "rounded", "fillMode", "adaptiveMode"], outputs: ["valueChange", "focus", "blur", "open", "close"], exportAs: ["kendo-datepicker"] }], directives: [{ type: i5.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "columnLabel", "column", "value"] }] });
|
|
78
78
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateFilterCellComponent, decorators: [{
|
|
79
79
|
type: Component,
|
|
80
80
|
args: [{
|
|
@@ -6,7 +6,7 @@ import { Component, EventEmitter, HostBinding, Input, Output, ViewChild } from '
|
|
|
6
6
|
import { Keys } from '@progress/kendo-angular-common';
|
|
7
7
|
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
8
8
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
-
import { filterClearIcon } from '@progress/kendo-svg-icons';
|
|
9
|
+
import { filterClearIcon, filterIcon } from '@progress/kendo-svg-icons';
|
|
10
10
|
import { replaceMessagePlaceholder } from '../../utils';
|
|
11
11
|
import { ColumnComponent } from '../../columns/column.component';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
@@ -37,6 +37,10 @@ export class FilterCellOperatorsComponent {
|
|
|
37
37
|
this.localization = localization;
|
|
38
38
|
this.clearText = 'Clear';
|
|
39
39
|
this.filterClearIcon = filterClearIcon;
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
this.filterSVGIcon = filterIcon;
|
|
40
44
|
/**
|
|
41
45
|
* The filter operators that will be displayed.
|
|
42
46
|
*/
|
|
@@ -131,7 +135,8 @@ FilterCellOperatorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
|
|
|
131
135
|
(valueChange)="onChange($event)"
|
|
132
136
|
[value]="value"
|
|
133
137
|
[attr.aria-label]="column && columnLabel"
|
|
134
|
-
|
|
138
|
+
icon="filter"
|
|
139
|
+
[svgIcon]="filterSVGIcon"
|
|
135
140
|
[valuePrimitive]="true"
|
|
136
141
|
textField="text"
|
|
137
142
|
[popupSettings]="{ width: 'auto' }"
|
|
@@ -148,7 +153,7 @@ FilterCellOperatorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
|
|
|
148
153
|
(click)="clearClick()"
|
|
149
154
|
(keydown)="clearKeydown($event)">
|
|
150
155
|
</button>
|
|
151
|
-
`, isInline: true, components: [{ type: i2.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["showStickyHeader", "
|
|
156
|
+
`, isInline: true, components: [{ type: i2.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { type: i3.ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }] });
|
|
152
157
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterCellOperatorsComponent, decorators: [{
|
|
153
158
|
type: Component,
|
|
154
159
|
args: [{
|
|
@@ -163,7 +168,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
163
168
|
(valueChange)="onChange($event)"
|
|
164
169
|
[value]="value"
|
|
165
170
|
[attr.aria-label]="column && columnLabel"
|
|
166
|
-
|
|
171
|
+
icon="filter"
|
|
172
|
+
[svgIcon]="filterSVGIcon"
|
|
167
173
|
[valuePrimitive]="true"
|
|
168
174
|
textField="text"
|
|
169
175
|
[popupSettings]="{ width: 'auto' }"
|
|
@@ -7,7 +7,7 @@ import { Subject } from 'rxjs';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* Represents a service to set the filter descriptor
|
|
10
|
-
* ([see example]({% slug
|
|
10
|
+
* ([see example]({% slug filter_menu_treelist %})).
|
|
11
11
|
*/
|
|
12
12
|
export class FilterService {
|
|
13
13
|
constructor() {
|
|
@@ -59,7 +59,7 @@ DateFilterMenuInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
|
|
|
59
59
|
>
|
|
60
60
|
</kendo-datepicker>
|
|
61
61
|
</kendo-treelist-filter-menu-input-wrapper>
|
|
62
|
-
`, isInline: true, components: [{ type: i2.FilterMenuInputWrapperComponent, selector: "kendo-treelist-filter-menu-input-wrapper", inputs: ["filterService", "currentFilter"] }, { type: i3.DatePickerComponent, selector: "kendo-datepicker", inputs: ["focusableId", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate", "activeView", "bottomView", "topView", "calendarType", "animateCalendarNavigation", "disabled", "readonly", "readOnlyInput", "popupSettings", "navigation", "min", "max", "incompleteDateValidation", "focusedDate", "value", "format", "twoDigitYearMax", "formatPlaceholder", "placeholder", "tabindex", "tabIndex", "disabledDates", "title", "subtitle", "rangeValidation", "disabledDatesValidation", "weekNumber", "size", "rounded", "fillMode", "adaptiveMode"], outputs: ["valueChange", "focus", "blur", "open", "close"], exportAs: ["kendo-datepicker"] }], directives: [{ type: i4.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "columnLabel", "column", "value"] }] });
|
|
62
|
+
`, isInline: true, components: [{ type: i2.FilterMenuInputWrapperComponent, selector: "kendo-treelist-filter-menu-input-wrapper", inputs: ["filterService", "currentFilter"] }, { type: i3.DatePickerComponent, selector: "kendo-datepicker", inputs: ["focusableId", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate", "activeView", "bottomView", "topView", "calendarType", "animateCalendarNavigation", "disabled", "readonly", "readOnlyInput", "popupSettings", "navigation", "min", "max", "incompleteDateValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "enableMouseWheel", "allowCaretMode", "autoFill", "focusedDate", "value", "format", "twoDigitYearMax", "formatPlaceholder", "placeholder", "tabindex", "tabIndex", "disabledDates", "title", "subtitle", "rangeValidation", "disabledDatesValidation", "weekNumber", "size", "rounded", "fillMode", "adaptiveMode"], outputs: ["valueChange", "focus", "blur", "open", "close"], exportAs: ["kendo-datepicker"] }], directives: [{ type: i4.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "columnLabel", "column", "value"] }] });
|
|
63
63
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateFilterMenuInputComponent, decorators: [{
|
|
64
64
|
type: Component,
|
|
65
65
|
args: [{
|
|
@@ -111,7 +111,7 @@ DateFilterMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
111
111
|
[weekNumber]="weekNumber"
|
|
112
112
|
>
|
|
113
113
|
</kendo-treelist-date-filter-menu-input>
|
|
114
|
-
`, isInline: true, components: [{ type: i2.DateFilterMenuInputComponent, selector: "kendo-treelist-date-filter-menu-input", inputs: ["operators", "column", "filter", "operator", "currentFilter", "filterService", "format", "formatPlaceholder", "placeholder", "min", "max", "activeView", "bottomView", "topView", "weekNumber"] }, { type: i3.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["showStickyHeader", "
|
|
114
|
+
`, isInline: true, components: [{ type: i2.DateFilterMenuInputComponent, selector: "kendo-treelist-date-filter-menu-input", inputs: ["operators", "column", "filter", "operator", "currentFilter", "filterService", "format", "formatPlaceholder", "placeholder", "min", "max", "activeView", "bottomView", "topView", "weekNumber"] }, { type: i3.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
115
115
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateFilterMenuComponent, decorators: [{
|
|
116
116
|
type: Component,
|
|
117
117
|
args: [{
|
|
@@ -65,7 +65,7 @@ FilterMenuInputWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
65
65
|
valueField="value">
|
|
66
66
|
</kendo-dropdownlist>
|
|
67
67
|
<ng-content></ng-content>
|
|
68
|
-
`, isInline: true, components: [{ type: i1.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["showStickyHeader", "
|
|
68
|
+
`, isInline: true, components: [{ type: i1.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }] });
|
|
69
69
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterMenuInputWrapperComponent, decorators: [{
|
|
70
70
|
type: Component,
|
|
71
71
|
args: [{
|
|
@@ -105,7 +105,7 @@ NumericFilterMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
105
105
|
[step]="step"
|
|
106
106
|
>
|
|
107
107
|
</kendo-treelist-numeric-filter-menu-input>
|
|
108
|
-
`, isInline: true, components: [{ type: i2.NumericFilterMenuInputComponent, selector: "kendo-treelist-numeric-filter-menu-input", inputs: ["operators", "column", "filter", "operator", "currentFilter", "filterService", "step", "min", "max", "spinners", "decimals", "format"] }, { type: i3.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["showStickyHeader", "
|
|
108
|
+
`, isInline: true, components: [{ type: i2.NumericFilterMenuInputComponent, selector: "kendo-treelist-numeric-filter-menu-input", inputs: ["operators", "column", "filter", "operator", "currentFilter", "filterService", "step", "min", "max", "spinners", "decimals", "format"] }, { type: i3.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
109
109
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NumericFilterMenuComponent, decorators: [{
|
|
110
110
|
type: Component,
|
|
111
111
|
args: [{
|
|
@@ -92,7 +92,7 @@ StringFilterMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
92
92
|
[column]="column"
|
|
93
93
|
[filter]="filter">
|
|
94
94
|
</kendo-treelist-string-filter-menu-input>
|
|
95
|
-
`, isInline: true, components: [{ type: i2.StringFilterMenuInputComponent, selector: "kendo-treelist-string-filter-menu-input", inputs: ["operators", "column", "filter", "operator", "currentFilter", "filterService"] }, { type: i3.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["showStickyHeader", "
|
|
95
|
+
`, isInline: true, components: [{ type: i2.StringFilterMenuInputComponent, selector: "kendo-treelist-string-filter-menu-input", inputs: ["operators", "column", "filter", "operator", "currentFilter", "filterService"] }, { type: i3.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
96
96
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: StringFilterMenuComponent, decorators: [{
|
|
97
97
|
type: Component,
|
|
98
98
|
args: [{
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-treelist',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '14.0.0-develop.
|
|
12
|
+
publishDate: 1696927568,
|
|
13
|
+
version: '14.0.0-develop.11',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -105,7 +105,7 @@ PagerPageSizesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
105
105
|
[attr.aria-label]="textFor('pagerItemsPerPage')"
|
|
106
106
|
(valueChange)="pageSizeChange($event)"></kendo-dropdownlist>
|
|
107
107
|
<kendo-label [for]="dropdownlist" [text]="textFor('pagerItemsPerPage')"></kendo-label>
|
|
108
|
-
`, isInline: true, components: [{ type: i3.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["showStickyHeader", "
|
|
108
|
+
`, isInline: true, components: [{ type: i3.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { type: i4.LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }], directives: [{ type: i5.FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
109
109
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerPageSizesComponent, decorators: [{
|
|
110
110
|
type: Component,
|
|
111
111
|
args: [{
|
|
@@ -37,6 +37,11 @@ export class CellComponent {
|
|
|
37
37
|
this.caretAltRightIcon = caretAltRightIcon;
|
|
38
38
|
this.caretAltLeftIcon = caretAltLeftIcon;
|
|
39
39
|
this.reorderIcon = reorderIcon;
|
|
40
|
+
this.noneIcon = {
|
|
41
|
+
name: 'none',
|
|
42
|
+
content: '',
|
|
43
|
+
viewBox: '0 0 24 24'
|
|
44
|
+
};
|
|
40
45
|
this.cellContext = {};
|
|
41
46
|
this._templateContext = {};
|
|
42
47
|
this._editTemplateContext = {};
|
|
@@ -149,8 +154,8 @@ CellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
149
154
|
<ng-container [ngSwitch]="isEdited">
|
|
150
155
|
<ng-container *ngSwitchCase="false">
|
|
151
156
|
<ng-container *ngIf="column.expandable">
|
|
152
|
-
<
|
|
153
|
-
<kendo-icon-wrapper
|
|
157
|
+
<kendo-icon-wrapper name="none" innerCssClass="k-treelist-toggle" [svgIcon]="noneIcon" *ngFor="let item of level | levelItems : hasChildren && expandIcons"></kendo-icon-wrapper>
|
|
158
|
+
<kendo-icon-wrapper innerCssClass="k-treelist-toggle"
|
|
154
159
|
aria-hidden="true"
|
|
155
160
|
*ngIf="hasChildren && expandIcons && !loading"
|
|
156
161
|
[name]="arrowIcon"
|
|
@@ -221,7 +226,7 @@ CellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
221
226
|
</ng-container>
|
|
222
227
|
</ng-container>
|
|
223
228
|
</ng-container>
|
|
224
|
-
`, isInline: true, components: [{ type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { type: i5.NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }, { type: i6.DatePickerComponent, selector: "kendo-datepicker", inputs: ["focusableId", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate", "activeView", "bottomView", "topView", "calendarType", "animateCalendarNavigation", "disabled", "readonly", "readOnlyInput", "popupSettings", "navigation", "min", "max", "incompleteDateValidation", "focusedDate", "value", "format", "twoDigitYearMax", "formatPlaceholder", "placeholder", "tabindex", "tabIndex", "disabledDates", "title", "subtitle", "rangeValidation", "disabledDatesValidation", "weekNumber", "size", "rounded", "fillMode", "adaptiveMode"], outputs: ["valueChange", "focus", "blur", "open", "close"], exportAs: ["kendo-datepicker"] }], directives: [{ type: i7.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i7.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i8.FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { type: i9.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i9.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i9.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i7.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i9.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }], pipes: { "levelItems": i10.LevelItemsPipe, "valueOf": i11.FieldAccessorPipe } });
|
|
229
|
+
`, isInline: true, components: [{ type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { type: i5.NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }, { type: i6.DatePickerComponent, selector: "kendo-datepicker", inputs: ["focusableId", "cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate", "activeView", "bottomView", "topView", "calendarType", "animateCalendarNavigation", "disabled", "readonly", "readOnlyInput", "popupSettings", "navigation", "min", "max", "incompleteDateValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "enableMouseWheel", "allowCaretMode", "autoFill", "focusedDate", "value", "format", "twoDigitYearMax", "formatPlaceholder", "placeholder", "tabindex", "tabIndex", "disabledDates", "title", "subtitle", "rangeValidation", "disabledDatesValidation", "weekNumber", "size", "rounded", "fillMode", "adaptiveMode"], outputs: ["valueChange", "focus", "blur", "open", "close"], exportAs: ["kendo-datepicker"] }], directives: [{ type: i7.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i7.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i8.FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { type: i9.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i9.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i9.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i7.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i9.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }], pipes: { "levelItems": i10.LevelItemsPipe, "valueOf": i11.FieldAccessorPipe } });
|
|
225
230
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CellComponent, decorators: [{
|
|
226
231
|
type: Component,
|
|
227
232
|
args: [{
|
|
@@ -230,8 +235,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
230
235
|
<ng-container [ngSwitch]="isEdited">
|
|
231
236
|
<ng-container *ngSwitchCase="false">
|
|
232
237
|
<ng-container *ngIf="column.expandable">
|
|
233
|
-
<
|
|
234
|
-
<kendo-icon-wrapper
|
|
238
|
+
<kendo-icon-wrapper name="none" innerCssClass="k-treelist-toggle" [svgIcon]="noneIcon" *ngFor="let item of level | levelItems : hasChildren && expandIcons"></kendo-icon-wrapper>
|
|
239
|
+
<kendo-icon-wrapper innerCssClass="k-treelist-toggle"
|
|
235
240
|
aria-hidden="true"
|
|
236
241
|
*ngIf="hasChildren && expandIcons && !loading"
|
|
237
242
|
[name]="arrowIcon"
|
|
@@ -30,10 +30,11 @@ import * as i6 from "../navigation/navigation.service";
|
|
|
30
30
|
import * as i7 from "../expand-state/expand-state.service";
|
|
31
31
|
import * as i8 from "../selection/selection.service";
|
|
32
32
|
import * as i9 from "./cell.component";
|
|
33
|
-
import * as i10 from "@angular
|
|
34
|
-
import * as i11 from "
|
|
35
|
-
import * as i12 from "../navigation/logical-
|
|
36
|
-
import * as i13 from "
|
|
33
|
+
import * as i10 from "@progress/kendo-angular-icons";
|
|
34
|
+
import * as i11 from "@angular/common";
|
|
35
|
+
import * as i12 from "../navigation/logical-row.directive";
|
|
36
|
+
import * as i13 from "../navigation/logical-cell.directive";
|
|
37
|
+
import * as i14 from "./common/level-items.pipe";
|
|
37
38
|
const columnCellIndex = (cell, cells) => {
|
|
38
39
|
for (let idx = 0; idx < cells.length; idx++) {
|
|
39
40
|
if (cells[idx] === cell) {
|
|
@@ -65,6 +66,11 @@ export class TableBodyComponent {
|
|
|
65
66
|
this.lockedColumnsCount = 0;
|
|
66
67
|
this.totalColumnsCount = 0;
|
|
67
68
|
this.trackBy = defaultTrackBy;
|
|
69
|
+
this.noneIcon = {
|
|
70
|
+
name: 'none',
|
|
71
|
+
content: '',
|
|
72
|
+
viewBox: '0 0 24 24'
|
|
73
|
+
};
|
|
68
74
|
this.rowClass = () => null;
|
|
69
75
|
this.cellKeydownSubscription = this.navigationService.cellKeydown.subscribe((args) => this.cellKeydownHandler(args));
|
|
70
76
|
this.trackByWrapper = this.trackByWrapper.bind(this);
|
|
@@ -309,7 +315,7 @@ export class TableBodyComponent {
|
|
|
309
315
|
return {};
|
|
310
316
|
}
|
|
311
317
|
expandClick(eventArg, row) {
|
|
312
|
-
if (eventArg.type === 'click' && eventArg.target.closest('.k-icon-wrapper-host')) {
|
|
318
|
+
if (eventArg.type === 'click' && !hasClasses(eventArg.target, EMPTY_ICON_CLASS) && eventArg.target.closest('.k-icon-wrapper-host')) {
|
|
313
319
|
eventArg.preventDefault();
|
|
314
320
|
const viewItem = this.rowItem(row);
|
|
315
321
|
if (viewItem.type === 'data') {
|
|
@@ -421,7 +427,7 @@ TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
421
427
|
[ngStyle]="column.footerStyle"
|
|
422
428
|
*ngFor="let column of footerColumns; let columnIndex = index; trackBy: trackByColumns;">
|
|
423
429
|
<ng-container *ngIf="$any(column).expandable">
|
|
424
|
-
<
|
|
430
|
+
<kendo-icon-wrapper name="none" innerCssClass="k-treelist-toggle" [svgIcon]="noneIcon" *ngFor="let item of item.level | levelItems"></kendo-icon-wrapper>
|
|
425
431
|
</ng-container>
|
|
426
432
|
<ng-container [ngTemplateOutlet]="column.footerTemplateRef"
|
|
427
433
|
[ngTemplateOutletContext]="{
|
|
@@ -437,7 +443,7 @@ TableBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
437
443
|
</td>
|
|
438
444
|
</tr>
|
|
439
445
|
</ng-container>
|
|
440
|
-
`, isInline: true, components: [{ type: i9.CellComponent, selector: "[kendoTreeListCell]", inputs: ["column", "columnIndex", "isNew", "level", "hasChildren", "isExpanded", "loading", "expandIcons", "selected", "dataItem", "viewItem"] }], directives: [{ type:
|
|
446
|
+
`, isInline: true, components: [{ type: i9.CellComponent, selector: "[kendoTreeListCell]", inputs: ["column", "columnIndex", "isNew", "level", "hasChildren", "isExpanded", "loading", "expandIcons", "selected", "dataItem", "viewItem"] }, { type: i10.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i11.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i11.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i11.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i12.LogicalRowDirective, selector: "[kendoTreeListLogicalRow]", inputs: ["logicalRowIndex", "logicalSlaveRow", "logicalCellsCount", "logicalSlaveCellsCount", "dataRowIndex", "dataItem", "isNew", "totalColumns"] }, { type: i11.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i13.LogicalCellDirective, selector: "[kendoTreeListLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "column", "colIndex", "colSpan", "rowSpan", "dataRowIndex", "dataItem", "expandable"] }, { type: i11.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "levelItems": i14.LevelItemsPipe } });
|
|
441
447
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TableBodyComponent, decorators: [{
|
|
442
448
|
type: Component,
|
|
443
449
|
args: [{
|
|
@@ -524,7 +530,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
524
530
|
[ngStyle]="column.footerStyle"
|
|
525
531
|
*ngFor="let column of footerColumns; let columnIndex = index; trackBy: trackByColumns;">
|
|
526
532
|
<ng-container *ngIf="$any(column).expandable">
|
|
527
|
-
<
|
|
533
|
+
<kendo-icon-wrapper name="none" innerCssClass="k-treelist-toggle" [svgIcon]="noneIcon" *ngFor="let item of item.level | levelItems"></kendo-icon-wrapper>
|
|
528
534
|
</ng-container>
|
|
529
535
|
<ng-container [ngTemplateOutlet]="column.footerTemplateRef"
|
|
530
536
|
[ngTemplateOutletContext]="{
|