@progress/kendo-angular-treelist 13.0.0-develop.6 → 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-page-sizes.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 +303 -668
- package/fesm2020/progress-kendo-angular-treelist.mjs +303 -668
- 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">
|
|
@@ -110,6 +110,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
110
110
|
* - `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`.
|
|
111
111
|
* - `isNew`—The state of the current item.
|
|
112
112
|
* - `rowIndex`—The current row index. If inside a new item row, `rowIndex` is `-1`.
|
|
113
|
+
*
|
|
114
|
+
* * @example
|
|
115
|
+
* ```html
|
|
116
|
+
* <kendo-treelist ...>
|
|
117
|
+
* <kendo-treelist-command-column title="command">
|
|
118
|
+
* <ng-template kendoTreeListEditTemplate let-rowIndex="rowIndex">
|
|
119
|
+
* {{rowIndex}}
|
|
120
|
+
* </ng-template>
|
|
121
|
+
* </kendo-treelist-command-column>
|
|
122
|
+
* </kendo-treelist>
|
|
123
|
+
* ```
|
|
113
124
|
*/
|
|
114
125
|
class EditTemplateDirective {
|
|
115
126
|
constructor(templateRef) {
|
|
@@ -680,14 +691,15 @@ function isColumnComponent(column) {
|
|
|
680
691
|
return isPresent(column.field);
|
|
681
692
|
}
|
|
682
693
|
/**
|
|
683
|
-
* Represents the columns of the
|
|
694
|
+
* Represents the columns of the TreeList.
|
|
684
695
|
*
|
|
685
|
-
*
|
|
686
|
-
*
|
|
687
|
-
*
|
|
688
|
-
*
|
|
689
|
-
*
|
|
690
|
-
*
|
|
696
|
+
* @example
|
|
697
|
+
* ```html
|
|
698
|
+
* <kendo-treelist [kendoTreeListFlatBinding]="data" ...>
|
|
699
|
+
* <kendo-treelist-column field="name" title="Name"></kendo-treelist-column>
|
|
700
|
+
* <kendo-treelist-column field="title"title="Title"></kendo-treelist-column>
|
|
701
|
+
* </kendo-treelist>
|
|
702
|
+
* ```
|
|
691
703
|
*/
|
|
692
704
|
class ColumnComponent extends ColumnBase {
|
|
693
705
|
constructor(parent, optionChanges) {
|
|
@@ -699,51 +711,27 @@ class ColumnComponent extends ColumnBase {
|
|
|
699
711
|
this.sortable = true;
|
|
700
712
|
/**
|
|
701
713
|
* Defines the editor type ([see example]({% slug editing_reactive_forms_treelist %}#toc-setup)).
|
|
702
|
-
* Used when the column enters the edit mode.
|
|
714
|
+
* Used when the column enters the edit mode. [See example](slug:editing_reactive_forms_treelist).
|
|
703
715
|
*
|
|
704
|
-
* @
|
|
705
|
-
* ```html-no-run
|
|
706
|
-
* <kendo-treelist>
|
|
707
|
-
* <kendo-treelist-column field="UnitPrice" editor="numeric">
|
|
708
|
-
* </kendo-treelist-column>
|
|
709
|
-
* </kendo-treelist>
|
|
710
|
-
* ```
|
|
716
|
+
* @default 'text'
|
|
711
717
|
*/
|
|
712
718
|
this.editor = 'text';
|
|
713
719
|
/**
|
|
714
|
-
* Defines the filter type that is displayed inside the filter row.
|
|
720
|
+
* Defines the filter type that is displayed inside the filter row.
|
|
715
721
|
*
|
|
716
|
-
* @
|
|
717
|
-
* ```html-no-run
|
|
718
|
-
* <kendo-treelist>
|
|
719
|
-
* <kendo-treelist-column field="UnitPrice" filter="numeric">
|
|
720
|
-
* </kendo-treelist-column>
|
|
721
|
-
* </kendo-treelist>
|
|
722
|
-
* ```
|
|
722
|
+
* @default 'text'
|
|
723
723
|
*/
|
|
724
724
|
this.filter = 'text';
|
|
725
725
|
/**
|
|
726
|
-
* Defines if a filter UI will be displayed for this column.
|
|
726
|
+
* Defines if a filter UI will be displayed for this column.
|
|
727
727
|
*
|
|
728
|
-
* @
|
|
729
|
-
* ```html-no-run
|
|
730
|
-
* <kendo-treelist>
|
|
731
|
-
* <kendo-treelist-column field="UnitPrice" [filterable]="false">
|
|
732
|
-
* </kendo-treelist-column>
|
|
733
|
-
* </kendo-treelist>
|
|
734
|
-
* ```
|
|
728
|
+
* @default true
|
|
735
729
|
*/
|
|
736
730
|
this.filterable = true;
|
|
737
731
|
/**
|
|
738
|
-
* Defines whether the column is editable.
|
|
732
|
+
* Defines whether the column is editable.
|
|
739
733
|
*
|
|
740
|
-
* @
|
|
741
|
-
* ```html-no-run
|
|
742
|
-
* <kendo-treelist>
|
|
743
|
-
* <kendo-treelist-column field="UnitPrice" [editable]="false">
|
|
744
|
-
* </kendo-treelist-column>
|
|
745
|
-
* </kendo-treelist>
|
|
746
|
-
* ```
|
|
734
|
+
* @default true
|
|
747
735
|
*/
|
|
748
736
|
this.editable = true;
|
|
749
737
|
}
|
|
@@ -839,25 +827,15 @@ function isSpanColumnComponent(column) {
|
|
|
839
827
|
* [sorting]({% slug sorting_treelist %}) and [filtering]({% slug filtering_treelist %}). Wrap the columns that will be
|
|
840
828
|
* merged inside the `<kendo-treelist-span-column>` tag.
|
|
841
829
|
*
|
|
842
|
-
*
|
|
843
|
-
* {% embed_file configuration/span-column/app.component.ts preview %}
|
|
844
|
-
* {% embed_file configuration/span-column/app.module.ts %}
|
|
845
|
-
* {% embed_file shared/main.ts %}
|
|
846
|
-
* {% embed_file shared/employees.ts %}
|
|
847
|
-
* {% endmeta %}
|
|
848
|
-
*
|
|
849
|
-
* By default, the data cell displays the data for the specified fields. To further customize
|
|
850
|
-
* the span-column functionality, use a [cell template]({% slug api_treelist_celltemplatedirective %}).
|
|
851
|
-
*
|
|
852
|
-
* ```html-no-run
|
|
830
|
+
* ```html
|
|
853
831
|
* <kendo-treelist-span-column>
|
|
854
|
-
*
|
|
855
|
-
*
|
|
856
|
-
*
|
|
857
|
-
*
|
|
858
|
-
*
|
|
859
|
-
*
|
|
860
|
-
*
|
|
832
|
+
* <kendo-treelist-column field="field1" ></kendo-treelist-column>
|
|
833
|
+
* <kendo-treelist-column field="field2" ></kendo-treelist-column>
|
|
834
|
+
* <ng-template kendoTreeListCellTemplate let-dataItem>
|
|
835
|
+
* <h5>{{ dataItem.field1 }}</h5>
|
|
836
|
+
* <p>{{ dataItem.field2 }}</p>
|
|
837
|
+
* </ng-template>
|
|
838
|
+
* </kendo-treelist-span-column>
|
|
861
839
|
* ```
|
|
862
840
|
*/
|
|
863
841
|
class SpanColumnComponent extends ColumnBase {
|
|
@@ -885,22 +863,8 @@ class SpanColumnComponent extends ColumnBase {
|
|
|
885
863
|
/**
|
|
886
864
|
* Defines whether the edit template of the column will be rendered. The default value is `false`.
|
|
887
865
|
*
|
|
888
|
-
*
|
|
866
|
+
* To enable the editing functionality for a spanned column, set an edit template for it.
|
|
889
867
|
*
|
|
890
|
-
* @example
|
|
891
|
-
* ```html-no-run
|
|
892
|
-
* <kendo-treelist>
|
|
893
|
-
* <kendo-treelist-span-column [editable]="false">
|
|
894
|
-
* <kendo-treelist-column field="UnitPrice">
|
|
895
|
-
* </kendo-treelist-column>
|
|
896
|
-
* <kendo-treelist-column field="ProductName">
|
|
897
|
-
* </kendo-treelist-column>
|
|
898
|
-
* <ng-template kendoTreeListEditTemplate>
|
|
899
|
-
* .....
|
|
900
|
-
* </ng-template>
|
|
901
|
-
* </kendo-treelist-span-column>
|
|
902
|
-
* </kendo-treelist>
|
|
903
|
-
* ```
|
|
904
868
|
*/
|
|
905
869
|
set editable(value) {
|
|
906
870
|
this._editable = value;
|
|
@@ -945,56 +909,9 @@ class SpanColumnComponent extends ColumnBase {
|
|
|
945
909
|
}
|
|
946
910
|
/**
|
|
947
911
|
* Toggles the locked (frozen) state of the columns. Locked columns are visible
|
|
948
|
-
* at all times during the horizontal scrolling of the TreeList.
|
|
949
|
-
*
|
|
950
|
-
* For the option to work properly, make sure that:
|
|
951
|
-
* - Scrolling is enabled.
|
|
952
|
-
* - The `height` option of the TreeList is set.
|
|
953
|
-
* - The widths of all TreeList columns are explicitly set in pixels. In this way,
|
|
954
|
-
* the TreeList adjusts the layout of the locked and unlocked columns.
|
|
912
|
+
* at all times during the horizontal scrolling of the TreeList. [See example](slug:locked_columns_treelist).
|
|
955
913
|
*
|
|
956
914
|
* @default false
|
|
957
|
-
*
|
|
958
|
-
* @example
|
|
959
|
-
* ```ts
|
|
960
|
-
* _@Component({
|
|
961
|
-
* selector: 'my-app',
|
|
962
|
-
* template: `
|
|
963
|
-
* <kendo-treelist [data]="treelistData" [scrollable]="scrollable" style="height: 200px">
|
|
964
|
-
* <kendo-treelist-span-column [locked]="true">
|
|
965
|
-
* <kendo-treelist-column field="ProductID" title="Product ID" [width]="120">
|
|
966
|
-
* </kendo-treelist-column>
|
|
967
|
-
* <kendo-treelist-column field="ProductName" title="Product Name" [width]="200">
|
|
968
|
-
* </kendo-treelist-column>
|
|
969
|
-
* </kendo-treelist-span-column>
|
|
970
|
-
* <kendo-treelist-column field="UnitPrice" title="Unit Price" [width]="230">
|
|
971
|
-
* </kendo-treelist-column>
|
|
972
|
-
* </kendo-treelist>
|
|
973
|
-
* `
|
|
974
|
-
* })
|
|
975
|
-
*
|
|
976
|
-
* class AppComponent {
|
|
977
|
-
* public treelistData: any[];
|
|
978
|
-
*
|
|
979
|
-
* constructor() {
|
|
980
|
-
* this.treelistData = products;
|
|
981
|
-
* }
|
|
982
|
-
* }
|
|
983
|
-
*
|
|
984
|
-
* const products = [{
|
|
985
|
-
* "ProductID": 1,
|
|
986
|
-
* "ProductName": "Chai",
|
|
987
|
-
* "UnitPrice": 18.0000,
|
|
988
|
-
* "Discontinued": true
|
|
989
|
-
* }, {
|
|
990
|
-
* "ProductID": 2,
|
|
991
|
-
* "ProductName": "Chang",
|
|
992
|
-
* "UnitPrice": 19.0000,
|
|
993
|
-
* "Discontinued": false
|
|
994
|
-
* }
|
|
995
|
-
* ];
|
|
996
|
-
*
|
|
997
|
-
* ```
|
|
998
915
|
*/
|
|
999
916
|
set locked(value) {
|
|
1000
917
|
this._locked = value;
|
|
@@ -1133,12 +1050,15 @@ function isColumnGroupComponent(column) {
|
|
|
1133
1050
|
* Represents the column group header of the TreeList
|
|
1134
1051
|
* ([more information and examples]({% slug multicolumnheaders_columns_treelist %})).
|
|
1135
1052
|
*
|
|
1136
|
-
*
|
|
1137
|
-
*
|
|
1138
|
-
*
|
|
1139
|
-
*
|
|
1140
|
-
*
|
|
1141
|
-
*
|
|
1053
|
+
* @example
|
|
1054
|
+
* ```html
|
|
1055
|
+
* <kendo-treelist ...>
|
|
1056
|
+
* <kendo-treelist-column-group title="File Info">
|
|
1057
|
+
* <kendo-treelist-column field="type" title="Type"> </kendo-treelist-column>
|
|
1058
|
+
* <kendo-treelist-column field="size" title="Size"> </kendo-treelist-column>
|
|
1059
|
+
* </kendo-treelist-column-group>
|
|
1060
|
+
* </kendo-treelist>
|
|
1061
|
+
* ```
|
|
1142
1062
|
*/
|
|
1143
1063
|
class ColumnGroupComponent extends ColumnBase {
|
|
1144
1064
|
constructor(parent, optionChanges) {
|
|
@@ -2153,7 +2073,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2153
2073
|
* * `totalPages`—The total number of available pages.
|
|
2154
2074
|
*
|
|
2155
2075
|
* @example
|
|
2156
|
-
* ```
|
|
2076
|
+
* ```html
|
|
2157
2077
|
* <kendo-treelist ...>
|
|
2158
2078
|
* <kendo-treelist-column field="type"></kendo-treelist-column>
|
|
2159
2079
|
* <ng-template
|
|
@@ -6103,8 +6023,9 @@ class StringFilterComponent extends BaseFilterCellComponent {
|
|
|
6103
6023
|
super(filterService);
|
|
6104
6024
|
this.localization = localization;
|
|
6105
6025
|
/**
|
|
6106
|
-
* The default filter operator.
|
|
6026
|
+
* The default filter operator.
|
|
6107
6027
|
* @type {string}
|
|
6028
|
+
* @default 'contains'
|
|
6108
6029
|
*/
|
|
6109
6030
|
this.operator = "contains";
|
|
6110
6031
|
}
|
|
@@ -6474,6 +6395,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
6474
6395
|
/**
|
|
6475
6396
|
* Represents a string-filter menu component.
|
|
6476
6397
|
* ([see example]({% slug builtinfiltertemplate_treelist %}#toc-configuration-components-for-filter-templates)).
|
|
6398
|
+
*
|
|
6399
|
+
* @example
|
|
6400
|
+
* ```html
|
|
6401
|
+
* <kendo-treelist-column field="name">
|
|
6402
|
+
* <ng-template kendoTreeListFilterMenuTemplate let-filter let-column="column" let-filterService="filterService">
|
|
6403
|
+
* <kendo-treelist-string-filter-menu
|
|
6404
|
+
* [column]="column"
|
|
6405
|
+
* [filter]="filter"
|
|
6406
|
+
* [filterService]="filterService">
|
|
6407
|
+
* </kendo-treelist-string-filter-menu>
|
|
6408
|
+
* </ng-template>
|
|
6409
|
+
* </kendo-treelist-column>
|
|
6410
|
+
* ```
|
|
6411
|
+
*
|
|
6477
6412
|
*/
|
|
6478
6413
|
class StringFilterMenuComponent extends StringFilterComponent {
|
|
6479
6414
|
constructor(localization) {
|
|
@@ -6486,6 +6421,7 @@ class StringFilterMenuComponent extends StringFilterComponent {
|
|
|
6486
6421
|
this.filter = { filters: [], logic: "and" };
|
|
6487
6422
|
/**
|
|
6488
6423
|
* Determines if the inputs of second criteria will displayed.
|
|
6424
|
+
* @default true
|
|
6489
6425
|
*/
|
|
6490
6426
|
this.extra = true;
|
|
6491
6427
|
}
|
|
@@ -6598,18 +6534,21 @@ class NumericFilterComponent extends BaseFilterCellComponent {
|
|
|
6598
6534
|
super(filterService);
|
|
6599
6535
|
this.localization = localization;
|
|
6600
6536
|
/**
|
|
6601
|
-
* The default filter operator.
|
|
6537
|
+
* The default filter operator.
|
|
6602
6538
|
* @type {string}
|
|
6539
|
+
* @default 'eq'
|
|
6603
6540
|
*/
|
|
6604
6541
|
this.operator = "eq";
|
|
6605
6542
|
/**
|
|
6606
6543
|
* Specifies the value that is used to increment or decrement the component value.
|
|
6607
6544
|
* @type {numeric}
|
|
6545
|
+
* @default 1
|
|
6608
6546
|
*/
|
|
6609
6547
|
this.step = 1;
|
|
6610
6548
|
/**
|
|
6611
6549
|
* Specifies whether the **Up** and **Down** spin buttons will be rendered.
|
|
6612
6550
|
* @type {boolean}
|
|
6551
|
+
* @default true
|
|
6613
6552
|
*/
|
|
6614
6553
|
this.spinners = true;
|
|
6615
6554
|
this.defaultOperators = numericOperators(this.localization);
|
|
@@ -6792,18 +6731,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
6792
6731
|
* Represents a numeric-filter menu component.
|
|
6793
6732
|
*
|
|
6794
6733
|
* @example
|
|
6795
|
-
* ```html
|
|
6796
|
-
*
|
|
6797
|
-
*
|
|
6798
|
-
*
|
|
6799
|
-
*
|
|
6800
|
-
*
|
|
6801
|
-
*
|
|
6802
|
-
*
|
|
6803
|
-
*
|
|
6804
|
-
*
|
|
6805
|
-
*
|
|
6806
|
-
* ```
|
|
6734
|
+
* ```html
|
|
6735
|
+
* <kendo-treelist-column field="UnitPrice">
|
|
6736
|
+
* <ng-template kendoTreeListFilterMenuTemplate let-filter let-column="column" let-filterService="filterService">
|
|
6737
|
+
* <kendo-treelist-numeric-filter-menu
|
|
6738
|
+
* [column]="column"
|
|
6739
|
+
* [filter]="filter"
|
|
6740
|
+
* [filterService]="filterService">
|
|
6741
|
+
* </kendo-treelist-numeric-filter-menu>
|
|
6742
|
+
* </ng-template>
|
|
6743
|
+
* </kendo-treelist-column>
|
|
6744
|
+
* ```
|
|
6807
6745
|
*/
|
|
6808
6746
|
class NumericFilterMenuComponent extends NumericFilterComponent {
|
|
6809
6747
|
constructor(localization) {
|
|
@@ -6816,6 +6754,7 @@ class NumericFilterMenuComponent extends NumericFilterComponent {
|
|
|
6816
6754
|
this.filter = { filters: [], logic: "and" };
|
|
6817
6755
|
/**
|
|
6818
6756
|
* Determines if the inputs of second criteria will displayed.
|
|
6757
|
+
* @default true
|
|
6819
6758
|
*/
|
|
6820
6759
|
this.extra = true;
|
|
6821
6760
|
}
|
|
@@ -6961,25 +6900,30 @@ class DateFilterComponent extends BaseFilterCellComponent {
|
|
|
6961
6900
|
/**
|
|
6962
6901
|
* The default filter operator. Defaults to `contains`.
|
|
6963
6902
|
* @type {string}
|
|
6903
|
+
* @default 'gte'
|
|
6964
6904
|
*/
|
|
6965
6905
|
this.operator = "gte";
|
|
6966
6906
|
/**
|
|
6967
6907
|
* Defines the active view that the calendar initially renders.
|
|
6968
6908
|
* By default, the active view is `month`.
|
|
6969
6909
|
*
|
|
6970
|
-
*
|
|
6910
|
+
* You have to set `activeView` within the `topView`-`bottomView` range.
|
|
6911
|
+
* @default 'month'
|
|
6971
6912
|
*/
|
|
6972
6913
|
this.activeView = "month";
|
|
6973
6914
|
/**
|
|
6974
6915
|
* Defines the bottommost calendar view, to which the user can navigate.
|
|
6916
|
+
* @default 'month'
|
|
6975
6917
|
*/
|
|
6976
6918
|
this.bottomView = "month";
|
|
6977
6919
|
/**
|
|
6978
6920
|
* Defines the topmost calendar view, to which the user can navigate.
|
|
6921
|
+
* @default 'century'
|
|
6979
6922
|
*/
|
|
6980
6923
|
this.topView = "century";
|
|
6981
6924
|
/**
|
|
6982
6925
|
* Determines whether to display a week number column in the `month` view of the Calendar.
|
|
6926
|
+
* @default false
|
|
6983
6927
|
*/
|
|
6984
6928
|
this.weekNumber = false;
|
|
6985
6929
|
this.defaultOperators = dateOperators(this.localization);
|
|
@@ -7185,18 +7129,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
7185
7129
|
* Represents a date-filter menu component.
|
|
7186
7130
|
*
|
|
7187
7131
|
* @example
|
|
7188
|
-
*
|
|
7189
|
-
*
|
|
7190
|
-
*
|
|
7191
|
-
*
|
|
7192
|
-
*
|
|
7193
|
-
*
|
|
7194
|
-
*
|
|
7195
|
-
*
|
|
7196
|
-
*
|
|
7197
|
-
*
|
|
7198
|
-
*
|
|
7199
|
-
* ```
|
|
7132
|
+
* ```html
|
|
7133
|
+
* <kendo-treelist-column field="OrderDate" title="Order Date">
|
|
7134
|
+
* <ng-template kendoTreeListFilterMenuTemplate let-filter let-column="column" let-filterService="filterService">
|
|
7135
|
+
* <kendo-treelist-date-filter-menu
|
|
7136
|
+
* [column]="column"
|
|
7137
|
+
* [filter]="filter"
|
|
7138
|
+
* [filterService]="filterService">
|
|
7139
|
+
* </kendo-treelist-date-filter-menu>
|
|
7140
|
+
* </ng-template>
|
|
7141
|
+
* </kendo-treelist-column>
|
|
7142
|
+
* ```
|
|
7200
7143
|
*/
|
|
7201
7144
|
class DateFilterMenuComponent extends DateFilterComponent {
|
|
7202
7145
|
constructor(localization) {
|
|
@@ -7209,6 +7152,7 @@ class DateFilterMenuComponent extends DateFilterComponent {
|
|
|
7209
7152
|
this.filter = { filters: [], logic: "and" };
|
|
7210
7153
|
/**
|
|
7211
7154
|
* Determines if the inputs of second criteria will be displayed.
|
|
7155
|
+
* @default true
|
|
7212
7156
|
*/
|
|
7213
7157
|
this.extra = true;
|
|
7214
7158
|
}
|
|
@@ -7422,20 +7366,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
7422
7366
|
}] } });
|
|
7423
7367
|
|
|
7424
7368
|
/**
|
|
7425
|
-
* Represents a Boolean-filter menu component.
|
|
7369
|
+
* Represents a Boolean-filter menu component. [See example](slug:columnmenu_treelist#toc-customizing-the-content).
|
|
7426
7370
|
*
|
|
7427
7371
|
* @example
|
|
7428
|
-
*
|
|
7429
|
-
*
|
|
7430
|
-
*
|
|
7431
|
-
*
|
|
7432
|
-
*
|
|
7433
|
-
*
|
|
7434
|
-
*
|
|
7435
|
-
*
|
|
7436
|
-
*
|
|
7437
|
-
*
|
|
7438
|
-
* </kendo-treelist-column>
|
|
7372
|
+
* ```html
|
|
7373
|
+
* <kendo-treelist-column field="Discontinued" title="Discontinued">
|
|
7374
|
+
* <ng-template kendoTreeListFilterMenuTemplate let-filter let-column="column" let-filterService="filterService">
|
|
7375
|
+
* <kendo-treelist-boolean-filter-menu
|
|
7376
|
+
* [column]="column"
|
|
7377
|
+
* [filter]="filter"
|
|
7378
|
+
* [filterService]="filterService">
|
|
7379
|
+
* </kendo-treelist-boolean-filter-menu>
|
|
7380
|
+
* </ng-template>
|
|
7381
|
+
* </kendo-treelist-column>
|
|
7439
7382
|
* ```
|
|
7440
7383
|
*/
|
|
7441
7384
|
class BooleanFilterMenuComponent extends BooleanFilterComponent {
|
|
@@ -7855,7 +7798,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
7855
7798
|
*
|
|
7856
7799
|
* @example
|
|
7857
7800
|
* ```html
|
|
7858
|
-
* <kendo-treelist
|
|
7801
|
+
* <kendo-treelist ...>
|
|
7859
7802
|
* <ng-template
|
|
7860
7803
|
* kendoTreeListColumnMenuTemplate
|
|
7861
7804
|
* let-service="service"
|
|
@@ -7925,7 +7868,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
7925
7868
|
*
|
|
7926
7869
|
* @example
|
|
7927
7870
|
* ```html
|
|
7928
|
-
* <kendo-treelist
|
|
7871
|
+
* <kendo-treelist ...>
|
|
7929
7872
|
* <kendo-treelist-column field="ProductName">
|
|
7930
7873
|
* <ng-template kendoTreeListColumnMenuTemplate>
|
|
7931
7874
|
* <kendo-treelist-columnmenu-item text="Item Text" [expanded]="true">
|
|
@@ -7960,12 +7903,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
7960
7903
|
* Represents an item that can be placed inside a
|
|
7961
7904
|
* [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
7962
7905
|
*
|
|
7963
|
-
*
|
|
7964
|
-
*
|
|
7965
|
-
*
|
|
7966
|
-
*
|
|
7967
|
-
*
|
|
7968
|
-
*
|
|
7906
|
+
* * @example
|
|
7907
|
+
* ```html
|
|
7908
|
+
* <kendo-treelist ...>
|
|
7909
|
+
* <ng-template kendoTreeListColumnMenuTemplate let-service="service" let-column="column">
|
|
7910
|
+
* <kendo-treelist-columnmenu-item text="Fit column"></kendo-treelist-columnmenu-item>
|
|
7911
|
+
* </ng-template>
|
|
7912
|
+
* </kendo-treelist>
|
|
7913
|
+
* ```
|
|
7969
7914
|
*/
|
|
7970
7915
|
class ColumnMenuItemComponent {
|
|
7971
7916
|
constructor() {
|
|
@@ -8107,19 +8052,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8107
8052
|
}] } });
|
|
8108
8053
|
|
|
8109
8054
|
/**
|
|
8110
|
-
* Represents
|
|
8111
|
-
* [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
8112
|
-
* Allows the user to sort the column.
|
|
8055
|
+
* Represents the column-menu item for sorting TreeList columns.
|
|
8113
8056
|
*
|
|
8114
|
-
*
|
|
8115
|
-
*
|
|
8057
|
+
* The component can be placed inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
8058
|
+
*
|
|
8059
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %})
|
|
8060
|
+
* that is passed by the template to the service input of the `kendo-treelist-columnmenu-sort` component.
|
|
8116
8061
|
*
|
|
8117
|
-
* {% meta height:500 %}
|
|
8118
|
-
* {% embed_file column-menu/template-sort/app.component.ts preview %}
|
|
8119
|
-
* {% embed_file column-menu/template-sort/app.module.ts %}
|
|
8120
|
-
* {% embed_file shared/main.ts %}
|
|
8121
|
-
* {% embed_file shared/employees.ts %}
|
|
8122
|
-
* {% endmeta %}
|
|
8123
8062
|
*/
|
|
8124
8063
|
class ColumnMenuSortComponent extends ColumnMenuItemBase {
|
|
8125
8064
|
constructor(localization, sortService) {
|
|
@@ -8201,19 +8140,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8201
8140
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }, { type: SortService }]; } });
|
|
8202
8141
|
|
|
8203
8142
|
/**
|
|
8204
|
-
* Represents
|
|
8205
|
-
*
|
|
8206
|
-
*
|
|
8143
|
+
* Represents the column-menu item that allows the user to lock or unlock columns.
|
|
8144
|
+
*
|
|
8145
|
+
* The componnt can be placed inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
8207
8146
|
*
|
|
8208
|
-
|
|
8209
|
-
*
|
|
8147
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %})
|
|
8148
|
+
* that is passed by the template to the service input of the `kendo-treelist-columnmenu-lock` component.
|
|
8210
8149
|
*
|
|
8211
|
-
* {% meta height:500 %}
|
|
8212
|
-
* {% embed_file column-menu/template-lock/app.component.ts preview %}
|
|
8213
|
-
* {% embed_file column-menu/template-lock/app.module.ts %}
|
|
8214
|
-
* {% embed_file shared/main.ts %}
|
|
8215
|
-
* {% embed_file shared/employees.ts %}
|
|
8216
|
-
* {% endmeta %}
|
|
8217
8150
|
*/
|
|
8218
8151
|
class ColumnMenuLockComponent extends ColumnMenuItemBase {
|
|
8219
8152
|
constructor(localization, columnInfoService, changeDetector) {
|
|
@@ -8500,18 +8433,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8500
8433
|
}] } });
|
|
8501
8434
|
|
|
8502
8435
|
/**
|
|
8503
|
-
* Represents the
|
|
8504
|
-
* inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
8436
|
+
* Represents the column-menu item for selecting columns in the TreeList. [See example](slug:columnmenu_treelist#toc-column-chooser-item).
|
|
8505
8437
|
*
|
|
8506
|
-
*
|
|
8507
|
-
*
|
|
8438
|
+
* The component can be placed inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
8439
|
+
*
|
|
8440
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %})
|
|
8441
|
+
* that is passed by the template to the service input of the `kendo-treelist-columnmenu-chooser` component.
|
|
8508
8442
|
*
|
|
8509
|
-
* {% meta height:500 %}
|
|
8510
|
-
* {% embed_file column-menu/template-chooser/app.component.ts preview %}
|
|
8511
|
-
* {% embed_file column-menu/template-chooser/app.module.ts %}
|
|
8512
|
-
* {% embed_file shared/main.ts %}
|
|
8513
|
-
* {% embed_file shared/employees.ts %}
|
|
8514
|
-
* {% endmeta %}
|
|
8515
8443
|
*/
|
|
8516
8444
|
class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
8517
8445
|
constructor(localization, columnInfoService, changeDetector) {
|
|
@@ -8529,6 +8457,7 @@ class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
|
8529
8457
|
this.collapse = new EventEmitter();
|
|
8530
8458
|
/**
|
|
8531
8459
|
* Specifies if the content is expanded.
|
|
8460
|
+
* @default false
|
|
8532
8461
|
*/
|
|
8533
8462
|
this.expanded = false;
|
|
8534
8463
|
/**
|
|
@@ -8553,7 +8482,7 @@ class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
|
8553
8482
|
}
|
|
8554
8483
|
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 });
|
|
8555
8484
|
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: `
|
|
8556
|
-
<kendo-treelist-columnmenu-item
|
|
8485
|
+
<kendo-treelist-columnmenu-item
|
|
8557
8486
|
[text]="localization.get('columns')"
|
|
8558
8487
|
icon="columns"
|
|
8559
8488
|
[svgIcon]="columnsIcon"
|
|
@@ -8578,7 +8507,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8578
8507
|
args: [{
|
|
8579
8508
|
selector: 'kendo-treelist-columnmenu-chooser',
|
|
8580
8509
|
template: `
|
|
8581
|
-
<kendo-treelist-columnmenu-item
|
|
8510
|
+
<kendo-treelist-columnmenu-item
|
|
8582
8511
|
[text]="localization.get('columns')"
|
|
8583
8512
|
icon="columns"
|
|
8584
8513
|
[svgIcon]="columnsIcon"
|
|
@@ -8608,18 +8537,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8608
8537
|
}] } });
|
|
8609
8538
|
|
|
8610
8539
|
/**
|
|
8611
|
-
* Represents the
|
|
8612
|
-
*
|
|
8540
|
+
* Represents the column-menu item for editing column filters in the TreeList.
|
|
8541
|
+
*
|
|
8542
|
+
* The component can be placed inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
8613
8543
|
*
|
|
8614
|
-
*
|
|
8615
|
-
*
|
|
8544
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %})
|
|
8545
|
+
* that is passed by the template to the service input of the `kendo-treelist-columnmenu-filter` component.
|
|
8616
8546
|
*
|
|
8617
|
-
* {% meta height:500 %}
|
|
8618
|
-
* {% embed_file column-menu/template-filter/app.component.ts preview %}
|
|
8619
|
-
* {% embed_file column-menu/template-filter/app.module.ts %}
|
|
8620
|
-
* {% embed_file shared/main.ts %}
|
|
8621
|
-
* {% embed_file shared/employees.ts %}
|
|
8622
|
-
* {% endmeta %}
|
|
8623
8547
|
*/
|
|
8624
8548
|
class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
8625
8549
|
constructor(localization) {
|
|
@@ -8635,6 +8559,7 @@ class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
|
8635
8559
|
this.collapse = new EventEmitter();
|
|
8636
8560
|
/**
|
|
8637
8561
|
* Specifies if the content is expanded.
|
|
8562
|
+
* @default false
|
|
8638
8563
|
*/
|
|
8639
8564
|
this.expanded = false;
|
|
8640
8565
|
/**
|
|
@@ -8696,7 +8621,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8696
8621
|
|
|
8697
8622
|
const POPUP_CLASS = 'k-grid-columnmenu-popup';
|
|
8698
8623
|
/**
|
|
8699
|
-
* Represents the [column menu]({% slug columnmenu_treelist %}) component.
|
|
8624
|
+
* Represents the [column menu]({% slug columnmenu_treelist %}) component of the TreeList.
|
|
8700
8625
|
*/
|
|
8701
8626
|
class ColumnMenuComponent {
|
|
8702
8627
|
constructor(popupService, localization, service) {
|
|
@@ -8886,6 +8811,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
8886
8811
|
|
|
8887
8812
|
/**
|
|
8888
8813
|
* Represents a component which accommodates the filter operators.
|
|
8814
|
+
*
|
|
8815
|
+
* @example
|
|
8816
|
+
* ```html
|
|
8817
|
+
* <kendo-treelist ...>
|
|
8818
|
+
* <kendo-treelist-column field="ProductName">
|
|
8819
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
8820
|
+
* <input />
|
|
8821
|
+
* <kendo-treelist-filter-cell-operators
|
|
8822
|
+
* [operators]="[{text: 'Equals', value: 'eq'}]">
|
|
8823
|
+
* </kendo-treelist-filter-cell-operators>
|
|
8824
|
+
* </ng-template>
|
|
8825
|
+
* </kendo-treelist-column>
|
|
8826
|
+
* </kendo-treelist>
|
|
8827
|
+
* ```
|
|
8889
8828
|
*/
|
|
8890
8829
|
class FilterCellOperatorsComponent {
|
|
8891
8830
|
constructor(localization) {
|
|
@@ -8899,6 +8838,7 @@ class FilterCellOperatorsComponent {
|
|
|
8899
8838
|
/**
|
|
8900
8839
|
* Determines if the list of operators will be displayed.
|
|
8901
8840
|
* @type {boolean}
|
|
8841
|
+
* @default true
|
|
8902
8842
|
*/
|
|
8903
8843
|
this.showOperators = true;
|
|
8904
8844
|
/**
|
|
@@ -9106,17 +9046,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
9106
9046
|
*
|
|
9107
9047
|
* @example
|
|
9108
9048
|
*
|
|
9109
|
-
*
|
|
9110
|
-
*
|
|
9111
|
-
*
|
|
9112
|
-
*
|
|
9113
|
-
*
|
|
9114
|
-
*
|
|
9115
|
-
*
|
|
9116
|
-
*
|
|
9117
|
-
*
|
|
9118
|
-
*
|
|
9119
|
-
* ```
|
|
9049
|
+
* ```html
|
|
9050
|
+
* <kendo-treelist-column field="ProductName">
|
|
9051
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
9052
|
+
* <kendo-treelist-string-filter-cell
|
|
9053
|
+
* [column]="column"
|
|
9054
|
+
* [filter]="filter">
|
|
9055
|
+
* </kendo-treelist-string-filter-cell>
|
|
9056
|
+
* </ng-template>
|
|
9057
|
+
* </kendo-treelist-column>
|
|
9058
|
+
* ```
|
|
9120
9059
|
*/
|
|
9121
9060
|
class StringFilterCellComponent extends StringFilterComponent {
|
|
9122
9061
|
constructor(filterService, localization) {
|
|
@@ -9125,12 +9064,14 @@ class StringFilterCellComponent extends StringFilterComponent {
|
|
|
9125
9064
|
* Determines the delay time (in milliseconds) before the filter value is submitted.
|
|
9126
9065
|
* A value of `0` indicates no delay. The default value is `500`.
|
|
9127
9066
|
* @type {boolean}
|
|
9067
|
+
* @default 500
|
|
9128
9068
|
*/
|
|
9129
9069
|
this.filterDelay = 500;
|
|
9130
9070
|
/**
|
|
9131
9071
|
* Determines if the drop-down filter operators will be displayed.
|
|
9132
9072
|
* The default value is `true`.
|
|
9133
9073
|
* @type {boolean}
|
|
9074
|
+
* @default true
|
|
9134
9075
|
*/
|
|
9135
9076
|
this.showOperators = true;
|
|
9136
9077
|
}
|
|
@@ -9143,7 +9084,7 @@ StringFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
9143
9084
|
[operators]="operators"
|
|
9144
9085
|
[defaultOperator]="operator"
|
|
9145
9086
|
[showOperators]="showOperators">
|
|
9146
|
-
<input
|
|
9087
|
+
<input
|
|
9147
9088
|
class="k-textbox k-input k-input-md k-rounded-md k-input-solid"
|
|
9148
9089
|
kendoTreeListFocusable
|
|
9149
9090
|
kendoFilterInput
|
|
@@ -9162,7 +9103,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
9162
9103
|
[operators]="operators"
|
|
9163
9104
|
[defaultOperator]="operator"
|
|
9164
9105
|
[showOperators]="showOperators">
|
|
9165
|
-
<input
|
|
9106
|
+
<input
|
|
9166
9107
|
class="k-textbox k-input k-input-md k-rounded-md k-input-solid"
|
|
9167
9108
|
kendoTreeListFocusable
|
|
9168
9109
|
kendoFilterInput
|
|
@@ -9181,16 +9122,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
9181
9122
|
* Represents a numeric filter cell.
|
|
9182
9123
|
*
|
|
9183
9124
|
* @example
|
|
9184
|
-
*
|
|
9185
|
-
*
|
|
9186
|
-
*
|
|
9187
|
-
*
|
|
9188
|
-
*
|
|
9189
|
-
*
|
|
9190
|
-
*
|
|
9191
|
-
*
|
|
9192
|
-
*
|
|
9193
|
-
*
|
|
9125
|
+
* ```html
|
|
9126
|
+
* <kendo-treelist-column field="ProductName" title="Product Name">
|
|
9127
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
9128
|
+
* <kendo-treelist-numeric-filter-cell
|
|
9129
|
+
* [column]="column"
|
|
9130
|
+
* [filter]="filter">
|
|
9131
|
+
* </kendo-treelist-numeric-filter-cell>
|
|
9132
|
+
* </ng-template>
|
|
9133
|
+
* </kendo-treelist-column>
|
|
9134
|
+
* ```
|
|
9194
9135
|
*/
|
|
9195
9136
|
class NumericFilterCellComponent extends NumericFilterComponent {
|
|
9196
9137
|
constructor(filterService, localization) {
|
|
@@ -9198,14 +9139,15 @@ class NumericFilterCellComponent extends NumericFilterComponent {
|
|
|
9198
9139
|
this.localization = localization;
|
|
9199
9140
|
/**
|
|
9200
9141
|
* Determines the delay time (in milliseconds) before the filter value is submitted.
|
|
9201
|
-
* A value of `0` indicates no delay.
|
|
9142
|
+
* A value of `0` indicates no delay.
|
|
9202
9143
|
* @type {boolean}
|
|
9144
|
+
* @default 500
|
|
9203
9145
|
*/
|
|
9204
9146
|
this.filterDelay = 500;
|
|
9205
9147
|
/**
|
|
9206
9148
|
* Determines if the drop-down filter operators will be displayed.
|
|
9207
|
-
* The default value is `true`.
|
|
9208
9149
|
* @type {boolean}
|
|
9150
|
+
* @default true
|
|
9209
9151
|
*/
|
|
9210
9152
|
this.showOperators = true;
|
|
9211
9153
|
}
|
|
@@ -9268,19 +9210,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
9268
9210
|
|
|
9269
9211
|
/**
|
|
9270
9212
|
* Represents a Boolean filter-cell component.
|
|
9213
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-default-filter-operator).
|
|
9271
9214
|
*
|
|
9272
9215
|
* @example
|
|
9273
|
-
*
|
|
9274
|
-
*
|
|
9275
|
-
*
|
|
9276
|
-
*
|
|
9277
|
-
*
|
|
9278
|
-
*
|
|
9279
|
-
*
|
|
9280
|
-
*
|
|
9281
|
-
*
|
|
9282
|
-
*
|
|
9283
|
-
* ```
|
|
9216
|
+
* ```html
|
|
9217
|
+
* <kendo-treelist-column field="ProductName" title="Product Name">
|
|
9218
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
9219
|
+
* <kendo-treelist-boolean-filter-cell
|
|
9220
|
+
* [column]="column"
|
|
9221
|
+
* [filter]="filter">
|
|
9222
|
+
* </kendo-treelist-boolean-filter-cell>
|
|
9223
|
+
* </ng-template>
|
|
9224
|
+
* </kendo-treelist-column>
|
|
9225
|
+
* ```
|
|
9284
9226
|
*/
|
|
9285
9227
|
class BooleanFilterCellComponent extends BooleanFilterComponent {
|
|
9286
9228
|
constructor(filterService, localization, cd) {
|
|
@@ -9341,17 +9283,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
9341
9283
|
*
|
|
9342
9284
|
* @example
|
|
9343
9285
|
*
|
|
9344
|
-
*
|
|
9345
|
-
*
|
|
9346
|
-
*
|
|
9347
|
-
*
|
|
9348
|
-
*
|
|
9349
|
-
*
|
|
9350
|
-
*
|
|
9351
|
-
*
|
|
9352
|
-
*
|
|
9353
|
-
*
|
|
9354
|
-
* ```
|
|
9286
|
+
* ```html
|
|
9287
|
+
* <kendo-treelist-column field="OrderDate">
|
|
9288
|
+
* <ng-template kendoTreeListFilterCellTemplate let-filter let-column="column">
|
|
9289
|
+
* <kendo-treelist-date-filter-cell
|
|
9290
|
+
* [column]="column"
|
|
9291
|
+
* [filter]="filter">
|
|
9292
|
+
* </kendo-treelist-date-filter-cell>
|
|
9293
|
+
* </ng-template>
|
|
9294
|
+
* </kendo-treelist-column>
|
|
9295
|
+
* ```
|
|
9355
9296
|
*/
|
|
9356
9297
|
class DateFilterCellComponent extends DateFilterComponent {
|
|
9357
9298
|
constructor(filterService, localization) {
|
|
@@ -9360,6 +9301,7 @@ class DateFilterCellComponent extends DateFilterComponent {
|
|
|
9360
9301
|
/**
|
|
9361
9302
|
* Determines if the drop-down filter operators will be displayed. The default value is `true`.
|
|
9362
9303
|
* @type {boolean}
|
|
9304
|
+
* @default true
|
|
9363
9305
|
*/
|
|
9364
9306
|
this.showOperators = true;
|
|
9365
9307
|
}
|
|
@@ -13097,7 +13039,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
13097
13039
|
|
|
13098
13040
|
/* eslint-disable @typescript-eslint/no-inferrable-types */
|
|
13099
13041
|
/**
|
|
13100
|
-
* Displays numeric buttons to enable navigation between the pages.
|
|
13042
|
+
* Displays numeric buttons to enable navigation between the pages ([see example]({% slug paging_treelist %}#toc-pager-templates)).
|
|
13101
13043
|
*/
|
|
13102
13044
|
class PagerNumericButtonsComponent extends PagerElementComponent {
|
|
13103
13045
|
constructor(localization, cd, pagerContext) {
|
|
@@ -13711,7 +13653,7 @@ PagerPageSizesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
13711
13653
|
[attr.aria-label]="textFor('pagerItemsPerPage')"
|
|
13712
13654
|
(valueChange)="pageSizeChange($event)"></kendo-dropdownlist>
|
|
13713
13655
|
<kendo-label [for]="dropdownlist" [text]="textFor('pagerItemsPerPage')"></kendo-label>
|
|
13714
|
-
`, isInline: true, components: [{ type: i3$1.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { type: i4$2.LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional"], exportAs: ["kendoLabel"] }], directives: [{ type: 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 });
|
|
13656
|
+
`, isInline: true, components: [{ type: i3$1.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { type: i4$2.LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }], directives: [{ type: 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 });
|
|
13715
13657
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerPageSizesComponent, decorators: [{
|
|
13716
13658
|
type: Component,
|
|
13717
13659
|
args: [{
|
|
@@ -14541,12 +14483,11 @@ const isInEditedCell = (element, treelistElement) => closest(element, matchesCla
|
|
|
14541
14483
|
/**
|
|
14542
14484
|
* Represents the Kendo UI TreeList component for Angular.
|
|
14543
14485
|
*
|
|
14544
|
-
*
|
|
14545
|
-
*
|
|
14546
|
-
*
|
|
14547
|
-
*
|
|
14548
|
-
*
|
|
14549
|
-
* {% endmeta %}
|
|
14486
|
+
* @example
|
|
14487
|
+
* ```html
|
|
14488
|
+
* <kendo-treelist [kendoTreeListFlatBinding]="data" ...></kendo-treelist>
|
|
14489
|
+
* ```
|
|
14490
|
+
*
|
|
14550
14491
|
*/
|
|
14551
14492
|
class TreeListComponent {
|
|
14552
14493
|
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) {
|
|
@@ -14583,10 +14524,7 @@ class TreeListComponent {
|
|
|
14583
14524
|
this.pageSize = 10;
|
|
14584
14525
|
/**
|
|
14585
14526
|
* Defines the scroll mode used by the TreeList.
|
|
14586
|
-
*
|
|
14587
|
-
* The available options are:
|
|
14588
|
-
* - `none`—Renders no scrollbar.
|
|
14589
|
-
* - `scrollable`—The default scroll mode. It requires the setting of the `height` option.
|
|
14527
|
+
* @default 'scrollable'
|
|
14590
14528
|
*/
|
|
14591
14529
|
this.scrollable = 'scrollable';
|
|
14592
14530
|
/**
|
|
@@ -14594,49 +14532,12 @@ class TreeListComponent {
|
|
|
14594
14532
|
*
|
|
14595
14533
|
* By default, the TreeList tracks changes by the index of the data item.
|
|
14596
14534
|
* Edited rows are tracked by reference.
|
|
14597
|
-
* In some cases, you might need to override the default behavior,
|
|
14598
|
-
* for example, when you implement editing with immutable data items.
|
|
14599
14535
|
*
|
|
14600
|
-
* The following example demonstrates how to track items only by index.
|
|
14601
|
-
*
|
|
14602
|
-
* @example
|
|
14603
|
-
* ```ts
|
|
14604
|
-
* import { Component } from '@angular/core';
|
|
14605
|
-
* import { TreeListItem } from '@progress/kendo-angular-treelist';
|
|
14606
|
-
*
|
|
14607
|
-
* _@Component({
|
|
14608
|
-
* selector: 'my-app',
|
|
14609
|
-
* template: `
|
|
14610
|
-
* <kendo-treelist [data]="treelistData" [trackBy]="trackBy">
|
|
14611
|
-
* </kendo-treelist>
|
|
14612
|
-
* `
|
|
14613
|
-
* })
|
|
14614
|
-
* class AppComponent {
|
|
14615
|
-
* public treelistData: any[] = products;
|
|
14616
|
-
*
|
|
14617
|
-
* public trackBy(index: number, item: TreeListItem): any {
|
|
14618
|
-
* console.log(item);
|
|
14619
|
-
* return index;
|
|
14620
|
-
* }
|
|
14621
|
-
* }
|
|
14622
|
-
*
|
|
14623
|
-
* const products = [{
|
|
14624
|
-
* "ProductID": 1,
|
|
14625
|
-
* "ProductName": "Chai",
|
|
14626
|
-
* "UnitPrice": 18.0000,
|
|
14627
|
-
* "Discontinued": true
|
|
14628
|
-
* }, {
|
|
14629
|
-
* "ProductID": 2,
|
|
14630
|
-
* "ProductName": "Chang",
|
|
14631
|
-
* "UnitPrice": 19.0000,
|
|
14632
|
-
* "Discontinued": false
|
|
14633
|
-
* }
|
|
14634
|
-
* ];
|
|
14635
|
-
* ```
|
|
14636
14536
|
*/
|
|
14637
14537
|
this.trackBy = defaultTrackBy;
|
|
14638
14538
|
/**
|
|
14639
14539
|
* If set to `true`, the treelist will render only the columns in the current viewport.
|
|
14540
|
+
* @default false
|
|
14640
14541
|
*/
|
|
14641
14542
|
this.virtualColumns = false;
|
|
14642
14543
|
/**
|
|
@@ -14650,18 +14551,12 @@ class TreeListComponent {
|
|
|
14650
14551
|
/**
|
|
14651
14552
|
* Configures the pager of the TreeList ([see example]({% slug paging_treelist %})).
|
|
14652
14553
|
*
|
|
14653
|
-
* The available options are:
|
|
14654
|
-
* - `buttonCount: Number`—Sets the maximum numeric buttons count before the buttons are collapsed. Defaults to `10`.
|
|
14655
|
-
* - `info: Boolean`—Toggles the information about the current page and the total number of records. Defaults to `true`.
|
|
14656
|
-
* - `type: PagerType`—Accepts the `numeric` (buttons with numbers) and `input` (input for typing the page number) values. Defaults to `'numeric'`.
|
|
14657
|
-
* - `pageSizes: Boolean` or `Array<number>`—Shows a menu for selecting the page size. Defaults to `false`.
|
|
14658
|
-
* - `previousNext: Boolean`—Toggles the **Previous** and **Next** buttons. Defaults to `true`.
|
|
14659
|
-
* - `responsive: Boolean`—Toggles the built-in responsive behavior of the Pager. Defaults to `true`.
|
|
14660
14554
|
*/
|
|
14661
14555
|
this.pageable = false;
|
|
14662
14556
|
/**
|
|
14663
14557
|
* If set to `true`, the user can use dedicated shortcuts to interact with the TreeList.
|
|
14664
14558
|
* By default, navigation is disabled and the TreeList content is accessible in the normal tab sequence.
|
|
14559
|
+
* @default false
|
|
14665
14560
|
*/
|
|
14666
14561
|
this.navigable = false;
|
|
14667
14562
|
/**
|
|
@@ -14670,6 +14565,8 @@ class TreeListComponent {
|
|
|
14670
14565
|
* Columns with `autoSize` set to `false` are excluded.
|
|
14671
14566
|
* To dynamically update the column width to match the new content,
|
|
14672
14567
|
* refer to [this example]({% slug resizing_columns_treelist %}).
|
|
14568
|
+
*
|
|
14569
|
+
* @default false
|
|
14673
14570
|
*/
|
|
14674
14571
|
this.autoSize = false;
|
|
14675
14572
|
/**
|
|
@@ -14701,7 +14598,9 @@ class TreeListComponent {
|
|
|
14701
14598
|
/**
|
|
14702
14599
|
* Specifies if the header of the treelist will be hidden. The header is visible by default.
|
|
14703
14600
|
*
|
|
14704
|
-
*
|
|
14601
|
+
* The header includes column headers and the [filter row]({% slug filtering_treelist %}#toc-filter-row).
|
|
14602
|
+
*
|
|
14603
|
+
* @default false
|
|
14705
14604
|
*/
|
|
14706
14605
|
this.hideHeader = false;
|
|
14707
14606
|
/**
|
|
@@ -15021,48 +14920,6 @@ class TreeListComponent {
|
|
|
15021
14920
|
/**
|
|
15022
14921
|
* Defines a function that is executed for every data row in the component.
|
|
15023
14922
|
*
|
|
15024
|
-
* @example
|
|
15025
|
-
* ```ts
|
|
15026
|
-
* import { Component, ViewEncapsulation } from '@angular/core';
|
|
15027
|
-
* import { RowClassArgs } from '@progress/kendo-angular-treelist';
|
|
15028
|
-
*
|
|
15029
|
-
* _@Component({
|
|
15030
|
-
* selector: 'my-app',
|
|
15031
|
-
* encapsulation: ViewEncapsulation.None,
|
|
15032
|
-
* styles: [`
|
|
15033
|
-
* .k-treelist tr.even { background-color: #f45c42; }
|
|
15034
|
-
* .k-treelist tr.odd { background-color: #41f4df; }
|
|
15035
|
-
* `],
|
|
15036
|
-
* template: `
|
|
15037
|
-
* <kendo-treelist [data]="treelistData" [rowClass]="rowCallback">
|
|
15038
|
-
* </kendo-treelist>
|
|
15039
|
-
* `
|
|
15040
|
-
* })
|
|
15041
|
-
* class AppComponent {
|
|
15042
|
-
* public treelistData: any[] = products;
|
|
15043
|
-
*
|
|
15044
|
-
* public rowCallback(context: RowClassArgs) {
|
|
15045
|
-
* const isEven = context.index % 2 === 0;
|
|
15046
|
-
* return {
|
|
15047
|
-
* even: isEven,
|
|
15048
|
-
* odd: !isEven
|
|
15049
|
-
* };
|
|
15050
|
-
* }
|
|
15051
|
-
* }
|
|
15052
|
-
*
|
|
15053
|
-
* const products = [{
|
|
15054
|
-
* "ProductID": 1,
|
|
15055
|
-
* "ProductName": "Chai",
|
|
15056
|
-
* "UnitPrice": 18.0000,
|
|
15057
|
-
* "Discontinued": true
|
|
15058
|
-
* }, {
|
|
15059
|
-
* "ProductID": 2,
|
|
15060
|
-
* "ProductName": "Chang",
|
|
15061
|
-
* "UnitPrice": 19.0000,
|
|
15062
|
-
* "Discontinued": false
|
|
15063
|
-
* }
|
|
15064
|
-
* ];
|
|
15065
|
-
* ```
|
|
15066
14923
|
*/
|
|
15067
14924
|
set rowClass(fn) {
|
|
15068
14925
|
if (typeof fn !== 'function') {
|
|
@@ -15106,7 +14963,7 @@ class TreeListComponent {
|
|
|
15106
14963
|
this.selectionService.settings = value;
|
|
15107
14964
|
}
|
|
15108
14965
|
/**
|
|
15109
|
-
* Provides a callback that determines if the given row
|
|
14966
|
+
* Provides a callback that determines if the given row or cell is selected.
|
|
15110
14967
|
*/
|
|
15111
14968
|
set isSelected(value) {
|
|
15112
14969
|
if (typeof value !== 'function' && isDevMode()) {
|
|
@@ -15561,7 +15418,7 @@ class TreeListComponent {
|
|
|
15561
15418
|
* Exports the TreeList element to a Drawing [`Group`]({% slug api_kendo-drawing_group %}) by using the `kendo-treelist-pdf` component options.
|
|
15562
15419
|
* ([see example]({% slug pdfexport_treelist %}#toc-exporting-multiple-treelists-to-the-same-pdf)).
|
|
15563
15420
|
*
|
|
15564
|
-
* @return {Promise}
|
|
15421
|
+
* @return {Promise} A promise that will be resolved with the Drawing `Group`.
|
|
15565
15422
|
*/
|
|
15566
15423
|
drawPDF() {
|
|
15567
15424
|
const promise = createPromise();
|
|
@@ -15579,64 +15436,8 @@ class TreeListComponent {
|
|
|
15579
15436
|
* so that the whole text fits without wrapping. This method expects the TreeList
|
|
15580
15437
|
* to be resizable (set `resizable` to `true`).
|
|
15581
15438
|
* Makes sense to execute this method only
|
|
15582
|
-
* after the TreeList is already populated with data.
|
|
15439
|
+
* after the TreeList is already populated with data. [See example](slug:resizing_columns_treelist#toc-auto-fitting-the-content).
|
|
15583
15440
|
*
|
|
15584
|
-
* @example
|
|
15585
|
-
* ```ts
|
|
15586
|
-
* _@Component({
|
|
15587
|
-
* selector: 'my-app',
|
|
15588
|
-
* template: `
|
|
15589
|
-
* <kendo-treelist
|
|
15590
|
-
* #treelist
|
|
15591
|
-
* [data]="treelistData"
|
|
15592
|
-
* [resizable]="true"
|
|
15593
|
-
* style="height: 300px">
|
|
15594
|
-
* <ng-template kendoTreeListToolbarTemplate>
|
|
15595
|
-
* <button kendoButton (click)="treelist.autoFitColumn(groupColumn)">
|
|
15596
|
-
* Auto-fit the group column
|
|
15597
|
-
* </button>
|
|
15598
|
-
* </ng-template>
|
|
15599
|
-
* <kendo-treelist-column-group #groupColumn title="Product Info">
|
|
15600
|
-
* <kendo-treelist-column
|
|
15601
|
-
* field="ProductID"
|
|
15602
|
-
* [width]="50"
|
|
15603
|
-
* [minResizableWidth]="30"
|
|
15604
|
-
* title="ID">
|
|
15605
|
-
* </kendo-treelist-column>
|
|
15606
|
-
*
|
|
15607
|
-
* <kendo-treelist-column
|
|
15608
|
-
* field="ProductName"
|
|
15609
|
-
* title="Product Name">
|
|
15610
|
-
* </kendo-treelist-column>
|
|
15611
|
-
* </kendo-treelist-column-group>
|
|
15612
|
-
*
|
|
15613
|
-
* <kendo-treelist-column
|
|
15614
|
-
* field="UnitPrice"
|
|
15615
|
-
* title="Unit Price"
|
|
15616
|
-
* [width]="180"
|
|
15617
|
-
* filter="numeric"
|
|
15618
|
-
* format="{0:c}">
|
|
15619
|
-
* </kendo-treelist-column>
|
|
15620
|
-
* </kendo-treelist>
|
|
15621
|
-
* `
|
|
15622
|
-
* })
|
|
15623
|
-
* class AppComponent {
|
|
15624
|
-
* public treelistData: any[] = products;
|
|
15625
|
-
* }
|
|
15626
|
-
*
|
|
15627
|
-
* const products = [{
|
|
15628
|
-
* "ProductID": 1,
|
|
15629
|
-
* "ProductName": "Chai",
|
|
15630
|
-
* "UnitPrice": 18.0000,
|
|
15631
|
-
* "Discontinued": true
|
|
15632
|
-
* }, {
|
|
15633
|
-
* "ProductID": 2,
|
|
15634
|
-
* "ProductName": "Chang",
|
|
15635
|
-
* "UnitPrice": 19.0000,
|
|
15636
|
-
* "Discontinued": false
|
|
15637
|
-
* }
|
|
15638
|
-
* ];
|
|
15639
|
-
* ```
|
|
15640
15441
|
*/
|
|
15641
15442
|
autoFitColumn(column) {
|
|
15642
15443
|
this.columnResizingService.autoFit(column);
|
|
@@ -15646,69 +15447,7 @@ class TreeListComponent {
|
|
|
15646
15447
|
* If no columns are specified, `autoFitColumns` is applied to all columns.
|
|
15647
15448
|
*
|
|
15648
15449
|
* This method requires the TreeList to be resizable (set `resizable` to `true`).
|
|
15649
|
-
*
|
|
15650
|
-
* @example
|
|
15651
|
-
* ```ts
|
|
15652
|
-
* _@Component({
|
|
15653
|
-
* selector: 'my-app',
|
|
15654
|
-
* template: `
|
|
15655
|
-
* <kendo-treelist
|
|
15656
|
-
* #treelist
|
|
15657
|
-
* [data]="treelistData"
|
|
15658
|
-
* [resizable]="true"
|
|
15659
|
-
* style="height: 300px">
|
|
15660
|
-
* <ng-template kendoTreeListToolbarTemplate>
|
|
15661
|
-
* <button kendoButton (click)="treelist.autoFitColumns([firstColumn, lastColumn])">
|
|
15662
|
-
* Auto-fit the first and last column
|
|
15663
|
-
* </button>
|
|
15664
|
-
* <button kendoButton (click)="treelist.autoFitColumns()">
|
|
15665
|
-
* Auto-fit all columns
|
|
15666
|
-
* </button>
|
|
15667
|
-
* </ng-template>
|
|
15668
|
-
* <kendo-treelist-column-group title="Product Info">
|
|
15669
|
-
* <kendo-treelist-column
|
|
15670
|
-
* #firstColumn
|
|
15671
|
-
* field="ProductID"
|
|
15672
|
-
* [width]="50"
|
|
15673
|
-
* [minResizableWidth]="30"
|
|
15674
|
-
* title="ID">
|
|
15675
|
-
* </kendo-treelist-column>
|
|
15676
|
-
*
|
|
15677
|
-
* <kendo-treelist-column
|
|
15678
|
-
* field="ProductName"
|
|
15679
|
-
* title="Product Name"
|
|
15680
|
-
* >
|
|
15681
|
-
* </kendo-treelist-column>
|
|
15682
|
-
* </kendo-treelist-column-group>
|
|
15683
|
-
*
|
|
15684
|
-
* <kendo-treelist-column
|
|
15685
|
-
* #lastColumn
|
|
15686
|
-
* field="UnitPrice"
|
|
15687
|
-
* title="Unit Price"
|
|
15688
|
-
* [width]="180"
|
|
15689
|
-
* filter="numeric"
|
|
15690
|
-
* format="{0:c}">
|
|
15691
|
-
* </kendo-treelist-column>
|
|
15692
|
-
* </kendo-treelist>
|
|
15693
|
-
* `
|
|
15694
|
-
* })
|
|
15695
|
-
* class AppComponent {
|
|
15696
|
-
* public treelistData: any[] = products;
|
|
15697
|
-
* }
|
|
15698
|
-
*
|
|
15699
|
-
* const products = [{
|
|
15700
|
-
* "ProductID": 1,
|
|
15701
|
-
* "ProductName": "Chai",
|
|
15702
|
-
* "UnitPrice": 18.0000,
|
|
15703
|
-
* "Discontinued": true
|
|
15704
|
-
* }, {
|
|
15705
|
-
* "ProductID": 2,
|
|
15706
|
-
* "ProductName": "Chang",
|
|
15707
|
-
* "UnitPrice": 19.0000,
|
|
15708
|
-
* "Discontinued": false
|
|
15709
|
-
* }
|
|
15710
|
-
* ];
|
|
15711
|
-
* ```
|
|
15450
|
+
* [See example](slug:resizing_columns_treelist#toc-auto-fitting-the-content).
|
|
15712
15451
|
*/
|
|
15713
15452
|
autoFitColumns(columns = this.columns) {
|
|
15714
15453
|
let cols;
|
|
@@ -15781,9 +15520,9 @@ class TreeListComponent {
|
|
|
15781
15520
|
/**
|
|
15782
15521
|
* Focuses the cell with the specified row and column index.
|
|
15783
15522
|
*
|
|
15784
|
-
* The row index is based on the logical structure of the TreeList and does not correspond to the data item index
|
|
15785
|
-
*
|
|
15786
|
-
*
|
|
15523
|
+
* The row index is based on the logical structure of the TreeList and does not correspond to the data item index.
|
|
15524
|
+
* The row indexing is absolute and does not change with paging.
|
|
15525
|
+
* Header rows are included, starting at index 0.
|
|
15787
15526
|
*
|
|
15788
15527
|
* If the TreeList is configured for scrolling, including virtual scrolling, the scroll position will be updated.
|
|
15789
15528
|
* If the row is not present on the current page, the method will have no effect.
|
|
@@ -15834,67 +15573,6 @@ class TreeListComponent {
|
|
|
15834
15573
|
* @param {number} destIndex - The new position of the column.
|
|
15835
15574
|
* @param {ColumnReorderConfig} options - Additional options.
|
|
15836
15575
|
*
|
|
15837
|
-
* @example
|
|
15838
|
-
* ```ts
|
|
15839
|
-
* _@Component({
|
|
15840
|
-
* selector: 'my-app',
|
|
15841
|
-
* template: `
|
|
15842
|
-
* <kendo-treelist
|
|
15843
|
-
* #treelist
|
|
15844
|
-
* [data]="treelistData"
|
|
15845
|
-
* [reorderable]="true"
|
|
15846
|
-
* style="height: 300px">
|
|
15847
|
-
* <ng-template kendoTreeListToolbarTemplate>
|
|
15848
|
-
* <button kendoButton
|
|
15849
|
-
* (click)="treelist.reorderColumn(groupColumn, 2, { before: true })">
|
|
15850
|
-
* Move the group column before the last one.
|
|
15851
|
-
* </button>
|
|
15852
|
-
* </ng-template>
|
|
15853
|
-
* <kendo-treelist-column-group #groupColumn title="Product Info">
|
|
15854
|
-
* <kendo-treelist-column
|
|
15855
|
-
* field="ProductID"
|
|
15856
|
-
* [width]="50"
|
|
15857
|
-
* title="ID">
|
|
15858
|
-
* </kendo-treelist-column>
|
|
15859
|
-
*
|
|
15860
|
-
* <kendo-treelist-column
|
|
15861
|
-
* field="ProductName"
|
|
15862
|
-
* title="Product Name">
|
|
15863
|
-
* </kendo-treelist-column>
|
|
15864
|
-
* </kendo-treelist-column-group>
|
|
15865
|
-
*
|
|
15866
|
-
* <kendo-treelist-column
|
|
15867
|
-
* field="UnitPrice"
|
|
15868
|
-
* title="Unit Price"
|
|
15869
|
-
* [width]="180"
|
|
15870
|
-
* format="{0:c}">
|
|
15871
|
-
* </kendo-treelist-column>
|
|
15872
|
-
*
|
|
15873
|
-
* <kendo-treelist-column
|
|
15874
|
-
* field="Discontinued"
|
|
15875
|
-
* title="Discontinued"
|
|
15876
|
-
* [width]="100">
|
|
15877
|
-
* </kendo-treelist-column>
|
|
15878
|
-
* </kendo-treelist>
|
|
15879
|
-
* `
|
|
15880
|
-
* })
|
|
15881
|
-
* class AppComponent {
|
|
15882
|
-
* public treelistData: any[] = products;
|
|
15883
|
-
* }
|
|
15884
|
-
*
|
|
15885
|
-
* const products = [{
|
|
15886
|
-
* "ProductID": 1,
|
|
15887
|
-
* "ProductName": "Chai",
|
|
15888
|
-
* "UnitPrice": 18.0000,
|
|
15889
|
-
* "Discontinued": true
|
|
15890
|
-
* }, {
|
|
15891
|
-
* "ProductID": 2,
|
|
15892
|
-
* "ProductName": "Chang",
|
|
15893
|
-
* "UnitPrice": 19.0000,
|
|
15894
|
-
* "Discontinued": false
|
|
15895
|
-
* }
|
|
15896
|
-
* ];
|
|
15897
|
-
* ```
|
|
15898
15576
|
*/
|
|
15899
15577
|
reorderColumn(source, destIndex, options = { before: false }) {
|
|
15900
15578
|
const columnsForLevel = sortColumns(this.allColumnsForLevel(source.level));
|
|
@@ -16710,14 +16388,14 @@ TreeListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
16710
16388
|
[virtualColumns]="virtualColumns"
|
|
16711
16389
|
[expandIcons]="expandIcons"
|
|
16712
16390
|
(scrollBottom)="notifyScrollBottom()"
|
|
16713
|
-
(contentScroll)="contentScroll.emit($event)"
|
|
16391
|
+
(contentScroll)="contentScroll.emit($event)"
|
|
16714
16392
|
kendoDraggable
|
|
16715
16393
|
kendoTreeListSelectionMarquee
|
|
16716
16394
|
[enableDrag]="marqueeSelection">
|
|
16717
16395
|
</kendo-treelist-list>
|
|
16718
16396
|
</ng-template>
|
|
16719
16397
|
<ng-template [ngIf]="!isScrollable">
|
|
16720
|
-
<table
|
|
16398
|
+
<table
|
|
16721
16399
|
class="k-table k-table-md k-grid-header-table"
|
|
16722
16400
|
[style.table-layout]="resizable ? 'fixed' : null">
|
|
16723
16401
|
<colgroup kendoTreeListColGroup
|
|
@@ -17120,14 +16798,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17120
16798
|
[virtualColumns]="virtualColumns"
|
|
17121
16799
|
[expandIcons]="expandIcons"
|
|
17122
16800
|
(scrollBottom)="notifyScrollBottom()"
|
|
17123
|
-
(contentScroll)="contentScroll.emit($event)"
|
|
16801
|
+
(contentScroll)="contentScroll.emit($event)"
|
|
17124
16802
|
kendoDraggable
|
|
17125
16803
|
kendoTreeListSelectionMarquee
|
|
17126
16804
|
[enableDrag]="marqueeSelection">
|
|
17127
16805
|
</kendo-treelist-list>
|
|
17128
16806
|
</ng-template>
|
|
17129
16807
|
<ng-template [ngIf]="!isScrollable">
|
|
17130
|
-
<table
|
|
16808
|
+
<table
|
|
17131
16809
|
class="k-table k-table-md k-grid-header-table"
|
|
17132
16810
|
[style.table-layout]="resizable ? 'fixed' : null">
|
|
17133
16811
|
<colgroup kendoTreeListColGroup
|
|
@@ -17368,7 +17046,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17368
17046
|
|
|
17369
17047
|
/**
|
|
17370
17048
|
* Custom component messages override default component messages
|
|
17371
|
-
* ([see example](
|
|
17049
|
+
* ([see example](slug:globalization_treelist#toc-custom-messages)).
|
|
17372
17050
|
*/
|
|
17373
17051
|
class CustomMessagesComponent extends Messages {
|
|
17374
17052
|
constructor(service) {
|
|
@@ -17484,7 +17162,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17484
17162
|
}] } });
|
|
17485
17163
|
|
|
17486
17164
|
/**
|
|
17487
|
-
* Represents the checkbox for selecting rows in the TreeList.
|
|
17165
|
+
* Represents the checkbox for selecting rows in the TreeList. [See example](slug:selection_treelist#toc-select-all-checkbox).
|
|
17488
17166
|
*/
|
|
17489
17167
|
class CheckboxColumnComponent extends ColumnBase {
|
|
17490
17168
|
constructor(parent) {
|
|
@@ -17650,10 +17328,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17650
17328
|
|
|
17651
17329
|
/**
|
|
17652
17330
|
* Represents the `Contains` (**Contains**) filter operator.
|
|
17653
|
-
*
|
|
17654
|
-
* For more information and examples, refer to:
|
|
17655
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17656
|
-
* * [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).
|
|
17657
17332
|
*/
|
|
17658
17333
|
class ContainsFilterOperatorComponent extends FilterOperatorBase {
|
|
17659
17334
|
constructor(localization) { super("contains", localization); }
|
|
@@ -17681,10 +17356,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17681
17356
|
|
|
17682
17357
|
/**
|
|
17683
17358
|
* Represents the `DoesNotContain` (**Does not contain**) filter operator.
|
|
17684
|
-
*
|
|
17685
|
-
* For more information and examples, refer to:
|
|
17686
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17687
|
-
* * [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).
|
|
17688
17360
|
*/
|
|
17689
17361
|
class DoesNotContainFilterOperatorComponent extends FilterOperatorBase {
|
|
17690
17362
|
constructor(localization) { super("doesnotcontain", localization); }
|
|
@@ -17712,10 +17384,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17712
17384
|
|
|
17713
17385
|
/**
|
|
17714
17386
|
* Represents the `EndsWith` (**Ends with**) string filter operator.
|
|
17715
|
-
*
|
|
17716
|
-
* For more information and examples, refer to:
|
|
17717
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17718
|
-
* * [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).
|
|
17719
17388
|
*/
|
|
17720
17389
|
class EndsWithFilterOperatorComponent extends FilterOperatorBase {
|
|
17721
17390
|
constructor(localization) { super("endswith", localization); }
|
|
@@ -17743,10 +17412,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17743
17412
|
|
|
17744
17413
|
/**
|
|
17745
17414
|
* Represents the `Equal` (**Is equal to**) filter operator.
|
|
17746
|
-
*
|
|
17747
|
-
* For more information and examples, refer to:
|
|
17748
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17749
|
-
* * [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).
|
|
17750
17416
|
*/
|
|
17751
17417
|
class EqualFilterOperatorComponent extends FilterOperatorBase {
|
|
17752
17418
|
constructor(localization) { super("eq", localization); }
|
|
@@ -17774,10 +17440,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17774
17440
|
|
|
17775
17441
|
/**
|
|
17776
17442
|
* Represents the `IsEmpty` (**Is empty**) filter operator.
|
|
17777
|
-
*
|
|
17778
|
-
* For more information and examples, refer to:
|
|
17779
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17780
|
-
* * [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).
|
|
17781
17444
|
*/
|
|
17782
17445
|
class IsEmptyFilterOperatorComponent extends FilterOperatorBase {
|
|
17783
17446
|
constructor(localization) { super("isempty", localization); }
|
|
@@ -17805,10 +17468,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17805
17468
|
|
|
17806
17469
|
/**
|
|
17807
17470
|
* Represents the `IsNotEmpty` (**Is not empty**) filter operator.
|
|
17808
|
-
*
|
|
17809
|
-
* For more information and examples, refer to:
|
|
17810
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17811
|
-
* * [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).
|
|
17812
17472
|
*/
|
|
17813
17473
|
class IsNotEmptyFilterOperatorComponent extends FilterOperatorBase {
|
|
17814
17474
|
constructor(localization) { super("isnotempty", localization); }
|
|
@@ -17836,10 +17496,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17836
17496
|
|
|
17837
17497
|
/**
|
|
17838
17498
|
* Represents the `IsNotNull` (**Is not null**) filter operator.
|
|
17839
|
-
*
|
|
17840
|
-
* For more information and examples, refer to:
|
|
17841
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17842
|
-
* * [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).
|
|
17843
17500
|
*/
|
|
17844
17501
|
class IsNotNullFilterOperatorComponent extends FilterOperatorBase {
|
|
17845
17502
|
constructor(localization) { super("isnotnull", localization); }
|
|
@@ -17867,10 +17524,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17867
17524
|
|
|
17868
17525
|
/**
|
|
17869
17526
|
* Represents the `IsNull` (**Is null**) filter operator.
|
|
17870
|
-
*
|
|
17871
|
-
* For more information and examples, refer to:
|
|
17872
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17873
|
-
* * [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).
|
|
17874
17528
|
*/
|
|
17875
17529
|
class IsNullFilterOperatorComponent extends FilterOperatorBase {
|
|
17876
17530
|
constructor(localization) { super("isnull", localization); }
|
|
@@ -17898,10 +17552,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17898
17552
|
|
|
17899
17553
|
/**
|
|
17900
17554
|
* Represents the `NotEqual` (**Is not equal to**) filter operator.
|
|
17901
|
-
*
|
|
17902
|
-
* For more information and examples, refer to:
|
|
17903
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17904
|
-
* * [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).
|
|
17905
17556
|
*/
|
|
17906
17557
|
class NotEqualFilterOperatorComponent extends FilterOperatorBase {
|
|
17907
17558
|
constructor(localization) { super("neq", localization); }
|
|
@@ -17929,10 +17580,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17929
17580
|
|
|
17930
17581
|
/**
|
|
17931
17582
|
* Represents the `StartsWith` (**Starts with**) filter operator.
|
|
17932
|
-
*
|
|
17933
|
-
* For more information and examples, refer to:
|
|
17934
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17935
|
-
* * [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).
|
|
17936
17584
|
*/
|
|
17937
17585
|
class StartsWithFilterOperatorComponent extends FilterOperatorBase {
|
|
17938
17586
|
constructor(localization) { super("startswith", localization); }
|
|
@@ -17960,10 +17608,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17960
17608
|
|
|
17961
17609
|
/*
|
|
17962
17610
|
* Represents the `Greater` (**Is greater than**) numeric filter operator.
|
|
17963
|
-
*
|
|
17964
|
-
* For more information and examples, refer to:
|
|
17965
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17966
|
-
* * [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).
|
|
17967
17612
|
*/
|
|
17968
17613
|
class GreaterFilterOperatorComponent extends FilterOperatorBase {
|
|
17969
17614
|
constructor(localization) { super("gt", localization); }
|
|
@@ -17991,10 +17636,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
17991
17636
|
|
|
17992
17637
|
/**
|
|
17993
17638
|
* Represents the `GreaterOrEqualTo` (**Is greater than or equal to**) numeric filter operator.
|
|
17994
|
-
*
|
|
17995
|
-
* For more information and examples, refer to:
|
|
17996
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
17997
|
-
* * [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).
|
|
17998
17640
|
*/
|
|
17999
17641
|
class GreaterOrEqualToFilterOperatorComponent extends FilterOperatorBase {
|
|
18000
17642
|
constructor(localization) { super("gte", localization); }
|
|
@@ -18020,12 +17662,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
18020
17662
|
}]
|
|
18021
17663
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
|
|
18022
17664
|
|
|
18023
|
-
|
|
17665
|
+
/**
|
|
18024
17666
|
* Represents the `Less` (**Is less than**) numeric filter operator.
|
|
18025
|
-
*
|
|
18026
|
-
* For more information and examples, refer to:
|
|
18027
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
18028
|
-
* * [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).
|
|
18029
17668
|
*/
|
|
18030
17669
|
class LessFilterOperatorComponent extends FilterOperatorBase {
|
|
18031
17670
|
constructor(localization) { super("lt", localization); }
|
|
@@ -18053,10 +17692,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
18053
17692
|
|
|
18054
17693
|
/*
|
|
18055
17694
|
* Represents the `LessOrEqualTo` (**Is less than or equal to**) numeric filter operator.
|
|
18056
|
-
*
|
|
18057
|
-
* For more information and examples, refer to:
|
|
18058
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
18059
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17695
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
18060
17696
|
*/
|
|
18061
17697
|
class LessOrEqualToFilterOperatorComponent extends FilterOperatorBase {
|
|
18062
17698
|
constructor(localization) { super("lte", localization); }
|
|
@@ -18082,12 +17718,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
18082
17718
|
}]
|
|
18083
17719
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
|
|
18084
17720
|
|
|
18085
|
-
|
|
17721
|
+
/**
|
|
18086
17722
|
* Represents the `Greater` (**Is after**) date filter operator.
|
|
18087
|
-
*
|
|
18088
|
-
* For more information and examples, refer to:
|
|
18089
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
18090
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17723
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
18091
17724
|
*/
|
|
18092
17725
|
class AfterFilterOperatorComponent extends FilterOperatorBase {
|
|
18093
17726
|
constructor(localization) { super("after", localization); }
|
|
@@ -18122,12 +17755,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
18122
17755
|
}]
|
|
18123
17756
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
|
|
18124
17757
|
|
|
18125
|
-
|
|
17758
|
+
/**
|
|
18126
17759
|
* Represents the `GreaterOrEqualTo` (**Is after or equal to**) date filter operator.
|
|
18127
|
-
*
|
|
18128
|
-
* For more information and examples, refer to:
|
|
18129
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
18130
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17760
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
18131
17761
|
*/
|
|
18132
17762
|
class AfterEqFilterOperatorComponent extends FilterOperatorBase {
|
|
18133
17763
|
constructor(localization) { super("after-eq", localization); }
|
|
@@ -18162,12 +17792,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
18162
17792
|
}]
|
|
18163
17793
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
|
|
18164
17794
|
|
|
18165
|
-
|
|
17795
|
+
/**
|
|
18166
17796
|
* Represents the `LessOrEqualTo` (**Is before or equal to**) date filter operator.
|
|
18167
|
-
*
|
|
18168
|
-
* For more information and examples, refer to:
|
|
18169
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
18170
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17797
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
18171
17798
|
*/
|
|
18172
17799
|
class BeforeEqFilterOperatorComponent extends FilterOperatorBase {
|
|
18173
17800
|
constructor(localization) { super("before-eq", localization); }
|
|
@@ -18202,12 +17829,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
18202
17829
|
}]
|
|
18203
17830
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
|
|
18204
17831
|
|
|
18205
|
-
|
|
18206
|
-
* Represents the `Less
|
|
18207
|
-
*
|
|
18208
|
-
* For more information and examples, refer to:
|
|
18209
|
-
* * [Setting the default filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-default-filter-operator)
|
|
18210
|
-
* * [Setting the order of the filter operators]({% slug builtinfiltertemplate_treelist %}#toc-setting-the-order-of-the-filter-operators)
|
|
17832
|
+
/**
|
|
17833
|
+
* Represents the `Less than` (**Is before**) date filter operator.
|
|
17834
|
+
* [See example](slug:builtinfiltertemplate_treelist#toc-setting-the-order-of-the-filter-operators).
|
|
18211
17835
|
*/
|
|
18212
17836
|
class BeforeFilterOperatorComponent extends FilterOperatorBase {
|
|
18213
17837
|
constructor(localization) { super("before", localization); }
|
|
@@ -18597,12 +18221,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
18597
18221
|
* Represents the component for selecting columns in the TreeList. To enable the user to show or hide columns,
|
|
18598
18222
|
* add the component inside a [`ToolbarTemplate`]({% slug api_treelist_toolbartemplatedirective %}) directive.
|
|
18599
18223
|
*
|
|
18600
|
-
*
|
|
18601
|
-
*
|
|
18602
|
-
*
|
|
18603
|
-
*
|
|
18604
|
-
*
|
|
18605
|
-
*
|
|
18224
|
+
* @example
|
|
18225
|
+
* ```html
|
|
18226
|
+
* <kendo-treelist ...>
|
|
18227
|
+
* <ng-template kendoTreeListToolbarTemplate>
|
|
18228
|
+
* <kendo-treelist-column-chooser> </kendo-treelist-column-chooser>
|
|
18229
|
+
* </ng-template>
|
|
18230
|
+
* </kendo-treelist>
|
|
18231
|
+
* ```
|
|
18606
18232
|
*/
|
|
18607
18233
|
class ColumnChooserComponent {
|
|
18608
18234
|
constructor(localization, columnInfoService, popupService, ngZone, renderer, changeDetector) {
|
|
@@ -18614,10 +18240,12 @@ class ColumnChooserComponent {
|
|
|
18614
18240
|
this.changeDetector = changeDetector;
|
|
18615
18241
|
/**
|
|
18616
18242
|
* Specifies if the changes in the visibility of the column will be immediately applied.
|
|
18243
|
+
* @default false
|
|
18617
18244
|
*/
|
|
18618
18245
|
this.autoSync = false;
|
|
18619
18246
|
/**
|
|
18620
18247
|
* Specifies if all columns can be hidden.
|
|
18248
|
+
* @default true
|
|
18621
18249
|
*/
|
|
18622
18250
|
this.allowHideAll = true;
|
|
18623
18251
|
this.columnsIcon = columnsIcon;
|
|
@@ -18848,30 +18476,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
18848
18476
|
|
|
18849
18477
|
/**
|
|
18850
18478
|
* Represents the command columns of the TreeList. You have to define the content of the
|
|
18851
|
-
* column inside an `<ng-template>` tag.
|
|
18852
|
-
* data item. For more information and examples on using the passed fields
|
|
18479
|
+
* column inside an `<ng-template>` tag. For more information and examples on using the passed fields
|
|
18853
18480
|
* and the command directives, refer to the article on
|
|
18854
18481
|
* [editing the TreeList in Angular Reactive Forms]({% slug editing_reactive_forms_treelist %}).
|
|
18855
18482
|
*
|
|
18856
|
-
* The following additional fields are passed:
|
|
18857
|
-
* - `columnIndex`—The current column index.
|
|
18858
|
-
* - `rowIndex`—The current data row index. If inside a new item row, `rowIndex`is `-1`.
|
|
18859
|
-
* - `dataItem`—The current data item.
|
|
18860
|
-
* - `column`—The current column instance.
|
|
18861
|
-
* - `isNew`—The state of the current item.
|
|
18862
|
-
*
|
|
18863
18483
|
* Usually, the template contains CRUD command directives such as:
|
|
18864
18484
|
* - [`EditCommandDirective`]({% slug api_treelist_editcommanddirective %})
|
|
18865
18485
|
* - [`RemoveCommandDirective`]({% slug api_treelist_removecommanddirective %})
|
|
18866
18486
|
* - [`CancelCommandDirective`]({% slug api_treelist_cancelcommanddirective %})
|
|
18867
18487
|
* - [`SaveCommandDirective`]({% slug api_treelist_savecommanddirective %})
|
|
18868
18488
|
*
|
|
18869
|
-
*
|
|
18870
|
-
*
|
|
18871
|
-
*
|
|
18872
|
-
*
|
|
18873
|
-
*
|
|
18874
|
-
*
|
|
18489
|
+
* @example
|
|
18490
|
+
* ```html
|
|
18491
|
+
* <kendo-treelist ...>
|
|
18492
|
+
* <kendo-treelist-column field="ProductID"></kendo-treelist-column>
|
|
18493
|
+
* <kendo-treelist-command-column title="command" >
|
|
18494
|
+
* <ng-template kendoTreeListCellTemplate>
|
|
18495
|
+
* <button kendoTreeListEditCommand class="k-primary">Edit</button>
|
|
18496
|
+
* <button kendoTreeListRemoveCommand>Remove</button>
|
|
18497
|
+
* </ng-template>
|
|
18498
|
+
* </kendo-treelist-command-column>
|
|
18499
|
+
* </kendo-treelist>
|
|
18500
|
+
* ```
|
|
18875
18501
|
*/
|
|
18876
18502
|
class CommandColumnComponent extends ColumnBase {
|
|
18877
18503
|
constructor(parent, optionChanges) {
|
|
@@ -18997,7 +18623,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
18997
18623
|
*
|
|
18998
18624
|
* @example
|
|
18999
18625
|
* ```html
|
|
19000
|
-
* <kendo-treelist
|
|
18626
|
+
* <kendo-treelist ...>
|
|
19001
18627
|
* <kendo-treelist-command-column title="command">
|
|
19002
18628
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
19003
18629
|
* <button [kendoTreeListEditCommand]="cellContext">Edit</button>
|
|
@@ -19069,7 +18695,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
19069
18695
|
*
|
|
19070
18696
|
* @example
|
|
19071
18697
|
* ```html
|
|
19072
|
-
* <kendo-treelist
|
|
18698
|
+
* <kendo-treelist ...>
|
|
19073
18699
|
* <kendo-treelist-command-column title="command">
|
|
19074
18700
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
19075
18701
|
* <button [kendoTreeListCancelCommand]="cellContext">Cancel changes</button>
|
|
@@ -19141,7 +18767,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
19141
18767
|
*
|
|
19142
18768
|
* @example
|
|
19143
18769
|
* ```html
|
|
19144
|
-
* <kendo-treelist
|
|
18770
|
+
* <kendo-treelist ...>
|
|
19145
18771
|
* <kendo-treelist-command-column title="command">
|
|
19146
18772
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
19147
18773
|
* <button [kendoTreeListSaveCommand]="cellContext">Save changes</button>
|
|
@@ -19212,7 +18838,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
19212
18838
|
*
|
|
19213
18839
|
* @example
|
|
19214
18840
|
* ```html
|
|
19215
|
-
* <kendo-treelist
|
|
18841
|
+
* <kendo-treelist ...>
|
|
19216
18842
|
* <kendo-treelist-command-column title="command">
|
|
19217
18843
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
19218
18844
|
* <button [kendoTreeListRemoveCommand]="cellContext">Remove row</button>
|
|
@@ -19286,7 +18912,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
19286
18912
|
*
|
|
19287
18913
|
* @example
|
|
19288
18914
|
* ```html
|
|
19289
|
-
* <kendo-treelist
|
|
18915
|
+
* <kendo-treelist ...>
|
|
19290
18916
|
* <kendo-treelist-command-column title="command">
|
|
19291
18917
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
19292
18918
|
* <button [kendoTreeListAddCommand]="cellContext" class="k-primary">Edit</button>
|
|
@@ -20626,7 +20252,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
20626
20252
|
* Represents the Kendo UI TreeListSpacer component for Angular.
|
|
20627
20253
|
* Used to give additional white space between the Pager inner elements,
|
|
20628
20254
|
* and provides a way for customizing the spacer width.
|
|
20629
|
-
* It can also be used in any flex container within the TreeList.
|
|
20255
|
+
* It can also be used in any flex container within the TreeList. [See example](slug:toolbartemplate_treelist#toc-define-spacing-between-the-toolbar-elements).
|
|
20630
20256
|
*/
|
|
20631
20257
|
class TreeListSpacerComponent {
|
|
20632
20258
|
constructor() {
|
|
@@ -20793,6 +20419,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
20793
20419
|
}]
|
|
20794
20420
|
}] });
|
|
20795
20421
|
|
|
20422
|
+
/**
|
|
20423
|
+
* Represents the Kendo UI PDFMargin component for Angular.
|
|
20424
|
+
* The supported units are:
|
|
20425
|
+
* `"mm"`
|
|
20426
|
+
* `"cm"`
|
|
20427
|
+
* `"in"`
|
|
20428
|
+
* `"pt"` (default).
|
|
20429
|
+
* Numbers are considered to be points (`"pt"`).
|
|
20430
|
+
*/
|
|
20796
20431
|
class PDFMarginComponent extends PDFExportMarginComponent {
|
|
20797
20432
|
}
|
|
20798
20433
|
PDFMarginComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PDFMarginComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -21222,7 +20857,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
21222
20857
|
*
|
|
21223
20858
|
* @example
|
|
21224
20859
|
* ```html
|
|
21225
|
-
* <kendo-treelist
|
|
20860
|
+
* <kendo-treelist ...>
|
|
21226
20861
|
* <ng-template kendoTreeListToolbarTemplate>
|
|
21227
20862
|
* <button kendoTreeListPDFCommand>Export to PDF</button>
|
|
21228
20863
|
* </ng-template>
|
|
@@ -21563,7 +21198,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
21563
21198
|
*
|
|
21564
21199
|
* @example
|
|
21565
21200
|
* ```html
|
|
21566
|
-
* <kendo-treelist
|
|
21201
|
+
* <kendo-treelist ...>
|
|
21567
21202
|
* <ng-template kendoTreeListToolbarTemplate>
|
|
21568
21203
|
* <button kendoTreeListExcelCommand>Export to PDF</button>
|
|
21569
21204
|
* </ng-template>
|