@progress/kendo-angular-treelist 13.0.0-develop.7 → 13.0.0-develop.8
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/column-menu/column-chooser.component.d.ts +10 -6
- package/column-menu/column-menu-chooser.component.d.ts +6 -10
- package/column-menu/column-menu-filter.component.d.ts +6 -10
- package/column-menu/column-menu-item-content-template.directive.d.ts +1 -1
- package/column-menu/column-menu-item.component.d.ts +8 -6
- package/column-menu/column-menu-lock.component.d.ts +5 -11
- package/column-menu/column-menu-sort.component.d.ts +5 -11
- package/column-menu/column-menu.component.d.ts +1 -1
- package/column-menu/column-menu.service.d.ts +1 -1
- package/columns/checkbox-column.component.d.ts +1 -1
- package/columns/column-group.component.d.ts +9 -6
- package/columns/column.component.d.ts +16 -66
- package/columns/command-column.component.d.ts +13 -15
- package/columns/span-column.component.d.ts +10 -81
- package/editing/add-command.directive.d.ts +1 -1
- package/editing/cancel-command.directive.d.ts +1 -1
- package/editing/edit-command.directive.d.ts +1 -1
- package/editing/edit-template.directive.d.ts +11 -0
- package/editing/remove-command.directive.d.ts +1 -1
- package/editing/save-command.directive.d.ts +1 -1
- package/esm2020/column-menu/column-chooser.component.mjs +10 -6
- package/esm2020/column-menu/column-menu-chooser.component.mjs +8 -12
- package/esm2020/column-menu/column-menu-filter.component.mjs +6 -10
- package/esm2020/column-menu/column-menu-item-content-template.directive.mjs +1 -1
- package/esm2020/column-menu/column-menu-item.component.mjs +8 -6
- package/esm2020/column-menu/column-menu-lock.component.mjs +5 -11
- package/esm2020/column-menu/column-menu-sort.component.mjs +5 -11
- package/esm2020/column-menu/column-menu.component.mjs +1 -1
- package/esm2020/column-menu/column-menu.service.mjs +1 -1
- package/esm2020/columns/checkbox-column.component.mjs +1 -1
- package/esm2020/columns/column-group.component.mjs +9 -6
- package/esm2020/columns/column.component.mjs +16 -39
- package/esm2020/columns/command-column.component.mjs +13 -15
- package/esm2020/columns/span-column.component.mjs +10 -81
- package/esm2020/editing/add-command.directive.mjs +1 -1
- package/esm2020/editing/cancel-command.directive.mjs +1 -1
- package/esm2020/editing/edit-command.directive.mjs +1 -1
- package/esm2020/editing/edit-template.directive.mjs +11 -0
- package/esm2020/editing/remove-command.directive.mjs +1 -1
- package/esm2020/editing/save-command.directive.mjs +1 -1
- package/esm2020/excel/excel-command.directive.mjs +1 -1
- package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +11 -11
- package/esm2020/filtering/cell/date-filter-cell.component.mjs +11 -11
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +15 -0
- package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +13 -12
- package/esm2020/filtering/cell/string-filter-cell.component.mjs +14 -13
- package/esm2020/filtering/date-filter.component.mjs +6 -1
- package/esm2020/filtering/menu/boolean-filter-menu.component.mjs +11 -12
- package/esm2020/filtering/menu/date-filter-menu.component.mjs +12 -12
- package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +12 -12
- package/esm2020/filtering/menu/string-filter-menu.component.mjs +15 -0
- package/esm2020/filtering/numeric-filter.component.mjs +4 -1
- package/esm2020/filtering/operators/after-eq-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/after-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/before-eq-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/before-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/contains-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/ends-with-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/eq-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/gt-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/gte-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/is-empty-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/is-not-empty-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/is-not-null-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/isnull-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/lt-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/lte-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/neq-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/not-contains-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/starts-with-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/string-filter.component.mjs +2 -1
- package/esm2020/localization/custom-messages.component.mjs +1 -1
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-numeric-buttons.component.mjs +1 -1
- package/esm2020/pager/pager-template.directive.mjs +1 -1
- package/esm2020/pdf/pdf-command.directive.mjs +1 -1
- package/esm2020/pdf/pdf-margin.component.mjs +9 -0
- package/esm2020/rendering/cell-template.directive.mjs +1 -1
- package/esm2020/rendering/common/spacer.component.mjs +1 -1
- package/esm2020/treelist.component.mjs +24 -288
- package/excel/excel-command.directive.d.ts +1 -1
- package/excel/excel.component.d.ts +9 -8
- package/fesm2015/progress-kendo-angular-treelist.mjs +302 -667
- package/fesm2020/progress-kendo-angular-treelist.mjs +302 -667
- package/filtering/cell/boolean-filter-cell.component.d.ts +11 -11
- package/filtering/cell/date-filter-cell.component.d.ts +11 -11
- package/filtering/cell/filter-cell-operators.component.d.ts +15 -0
- package/filtering/cell/numeric-filter-cell.component.d.ts +13 -12
- package/filtering/cell/string-filter-cell.component.d.ts +12 -11
- package/filtering/date-filter.component.d.ts +7 -11
- package/filtering/menu/boolean-filter-menu.component.d.ts +11 -12
- package/filtering/menu/date-filter-menu.component.d.ts +12 -12
- package/filtering/menu/numeric-filter-menu.component.d.ts +12 -12
- package/filtering/menu/string-filter-menu.component.d.ts +15 -0
- package/filtering/numeric-filter.component.d.ts +4 -1
- package/filtering/operators/after-eq-filter-operator.component.d.ts +4 -0
- package/filtering/operators/after-filter-operator.component.d.ts +4 -0
- package/filtering/operators/before-eq-filter-operator.component.d.ts +4 -0
- package/filtering/operators/before-filter-operator.component.d.ts +4 -0
- package/filtering/operators/contains-filter-operator.component.d.ts +1 -4
- package/filtering/operators/ends-with-filter-operator.component.d.ts +1 -4
- package/filtering/operators/eq-filter-operator.component.d.ts +1 -4
- package/filtering/operators/gte-filter-operator.component.d.ts +1 -4
- package/filtering/operators/is-empty-filter-operator.component.d.ts +1 -4
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +1 -4
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +1 -4
- package/filtering/operators/isnull-filter-operator.component.d.ts +1 -4
- package/filtering/operators/lt-filter-operator.component.d.ts +4 -0
- package/filtering/operators/neq-filter-operator.component.d.ts +1 -4
- package/filtering/operators/not-contains-filter-operator.component.d.ts +1 -4
- package/filtering/operators/starts-with-filter-operator.component.d.ts +1 -4
- package/filtering/string-filter.component.d.ts +2 -1
- package/localization/custom-messages.component.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/package.json +16 -16
- package/pager/pager-numeric-buttons.component.d.ts +1 -1
- package/pager/pager-template.directive.d.ts +1 -1
- package/pdf/pdf-command.directive.d.ts +1 -1
- package/pdf/pdf-margin.component.d.ts +9 -0
- package/rendering/cell-template.directive.d.ts +1 -1
- package/rendering/common/spacer.component.d.ts +1 -1
- package/schematics/ngAdd/index.js +3 -3
- package/treelist.component.d.ts +24 -287
|
@@ -48,8 +48,8 @@ const packageMetadata = {
|
|
|
48
48
|
name: '@progress/kendo-angular-treelist',
|
|
49
49
|
productName: 'Kendo UI for Angular',
|
|
50
50
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
51
|
-
publishDate:
|
|
52
|
-
version: '13.0.0-develop.
|
|
51
|
+
publishDate: 1685107230,
|
|
52
|
+
version: '13.0.0-develop.8',
|
|
53
53
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
54
54
|
};
|
|
55
55
|
|
|
@@ -69,7 +69,7 @@ const packageMetadata = {
|
|
|
69
69
|
* - `loading`—Specifies if the item children are currently loading.
|
|
70
70
|
* - `rowIndex`—The current row index. Use it as an alias for a template variable by utilizing the `let-rowIndex="rowIndex"` syntax.
|
|
71
71
|
*
|
|
72
|
-
*
|
|
72
|
+
* @example
|
|
73
73
|
* ```html
|
|
74
74
|
* <kendo-treelist ...>
|
|
75
75
|
* <kendo-treelist-column field="ProductName">
|
|
@@ -108,6 +108,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
108
108
|
* - `formGroup`—The current [`FormGroup`](link:site.data.urls.angular['formgroupapi']). If you use the TreeList inside [Template-Driven Forms](link:site.data.urls.angular['forms']), `formGroup` will be `undefined`.
|
|
109
109
|
* - `isNew`—The state of the current item.
|
|
110
110
|
* - `rowIndex`—The current row index. If inside a new item row, `rowIndex` is `-1`.
|
|
111
|
+
*
|
|
112
|
+
* * @example
|
|
113
|
+
* ```html
|
|
114
|
+
* <kendo-treelist ...>
|
|
115
|
+
* <kendo-treelist-command-column title="command">
|
|
116
|
+
* <ng-template kendoTreeListEditTemplate let-rowIndex="rowIndex">
|
|
117
|
+
* {{rowIndex}}
|
|
118
|
+
* </ng-template>
|
|
119
|
+
* </kendo-treelist-command-column>
|
|
120
|
+
* </kendo-treelist>
|
|
121
|
+
* ```
|
|
111
122
|
*/
|
|
112
123
|
class EditTemplateDirective {
|
|
113
124
|
constructor(templateRef) {
|
|
@@ -666,14 +677,15 @@ function isColumnComponent(column) {
|
|
|
666
677
|
return isPresent(column.field);
|
|
667
678
|
}
|
|
668
679
|
/**
|
|
669
|
-
* Represents the columns of the
|
|
680
|
+
* Represents the columns of the TreeList.
|
|
670
681
|
*
|
|
671
|
-
*
|
|
672
|
-
*
|
|
673
|
-
*
|
|
674
|
-
*
|
|
675
|
-
*
|
|
676
|
-
*
|
|
682
|
+
* @example
|
|
683
|
+
* ```html
|
|
684
|
+
* <kendo-treelist [kendoTreeListFlatBinding]="data" ...>
|
|
685
|
+
* <kendo-treelist-column field="name" title="Name"></kendo-treelist-column>
|
|
686
|
+
* <kendo-treelist-column field="title"title="Title"></kendo-treelist-column>
|
|
687
|
+
* </kendo-treelist>
|
|
688
|
+
* ```
|
|
677
689
|
*/
|
|
678
690
|
class ColumnComponent extends ColumnBase {
|
|
679
691
|
constructor(parent, optionChanges) {
|
|
@@ -685,51 +697,27 @@ class ColumnComponent extends ColumnBase {
|
|
|
685
697
|
this.sortable = true;
|
|
686
698
|
/**
|
|
687
699
|
* Defines the editor type ([see example]({% slug editing_reactive_forms_treelist %}#toc-setup)).
|
|
688
|
-
* Used when the column enters the edit mode.
|
|
700
|
+
* Used when the column enters the edit mode. [See example](slug:editing_reactive_forms_treelist).
|
|
689
701
|
*
|
|
690
|
-
* @
|
|
691
|
-
* ```html-no-run
|
|
692
|
-
* <kendo-treelist>
|
|
693
|
-
* <kendo-treelist-column field="UnitPrice" editor="numeric">
|
|
694
|
-
* </kendo-treelist-column>
|
|
695
|
-
* </kendo-treelist>
|
|
696
|
-
* ```
|
|
702
|
+
* @default 'text'
|
|
697
703
|
*/
|
|
698
704
|
this.editor = 'text';
|
|
699
705
|
/**
|
|
700
|
-
* Defines the filter type that is displayed inside the filter row.
|
|
706
|
+
* Defines the filter type that is displayed inside the filter row.
|
|
701
707
|
*
|
|
702
|
-
* @
|
|
703
|
-
* ```html-no-run
|
|
704
|
-
* <kendo-treelist>
|
|
705
|
-
* <kendo-treelist-column field="UnitPrice" filter="numeric">
|
|
706
|
-
* </kendo-treelist-column>
|
|
707
|
-
* </kendo-treelist>
|
|
708
|
-
* ```
|
|
708
|
+
* @default 'text'
|
|
709
709
|
*/
|
|
710
710
|
this.filter = 'text';
|
|
711
711
|
/**
|
|
712
|
-
* Defines if a filter UI will be displayed for this column.
|
|
712
|
+
* Defines if a filter UI will be displayed for this column.
|
|
713
713
|
*
|
|
714
|
-
* @
|
|
715
|
-
* ```html-no-run
|
|
716
|
-
* <kendo-treelist>
|
|
717
|
-
* <kendo-treelist-column field="UnitPrice" [filterable]="false">
|
|
718
|
-
* </kendo-treelist-column>
|
|
719
|
-
* </kendo-treelist>
|
|
720
|
-
* ```
|
|
714
|
+
* @default true
|
|
721
715
|
*/
|
|
722
716
|
this.filterable = true;
|
|
723
717
|
/**
|
|
724
|
-
* Defines whether the column is editable.
|
|
718
|
+
* Defines whether the column is editable.
|
|
725
719
|
*
|
|
726
|
-
* @
|
|
727
|
-
* ```html-no-run
|
|
728
|
-
* <kendo-treelist>
|
|
729
|
-
* <kendo-treelist-column field="UnitPrice" [editable]="false">
|
|
730
|
-
* </kendo-treelist-column>
|
|
731
|
-
* </kendo-treelist>
|
|
732
|
-
* ```
|
|
720
|
+
* @default true
|
|
733
721
|
*/
|
|
734
722
|
this.editable = true;
|
|
735
723
|
}
|
|
@@ -823,25 +811,15 @@ function isSpanColumnComponent(column) {
|
|
|
823
811
|
* [sorting]({% slug sorting_treelist %}) and [filtering]({% slug filtering_treelist %}). Wrap the columns that will be
|
|
824
812
|
* merged inside the `<kendo-treelist-span-column>` tag.
|
|
825
813
|
*
|
|
826
|
-
*
|
|
827
|
-
* {% embed_file configuration/span-column/app.component.ts preview %}
|
|
828
|
-
* {% embed_file configuration/span-column/app.module.ts %}
|
|
829
|
-
* {% embed_file shared/main.ts %}
|
|
830
|
-
* {% embed_file shared/employees.ts %}
|
|
831
|
-
* {% endmeta %}
|
|
832
|
-
*
|
|
833
|
-
* By default, the data cell displays the data for the specified fields. To further customize
|
|
834
|
-
* the span-column functionality, use a [cell template]({% slug api_treelist_celltemplatedirective %}).
|
|
835
|
-
*
|
|
836
|
-
* ```html-no-run
|
|
814
|
+
* ```html
|
|
837
815
|
* <kendo-treelist-span-column>
|
|
838
|
-
*
|
|
839
|
-
*
|
|
840
|
-
*
|
|
841
|
-
*
|
|
842
|
-
*
|
|
843
|
-
*
|
|
844
|
-
*
|
|
816
|
+
* <kendo-treelist-column field="field1" ></kendo-treelist-column>
|
|
817
|
+
* <kendo-treelist-column field="field2" ></kendo-treelist-column>
|
|
818
|
+
* <ng-template kendoTreeListCellTemplate let-dataItem>
|
|
819
|
+
* <h5>{{ dataItem.field1 }}</h5>
|
|
820
|
+
* <p>{{ dataItem.field2 }}</p>
|
|
821
|
+
* </ng-template>
|
|
822
|
+
* </kendo-treelist-span-column>
|
|
845
823
|
* ```
|
|
846
824
|
*/
|
|
847
825
|
class SpanColumnComponent extends ColumnBase {
|
|
@@ -869,22 +847,8 @@ class SpanColumnComponent extends ColumnBase {
|
|
|
869
847
|
/**
|
|
870
848
|
* Defines whether the edit template of the column will be rendered. The default value is `false`.
|
|
871
849
|
*
|
|
872
|
-
*
|
|
850
|
+
* To enable the editing functionality for a spanned column, set an edit template for it.
|
|
873
851
|
*
|
|
874
|
-
* @example
|
|
875
|
-
* ```html-no-run
|
|
876
|
-
* <kendo-treelist>
|
|
877
|
-
* <kendo-treelist-span-column [editable]="false">
|
|
878
|
-
* <kendo-treelist-column field="UnitPrice">
|
|
879
|
-
* </kendo-treelist-column>
|
|
880
|
-
* <kendo-treelist-column field="ProductName">
|
|
881
|
-
* </kendo-treelist-column>
|
|
882
|
-
* <ng-template kendoTreeListEditTemplate>
|
|
883
|
-
* .....
|
|
884
|
-
* </ng-template>
|
|
885
|
-
* </kendo-treelist-span-column>
|
|
886
|
-
* </kendo-treelist>
|
|
887
|
-
* ```
|
|
888
852
|
*/
|
|
889
853
|
set editable(value) {
|
|
890
854
|
this._editable = value;
|
|
@@ -929,56 +893,9 @@ class SpanColumnComponent extends ColumnBase {
|
|
|
929
893
|
}
|
|
930
894
|
/**
|
|
931
895
|
* Toggles the locked (frozen) state of the columns. Locked columns are visible
|
|
932
|
-
* at all times during the horizontal scrolling of the TreeList.
|
|
933
|
-
*
|
|
934
|
-
* For the option to work properly, make sure that:
|
|
935
|
-
* - Scrolling is enabled.
|
|
936
|
-
* - The `height` option of the TreeList is set.
|
|
937
|
-
* - The widths of all TreeList columns are explicitly set in pixels. In this way,
|
|
938
|
-
* the TreeList adjusts the layout of the locked and unlocked columns.
|
|
896
|
+
* at all times during the horizontal scrolling of the TreeList. [See example](slug:locked_columns_treelist).
|
|
939
897
|
*
|
|
940
898
|
* @default false
|
|
941
|
-
*
|
|
942
|
-
* @example
|
|
943
|
-
* ```ts
|
|
944
|
-
* _@Component({
|
|
945
|
-
* selector: 'my-app',
|
|
946
|
-
* template: `
|
|
947
|
-
* <kendo-treelist [data]="treelistData" [scrollable]="scrollable" style="height: 200px">
|
|
948
|
-
* <kendo-treelist-span-column [locked]="true">
|
|
949
|
-
* <kendo-treelist-column field="ProductID" title="Product ID" [width]="120">
|
|
950
|
-
* </kendo-treelist-column>
|
|
951
|
-
* <kendo-treelist-column field="ProductName" title="Product Name" [width]="200">
|
|
952
|
-
* </kendo-treelist-column>
|
|
953
|
-
* </kendo-treelist-span-column>
|
|
954
|
-
* <kendo-treelist-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
955
|
-
* </kendo-treelist-column>
|
|
956
|
-
* </kendo-treelist>
|
|
957
|
-
* `
|
|
958
|
-
* })
|
|
959
|
-
*
|
|
960
|
-
* class AppComponent {
|
|
961
|
-
* public treelistData: any[];
|
|
962
|
-
*
|
|
963
|
-
* constructor() {
|
|
964
|
-
* this.treelistData = products;
|
|
965
|
-
* }
|
|
966
|
-
* }
|
|
967
|
-
*
|
|
968
|
-
* const products = [{
|
|
969
|
-
* "ProductID": 1,
|
|
970
|
-
* "ProductName": "Chai",
|
|
971
|
-
* "UnitPrice": 18.0000,
|
|
972
|
-
* "Discontinued": true
|
|
973
|
-
* }, {
|
|
974
|
-
* "ProductID": 2,
|
|
975
|
-
* "ProductName": "Chang",
|
|
976
|
-
* "UnitPrice": 19.0000,
|
|
977
|
-
* "Discontinued": false
|
|
978
|
-
* }
|
|
979
|
-
* ];
|
|
980
|
-
*
|
|
981
|
-
* ```
|
|
982
899
|
*/
|
|
983
900
|
set locked(value) {
|
|
984
901
|
this._locked = value;
|
|
@@ -1115,12 +1032,15 @@ function isColumnGroupComponent(column) {
|
|
|
1115
1032
|
* Represents the column group header of the TreeList
|
|
1116
1033
|
* ([more information and examples]({% slug multicolumnheaders_columns_treelist %})).
|
|
1117
1034
|
*
|
|
1118
|
-
*
|
|
1119
|
-
*
|
|
1120
|
-
*
|
|
1121
|
-
*
|
|
1122
|
-
*
|
|
1123
|
-
*
|
|
1035
|
+
* @example
|
|
1036
|
+
* ```html
|
|
1037
|
+
* <kendo-treelist ...>
|
|
1038
|
+
* <kendo-treelist-column-group title="File Info">
|
|
1039
|
+
* <kendo-treelist-column field="type" title="Type"> </kendo-treelist-column>
|
|
1040
|
+
* <kendo-treelist-column field="size" title="Size"> </kendo-treelist-column>
|
|
1041
|
+
* </kendo-treelist-column-group>
|
|
1042
|
+
* </kendo-treelist>
|
|
1043
|
+
* ```
|
|
1124
1044
|
*/
|
|
1125
1045
|
class ColumnGroupComponent extends ColumnBase {
|
|
1126
1046
|
constructor(parent, optionChanges) {
|
|
@@ -2131,7 +2051,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2131
2051
|
* * `totalPages`—The total number of available pages.
|
|
2132
2052
|
*
|
|
2133
2053
|
* @example
|
|
2134
|
-
* ```
|
|
2054
|
+
* ```html
|
|
2135
2055
|
* <kendo-treelist ...>
|
|
2136
2056
|
* <kendo-treelist-column field="type"></kendo-treelist-column>
|
|
2137
2057
|
* <ng-template
|
|
@@ -6065,8 +5985,9 @@ class StringFilterComponent extends BaseFilterCellComponent {
|
|
|
6065
5985
|
super(filterService);
|
|
6066
5986
|
this.localization = localization;
|
|
6067
5987
|
/**
|
|
6068
|
-
* The default filter operator.
|
|
5988
|
+
* The default filter operator.
|
|
6069
5989
|
* @type {string}
|
|
5990
|
+
* @default 'contains'
|
|
6070
5991
|
*/
|
|
6071
5992
|
this.operator = "contains";
|
|
6072
5993
|
}
|
|
@@ -6434,6 +6355,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
6434
6355
|
/**
|
|
6435
6356
|
* Represents a string-filter menu component.
|
|
6436
6357
|
* ([see example]({% slug builtinfiltertemplate_treelist %}#toc-configuration-components-for-filter-templates)).
|
|
6358
|
+
*
|
|
6359
|
+
* @example
|
|
6360
|
+
* ```html
|
|
6361
|
+
* <kendo-treelist-column field="name">
|
|
6362
|
+
* <ng-template kendoTreeListFilterMenuTemplate let-filter let-column="column" let-filterService="filterService">
|
|
6363
|
+
* <kendo-treelist-string-filter-menu
|
|
6364
|
+
* [column]="column"
|
|
6365
|
+
* [filter]="filter"
|
|
6366
|
+
* [filterService]="filterService">
|
|
6367
|
+
* </kendo-treelist-string-filter-menu>
|
|
6368
|
+
* </ng-template>
|
|
6369
|
+
* </kendo-treelist-column>
|
|
6370
|
+
* ```
|
|
6371
|
+
*
|
|
6437
6372
|
*/
|
|
6438
6373
|
class StringFilterMenuComponent extends StringFilterComponent {
|
|
6439
6374
|
constructor(localization) {
|
|
@@ -6446,6 +6381,7 @@ class StringFilterMenuComponent extends StringFilterComponent {
|
|
|
6446
6381
|
this.filter = { filters: [], logic: "and" };
|
|
6447
6382
|
/**
|
|
6448
6383
|
* Determines if the inputs of second criteria will displayed.
|
|
6384
|
+
* @default true
|
|
6449
6385
|
*/
|
|
6450
6386
|
this.extra = true;
|
|
6451
6387
|
}
|
|
@@ -6558,18 +6494,21 @@ class NumericFilterComponent extends BaseFilterCellComponent {
|
|
|
6558
6494
|
super(filterService);
|
|
6559
6495
|
this.localization = localization;
|
|
6560
6496
|
/**
|
|
6561
|
-
* The default filter operator.
|
|
6497
|
+
* The default filter operator.
|
|
6562
6498
|
* @type {string}
|
|
6499
|
+
* @default 'eq'
|
|
6563
6500
|
*/
|
|
6564
6501
|
this.operator = "eq";
|
|
6565
6502
|
/**
|
|
6566
6503
|
* Specifies the value that is used to increment or decrement the component value.
|
|
6567
6504
|
* @type {numeric}
|
|
6505
|
+
* @default 1
|
|
6568
6506
|
*/
|
|
6569
6507
|
this.step = 1;
|
|
6570
6508
|
/**
|
|
6571
6509
|
* Specifies whether the **Up** and **Down** spin buttons will be rendered.
|
|
6572
6510
|
* @type {boolean}
|
|
6511
|
+
* @default true
|
|
6573
6512
|
*/
|
|
6574
6513
|
this.spinners = true;
|
|
6575
6514
|
this.defaultOperators = numericOperators(this.localization);
|
|
@@ -6752,18 +6691,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
6752
6691
|
* Represents a numeric-filter menu component.
|
|
6753
6692
|
*
|
|
6754
6693
|
* @example
|
|
6755
|
-
* ```html
|
|
6756
|
-
*
|
|
6757
|
-
*
|
|
6758
|
-
*
|
|
6759
|
-
*
|
|
6760
|
-
*
|
|
6761
|
-
*
|
|
6762
|
-
*
|
|
6763
|
-
*
|
|
6764
|
-
*
|
|
6765
|
-
*
|
|
6766
|
-
* ```
|
|
6694
|
+
* ```html
|
|
6695
|
+
* <kendo-treelist-column field="UnitPrice">
|
|
6696
|
+
* <ng-template kendoTreeListFilterMenuTemplate let-filter let-column="column" let-filterService="filterService">
|
|
6697
|
+
* <kendo-treelist-numeric-filter-menu
|
|
6698
|
+
* [column]="column"
|
|
6699
|
+
* [filter]="filter"
|
|
6700
|
+
* [filterService]="filterService">
|
|
6701
|
+
* </kendo-treelist-numeric-filter-menu>
|
|
6702
|
+
* </ng-template>
|
|
6703
|
+
* </kendo-treelist-column>
|
|
6704
|
+
* ```
|
|
6767
6705
|
*/
|
|
6768
6706
|
class NumericFilterMenuComponent extends NumericFilterComponent {
|
|
6769
6707
|
constructor(localization) {
|
|
@@ -6776,6 +6714,7 @@ class NumericFilterMenuComponent extends NumericFilterComponent {
|
|
|
6776
6714
|
this.filter = { filters: [], logic: "and" };
|
|
6777
6715
|
/**
|
|
6778
6716
|
* Determines if the inputs of second criteria will displayed.
|
|
6717
|
+
* @default true
|
|
6779
6718
|
*/
|
|
6780
6719
|
this.extra = true;
|
|
6781
6720
|
}
|
|
@@ -6921,25 +6860,30 @@ class DateFilterComponent extends BaseFilterCellComponent {
|
|
|
6921
6860
|
/**
|
|
6922
6861
|
* The default filter operator. Defaults to `contains`.
|
|
6923
6862
|
* @type {string}
|
|
6863
|
+
* @default 'gte'
|
|
6924
6864
|
*/
|
|
6925
6865
|
this.operator = "gte";
|
|
6926
6866
|
/**
|
|
6927
6867
|
* Defines the active view that the calendar initially renders.
|
|
6928
6868
|
* By default, the active view is `month`.
|
|
6929
6869
|
*
|
|
6930
|
-
*
|
|
6870
|
+
* You have to set `activeView` within the `topView`-`bottomView` range.
|
|
6871
|
+
* @default 'month'
|
|
6931
6872
|
*/
|
|
6932
6873
|
this.activeView = "month";
|
|
6933
6874
|
/**
|
|
6934
6875
|
* Defines the bottommost calendar view, to which the user can navigate.
|
|
6876
|
+
* @default 'month'
|
|
6935
6877
|
*/
|
|
6936
6878
|
this.bottomView = "month";
|
|
6937
6879
|
/**
|
|
6938
6880
|
* Defines the topmost calendar view, to which the user can navigate.
|
|
6881
|
+
* @default 'century'
|
|
6939
6882
|
*/
|
|
6940
6883
|
this.topView = "century";
|
|
6941
6884
|
/**
|
|
6942
6885
|
* Determines whether to display a week number column in the `month` view of the Calendar.
|
|
6886
|
+
* @default false
|
|
6943
6887
|
*/
|
|
6944
6888
|
this.weekNumber = false;
|
|
6945
6889
|
this.defaultOperators = dateOperators(this.localization);
|
|
@@ -7145,18 +7089,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
7145
7089
|
* Represents a date-filter menu component.
|
|
7146
7090
|
*
|
|
7147
7091
|
* @example
|
|
7148
|
-
*
|
|
7149
|
-
*
|
|
7150
|
-
*
|
|
7151
|
-
*
|
|
7152
|
-
*
|
|
7153
|
-
*
|
|
7154
|
-
*
|
|
7155
|
-
*
|
|
7156
|
-
*
|
|
7157
|
-
*
|
|
7158
|
-
*
|
|
7159
|
-
* ```
|
|
7092
|
+
* ```html
|
|
7093
|
+
* <kendo-treelist-column field="OrderDate" title="Order Date">
|
|
7094
|
+
* <ng-template kendoTreeListFilterMenuTemplate let-filter let-column="column" let-filterService="filterService">
|
|
7095
|
+
* <kendo-treelist-date-filter-menu
|
|
7096
|
+
* [column]="column"
|
|
7097
|
+
* [filter]="filter"
|
|
7098
|
+
* [filterService]="filterService">
|
|
7099
|
+
* </kendo-treelist-date-filter-menu>
|
|
7100
|
+
* </ng-template>
|
|
7101
|
+
* </kendo-treelist-column>
|
|
7102
|
+
* ```
|
|
7160
7103
|
*/
|
|
7161
7104
|
class DateFilterMenuComponent extends DateFilterComponent {
|
|
7162
7105
|
constructor(localization) {
|
|
@@ -7169,6 +7112,7 @@ class DateFilterMenuComponent extends DateFilterComponent {
|
|
|
7169
7112
|
this.filter = { filters: [], logic: "and" };
|
|
7170
7113
|
/**
|
|
7171
7114
|
* Determines if the inputs of second criteria will be displayed.
|
|
7115
|
+
* @default true
|
|
7172
7116
|
*/
|
|
7173
7117
|
this.extra = true;
|
|
7174
7118
|
}
|
|
@@ -7382,20 +7326,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
7382
7326
|
}] } });
|
|
7383
7327
|
|
|
7384
7328
|
/**
|
|
7385
|
-
* Represents a Boolean-filter menu component.
|
|
7329
|
+
* Represents a Boolean-filter menu component. [See example](slug:columnmenu_treelist#toc-customizing-the-content).
|
|
7386
7330
|
*
|
|
7387
7331
|
* @example
|
|
7388
|
-
*
|
|
7389
|
-
*
|
|
7390
|
-
*
|
|
7391
|
-
*
|
|
7392
|
-
*
|
|
7393
|
-
*
|
|
7394
|
-
*
|
|
7395
|
-
*
|
|
7396
|
-
*
|
|
7397
|
-
*
|
|
7398
|
-
* </kendo-treelist-column>
|
|
7332
|
+
* ```html
|
|
7333
|
+
* <kendo-treelist-column field="Discontinued" title="Discontinued">
|
|
7334
|
+
* <ng-template kendoTreeListFilterMenuTemplate let-filter let-column="column" let-filterService="filterService">
|
|
7335
|
+
* <kendo-treelist-boolean-filter-menu
|
|
7336
|
+
* [column]="column"
|
|
7337
|
+
* [filter]="filter"
|
|
7338
|
+
* [filterService]="filterService">
|
|
7339
|
+
* </kendo-treelist-boolean-filter-menu>
|
|
7340
|
+
* </ng-template>
|
|
7341
|
+
* </kendo-treelist-column>
|
|
7399
7342
|
* ```
|
|
7400
7343
|
*/
|
|
7401
7344
|
class BooleanFilterMenuComponent extends BooleanFilterComponent {
|
|
@@ -7813,7 +7756,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
7813
7756
|
*
|
|
7814
7757
|
* @example
|
|
7815
7758
|
* ```html
|
|
7816
|
-
* <kendo-treelist
|
|
7759
|
+
* <kendo-treelist ...>
|
|
7817
7760
|
* <ng-template
|
|
7818
7761
|
* kendoTreeListColumnMenuTemplate
|
|
7819
7762
|
* let-service="service"
|
|
@@ -7883,7 +7826,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
7883
7826
|
*
|
|
7884
7827
|
* @example
|
|
7885
7828
|
* ```html
|
|
7886
|
-
* <kendo-treelist
|
|
7829
|
+
* <kendo-treelist ...>
|
|
7887
7830
|
* <kendo-treelist-column field="ProductName">
|
|
7888
7831
|
* <ng-template kendoTreeListColumnMenuTemplate>
|
|
7889
7832
|
* <kendo-treelist-columnmenu-item text="Item Text" [expanded]="true">
|
|
@@ -7916,12 +7859,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
7916
7859
|
* Represents an item that can be placed inside a
|
|
7917
7860
|
* [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
7918
7861
|
*
|
|
7919
|
-
*
|
|
7920
|
-
*
|
|
7921
|
-
*
|
|
7922
|
-
*
|
|
7923
|
-
*
|
|
7924
|
-
*
|
|
7862
|
+
* * @example
|
|
7863
|
+
* ```html
|
|
7864
|
+
* <kendo-treelist ...>
|
|
7865
|
+
* <ng-template kendoTreeListColumnMenuTemplate let-service="service" let-column="column">
|
|
7866
|
+
* <kendo-treelist-columnmenu-item text="Fit column"></kendo-treelist-columnmenu-item>
|
|
7867
|
+
* </ng-template>
|
|
7868
|
+
* </kendo-treelist>
|
|
7869
|
+
* ```
|
|
7925
7870
|
*/
|
|
7926
7871
|
class ColumnMenuItemComponent {
|
|
7927
7872
|
constructor() {
|
|
@@ -8063,19 +8008,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8063
8008
|
}] } });
|
|
8064
8009
|
|
|
8065
8010
|
/**
|
|
8066
|
-
* Represents
|
|
8067
|
-
* [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
8068
|
-
* Allows the user to sort the column.
|
|
8011
|
+
* Represents the column-menu item for sorting TreeList columns.
|
|
8069
8012
|
*
|
|
8070
|
-
*
|
|
8071
|
-
*
|
|
8013
|
+
* The component can be placed inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
8014
|
+
*
|
|
8015
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %})
|
|
8016
|
+
* that is passed by the template to the service input of the `kendo-treelist-columnmenu-sort` component.
|
|
8072
8017
|
*
|
|
8073
|
-
* {% meta height:500 %}
|
|
8074
|
-
* {% embed_file column-menu/template-sort/app.component.ts preview %}
|
|
8075
|
-
* {% embed_file column-menu/template-sort/app.module.ts %}
|
|
8076
|
-
* {% embed_file shared/main.ts %}
|
|
8077
|
-
* {% embed_file shared/employees.ts %}
|
|
8078
|
-
* {% endmeta %}
|
|
8079
8018
|
*/
|
|
8080
8019
|
class ColumnMenuSortComponent extends ColumnMenuItemBase {
|
|
8081
8020
|
constructor(localization, sortService) {
|
|
@@ -8157,19 +8096,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8157
8096
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }, { type: SortService }]; } });
|
|
8158
8097
|
|
|
8159
8098
|
/**
|
|
8160
|
-
* Represents
|
|
8161
|
-
*
|
|
8162
|
-
*
|
|
8099
|
+
* Represents the column-menu item that allows the user to lock or unlock columns.
|
|
8100
|
+
*
|
|
8101
|
+
* The componnt can be placed inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
8163
8102
|
*
|
|
8164
|
-
|
|
8165
|
-
*
|
|
8103
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %})
|
|
8104
|
+
* that is passed by the template to the service input of the `kendo-treelist-columnmenu-lock` component.
|
|
8166
8105
|
*
|
|
8167
|
-
* {% meta height:500 %}
|
|
8168
|
-
* {% embed_file column-menu/template-lock/app.component.ts preview %}
|
|
8169
|
-
* {% embed_file column-menu/template-lock/app.module.ts %}
|
|
8170
|
-
* {% embed_file shared/main.ts %}
|
|
8171
|
-
* {% embed_file shared/employees.ts %}
|
|
8172
|
-
* {% endmeta %}
|
|
8173
8106
|
*/
|
|
8174
8107
|
class ColumnMenuLockComponent extends ColumnMenuItemBase {
|
|
8175
8108
|
constructor(localization, columnInfoService, changeDetector) {
|
|
@@ -8456,18 +8389,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8456
8389
|
}] } });
|
|
8457
8390
|
|
|
8458
8391
|
/**
|
|
8459
|
-
* Represents the
|
|
8460
|
-
* inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
8392
|
+
* Represents the column-menu item for selecting columns in the TreeList. [See example](slug:columnmenu_treelist#toc-column-chooser-item).
|
|
8461
8393
|
*
|
|
8462
|
-
*
|
|
8463
|
-
*
|
|
8394
|
+
* The component can be placed inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
8395
|
+
*
|
|
8396
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %})
|
|
8397
|
+
* that is passed by the template to the service input of the `kendo-treelist-columnmenu-chooser` component.
|
|
8464
8398
|
*
|
|
8465
|
-
* {% meta height:500 %}
|
|
8466
|
-
* {% embed_file column-menu/template-chooser/app.component.ts preview %}
|
|
8467
|
-
* {% embed_file column-menu/template-chooser/app.module.ts %}
|
|
8468
|
-
* {% embed_file shared/main.ts %}
|
|
8469
|
-
* {% embed_file shared/employees.ts %}
|
|
8470
|
-
* {% endmeta %}
|
|
8471
8399
|
*/
|
|
8472
8400
|
class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
8473
8401
|
constructor(localization, columnInfoService, changeDetector) {
|
|
@@ -8485,6 +8413,7 @@ class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
|
8485
8413
|
this.collapse = new EventEmitter();
|
|
8486
8414
|
/**
|
|
8487
8415
|
* Specifies if the content is expanded.
|
|
8416
|
+
* @default false
|
|
8488
8417
|
*/
|
|
8489
8418
|
this.expanded = false;
|
|
8490
8419
|
/**
|
|
@@ -8509,7 +8438,7 @@ class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
|
8509
8438
|
}
|
|
8510
8439
|
ColumnMenuChooserComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ColumnMenuChooserComponent, deps: [{ token: i1$1.LocalizationService }, { token: ColumnInfoService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8511
8440
|
ColumnMenuChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ColumnMenuChooserComponent, selector: "kendo-treelist-columnmenu-chooser", inputs: { expanded: "expanded" }, outputs: { expand: "expand", collapse: "collapse" }, usesInheritance: true, ngImport: i0, template: `
|
|
8512
|
-
<kendo-treelist-columnmenu-item
|
|
8441
|
+
<kendo-treelist-columnmenu-item
|
|
8513
8442
|
[text]="localization.get('columns')"
|
|
8514
8443
|
icon="columns"
|
|
8515
8444
|
[svgIcon]="columnsIcon"
|
|
@@ -8534,7 +8463,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8534
8463
|
args: [{
|
|
8535
8464
|
selector: 'kendo-treelist-columnmenu-chooser',
|
|
8536
8465
|
template: `
|
|
8537
|
-
<kendo-treelist-columnmenu-item
|
|
8466
|
+
<kendo-treelist-columnmenu-item
|
|
8538
8467
|
[text]="localization.get('columns')"
|
|
8539
8468
|
icon="columns"
|
|
8540
8469
|
[svgIcon]="columnsIcon"
|
|
@@ -8564,18 +8493,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8564
8493
|
}] } });
|
|
8565
8494
|
|
|
8566
8495
|
/**
|
|
8567
|
-
* Represents the
|
|
8568
|
-
*
|
|
8496
|
+
* Represents the column-menu item for editing column filters in the TreeList.
|
|
8497
|
+
*
|
|
8498
|
+
* The component can be placed inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
8569
8499
|
*
|
|
8570
|
-
*
|
|
8571
|
-
*
|
|
8500
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %})
|
|
8501
|
+
* that is passed by the template to the service input of the `kendo-treelist-columnmenu-filter` component.
|
|
8572
8502
|
*
|
|
8573
|
-
* {% meta height:500 %}
|
|
8574
|
-
* {% embed_file column-menu/template-filter/app.component.ts preview %}
|
|
8575
|
-
* {% embed_file column-menu/template-filter/app.module.ts %}
|
|
8576
|
-
* {% embed_file shared/main.ts %}
|
|
8577
|
-
* {% embed_file shared/employees.ts %}
|
|
8578
|
-
* {% endmeta %}
|
|
8579
8503
|
*/
|
|
8580
8504
|
class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
8581
8505
|
constructor(localization) {
|
|
@@ -8591,6 +8515,7 @@ class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
|
8591
8515
|
this.collapse = new EventEmitter();
|
|
8592
8516
|
/**
|
|
8593
8517
|
* Specifies if the content is expanded.
|
|
8518
|
+
* @default false
|
|
8594
8519
|
*/
|
|
8595
8520
|
this.expanded = false;
|
|
8596
8521
|
/**
|
|
@@ -8652,7 +8577,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8652
8577
|
|
|
8653
8578
|
const POPUP_CLASS = 'k-grid-columnmenu-popup';
|
|
8654
8579
|
/**
|
|
8655
|
-
* Represents the [column menu]({% slug columnmenu_treelist %}) component.
|
|
8580
|
+
* Represents the [column menu]({% slug columnmenu_treelist %}) component of the TreeList.
|
|
8656
8581
|
*/
|
|
8657
8582
|
class ColumnMenuComponent {
|
|
8658
8583
|
constructor(popupService, localization, service) {
|
|
@@ -8842,6 +8767,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8842
8767
|
|
|
8843
8768
|
/**
|
|
8844
8769
|
* Represents a component which accommodates the filter operators.
|
|
8770
|
+
*
|
|
8771
|
+
* @example
|
|
8772
|
+
* ```html
|
|
8773
|
+
* <kendo-treelist ...>
|
|
8774
|
+
* <kendo-treelist-column field="ProductName">
|
|
8775
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
8776
|
+
* <input />
|
|
8777
|
+
* <kendo-treelist-filter-cell-operators
|
|
8778
|
+
* [operators]="[{text: 'Equals', value: 'eq'}]">
|
|
8779
|
+
* </kendo-treelist-filter-cell-operators>
|
|
8780
|
+
* </ng-template>
|
|
8781
|
+
* </kendo-treelist-column>
|
|
8782
|
+
* </kendo-treelist>
|
|
8783
|
+
* ```
|
|
8845
8784
|
*/
|
|
8846
8785
|
class FilterCellOperatorsComponent {
|
|
8847
8786
|
constructor(localization) {
|
|
@@ -8855,6 +8794,7 @@ class FilterCellOperatorsComponent {
|
|
|
8855
8794
|
/**
|
|
8856
8795
|
* Determines if the list of operators will be displayed.
|
|
8857
8796
|
* @type {boolean}
|
|
8797
|
+
* @default true
|
|
8858
8798
|
*/
|
|
8859
8799
|
this.showOperators = true;
|
|
8860
8800
|
/**
|
|
@@ -9062,17 +9002,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
9062
9002
|
*
|
|
9063
9003
|
* @example
|
|
9064
9004
|
*
|
|
9065
|
-
*
|
|
9066
|
-
*
|
|
9067
|
-
*
|
|
9068
|
-
*
|
|
9069
|
-
*
|
|
9070
|
-
*
|
|
9071
|
-
*
|
|
9072
|
-
*
|
|
9073
|
-
*
|
|
9074
|
-
*
|
|
9075
|
-
* ```
|
|
9005
|
+
* ```html
|
|
9006
|
+
* <kendo-treelist-column field="ProductName">
|
|
9007
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
9008
|
+
* <kendo-treelist-string-filter-cell
|
|
9009
|
+
* [column]="column"
|
|
9010
|
+
* [filter]="filter">
|
|
9011
|
+
* </kendo-treelist-string-filter-cell>
|
|
9012
|
+
* </ng-template>
|
|
9013
|
+
* </kendo-treelist-column>
|
|
9014
|
+
* ```
|
|
9076
9015
|
*/
|
|
9077
9016
|
class StringFilterCellComponent extends StringFilterComponent {
|
|
9078
9017
|
constructor(filterService, localization) {
|
|
@@ -9081,12 +9020,14 @@ class StringFilterCellComponent extends StringFilterComponent {
|
|
|
9081
9020
|
* Determines the delay time (in milliseconds) before the filter value is submitted.
|
|
9082
9021
|
* A value of `0` indicates no delay. The default value is `500`.
|
|
9083
9022
|
* @type {boolean}
|
|
9023
|
+
* @default 500
|
|
9084
9024
|
*/
|
|
9085
9025
|
this.filterDelay = 500;
|
|
9086
9026
|
/**
|
|
9087
9027
|
* Determines if the drop-down filter operators will be displayed.
|
|
9088
9028
|
* The default value is `true`.
|
|
9089
9029
|
* @type {boolean}
|
|
9030
|
+
* @default true
|
|
9090
9031
|
*/
|
|
9091
9032
|
this.showOperators = true;
|
|
9092
9033
|
}
|
|
@@ -9099,7 +9040,7 @@ StringFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
9099
9040
|
[operators]="operators"
|
|
9100
9041
|
[defaultOperator]="operator"
|
|
9101
9042
|
[showOperators]="showOperators">
|
|
9102
|
-
<input
|
|
9043
|
+
<input
|
|
9103
9044
|
class="k-textbox k-input k-input-md k-rounded-md k-input-solid"
|
|
9104
9045
|
kendoTreeListFocusable
|
|
9105
9046
|
kendoFilterInput
|
|
@@ -9118,7 +9059,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
9118
9059
|
[operators]="operators"
|
|
9119
9060
|
[defaultOperator]="operator"
|
|
9120
9061
|
[showOperators]="showOperators">
|
|
9121
|
-
<input
|
|
9062
|
+
<input
|
|
9122
9063
|
class="k-textbox k-input k-input-md k-rounded-md k-input-solid"
|
|
9123
9064
|
kendoTreeListFocusable
|
|
9124
9065
|
kendoFilterInput
|
|
@@ -9137,16 +9078,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
9137
9078
|
* Represents a numeric filter cell.
|
|
9138
9079
|
*
|
|
9139
9080
|
* @example
|
|
9140
|
-
*
|
|
9141
|
-
*
|
|
9142
|
-
*
|
|
9143
|
-
*
|
|
9144
|
-
*
|
|
9145
|
-
*
|
|
9146
|
-
*
|
|
9147
|
-
*
|
|
9148
|
-
*
|
|
9149
|
-
*
|
|
9081
|
+
* ```html
|
|
9082
|
+
* <kendo-treelist-column field="ProductName" title="Product Name">
|
|
9083
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
9084
|
+
* <kendo-treelist-numeric-filter-cell
|
|
9085
|
+
* [column]="column"
|
|
9086
|
+
* [filter]="filter">
|
|
9087
|
+
* </kendo-treelist-numeric-filter-cell>
|
|
9088
|
+
* </ng-template>
|
|
9089
|
+
* </kendo-treelist-column>
|
|
9090
|
+
* ```
|
|
9150
9091
|
*/
|
|
9151
9092
|
class NumericFilterCellComponent extends NumericFilterComponent {
|
|
9152
9093
|
constructor(filterService, localization) {
|
|
@@ -9154,14 +9095,15 @@ class NumericFilterCellComponent extends NumericFilterComponent {
|
|
|
9154
9095
|
this.localization = localization;
|
|
9155
9096
|
/**
|
|
9156
9097
|
* Determines the delay time (in milliseconds) before the filter value is submitted.
|
|
9157
|
-
* A value of `0` indicates no delay.
|
|
9098
|
+
* A value of `0` indicates no delay.
|
|
9158
9099
|
* @type {boolean}
|
|
9100
|
+
* @default 500
|
|
9159
9101
|
*/
|
|
9160
9102
|
this.filterDelay = 500;
|
|
9161
9103
|
/**
|
|
9162
9104
|
* Determines if the drop-down filter operators will be displayed.
|
|
9163
|
-
* The default value is `true`.
|
|
9164
9105
|
* @type {boolean}
|
|
9106
|
+
* @default true
|
|
9165
9107
|
*/
|
|
9166
9108
|
this.showOperators = true;
|
|
9167
9109
|
}
|
|
@@ -9224,19 +9166,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
9224
9166
|
|
|
9225
9167
|
/**
|
|
9226
9168
|
* Represents a Boolean filter-cell component.
|
|
9169
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-default-filter-operator).
|
|
9227
9170
|
*
|
|
9228
9171
|
* @example
|
|
9229
|
-
*
|
|
9230
|
-
*
|
|
9231
|
-
*
|
|
9232
|
-
*
|
|
9233
|
-
*
|
|
9234
|
-
*
|
|
9235
|
-
*
|
|
9236
|
-
*
|
|
9237
|
-
*
|
|
9238
|
-
*
|
|
9239
|
-
* ```
|
|
9172
|
+
* ```html
|
|
9173
|
+
* <kendo-treelist-column field="ProductName" title="Product Name">
|
|
9174
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
9175
|
+
* <kendo-treelist-boolean-filter-cell
|
|
9176
|
+
* [column]="column"
|
|
9177
|
+
* [filter]="filter">
|
|
9178
|
+
* </kendo-treelist-boolean-filter-cell>
|
|
9179
|
+
* </ng-template>
|
|
9180
|
+
* </kendo-treelist-column>
|
|
9181
|
+
* ```
|
|
9240
9182
|
*/
|
|
9241
9183
|
class BooleanFilterCellComponent extends BooleanFilterComponent {
|
|
9242
9184
|
constructor(filterService, localization, cd) {
|
|
@@ -9297,17 +9239,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
9297
9239
|
*
|
|
9298
9240
|
* @example
|
|
9299
9241
|
*
|
|
9300
|
-
*
|
|
9301
|
-
*
|
|
9302
|
-
*
|
|
9303
|
-
*
|
|
9304
|
-
*
|
|
9305
|
-
*
|
|
9306
|
-
*
|
|
9307
|
-
*
|
|
9308
|
-
*
|
|
9309
|
-
*
|
|
9310
|
-
* ```
|
|
9242
|
+
* ```html
|
|
9243
|
+
* <kendo-treelist-column field="OrderDate">
|
|
9244
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
9245
|
+
* <kendo-treelist-date-filter-cell
|
|
9246
|
+
* [column]="column"
|
|
9247
|
+
* [filter]="filter">
|
|
9248
|
+
* </kendo-treelist-date-filter-cell>
|
|
9249
|
+
* </ng-template>
|
|
9250
|
+
* </kendo-treelist-column>
|
|
9251
|
+
* ```
|
|
9311
9252
|
*/
|
|
9312
9253
|
class DateFilterCellComponent extends DateFilterComponent {
|
|
9313
9254
|
constructor(filterService, localization) {
|
|
@@ -9316,6 +9257,7 @@ class DateFilterCellComponent extends DateFilterComponent {
|
|
|
9316
9257
|
/**
|
|
9317
9258
|
* Determines if the drop-down filter operators will be displayed. The default value is `true`.
|
|
9318
9259
|
* @type {boolean}
|
|
9260
|
+
* @default true
|
|
9319
9261
|
*/
|
|
9320
9262
|
this.showOperators = true;
|
|
9321
9263
|
}
|
|
@@ -13047,7 +12989,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
13047
12989
|
|
|
13048
12990
|
/* eslint-disable @typescript-eslint/no-inferrable-types */
|
|
13049
12991
|
/**
|
|
13050
|
-
* Displays numeric buttons to enable navigation between the pages.
|
|
12992
|
+
* Displays numeric buttons to enable navigation between the pages ([see example]({% slug paging_treelist %}#toc-pager-templates)).
|
|
13051
12993
|
*/
|
|
13052
12994
|
class PagerNumericButtonsComponent extends PagerElementComponent {
|
|
13053
12995
|
constructor(localization, cd, pagerContext) {
|
|
@@ -14491,12 +14433,11 @@ const isInEditedCell = (element, treelistElement) => closest(element, matchesCla
|
|
|
14491
14433
|
/**
|
|
14492
14434
|
* Represents the Kendo UI TreeList component for Angular.
|
|
14493
14435
|
*
|
|
14494
|
-
*
|
|
14495
|
-
*
|
|
14496
|
-
*
|
|
14497
|
-
*
|
|
14498
|
-
*
|
|
14499
|
-
* {% endmeta %}
|
|
14436
|
+
* @example
|
|
14437
|
+
* ```html
|
|
14438
|
+
* <kendo-treelist [kendoTreeListFlatBinding]="data" ...></kendo-treelist>
|
|
14439
|
+
* ```
|
|
14440
|
+
*
|
|
14500
14441
|
*/
|
|
14501
14442
|
class TreeListComponent {
|
|
14502
14443
|
constructor(supportService, wrapper, changeNotification, editService, filterService, pdfService, responsiveService, renderer, excelService, ngZone, scrollSyncService, domEvents, columnResizingService, changeDetectorRef, columnReorderService, columnInfoService, navigationService, sortService, scrollRequestService, expandStateService, optionChanges, selectionService, localization, ctx, rowReorderService) {
|
|
@@ -14533,10 +14474,7 @@ class TreeListComponent {
|
|
|
14533
14474
|
this.pageSize = 10;
|
|
14534
14475
|
/**
|
|
14535
14476
|
* Defines the scroll mode used by the TreeList.
|
|
14536
|
-
*
|
|
14537
|
-
* The available options are:
|
|
14538
|
-
* - `none`—Renders no scrollbar.
|
|
14539
|
-
* - `scrollable`—The default scroll mode. It requires the setting of the `height` option.
|
|
14477
|
+
* @default 'scrollable'
|
|
14540
14478
|
*/
|
|
14541
14479
|
this.scrollable = 'scrollable';
|
|
14542
14480
|
/**
|
|
@@ -14544,49 +14482,12 @@ class TreeListComponent {
|
|
|
14544
14482
|
*
|
|
14545
14483
|
* By default, the TreeList tracks changes by the index of the data item.
|
|
14546
14484
|
* Edited rows are tracked by reference.
|
|
14547
|
-
* In some cases, you might need to override the default behavior,
|
|
14548
|
-
* for example, when you implement editing with immutable data items.
|
|
14549
14485
|
*
|
|
14550
|
-
* The following example demonstrates how to track items only by index.
|
|
14551
|
-
*
|
|
14552
|
-
* @example
|
|
14553
|
-
* ```ts
|
|
14554
|
-
* import { Component } from '@angular/core';
|
|
14555
|
-
* import { TreeListItem } from '@progress/kendo-angular-treelist';
|
|
14556
|
-
*
|
|
14557
|
-
* _@Component({
|
|
14558
|
-
* selector: 'my-app',
|
|
14559
|
-
* template: `
|
|
14560
|
-
* <kendo-treelist [data]="treelistData" [trackBy]="trackBy">
|
|
14561
|
-
* </kendo-treelist>
|
|
14562
|
-
* `
|
|
14563
|
-
* })
|
|
14564
|
-
* class AppComponent {
|
|
14565
|
-
* public treelistData: any[] = products;
|
|
14566
|
-
*
|
|
14567
|
-
* public trackBy(index: number, item: TreeListItem): any {
|
|
14568
|
-
* console.log(item);
|
|
14569
|
-
* return index;
|
|
14570
|
-
* }
|
|
14571
|
-
* }
|
|
14572
|
-
*
|
|
14573
|
-
* const products = [{
|
|
14574
|
-
* "ProductID": 1,
|
|
14575
|
-
* "ProductName": "Chai",
|
|
14576
|
-
* "UnitPrice": 18.0000,
|
|
14577
|
-
* "Discontinued": true
|
|
14578
|
-
* }, {
|
|
14579
|
-
* "ProductID": 2,
|
|
14580
|
-
* "ProductName": "Chang",
|
|
14581
|
-
* "UnitPrice": 19.0000,
|
|
14582
|
-
* "Discontinued": false
|
|
14583
|
-
* }
|
|
14584
|
-
* ];
|
|
14585
|
-
* ```
|
|
14586
14486
|
*/
|
|
14587
14487
|
this.trackBy = defaultTrackBy;
|
|
14588
14488
|
/**
|
|
14589
14489
|
* If set to `true`, the treelist will render only the columns in the current viewport.
|
|
14490
|
+
* @default false
|
|
14590
14491
|
*/
|
|
14591
14492
|
this.virtualColumns = false;
|
|
14592
14493
|
/**
|
|
@@ -14600,18 +14501,12 @@ class TreeListComponent {
|
|
|
14600
14501
|
/**
|
|
14601
14502
|
* Configures the pager of the TreeList ([see example]({% slug paging_treelist %})).
|
|
14602
14503
|
*
|
|
14603
|
-
* The available options are:
|
|
14604
|
-
* - `buttonCount: Number`—Sets the maximum numeric buttons count before the buttons are collapsed. Defaults to `10`.
|
|
14605
|
-
* - `info: Boolean`—Toggles the information about the current page and the total number of records. Defaults to `true`.
|
|
14606
|
-
* - `type: PagerType`—Accepts the `numeric` (buttons with numbers) and `input` (input for typing the page number) values. Defaults to `'numeric'`.
|
|
14607
|
-
* - `pageSizes: Boolean` or `Array<number>`—Shows a menu for selecting the page size. Defaults to `false`.
|
|
14608
|
-
* - `previousNext: Boolean`—Toggles the **Previous** and **Next** buttons. Defaults to `true`.
|
|
14609
|
-
* - `responsive: Boolean`—Toggles the built-in responsive behavior of the Pager. Defaults to `true`.
|
|
14610
14504
|
*/
|
|
14611
14505
|
this.pageable = false;
|
|
14612
14506
|
/**
|
|
14613
14507
|
* If set to `true`, the user can use dedicated shortcuts to interact with the TreeList.
|
|
14614
14508
|
* By default, navigation is disabled and the TreeList content is accessible in the normal tab sequence.
|
|
14509
|
+
* @default false
|
|
14615
14510
|
*/
|
|
14616
14511
|
this.navigable = false;
|
|
14617
14512
|
/**
|
|
@@ -14620,6 +14515,8 @@ class TreeListComponent {
|
|
|
14620
14515
|
* Columns with `autoSize` set to `false` are excluded.
|
|
14621
14516
|
* To dynamically update the column width to match the new content,
|
|
14622
14517
|
* refer to [this example]({% slug resizing_columns_treelist %}).
|
|
14518
|
+
*
|
|
14519
|
+
* @default false
|
|
14623
14520
|
*/
|
|
14624
14521
|
this.autoSize = false;
|
|
14625
14522
|
/**
|
|
@@ -14651,7 +14548,9 @@ class TreeListComponent {
|
|
|
14651
14548
|
/**
|
|
14652
14549
|
* Specifies if the header of the treelist will be hidden. The header is visible by default.
|
|
14653
14550
|
*
|
|
14654
|
-
*
|
|
14551
|
+
* The header includes column headers and the [filter row]({% slug filtering_treelist %}#toc-filter-row).
|
|
14552
|
+
*
|
|
14553
|
+
* @default false
|
|
14655
14554
|
*/
|
|
14656
14555
|
this.hideHeader = false;
|
|
14657
14556
|
/**
|
|
@@ -14971,48 +14870,6 @@ class TreeListComponent {
|
|
|
14971
14870
|
/**
|
|
14972
14871
|
* Defines a function that is executed for every data row in the component.
|
|
14973
14872
|
*
|
|
14974
|
-
* @example
|
|
14975
|
-
* ```ts
|
|
14976
|
-
* import { Component, ViewEncapsulation } from '@angular/core';
|
|
14977
|
-
* import { RowClassArgs } from '@progress/kendo-angular-treelist';
|
|
14978
|
-
*
|
|
14979
|
-
* _@Component({
|
|
14980
|
-
* selector: 'my-app',
|
|
14981
|
-
* encapsulation: ViewEncapsulation.None,
|
|
14982
|
-
* styles: [`
|
|
14983
|
-
* .k-treelist tr.even { background-color: #f45c42; }
|
|
14984
|
-
* .k-treelist tr.odd { background-color: #41f4df; }
|
|
14985
|
-
* `],
|
|
14986
|
-
* template: `
|
|
14987
|
-
* <kendo-treelist [data]="treelistData" [rowClass]="rowCallback">
|
|
14988
|
-
* </kendo-treelist>
|
|
14989
|
-
* `
|
|
14990
|
-
* })
|
|
14991
|
-
* class AppComponent {
|
|
14992
|
-
* public treelistData: any[] = products;
|
|
14993
|
-
*
|
|
14994
|
-
* public rowCallback(context: RowClassArgs) {
|
|
14995
|
-
* const isEven = context.index % 2 === 0;
|
|
14996
|
-
* return {
|
|
14997
|
-
* even: isEven,
|
|
14998
|
-
* odd: !isEven
|
|
14999
|
-
* };
|
|
15000
|
-
* }
|
|
15001
|
-
* }
|
|
15002
|
-
*
|
|
15003
|
-
* const products = [{
|
|
15004
|
-
* "ProductID": 1,
|
|
15005
|
-
* "ProductName": "Chai",
|
|
15006
|
-
* "UnitPrice": 18.0000,
|
|
15007
|
-
* "Discontinued": true
|
|
15008
|
-
* }, {
|
|
15009
|
-
* "ProductID": 2,
|
|
15010
|
-
* "ProductName": "Chang",
|
|
15011
|
-
* "UnitPrice": 19.0000,
|
|
15012
|
-
* "Discontinued": false
|
|
15013
|
-
* }
|
|
15014
|
-
* ];
|
|
15015
|
-
* ```
|
|
15016
14873
|
*/
|
|
15017
14874
|
set rowClass(fn) {
|
|
15018
14875
|
if (typeof fn !== 'function') {
|
|
@@ -15056,7 +14913,7 @@ class TreeListComponent {
|
|
|
15056
14913
|
this.selectionService.settings = value;
|
|
15057
14914
|
}
|
|
15058
14915
|
/**
|
|
15059
|
-
* Provides a callback that determines if the given row
|
|
14916
|
+
* Provides a callback that determines if the given row or cell is selected.
|
|
15060
14917
|
*/
|
|
15061
14918
|
set isSelected(value) {
|
|
15062
14919
|
if (typeof value !== 'function' && isDevMode()) {
|
|
@@ -15510,7 +15367,7 @@ class TreeListComponent {
|
|
|
15510
15367
|
* Exports the TreeList element to a Drawing [`Group`]({% slug api_kendo-drawing_group %}) by using the `kendo-treelist-pdf` component options.
|
|
15511
15368
|
* ([see example]({% slug pdfexport_treelist %}#toc-exporting-multiple-treelists-to-the-same-pdf)).
|
|
15512
15369
|
*
|
|
15513
|
-
* @return {Promise}
|
|
15370
|
+
* @return {Promise} A promise that will be resolved with the Drawing `Group`.
|
|
15514
15371
|
*/
|
|
15515
15372
|
drawPDF() {
|
|
15516
15373
|
const promise = createPromise();
|
|
@@ -15528,64 +15385,8 @@ class TreeListComponent {
|
|
|
15528
15385
|
* so that the whole text fits without wrapping. This method expects the TreeList
|
|
15529
15386
|
* to be resizable (set `resizable` to `true`).
|
|
15530
15387
|
* Makes sense to execute this method only
|
|
15531
|
-
* after the TreeList is already populated with data.
|
|
15388
|
+
* after the TreeList is already populated with data. [See example](slug:resizing_columns_treelist#toc-auto-fitting-the-content).
|
|
15532
15389
|
*
|
|
15533
|
-
* @example
|
|
15534
|
-
* ```ts
|
|
15535
|
-
* _@Component({
|
|
15536
|
-
* selector: 'my-app',
|
|
15537
|
-
* template: `
|
|
15538
|
-
* <kendo-treelist
|
|
15539
|
-
* #treelist
|
|
15540
|
-
* [data]="treelistData"
|
|
15541
|
-
* [resizable]="true"
|
|
15542
|
-
* style="height: 300px">
|
|
15543
|
-
* <ng-template kendoTreeListToolbarTemplate>
|
|
15544
|
-
* <button kendoButton (click)="treelist.autoFitColumn(groupColumn)">
|
|
15545
|
-
* Auto-fit the group column
|
|
15546
|
-
* </button>
|
|
15547
|
-
* </ng-template>
|
|
15548
|
-
* <kendo-treelist-column-group #groupColumn title="Product Info">
|
|
15549
|
-
* <kendo-treelist-column
|
|
15550
|
-
* field="ProductID"
|
|
15551
|
-
* [width]="50"
|
|
15552
|
-
* [minResizableWidth]="30"
|
|
15553
|
-
* title="ID">
|
|
15554
|
-
* </kendo-treelist-column>
|
|
15555
|
-
*
|
|
15556
|
-
* <kendo-treelist-column
|
|
15557
|
-
* field="ProductName"
|
|
15558
|
-
* title="Product Name">
|
|
15559
|
-
* </kendo-treelist-column>
|
|
15560
|
-
* </kendo-treelist-column-group>
|
|
15561
|
-
*
|
|
15562
|
-
* <kendo-treelist-column
|
|
15563
|
-
* field="UnitPrice"
|
|
15564
|
-
* title="Unit Price"
|
|
15565
|
-
* [width]="180"
|
|
15566
|
-
* filter="numeric"
|
|
15567
|
-
* format="{0:c}">
|
|
15568
|
-
* </kendo-treelist-column>
|
|
15569
|
-
* </kendo-treelist>
|
|
15570
|
-
* `
|
|
15571
|
-
* })
|
|
15572
|
-
* class AppComponent {
|
|
15573
|
-
* public treelistData: any[] = products;
|
|
15574
|
-
* }
|
|
15575
|
-
*
|
|
15576
|
-
* const products = [{
|
|
15577
|
-
* "ProductID": 1,
|
|
15578
|
-
* "ProductName": "Chai",
|
|
15579
|
-
* "UnitPrice": 18.0000,
|
|
15580
|
-
* "Discontinued": true
|
|
15581
|
-
* }, {
|
|
15582
|
-
* "ProductID": 2,
|
|
15583
|
-
* "ProductName": "Chang",
|
|
15584
|
-
* "UnitPrice": 19.0000,
|
|
15585
|
-
* "Discontinued": false
|
|
15586
|
-
* }
|
|
15587
|
-
* ];
|
|
15588
|
-
* ```
|
|
15589
15390
|
*/
|
|
15590
15391
|
autoFitColumn(column) {
|
|
15591
15392
|
this.columnResizingService.autoFit(column);
|
|
@@ -15595,69 +15396,7 @@ class TreeListComponent {
|
|
|
15595
15396
|
* If no columns are specified, `autoFitColumns` is applied to all columns.
|
|
15596
15397
|
*
|
|
15597
15398
|
* This method requires the TreeList to be resizable (set `resizable` to `true`).
|
|
15598
|
-
*
|
|
15599
|
-
* @example
|
|
15600
|
-
* ```ts
|
|
15601
|
-
* _@Component({
|
|
15602
|
-
* selector: 'my-app',
|
|
15603
|
-
* template: `
|
|
15604
|
-
* <kendo-treelist
|
|
15605
|
-
* #treelist
|
|
15606
|
-
* [data]="treelistData"
|
|
15607
|
-
* [resizable]="true"
|
|
15608
|
-
* style="height: 300px">
|
|
15609
|
-
* <ng-template kendoTreeListToolbarTemplate>
|
|
15610
|
-
* <button kendoButton (click)="treelist.autoFitColumns([firstColumn, lastColumn])">
|
|
15611
|
-
* Auto-fit the first and last column
|
|
15612
|
-
* </button>
|
|
15613
|
-
* <button kendoButton (click)="treelist.autoFitColumns()">
|
|
15614
|
-
* Auto-fit all columns
|
|
15615
|
-
* </button>
|
|
15616
|
-
* </ng-template>
|
|
15617
|
-
* <kendo-treelist-column-group title="Product Info">
|
|
15618
|
-
* <kendo-treelist-column
|
|
15619
|
-
* #firstColumn
|
|
15620
|
-
* field="ProductID"
|
|
15621
|
-
* [width]="50"
|
|
15622
|
-
* [minResizableWidth]="30"
|
|
15623
|
-
* title="ID">
|
|
15624
|
-
* </kendo-treelist-column>
|
|
15625
|
-
*
|
|
15626
|
-
* <kendo-treelist-column
|
|
15627
|
-
* field="ProductName"
|
|
15628
|
-
* title="Product Name"
|
|
15629
|
-
* >
|
|
15630
|
-
* </kendo-treelist-column>
|
|
15631
|
-
* </kendo-treelist-column-group>
|
|
15632
|
-
*
|
|
15633
|
-
* <kendo-treelist-column
|
|
15634
|
-
* #lastColumn
|
|
15635
|
-
* field="UnitPrice"
|
|
15636
|
-
* title="Unit Price"
|
|
15637
|
-
* [width]="180"
|
|
15638
|
-
* filter="numeric"
|
|
15639
|
-
* format="{0:c}">
|
|
15640
|
-
* </kendo-treelist-column>
|
|
15641
|
-
* </kendo-treelist>
|
|
15642
|
-
* `
|
|
15643
|
-
* })
|
|
15644
|
-
* class AppComponent {
|
|
15645
|
-
* public treelistData: any[] = products;
|
|
15646
|
-
* }
|
|
15647
|
-
*
|
|
15648
|
-
* const products = [{
|
|
15649
|
-
* "ProductID": 1,
|
|
15650
|
-
* "ProductName": "Chai",
|
|
15651
|
-
* "UnitPrice": 18.0000,
|
|
15652
|
-
* "Discontinued": true
|
|
15653
|
-
* }, {
|
|
15654
|
-
* "ProductID": 2,
|
|
15655
|
-
* "ProductName": "Chang",
|
|
15656
|
-
* "UnitPrice": 19.0000,
|
|
15657
|
-
* "Discontinued": false
|
|
15658
|
-
* }
|
|
15659
|
-
* ];
|
|
15660
|
-
* ```
|
|
15399
|
+
* [See example](slug:resizing_columns_treelist#toc-auto-fitting-the-content).
|
|
15661
15400
|
*/
|
|
15662
15401
|
autoFitColumns(columns = this.columns) {
|
|
15663
15402
|
let cols;
|
|
@@ -15730,9 +15469,9 @@ class TreeListComponent {
|
|
|
15730
15469
|
/**
|
|
15731
15470
|
* Focuses the cell with the specified row and column index.
|
|
15732
15471
|
*
|
|
15733
|
-
* The row index is based on the logical structure of the TreeList and does not correspond to the data item index
|
|
15734
|
-
*
|
|
15735
|
-
*
|
|
15472
|
+
* The row index is based on the logical structure of the TreeList and does not correspond to the data item index.
|
|
15473
|
+
* The row indexing is absolute and does not change with paging.
|
|
15474
|
+
* Header rows are included, starting at index 0.
|
|
15736
15475
|
*
|
|
15737
15476
|
* If the TreeList is configured for scrolling, including virtual scrolling, the scroll position will be updated.
|
|
15738
15477
|
* If the row is not present on the current page, the method will have no effect.
|
|
@@ -15783,67 +15522,6 @@ class TreeListComponent {
|
|
|
15783
15522
|
* @param {number} destIndex - The new position of the column.
|
|
15784
15523
|
* @param {ColumnReorderConfig} options - Additional options.
|
|
15785
15524
|
*
|
|
15786
|
-
* @example
|
|
15787
|
-
* ```ts
|
|
15788
|
-
* _@Component({
|
|
15789
|
-
* selector: 'my-app',
|
|
15790
|
-
* template: `
|
|
15791
|
-
* <kendo-treelist
|
|
15792
|
-
* #treelist
|
|
15793
|
-
* [data]="treelistData"
|
|
15794
|
-
* [reorderable]="true"
|
|
15795
|
-
* style="height: 300px">
|
|
15796
|
-
* <ng-template kendoTreeListToolbarTemplate>
|
|
15797
|
-
* <button kendoButton
|
|
15798
|
-
* (click)="treelist.reorderColumn(groupColumn, 2, { before: true })">
|
|
15799
|
-
* Move the group column before the last one.
|
|
15800
|
-
* </button>
|
|
15801
|
-
* </ng-template>
|
|
15802
|
-
* <kendo-treelist-column-group #groupColumn title="Product Info">
|
|
15803
|
-
* <kendo-treelist-column
|
|
15804
|
-
* field="ProductID"
|
|
15805
|
-
* [width]="50"
|
|
15806
|
-
* title="ID">
|
|
15807
|
-
* </kendo-treelist-column>
|
|
15808
|
-
*
|
|
15809
|
-
* <kendo-treelist-column
|
|
15810
|
-
* field="ProductName"
|
|
15811
|
-
* title="Product Name">
|
|
15812
|
-
* </kendo-treelist-column>
|
|
15813
|
-
* </kendo-treelist-column-group>
|
|
15814
|
-
*
|
|
15815
|
-
* <kendo-treelist-column
|
|
15816
|
-
* field="UnitPrice"
|
|
15817
|
-
* title="Unit Price"
|
|
15818
|
-
* [width]="180"
|
|
15819
|
-
* format="{0:c}">
|
|
15820
|
-
* </kendo-treelist-column>
|
|
15821
|
-
*
|
|
15822
|
-
* <kendo-treelist-column
|
|
15823
|
-
* field="Discontinued"
|
|
15824
|
-
* title="Discontinued"
|
|
15825
|
-
* [width]="100">
|
|
15826
|
-
* </kendo-treelist-column>
|
|
15827
|
-
* </kendo-treelist>
|
|
15828
|
-
* `
|
|
15829
|
-
* })
|
|
15830
|
-
* class AppComponent {
|
|
15831
|
-
* public treelistData: any[] = products;
|
|
15832
|
-
* }
|
|
15833
|
-
*
|
|
15834
|
-
* const products = [{
|
|
15835
|
-
* "ProductID": 1,
|
|
15836
|
-
* "ProductName": "Chai",
|
|
15837
|
-
* "UnitPrice": 18.0000,
|
|
15838
|
-
* "Discontinued": true
|
|
15839
|
-
* }, {
|
|
15840
|
-
* "ProductID": 2,
|
|
15841
|
-
* "ProductName": "Chang",
|
|
15842
|
-
* "UnitPrice": 19.0000,
|
|
15843
|
-
* "Discontinued": false
|
|
15844
|
-
* }
|
|
15845
|
-
* ];
|
|
15846
|
-
* ```
|
|
15847
15525
|
*/
|
|
15848
15526
|
reorderColumn(source, destIndex, options = { before: false }) {
|
|
15849
15527
|
const columnsForLevel = sortColumns(this.allColumnsForLevel(source.level));
|
|
@@ -16658,14 +16336,14 @@ TreeListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
16658
16336
|
[virtualColumns]="virtualColumns"
|
|
16659
16337
|
[expandIcons]="expandIcons"
|
|
16660
16338
|
(scrollBottom)="notifyScrollBottom()"
|
|
16661
|
-
(contentScroll)="contentScroll.emit($event)"
|
|
16339
|
+
(contentScroll)="contentScroll.emit($event)"
|
|
16662
16340
|
kendoDraggable
|
|
16663
16341
|
kendoTreeListSelectionMarquee
|
|
16664
16342
|
[enableDrag]="marqueeSelection">
|
|
16665
16343
|
</kendo-treelist-list>
|
|
16666
16344
|
</ng-template>
|
|
16667
16345
|
<ng-template [ngIf]="!isScrollable">
|
|
16668
|
-
<table
|
|
16346
|
+
<table
|
|
16669
16347
|
class="k-table k-table-md k-grid-header-table"
|
|
16670
16348
|
[style.table-layout]="resizable ? 'fixed' : null">
|
|
16671
16349
|
<colgroup kendoTreeListColGroup
|
|
@@ -17068,14 +16746,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17068
16746
|
[virtualColumns]="virtualColumns"
|
|
17069
16747
|
[expandIcons]="expandIcons"
|
|
17070
16748
|
(scrollBottom)="notifyScrollBottom()"
|
|
17071
|
-
(contentScroll)="contentScroll.emit($event)"
|
|
16749
|
+
(contentScroll)="contentScroll.emit($event)"
|
|
17072
16750
|
kendoDraggable
|
|
17073
16751
|
kendoTreeListSelectionMarquee
|
|
17074
16752
|
[enableDrag]="marqueeSelection">
|
|
17075
16753
|
</kendo-treelist-list>
|
|
17076
16754
|
</ng-template>
|
|
17077
16755
|
<ng-template [ngIf]="!isScrollable">
|
|
17078
|
-
<table
|
|
16756
|
+
<table
|
|
17079
16757
|
class="k-table k-table-md k-grid-header-table"
|
|
17080
16758
|
[style.table-layout]="resizable ? 'fixed' : null">
|
|
17081
16759
|
<colgroup kendoTreeListColGroup
|
|
@@ -17316,7 +16994,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17316
16994
|
|
|
17317
16995
|
/**
|
|
17318
16996
|
* Custom component messages override default component messages
|
|
17319
|
-
* ([see example](
|
|
16997
|
+
* ([see example](slug:globalization_treelist#toc-custom-messages)).
|
|
17320
16998
|
*/
|
|
17321
16999
|
class CustomMessagesComponent extends Messages {
|
|
17322
17000
|
constructor(service) {
|
|
@@ -17432,7 +17110,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17432
17110
|
}] } });
|
|
17433
17111
|
|
|
17434
17112
|
/**
|
|
17435
|
-
* Represents the checkbox for selecting rows in the TreeList.
|
|
17113
|
+
* Represents the checkbox for selecting rows in the TreeList. [See example](slug:selection_treelist#toc-select-all-checkbox).
|
|
17436
17114
|
*/
|
|
17437
17115
|
class CheckboxColumnComponent extends ColumnBase {
|
|
17438
17116
|
constructor(parent) {
|
|
@@ -17594,10 +17272,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17594
17272
|
|
|
17595
17273
|
/**
|
|
17596
17274
|
* Represents the `Contains` (**Contains**) filter operator.
|
|
17597
|
-
*
|
|
17598
|
-
* For more information and examples, refer to:
|
|
17599
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17600
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17275
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
17601
17276
|
*/
|
|
17602
17277
|
class ContainsFilterOperatorComponent extends FilterOperatorBase {
|
|
17603
17278
|
constructor(localization) { super("contains", localization); }
|
|
@@ -17625,10 +17300,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17625
17300
|
|
|
17626
17301
|
/**
|
|
17627
17302
|
* Represents the `DoesNotContain` (**Does not contain**) filter operator.
|
|
17628
|
-
*
|
|
17629
|
-
* For more information and examples, refer to:
|
|
17630
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17631
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17303
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
17632
17304
|
*/
|
|
17633
17305
|
class DoesNotContainFilterOperatorComponent extends FilterOperatorBase {
|
|
17634
17306
|
constructor(localization) { super("doesnotcontain", localization); }
|
|
@@ -17656,10 +17328,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17656
17328
|
|
|
17657
17329
|
/**
|
|
17658
17330
|
* Represents the `EndsWith` (**Ends with**) string filter operator.
|
|
17659
|
-
*
|
|
17660
|
-
* For more information and examples, refer to:
|
|
17661
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17662
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17331
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
17663
17332
|
*/
|
|
17664
17333
|
class EndsWithFilterOperatorComponent extends FilterOperatorBase {
|
|
17665
17334
|
constructor(localization) { super("endswith", localization); }
|
|
@@ -17687,10 +17356,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17687
17356
|
|
|
17688
17357
|
/**
|
|
17689
17358
|
* Represents the `Equal` (**Is equal to**) filter operator.
|
|
17690
|
-
*
|
|
17691
|
-
* For more information and examples, refer to:
|
|
17692
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17693
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17359
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
17694
17360
|
*/
|
|
17695
17361
|
class EqualFilterOperatorComponent extends FilterOperatorBase {
|
|
17696
17362
|
constructor(localization) { super("eq", localization); }
|
|
@@ -17718,10 +17384,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17718
17384
|
|
|
17719
17385
|
/**
|
|
17720
17386
|
* Represents the `IsEmpty` (**Is empty**) filter operator.
|
|
17721
|
-
*
|
|
17722
|
-
* For more information and examples, refer to:
|
|
17723
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17724
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17387
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
17725
17388
|
*/
|
|
17726
17389
|
class IsEmptyFilterOperatorComponent extends FilterOperatorBase {
|
|
17727
17390
|
constructor(localization) { super("isempty", localization); }
|
|
@@ -17749,10 +17412,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17749
17412
|
|
|
17750
17413
|
/**
|
|
17751
17414
|
* Represents the `IsNotEmpty` (**Is not empty**) filter operator.
|
|
17752
|
-
*
|
|
17753
|
-
* For more information and examples, refer to:
|
|
17754
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17755
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17415
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
17756
17416
|
*/
|
|
17757
17417
|
class IsNotEmptyFilterOperatorComponent extends FilterOperatorBase {
|
|
17758
17418
|
constructor(localization) { super("isnotempty", localization); }
|
|
@@ -17780,10 +17440,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17780
17440
|
|
|
17781
17441
|
/**
|
|
17782
17442
|
* Represents the `IsNotNull` (**Is not null**) filter operator.
|
|
17783
|
-
*
|
|
17784
|
-
* For more information and examples, refer to:
|
|
17785
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17786
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17443
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
17787
17444
|
*/
|
|
17788
17445
|
class IsNotNullFilterOperatorComponent extends FilterOperatorBase {
|
|
17789
17446
|
constructor(localization) { super("isnotnull", localization); }
|
|
@@ -17811,10 +17468,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17811
17468
|
|
|
17812
17469
|
/**
|
|
17813
17470
|
* Represents the `IsNull` (**Is null**) filter operator.
|
|
17814
|
-
*
|
|
17815
|
-
* For more information and examples, refer to:
|
|
17816
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17817
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17471
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
17818
17472
|
*/
|
|
17819
17473
|
class IsNullFilterOperatorComponent extends FilterOperatorBase {
|
|
17820
17474
|
constructor(localization) { super("isnull", localization); }
|
|
@@ -17842,10 +17496,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17842
17496
|
|
|
17843
17497
|
/**
|
|
17844
17498
|
* Represents the `NotEqual` (**Is not equal to**) filter operator.
|
|
17845
|
-
*
|
|
17846
|
-
* For more information and examples, refer to:
|
|
17847
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17848
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17499
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
17849
17500
|
*/
|
|
17850
17501
|
class NotEqualFilterOperatorComponent extends FilterOperatorBase {
|
|
17851
17502
|
constructor(localization) { super("neq", localization); }
|
|
@@ -17873,10 +17524,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17873
17524
|
|
|
17874
17525
|
/**
|
|
17875
17526
|
* Represents the `StartsWith` (**Starts with**) filter operator.
|
|
17876
|
-
*
|
|
17877
|
-
* For more information and examples, refer to:
|
|
17878
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17879
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17527
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
17880
17528
|
*/
|
|
17881
17529
|
class StartsWithFilterOperatorComponent extends FilterOperatorBase {
|
|
17882
17530
|
constructor(localization) { super("startswith", localization); }
|
|
@@ -17904,10 +17552,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17904
17552
|
|
|
17905
17553
|
/*
|
|
17906
17554
|
* Represents the `Greater` (**Is greater than**) numeric filter operator.
|
|
17907
|
-
*
|
|
17908
|
-
* For more information and examples, refer to:
|
|
17909
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17910
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17555
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
17911
17556
|
*/
|
|
17912
17557
|
class GreaterFilterOperatorComponent extends FilterOperatorBase {
|
|
17913
17558
|
constructor(localization) { super("gt", localization); }
|
|
@@ -17935,10 +17580,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17935
17580
|
|
|
17936
17581
|
/**
|
|
17937
17582
|
* Represents the `GreaterOrEqualTo` (**Is greater than or equal to**) numeric filter operator.
|
|
17938
|
-
*
|
|
17939
|
-
* For more information and examples, refer to:
|
|
17940
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17941
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17583
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
17942
17584
|
*/
|
|
17943
17585
|
class GreaterOrEqualToFilterOperatorComponent extends FilterOperatorBase {
|
|
17944
17586
|
constructor(localization) { super("gte", localization); }
|
|
@@ -17964,12 +17606,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17964
17606
|
}]
|
|
17965
17607
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
|
|
17966
17608
|
|
|
17967
|
-
|
|
17609
|
+
/**
|
|
17968
17610
|
* Represents the `Less` (**Is less than**) numeric filter operator.
|
|
17969
|
-
*
|
|
17970
|
-
* For more information and examples, refer to:
|
|
17971
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17972
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17611
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
17973
17612
|
*/
|
|
17974
17613
|
class LessFilterOperatorComponent extends FilterOperatorBase {
|
|
17975
17614
|
constructor(localization) { super("lt", localization); }
|
|
@@ -17997,10 +17636,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17997
17636
|
|
|
17998
17637
|
/*
|
|
17999
17638
|
* Represents the `LessOrEqualTo` (**Is less than or equal to**) numeric filter operator.
|
|
18000
|
-
*
|
|
18001
|
-
* For more information and examples, refer to:
|
|
18002
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
18003
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17639
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
18004
17640
|
*/
|
|
18005
17641
|
class LessOrEqualToFilterOperatorComponent extends FilterOperatorBase {
|
|
18006
17642
|
constructor(localization) { super("lte", localization); }
|
|
@@ -18026,12 +17662,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
18026
17662
|
}]
|
|
18027
17663
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
|
|
18028
17664
|
|
|
18029
|
-
|
|
17665
|
+
/**
|
|
18030
17666
|
* Represents the `Greater` (**Is after**) date filter operator.
|
|
18031
|
-
*
|
|
18032
|
-
* For more information and examples, refer to:
|
|
18033
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
18034
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17667
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
18035
17668
|
*/
|
|
18036
17669
|
class AfterFilterOperatorComponent extends FilterOperatorBase {
|
|
18037
17670
|
constructor(localization) { super("after", localization); }
|
|
@@ -18066,12 +17699,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
18066
17699
|
}]
|
|
18067
17700
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
|
|
18068
17701
|
|
|
18069
|
-
|
|
17702
|
+
/**
|
|
18070
17703
|
* Represents the `GreaterOrEqualTo` (**Is after or equal to**) date filter operator.
|
|
18071
|
-
*
|
|
18072
|
-
* For more information and examples, refer to:
|
|
18073
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
18074
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17704
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
18075
17705
|
*/
|
|
18076
17706
|
class AfterEqFilterOperatorComponent extends FilterOperatorBase {
|
|
18077
17707
|
constructor(localization) { super("after-eq", localization); }
|
|
@@ -18106,12 +17736,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
18106
17736
|
}]
|
|
18107
17737
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
|
|
18108
17738
|
|
|
18109
|
-
|
|
17739
|
+
/**
|
|
18110
17740
|
* Represents the `LessOrEqualTo` (**Is before or equal to**) date filter operator.
|
|
18111
|
-
*
|
|
18112
|
-
* For more information and examples, refer to:
|
|
18113
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
18114
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17741
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
18115
17742
|
*/
|
|
18116
17743
|
class BeforeEqFilterOperatorComponent extends FilterOperatorBase {
|
|
18117
17744
|
constructor(localization) { super("before-eq", localization); }
|
|
@@ -18146,12 +17773,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
18146
17773
|
}]
|
|
18147
17774
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
|
|
18148
17775
|
|
|
18149
|
-
|
|
18150
|
-
* Represents the `Less
|
|
18151
|
-
*
|
|
18152
|
-
* For more information and examples, refer to:
|
|
18153
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
18154
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17776
|
+
/**
|
|
17777
|
+
* Represents the `Less than` (**Is before**) date filter operator.
|
|
17778
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
18155
17779
|
*/
|
|
18156
17780
|
class BeforeFilterOperatorComponent extends FilterOperatorBase {
|
|
18157
17781
|
constructor(localization) { super("before", localization); }
|
|
@@ -18541,12 +18165,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
18541
18165
|
* Represents the component for selecting columns in the TreeList. To enable the user to show or hide columns,
|
|
18542
18166
|
* add the component inside a [`ToolbarTemplate`]({% slug api_treelist_toolbartemplatedirective %}) directive.
|
|
18543
18167
|
*
|
|
18544
|
-
*
|
|
18545
|
-
*
|
|
18546
|
-
*
|
|
18547
|
-
*
|
|
18548
|
-
*
|
|
18549
|
-
*
|
|
18168
|
+
* @example
|
|
18169
|
+
* ```html
|
|
18170
|
+
* <kendo-treelist ...>
|
|
18171
|
+
* <ng-template kendoTreeListToolbarTemplate>
|
|
18172
|
+
* <kendo-treelist-column-chooser> </kendo-treelist-column-chooser>
|
|
18173
|
+
* </ng-template>
|
|
18174
|
+
* </kendo-treelist>
|
|
18175
|
+
* ```
|
|
18550
18176
|
*/
|
|
18551
18177
|
class ColumnChooserComponent {
|
|
18552
18178
|
constructor(localization, columnInfoService, popupService, ngZone, renderer, changeDetector) {
|
|
@@ -18558,10 +18184,12 @@ class ColumnChooserComponent {
|
|
|
18558
18184
|
this.changeDetector = changeDetector;
|
|
18559
18185
|
/**
|
|
18560
18186
|
* Specifies if the changes in the visibility of the column will be immediately applied.
|
|
18187
|
+
* @default false
|
|
18561
18188
|
*/
|
|
18562
18189
|
this.autoSync = false;
|
|
18563
18190
|
/**
|
|
18564
18191
|
* Specifies if all columns can be hidden.
|
|
18192
|
+
* @default true
|
|
18565
18193
|
*/
|
|
18566
18194
|
this.allowHideAll = true;
|
|
18567
18195
|
this.columnsIcon = columnsIcon;
|
|
@@ -18792,30 +18420,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
18792
18420
|
|
|
18793
18421
|
/**
|
|
18794
18422
|
* Represents the command columns of the TreeList. You have to define the content of the
|
|
18795
|
-
* column inside an `<ng-template>` tag.
|
|
18796
|
-
* data item. For more information and examples on using the passed fields
|
|
18423
|
+
* column inside an `<ng-template>` tag. For more information and examples on using the passed fields
|
|
18797
18424
|
* and the command directives, refer to the article on
|
|
18798
18425
|
* [editing the TreeList in Angular Reactive Forms]({% slug editing_reactive_forms_treelist %}).
|
|
18799
18426
|
*
|
|
18800
|
-
* The following additional fields are passed:
|
|
18801
|
-
* - `columnIndex`—The current column index.
|
|
18802
|
-
* - `rowIndex`—The current data row index. If inside a new item row, `rowIndex`is `-1`.
|
|
18803
|
-
* - `dataItem`—The current data item.
|
|
18804
|
-
* - `column`—The current column instance.
|
|
18805
|
-
* - `isNew`—The state of the current item.
|
|
18806
|
-
*
|
|
18807
18427
|
* Usually, the template contains CRUD command directives such as:
|
|
18808
18428
|
* - [`EditCommandDirective`]({% slug api_treelist_editcommanddirective %})
|
|
18809
18429
|
* - [`RemoveCommandDirective`]({% slug api_treelist_removecommanddirective %})
|
|
18810
18430
|
* - [`CancelCommandDirective`]({% slug api_treelist_cancelcommanddirective %})
|
|
18811
18431
|
* - [`SaveCommandDirective`]({% slug api_treelist_savecommanddirective %})
|
|
18812
18432
|
*
|
|
18813
|
-
*
|
|
18814
|
-
*
|
|
18815
|
-
*
|
|
18816
|
-
*
|
|
18817
|
-
*
|
|
18818
|
-
*
|
|
18433
|
+
* @example
|
|
18434
|
+
* ```html
|
|
18435
|
+
* <kendo-treelist ...>
|
|
18436
|
+
* <kendo-treelist-column field="ProductID"></kendo-treelist-column>
|
|
18437
|
+
* <kendo-treelist-command-column title="command" >
|
|
18438
|
+
* <ng-template kendoTreeListCellTemplate>
|
|
18439
|
+
* <button kendoTreeListEditCommand class="k-primary">Edit</button>
|
|
18440
|
+
* <button kendoTreeListRemoveCommand>Remove</button>
|
|
18441
|
+
* </ng-template>
|
|
18442
|
+
* </kendo-treelist-command-column>
|
|
18443
|
+
* </kendo-treelist>
|
|
18444
|
+
* ```
|
|
18819
18445
|
*/
|
|
18820
18446
|
class CommandColumnComponent extends ColumnBase {
|
|
18821
18447
|
constructor(parent, optionChanges) {
|
|
@@ -18939,7 +18565,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
18939
18565
|
*
|
|
18940
18566
|
* @example
|
|
18941
18567
|
* ```html
|
|
18942
|
-
* <kendo-treelist
|
|
18568
|
+
* <kendo-treelist ...>
|
|
18943
18569
|
* <kendo-treelist-command-column title="command">
|
|
18944
18570
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
18945
18571
|
* <button [kendoTreeListEditCommand]="cellContext">Edit</button>
|
|
@@ -19011,7 +18637,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
19011
18637
|
*
|
|
19012
18638
|
* @example
|
|
19013
18639
|
* ```html
|
|
19014
|
-
* <kendo-treelist
|
|
18640
|
+
* <kendo-treelist ...>
|
|
19015
18641
|
* <kendo-treelist-command-column title="command">
|
|
19016
18642
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
19017
18643
|
* <button [kendoTreeListCancelCommand]="cellContext">Cancel changes</button>
|
|
@@ -19083,7 +18709,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
19083
18709
|
*
|
|
19084
18710
|
* @example
|
|
19085
18711
|
* ```html
|
|
19086
|
-
* <kendo-treelist
|
|
18712
|
+
* <kendo-treelist ...>
|
|
19087
18713
|
* <kendo-treelist-command-column title="command">
|
|
19088
18714
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
19089
18715
|
* <button [kendoTreeListSaveCommand]="cellContext">Save changes</button>
|
|
@@ -19154,7 +18780,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
19154
18780
|
*
|
|
19155
18781
|
* @example
|
|
19156
18782
|
* ```html
|
|
19157
|
-
* <kendo-treelist
|
|
18783
|
+
* <kendo-treelist ...>
|
|
19158
18784
|
* <kendo-treelist-command-column title="command">
|
|
19159
18785
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
19160
18786
|
* <button [kendoTreeListRemoveCommand]="cellContext">Remove row</button>
|
|
@@ -19228,7 +18854,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
19228
18854
|
*
|
|
19229
18855
|
* @example
|
|
19230
18856
|
* ```html
|
|
19231
|
-
* <kendo-treelist
|
|
18857
|
+
* <kendo-treelist ...>
|
|
19232
18858
|
* <kendo-treelist-command-column title="command">
|
|
19233
18859
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
19234
18860
|
* <button [kendoTreeListAddCommand]="cellContext" class="k-primary">Edit</button>
|
|
@@ -20562,7 +20188,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
20562
20188
|
* Represents the Kendo UI TreeListSpacer component for Angular.
|
|
20563
20189
|
* Used to give additional white space between the Pager inner elements,
|
|
20564
20190
|
* and provides a way for customizing the spacer width.
|
|
20565
|
-
* It can also be used in any flex container within the TreeList.
|
|
20191
|
+
* It can also be used in any flex container within the TreeList. [See example](slug:toolbartemplate_treelist#toc-define-spacing-between-the-toolbar-elements).
|
|
20566
20192
|
*/
|
|
20567
20193
|
class TreeListSpacerComponent {
|
|
20568
20194
|
constructor() {
|
|
@@ -20729,6 +20355,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
20729
20355
|
}]
|
|
20730
20356
|
}] });
|
|
20731
20357
|
|
|
20358
|
+
/**
|
|
20359
|
+
* Represents the Kendo UI PDFMargin component for Angular.
|
|
20360
|
+
* The supported units are:
|
|
20361
|
+
* `"mm"`
|
|
20362
|
+
* `"cm"`
|
|
20363
|
+
* `"in"`
|
|
20364
|
+
* `"pt"` (default).
|
|
20365
|
+
* Numbers are considered to be points (`"pt"`).
|
|
20366
|
+
*/
|
|
20732
20367
|
class PDFMarginComponent extends PDFExportMarginComponent {
|
|
20733
20368
|
}
|
|
20734
20369
|
PDFMarginComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PDFMarginComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -21156,7 +20791,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
21156
20791
|
*
|
|
21157
20792
|
* @example
|
|
21158
20793
|
* ```html
|
|
21159
|
-
* <kendo-treelist
|
|
20794
|
+
* <kendo-treelist ...>
|
|
21160
20795
|
* <ng-template kendoTreeListToolbarTemplate>
|
|
21161
20796
|
* <button kendoTreeListPDFCommand>Export to PDF</button>
|
|
21162
20797
|
* </ng-template>
|
|
@@ -21497,7 +21132,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
21497
21132
|
*
|
|
21498
21133
|
* @example
|
|
21499
21134
|
* ```html
|
|
21500
|
-
* <kendo-treelist
|
|
21135
|
+
* <kendo-treelist ...>
|
|
21501
21136
|
* <ng-template kendoTreeListToolbarTemplate>
|
|
21502
21137
|
* <button kendoTreeListExcelCommand>Export to PDF</button>
|
|
21503
21138
|
* </ng-template>
|