@progress/kendo-angular-grid 12.2.0-develop.7 → 13.0.0-develop.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/column-menu/column-chooser.component.d.ts +4 -4
- package/column-menu/column-menu-autosize-all.component.d.ts +2 -4
- package/column-menu/column-menu-autosize.component.d.ts +1 -3
- package/column-menu/column-menu-chooser.component.d.ts +3 -3
- package/column-menu/column-menu-filter.component.d.ts +3 -3
- package/column-menu/column-menu-lock.component.d.ts +3 -3
- package/column-menu/column-menu-position.component.d.ts +4 -4
- package/column-menu/column-menu-settings.interface.d.ts +5 -0
- package/column-menu/column-menu-sort.component.d.ts +6 -3
- package/column-menu/column-menu-stick.component.d.ts +3 -3
- package/column-menu/column-menu.component.d.ts +39 -5
- package/column-menu/column-menu.module.d.ts +2 -1
- package/column-resizing/column-handle.directive.d.ts +3 -3
- package/common/provider.service.d.ts +3 -1
- package/common/single-popup.service.d.ts +3 -3
- package/editing/add-command.directive.d.ts +2 -2
- package/editing/cancel-command.directive.d.ts +2 -2
- package/editing/edit-command.directive.d.ts +2 -2
- package/editing/remove-command.directive.d.ts +2 -2
- package/editing/save-command.directive.d.ts +2 -2
- package/esm2020/column-menu/column-chooser.component.mjs +17 -17
- package/esm2020/column-menu/column-list.component.mjs +3 -3
- package/esm2020/column-menu/column-menu-autosize-all.component.mjs +15 -18
- package/esm2020/column-menu/column-menu-autosize.component.mjs +9 -12
- package/esm2020/column-menu/column-menu-chooser.component.mjs +13 -13
- package/esm2020/column-menu/column-menu-filter.component.mjs +9 -9
- package/esm2020/column-menu/column-menu-item.component.mjs +1 -1
- package/esm2020/column-menu/column-menu-lock.component.mjs +7 -7
- package/esm2020/column-menu/column-menu-position.component.mjs +9 -9
- package/esm2020/column-menu/column-menu-sort.component.mjs +13 -10
- package/esm2020/column-menu/column-menu-stick.component.mjs +7 -7
- package/esm2020/column-menu/column-menu.component.mjs +257 -17
- package/esm2020/column-menu/column-menu.module.mjs +4 -3
- package/esm2020/column-resizing/column-handle.directive.mjs +7 -7
- package/esm2020/common/provider.service.mjs +6 -3
- package/esm2020/common/single-popup.service.mjs +8 -8
- package/esm2020/editing/add-command.directive.mjs +7 -7
- package/esm2020/editing/cancel-command.directive.mjs +7 -7
- package/esm2020/editing/edit-command.directive.mjs +7 -7
- package/esm2020/editing/remove-command.directive.mjs +7 -7
- package/esm2020/editing/save-command.directive.mjs +7 -7
- package/esm2020/excel/excel-command.directive.mjs +7 -7
- package/esm2020/excel/excel.component.mjs +7 -7
- package/esm2020/filtering/boolean-filter.component.mjs +13 -13
- package/esm2020/filtering/cell/autocomplete-filter-cell.component.mjs +7 -7
- package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +7 -7
- package/esm2020/filtering/cell/date-filter-cell.component.mjs +9 -9
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +7 -7
- package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +10 -10
- package/esm2020/filtering/cell/string-filter-cell.component.mjs +7 -7
- package/esm2020/filtering/date-filter.component.mjs +9 -9
- package/esm2020/filtering/filter-row.component.mjs +7 -7
- package/esm2020/filtering/menu/boolean-filter-menu.component.mjs +10 -8
- package/esm2020/filtering/menu/date-filter-menu-input.component.mjs +8 -8
- package/esm2020/filtering/menu/date-filter-menu.component.mjs +9 -9
- package/esm2020/filtering/menu/filter-menu-container.component.mjs +20 -20
- package/esm2020/filtering/menu/filter-menu-input-wrapper.component.mjs +10 -8
- package/esm2020/filtering/menu/filter-menu.component.mjs +8 -8
- package/esm2020/filtering/menu/menu-tabbing.service.mjs +1 -0
- package/esm2020/filtering/menu/numeric-filter-menu-input.component.mjs +8 -8
- package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +9 -9
- package/esm2020/filtering/menu/string-filter-menu-input.component.mjs +7 -7
- package/esm2020/filtering/menu/string-filter-menu.component.mjs +9 -9
- package/esm2020/filtering/numeric-filter.component.mjs +9 -9
- package/esm2020/filtering/operators/after-eq-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/after-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/before-eq-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/before-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/contains-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/ends-with-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/eq-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/filter-operator.base.mjs +9 -9
- package/esm2020/filtering/operators/gt-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/gte-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/is-empty-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/is-not-empty-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/is-not-null-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/isnull-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/lt-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/lte-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/neq-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/not-contains-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/starts-with-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/string-filter.component.mjs +8 -8
- package/esm2020/grid.component.mjs +33 -15
- package/esm2020/grouping/group-header.component.mjs +32 -15
- package/esm2020/grouping/group-panel.component.mjs +10 -10
- package/esm2020/localization/messages.mjs +7 -1
- package/esm2020/navigation/navigation.service.mjs +8 -8
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-element.component.mjs +25 -8
- package/esm2020/pager/pager-info.component.mjs +6 -6
- package/esm2020/pager/pager-input.component.mjs +6 -6
- package/esm2020/pager/pager-next-buttons.component.mjs +14 -17
- package/esm2020/pager/pager-numeric-buttons.component.mjs +6 -6
- package/esm2020/pager/pager-page-sizes.component.mjs +7 -7
- package/esm2020/pager/pager-prev-buttons.component.mjs +14 -17
- package/esm2020/pager/pager.component.mjs +7 -7
- package/esm2020/pdf/pdf-command.directive.mjs +7 -7
- package/esm2020/rendering/cell.component.mjs +9 -9
- package/esm2020/rendering/common/loading.component.mjs +7 -7
- package/esm2020/rendering/header/header.component.mjs +27 -30
- package/esm2020/rendering/list.component.mjs +7 -7
- package/esm2020/rendering/table-body.component.mjs +12 -12
- package/excel/excel-command.directive.d.ts +2 -2
- package/excel/excel.component.d.ts +3 -3
- package/fesm2015/progress-kendo-angular-grid.mjs +858 -558
- package/fesm2020/progress-kendo-angular-grid.mjs +855 -558
- package/filtering/base-filter-cell.component.d.ts +1 -1
- package/filtering/boolean-filter.component.d.ts +3 -3
- package/filtering/cell/autocomplete-filter-cell.component.d.ts +3 -3
- package/filtering/cell/boolean-filter-cell.component.d.ts +2 -2
- package/filtering/cell/date-filter-cell.component.d.ts +3 -3
- package/filtering/cell/filter-cell-operators.component.d.ts +3 -3
- package/filtering/cell/numeric-filter-cell.component.d.ts +4 -4
- package/filtering/cell/string-filter-cell.component.d.ts +2 -2
- package/filtering/date-filter.component.d.ts +3 -3
- package/filtering/filter-row.component.d.ts +3 -3
- package/filtering/menu/boolean-filter-menu.component.d.ts +2 -2
- package/filtering/menu/date-filter-menu-input.component.d.ts +3 -3
- package/filtering/menu/date-filter-menu.component.d.ts +2 -2
- package/filtering/menu/filter-menu-container.component.d.ts +3 -3
- package/filtering/menu/filter-menu-input-wrapper.component.d.ts +3 -3
- package/filtering/menu/filter-menu.component.d.ts +3 -3
- package/filtering/menu/menu-tabbing.service.d.ts +1 -0
- package/filtering/menu/numeric-filter-menu-input.component.d.ts +3 -3
- package/filtering/menu/numeric-filter-menu.component.d.ts +2 -2
- package/filtering/menu/string-filter-menu-input.component.d.ts +3 -3
- package/filtering/menu/string-filter-menu.component.d.ts +2 -2
- package/filtering/numeric-filter.component.d.ts +3 -3
- package/filtering/operators/after-eq-filter-operator.component.d.ts +2 -2
- package/filtering/operators/after-filter-operator.component.d.ts +2 -2
- package/filtering/operators/before-eq-filter-operator.component.d.ts +2 -2
- package/filtering/operators/before-filter-operator.component.d.ts +2 -2
- package/filtering/operators/contains-filter-operator.component.d.ts +2 -2
- package/filtering/operators/ends-with-filter-operator.component.d.ts +2 -2
- package/filtering/operators/eq-filter-operator.component.d.ts +2 -2
- package/filtering/operators/filter-operator.base.d.ts +3 -3
- package/filtering/operators/gt-filter-operator.component.d.ts +2 -2
- package/filtering/operators/gte-filter-operator.component.d.ts +2 -2
- package/filtering/operators/is-empty-filter-operator.component.d.ts +2 -2
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +2 -2
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +2 -2
- package/filtering/operators/isnull-filter-operator.component.d.ts +2 -2
- package/filtering/operators/lt-filter-operator.component.d.ts +2 -2
- package/filtering/operators/lte-filter-operator.component.d.ts +2 -2
- package/filtering/operators/neq-filter-operator.component.d.ts +2 -2
- package/filtering/operators/not-contains-filter-operator.component.d.ts +2 -2
- package/filtering/operators/starts-with-filter-operator.component.d.ts +2 -2
- package/filtering/string-filter.component.d.ts +3 -3
- package/grouping/group-header.component.d.ts +8 -5
- package/grouping/group-panel.component.d.ts +3 -3
- package/localization/messages.d.ts +13 -1
- package/navigation/navigation.service.d.ts +3 -3
- package/package.json +16 -15
- package/pager/pager-element.component.d.ts +12 -3
- package/pager/pager-info.component.d.ts +2 -2
- package/pager/pager-input.component.d.ts +2 -2
- package/pager/pager-next-buttons.component.d.ts +2 -5
- package/pager/pager-numeric-buttons.component.d.ts +2 -2
- package/pager/pager-page-sizes.component.d.ts +2 -2
- package/pager/pager-prev-buttons.component.d.ts +2 -5
- package/pager/pager.component.d.ts +3 -3
- package/pdf/pdf-command.directive.d.ts +2 -2
- package/rendering/cell.component.d.ts +3 -3
- package/rendering/common/loading.component.d.ts +3 -3
- package/rendering/header/header.component.d.ts +1 -3
- package/rendering/list.component.d.ts +3 -3
- package/rendering/table-body.component.d.ts +3 -3
- package/schematics/ngAdd/index.js +5 -3
- package/scrolling/scroll-request.service.d.ts +6 -0
|
@@ -2232,6 +2232,15 @@ GridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
2232
2232
|
|
|
2233
2233
|
i18n-dragRowHandleLabel="kendo.grid.dragRowHandleLabel|The label for the Grid drag row handle"
|
|
2234
2234
|
dragRowHandleLabel="Drag row"
|
|
2235
|
+
|
|
2236
|
+
i18n-columnMenuFilterTabTitle="kendo.grid.columnMenuFilterTabTitle|The title for the column menu Filter tab"
|
|
2237
|
+
columnMenuFilterTabTitle="Filter"
|
|
2238
|
+
|
|
2239
|
+
i18n-columnMenuGeneralTabTitle="kendo.grid.columnMenuGeneralTabTitle|The title for the column menu General tab"
|
|
2240
|
+
columnMenuGeneralTabTitle="General"
|
|
2241
|
+
|
|
2242
|
+
i18n-columnMenuColumnsTabTitle="kendo.grid.columnMenuColumnsTabTitle|The title for the column menu Columns tab"
|
|
2243
|
+
columnMenuColumnsTabTitle="Columns"
|
|
2235
2244
|
>
|
|
2236
2245
|
</ng-container>
|
|
2237
2246
|
<kendo-grid-toolbar
|
|
@@ -2368,13 +2377,13 @@ GridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
2368
2377
|
[dropTargetFilter]="getDefaultSelectors('dropTarget')"
|
|
2369
2378
|
[dragHandle]="getDefaultSelectors('handle')"
|
|
2370
2379
|
[hint]="{hintTemplate: defaultHint}"
|
|
2371
|
-
(
|
|
2372
|
-
(
|
|
2373
|
-
(
|
|
2374
|
-
(
|
|
2375
|
-
(
|
|
2376
|
-
(
|
|
2377
|
-
(
|
|
2380
|
+
(onPress)="handleReorderEvents($event, 'press')"
|
|
2381
|
+
(onDragStart)="handleReorderEvents($event, 'dragStart')"
|
|
2382
|
+
(onDrag)="handleReorderEvents($event, 'drag')"
|
|
2383
|
+
(onDragEnter)="handleReorderEvents($event, 'dragEnter')"
|
|
2384
|
+
(onDragLeave)="handleReorderEvents($event, 'dragLeave')"
|
|
2385
|
+
(onDragEnd)="handleReorderEvents($event, 'dragEnd')"
|
|
2386
|
+
(onDrop)="handleReorderEvents($event, 'drop')"
|
|
2378
2387
|
[dragData]="gridData"
|
|
2379
2388
|
[data]="$any(view)"
|
|
2380
2389
|
[rowHeight]="rowHeight"
|
|
@@ -2552,7 +2561,7 @@ GridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
|
|
|
2552
2561
|
</kendo-icon-wrapper>
|
|
2553
2562
|
{{hintText}}
|
|
2554
2563
|
</ng-template>
|
|
2555
|
-
`, isInline: true, components: [{ type: i25.ToolbarComponent, selector: "kendo-grid-toolbar", inputs: ["position", "size", "navigable"] }, { type: i26.PagerComponent, selector: "kendo-pager", inputs: ["total", "skip", "pageSize", "options", "size", "template"], outputs: ["pageChange"] }, { type: i27.GroupPanelComponent, selector: "kendo-grid-group-panel", inputs: ["text", "navigable", "groups"], outputs: ["change"] }, { type: i28.ColGroupComponent, selector: "[kendoGridColGroup]", inputs: ["columns", "groups", "detailTemplate", "sort"] }, { type: i29.HeaderComponent, selector: "[kendoGridHeader]", inputs: ["totalColumnLevels", "columns", "groups", "detailTemplate", "scrollable", "filterable", "sort", "filter", "sortable", "groupable", "lockedColumnsCount", "resizable", "reorderable", "columnMenu", "columnMenuTemplate", "totalColumnsCount", "tabIndex", "size"] }, { type: i30.ListComponent, selector: "kendo-grid-list", inputs: ["data", "groups", "total", "rowHeight", "stickyRowHeight", "detailRowHeight", "take", "skip", "columns", "detailTemplate", "noRecordsTemplate", "selectable", "groupable", "filterable", "rowClass", "rowSticky", "loading", "trackBy", "virtualColumns", "isVirtual", "cellLoadingTemplate", "loadingTemplate", "sort", "size"], outputs: ["contentScroll", "pageChange", "scrollBottom"] }, { type: i31.FooterComponent, selector: "[kendoGridFooter]", inputs: ["columns", "groups", "detailTemplate", "scrollable", "lockedColumnsCount", "logicalRowIndex"] }, { type: i32.TableBodyComponent, selector: "[kendoGridTableBody]", inputs: ["columns", "allColumns", "groups", "detailTemplate", "noRecordsTemplate", "data", "skip", "selectable", "filterable", "noRecordsText", "isLocked", "isLoading", "isVirtual", "cellLoadingTemplate", "skipGroupDecoration", "showGroupFooters", "lockedColumnsCount", "totalColumnsCount", "virtualColumns", "trackBy", "rowSticky", "rowClass"] }, { type: i33.LoadingComponent, selector: "[kendoGridLoading]", inputs: ["loadingTemplate"] }, { type: i34.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i35.LocalizedMessagesDirective, selector: "[kendoGridLocalizedMessages]" }, { type: i36.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i37.TableDirective, selector: "table", inputs: ["locked", "virtualColumns"] }, { type: i38.GridTableDirective, selector: "[kendoGridTable]", inputs: ["size"] }, { type: i39.ResizableContainerDirective, selector: "[kendoGridResizableContainer]", inputs: ["lockedWidth", "kendoGridResizableContainer"] }, { type: i40.DragTargetContainerDirective, selector: "[kendoDragTargetContainer]", inputs: ["hint", "dragTargetFilter", "dragHandle", "dragDelay", "threshold", "dragTargetId", "dragData", "dragDisabled", "mode"], outputs: ["
|
|
2564
|
+
`, isInline: true, components: [{ type: i25.ToolbarComponent, selector: "kendo-grid-toolbar", inputs: ["position", "size", "navigable"] }, { type: i26.PagerComponent, selector: "kendo-pager", inputs: ["total", "skip", "pageSize", "options", "size", "template"], outputs: ["pageChange"] }, { type: i27.GroupPanelComponent, selector: "kendo-grid-group-panel", inputs: ["text", "navigable", "groups"], outputs: ["change"] }, { type: i28.ColGroupComponent, selector: "[kendoGridColGroup]", inputs: ["columns", "groups", "detailTemplate", "sort"] }, { type: i29.HeaderComponent, selector: "[kendoGridHeader]", inputs: ["totalColumnLevels", "columns", "groups", "detailTemplate", "scrollable", "filterable", "sort", "filter", "sortable", "groupable", "lockedColumnsCount", "resizable", "reorderable", "columnMenu", "columnMenuTemplate", "totalColumnsCount", "tabIndex", "size"] }, { type: i30.ListComponent, selector: "kendo-grid-list", inputs: ["data", "groups", "total", "rowHeight", "stickyRowHeight", "detailRowHeight", "take", "skip", "columns", "detailTemplate", "noRecordsTemplate", "selectable", "groupable", "filterable", "rowClass", "rowSticky", "loading", "trackBy", "virtualColumns", "isVirtual", "cellLoadingTemplate", "loadingTemplate", "sort", "size"], outputs: ["contentScroll", "pageChange", "scrollBottom"] }, { type: i31.FooterComponent, selector: "[kendoGridFooter]", inputs: ["columns", "groups", "detailTemplate", "scrollable", "lockedColumnsCount", "logicalRowIndex"] }, { type: i32.TableBodyComponent, selector: "[kendoGridTableBody]", inputs: ["columns", "allColumns", "groups", "detailTemplate", "noRecordsTemplate", "data", "skip", "selectable", "filterable", "noRecordsText", "isLocked", "isLoading", "isVirtual", "cellLoadingTemplate", "skipGroupDecoration", "showGroupFooters", "lockedColumnsCount", "totalColumnsCount", "virtualColumns", "trackBy", "rowSticky", "rowClass"] }, { type: i33.LoadingComponent, selector: "[kendoGridLoading]", inputs: ["loadingTemplate"] }, { type: i34.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i35.LocalizedMessagesDirective, selector: "[kendoGridLocalizedMessages]" }, { type: i36.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i37.TableDirective, selector: "table", inputs: ["locked", "virtualColumns"] }, { type: i38.GridTableDirective, selector: "[kendoGridTable]", inputs: ["size"] }, { type: i39.ResizableContainerDirective, selector: "[kendoGridResizableContainer]", inputs: ["lockedWidth", "kendoGridResizableContainer"] }, { type: i40.DragTargetContainerDirective, selector: "[kendoDragTargetContainer]", inputs: ["hint", "dragTargetFilter", "dragHandle", "dragDelay", "threshold", "dragTargetId", "dragData", "dragDisabled", "mode"], outputs: ["onDragReady", "onPress", "onDragStart", "onDrag", "onRelease", "onDragEnd"], exportAs: ["kendoDragTargetContainer"] }, { type: i40.DropTargetContainerDirective, selector: "[kendoDropTargetContainer]", inputs: ["dropTargetFilter", "dropDisabled"], outputs: ["onDragEnter", "onDragOver", "onDragLeave", "onDrop"], exportAs: ["kendoDropTargetContainer"] }, { type: i41.DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { type: i42.GridMarqueeDirective, selector: "[kendoGridSelectionMarquee]" }], encapsulation: i0.ViewEncapsulation.None });
|
|
2556
2565
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GridComponent, decorators: [{
|
|
2557
2566
|
type: Component,
|
|
2558
2567
|
args: [{
|
|
@@ -2832,6 +2841,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2832
2841
|
|
|
2833
2842
|
i18n-dragRowHandleLabel="kendo.grid.dragRowHandleLabel|The label for the Grid drag row handle"
|
|
2834
2843
|
dragRowHandleLabel="Drag row"
|
|
2844
|
+
|
|
2845
|
+
i18n-columnMenuFilterTabTitle="kendo.grid.columnMenuFilterTabTitle|The title for the column menu Filter tab"
|
|
2846
|
+
columnMenuFilterTabTitle="Filter"
|
|
2847
|
+
|
|
2848
|
+
i18n-columnMenuGeneralTabTitle="kendo.grid.columnMenuGeneralTabTitle|The title for the column menu General tab"
|
|
2849
|
+
columnMenuGeneralTabTitle="General"
|
|
2850
|
+
|
|
2851
|
+
i18n-columnMenuColumnsTabTitle="kendo.grid.columnMenuColumnsTabTitle|The title for the column menu Columns tab"
|
|
2852
|
+
columnMenuColumnsTabTitle="Columns"
|
|
2835
2853
|
>
|
|
2836
2854
|
</ng-container>
|
|
2837
2855
|
<kendo-grid-toolbar
|
|
@@ -2968,13 +2986,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2968
2986
|
[dropTargetFilter]="getDefaultSelectors('dropTarget')"
|
|
2969
2987
|
[dragHandle]="getDefaultSelectors('handle')"
|
|
2970
2988
|
[hint]="{hintTemplate: defaultHint}"
|
|
2971
|
-
(
|
|
2972
|
-
(
|
|
2973
|
-
(
|
|
2974
|
-
(
|
|
2975
|
-
(
|
|
2976
|
-
(
|
|
2977
|
-
(
|
|
2989
|
+
(onPress)="handleReorderEvents($event, 'press')"
|
|
2990
|
+
(onDragStart)="handleReorderEvents($event, 'dragStart')"
|
|
2991
|
+
(onDrag)="handleReorderEvents($event, 'drag')"
|
|
2992
|
+
(onDragEnter)="handleReorderEvents($event, 'dragEnter')"
|
|
2993
|
+
(onDragLeave)="handleReorderEvents($event, 'dragLeave')"
|
|
2994
|
+
(onDragEnd)="handleReorderEvents($event, 'dragEnd')"
|
|
2995
|
+
(onDrop)="handleReorderEvents($event, 'drop')"
|
|
2978
2996
|
[dragData]="gridData"
|
|
2979
2997
|
[data]="$any(view)"
|
|
2980
2998
|
[rowHeight]="rowHeight"
|
|
@@ -7,12 +7,12 @@ import { GroupInfoService } from './group-info.service';
|
|
|
7
7
|
import { GroupsService } from './groups.service';
|
|
8
8
|
import { columnsSpan } from '../columns/column-common';
|
|
9
9
|
import { getGroupRowArgs } from './utils';
|
|
10
|
-
import {
|
|
11
|
-
import { caretAltDownIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
|
|
10
|
+
import { ContextService } from '../common/provider.service';
|
|
11
|
+
import { caretAltDownIcon, caretAltRightIcon, caretAltLeftIcon } from '@progress/kendo-svg-icons';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
import * as i1 from "./groups.service";
|
|
14
14
|
import * as i2 from "./group-info.service";
|
|
15
|
-
import * as i3 from "
|
|
15
|
+
import * as i3 from "../common/provider.service";
|
|
16
16
|
import * as i4 from "@progress/kendo-angular-icons";
|
|
17
17
|
import * as i5 from "@angular/common";
|
|
18
18
|
import * as i6 from "../navigation/logical-cell.directive";
|
|
@@ -22,19 +22,20 @@ import * as i8 from "../rendering/common/field-accessor.pipe";
|
|
|
22
22
|
* @hidden
|
|
23
23
|
*/
|
|
24
24
|
export class GroupHeaderComponent {
|
|
25
|
-
constructor(groupsService, groupInfoService,
|
|
25
|
+
constructor(groupsService, groupInfoService, ctx) {
|
|
26
26
|
this.groupsService = groupsService;
|
|
27
27
|
this.groupInfoService = groupInfoService;
|
|
28
|
-
this.
|
|
28
|
+
this.ctx = ctx;
|
|
29
29
|
this.skipGroupDecoration = false;
|
|
30
30
|
this.hasDetails = false;
|
|
31
31
|
this.totalColumnsCount = 0;
|
|
32
32
|
this.groups = [];
|
|
33
|
+
this.groupItemClass = true;
|
|
34
|
+
this.tableGroupRowClass = true;
|
|
33
35
|
this.isExpanded = false;
|
|
34
36
|
this.caretAltDownIcon = caretAltDownIcon;
|
|
35
37
|
this.caretAltRightIcon = caretAltRightIcon;
|
|
36
|
-
this.
|
|
37
|
-
this.tableGroupRowClass = true;
|
|
38
|
+
this.caretAltLeftIcon = caretAltLeftIcon;
|
|
38
39
|
}
|
|
39
40
|
ngDoCheck() {
|
|
40
41
|
const groupArgs = {
|
|
@@ -83,10 +84,26 @@ export class GroupHeaderComponent {
|
|
|
83
84
|
}
|
|
84
85
|
get groupButtonTitle() {
|
|
85
86
|
const messageKey = this.isExpanded ? 'groupCollapse' : 'groupExpand';
|
|
86
|
-
return this.localization.get(messageKey);
|
|
87
|
+
return this.ctx.localization.get(messageKey);
|
|
88
|
+
}
|
|
89
|
+
get arrowIcon() {
|
|
90
|
+
const icon = !this.isExpanded ?
|
|
91
|
+
!this.ctx.localization.rtl ?
|
|
92
|
+
'caret-alt-right' :
|
|
93
|
+
'caret-alt-left' :
|
|
94
|
+
'caret-alt-down';
|
|
95
|
+
return icon;
|
|
96
|
+
}
|
|
97
|
+
get arrowSVGIcon() {
|
|
98
|
+
const icon = !this.isExpanded ?
|
|
99
|
+
!this.ctx.localization.rtl ?
|
|
100
|
+
this.caretAltRightIcon :
|
|
101
|
+
this.caretAltLeftIcon :
|
|
102
|
+
this.caretAltDownIcon;
|
|
103
|
+
return icon;
|
|
87
104
|
}
|
|
88
105
|
}
|
|
89
|
-
GroupHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GroupHeaderComponent, deps: [{ token: i1.GroupsService }, { token: i2.GroupInfoService }, { token: i3.
|
|
106
|
+
GroupHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GroupHeaderComponent, deps: [{ token: i1.GroupsService }, { token: i2.GroupInfoService }, { token: i3.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
90
107
|
GroupHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GroupHeaderComponent, selector: "[kendoGridGroupHeader]", inputs: { rowIndex: "rowIndex", logicalRowIndex: "logicalRowIndex", item: "item", skipGroupDecoration: "skipGroupDecoration", hasDetails: "hasDetails", totalColumnsCount: "totalColumnsCount", hasGroupHeaderColumn: "hasGroupHeaderColumn", groupHeaderColumns: "groupHeaderColumns", columns: "columns", groups: "groups" }, host: { properties: { "class.k-grouping-row": "this.groupItemClass", "class.k-table-group-row": "this.tableGroupRowClass" } }, ngImport: i0, template: `
|
|
91
108
|
<ng-container *ngIf="!skipGroupDecoration">
|
|
92
109
|
<td class="k-group-cell k-table-td"
|
|
@@ -111,8 +128,8 @@ GroupHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
111
128
|
[attr.title]="groupButtonTitle"
|
|
112
129
|
[attr.aria-label]="groupButtonTitle">
|
|
113
130
|
<kendo-icon-wrapper
|
|
114
|
-
[name]="
|
|
115
|
-
[svgIcon]="
|
|
131
|
+
[name]="arrowIcon"
|
|
132
|
+
[svgIcon]="arrowSVGIcon"></kendo-icon-wrapper>
|
|
116
133
|
</a>
|
|
117
134
|
<ng-container *ngIf="!groupHeaderTemplate(item)">
|
|
118
135
|
{{groupTitle(item)}}: {{item.data | valueOf:"value": formatForGroup(item)}}
|
|
@@ -156,7 +173,7 @@ GroupHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
156
173
|
</ng-template>
|
|
157
174
|
</td>
|
|
158
175
|
</ng-container>
|
|
159
|
-
`, isInline: true, components: [{ type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.LogicalCellDirective, selector: "[kendoGridLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "colIndex", "colSpan", "rowSpan", "groupItem", "dataRowIndex", "dataItem", "detailExpandCell", "headerLabelText"] }, { type: i7.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "valueOf": i8.FieldAccessorPipe } });
|
|
176
|
+
`, isInline: true, components: [{ type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.LogicalCellDirective, selector: "[kendoGridLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "colIndex", "colSpan", "rowSpan", "groupItem", "dataRowIndex", "dataItem", "detailExpandCell", "headerLabelText"] }, { type: i7.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "valueOf": i8.FieldAccessorPipe } });
|
|
160
177
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GroupHeaderComponent, decorators: [{
|
|
161
178
|
type: Component,
|
|
162
179
|
args: [{
|
|
@@ -185,8 +202,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
185
202
|
[attr.title]="groupButtonTitle"
|
|
186
203
|
[attr.aria-label]="groupButtonTitle">
|
|
187
204
|
<kendo-icon-wrapper
|
|
188
|
-
[name]="
|
|
189
|
-
[svgIcon]="
|
|
205
|
+
[name]="arrowIcon"
|
|
206
|
+
[svgIcon]="arrowSVGIcon"></kendo-icon-wrapper>
|
|
190
207
|
</a>
|
|
191
208
|
<ng-container *ngIf="!groupHeaderTemplate(item)">
|
|
192
209
|
{{groupTitle(item)}}: {{item.data | valueOf:"value": formatForGroup(item)}}
|
|
@@ -232,7 +249,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
232
249
|
</ng-container>
|
|
233
250
|
`
|
|
234
251
|
}]
|
|
235
|
-
}], ctorParameters: function () { return [{ type: i1.GroupsService }, { type: i2.GroupInfoService }, { type: i3.
|
|
252
|
+
}], ctorParameters: function () { return [{ type: i1.GroupsService }, { type: i2.GroupInfoService }, { type: i3.ContextService }]; }, propDecorators: { rowIndex: [{
|
|
236
253
|
type: Input
|
|
237
254
|
}], logicalRowIndex: [{
|
|
238
255
|
type: Input
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ChangeDetectionStrategy, Component, EventEmitter, HostBinding, Input, Output, QueryList, ViewChildren, ChangeDetectorRef } from '@angular/core';
|
|
6
6
|
import { Subscription, from, merge } from "rxjs";
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
7
|
import { and, isNullOrEmptyString, observe, or } from '../utils';
|
|
9
8
|
import { GroupInfoService } from './group-info.service';
|
|
10
9
|
import { DropTargetDirective } from '../dragdrop/drop-target.directive';
|
|
@@ -13,11 +12,12 @@ import { DropCueService } from '../dragdrop/drop-cue.service';
|
|
|
13
12
|
import { position, isTargetBefore } from '../dragdrop/common';
|
|
14
13
|
import { tap, filter, switchMapTo, takeUntil } from 'rxjs/operators';
|
|
15
14
|
import { sortAscSmallIcon, sortDescSmallIcon } from '@progress/kendo-svg-icons';
|
|
15
|
+
import { ContextService } from '../common/provider.service';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
import * as i1 from "../dragdrop/drag-hint.service";
|
|
18
18
|
import * as i2 from "../dragdrop/drop-cue.service";
|
|
19
19
|
import * as i3 from "./group-info.service";
|
|
20
|
-
import * as i4 from "
|
|
20
|
+
import * as i4 from "../common/provider.service";
|
|
21
21
|
import * as i5 from "@progress/kendo-angular-buttons";
|
|
22
22
|
import * as i6 from "@angular/common";
|
|
23
23
|
import * as i7 from "../dragdrop/drop-target.directive";
|
|
@@ -35,11 +35,11 @@ const indicatorRules = or(overSameTarget, and(overLastTarget, isLastGroup));
|
|
|
35
35
|
* @hidden
|
|
36
36
|
*/
|
|
37
37
|
export class GroupPanelComponent {
|
|
38
|
-
constructor(hint, cue, groupInfoService,
|
|
38
|
+
constructor(hint, cue, groupInfoService, ctx, cd) {
|
|
39
39
|
this.hint = hint;
|
|
40
40
|
this.cue = cue;
|
|
41
41
|
this.groupInfoService = groupInfoService;
|
|
42
|
-
this.
|
|
42
|
+
this.ctx = ctx;
|
|
43
43
|
this.cd = cd;
|
|
44
44
|
this.change = new EventEmitter();
|
|
45
45
|
this.groups = [];
|
|
@@ -54,14 +54,14 @@ export class GroupPanelComponent {
|
|
|
54
54
|
this.emptyText = value;
|
|
55
55
|
}
|
|
56
56
|
get text() {
|
|
57
|
-
return this.emptyText ? this.emptyText : this.localization.get('groupPanelEmpty');
|
|
57
|
+
return this.emptyText ? this.emptyText : this.ctx.localization.get('groupPanelEmpty');
|
|
58
58
|
}
|
|
59
59
|
ngAfterViewInit() {
|
|
60
60
|
this.subscription.add(observe(this.dropTargets)
|
|
61
61
|
.subscribe(this.attachTargets.bind(this)));
|
|
62
62
|
}
|
|
63
63
|
ngOnInit() {
|
|
64
|
-
this.subscription.add(this.localization.changes.subscribe(() => this.cd.markForCheck()));
|
|
64
|
+
this.subscription.add(this.ctx.localization.changes.subscribe(() => this.cd.markForCheck()));
|
|
65
65
|
}
|
|
66
66
|
ngDoCheck() {
|
|
67
67
|
const currentTitles = this.groups.map(group => this.groupInfoService.groupTitle(group));
|
|
@@ -79,7 +79,7 @@ export class GroupPanelComponent {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
messageFor(token) {
|
|
82
|
-
return this.localization.get(token);
|
|
82
|
+
return this.ctx.localization.get(token);
|
|
83
83
|
}
|
|
84
84
|
getTitle(group) {
|
|
85
85
|
return this.messageFor(group.dir === 'desc' ? 'sortedDescending' : 'sortedAscending');
|
|
@@ -133,7 +133,7 @@ export class GroupPanelComponent {
|
|
|
133
133
|
enter({ draggable, target }) {
|
|
134
134
|
this.hint.enable();
|
|
135
135
|
let before = target.context.lastTarget || isTargetBefore(draggable.element.nativeElement, target.element.nativeElement);
|
|
136
|
-
if (this.localization.rtl) {
|
|
136
|
+
if (this.ctx.localization.rtl) {
|
|
137
137
|
before = !before;
|
|
138
138
|
}
|
|
139
139
|
this.cue.position(position(target.element.nativeElement, before));
|
|
@@ -148,7 +148,7 @@ export class GroupPanelComponent {
|
|
|
148
148
|
this.insert(field, index);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
GroupPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GroupPanelComponent, deps: [{ token: i1.DragHintService }, { token: i2.DropCueService }, { token: i3.GroupInfoService }, { token: i4.
|
|
151
|
+
GroupPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GroupPanelComponent, deps: [{ token: i1.DragHintService }, { token: i2.DropCueService }, { token: i3.GroupInfoService }, { token: i4.ContextService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
152
152
|
GroupPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: GroupPanelComponent, selector: "kendo-grid-group-panel", inputs: { text: "text", navigable: "navigable", groups: "groups" }, outputs: { change: "change" }, host: { properties: { "class.k-grouping-header": "this.groupHeaderClass" } }, viewQueries: [{ propertyName: "dropTargets", predicate: DropTargetDirective, descendants: true }], ngImport: i0, template: `
|
|
153
153
|
<div
|
|
154
154
|
*ngIf="groups.length === 0"
|
|
@@ -249,7 +249,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
249
249
|
> </div>
|
|
250
250
|
`
|
|
251
251
|
}]
|
|
252
|
-
}], ctorParameters: function () { return [{ type: i1.DragHintService }, { type: i2.DropCueService }, { type: i3.GroupInfoService }, { type: i4.
|
|
252
|
+
}], ctorParameters: function () { return [{ type: i1.DragHintService }, { type: i2.DropCueService }, { type: i3.GroupInfoService }, { type: i4.ContextService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { change: [{
|
|
253
253
|
type: Output
|
|
254
254
|
}], groupHeaderClass: [{
|
|
255
255
|
type: HostBinding,
|
|
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
export class GridMessages extends ComponentMessages {
|
|
12
12
|
}
|
|
13
13
|
GridMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GridMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
-
GridMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: GridMessages, selector: "kendo-grid-messages-base", inputs: { groupPanelEmpty: "groupPanelEmpty", noRecords: "noRecords", pagerLabel: "pagerLabel", pagerFirstPage: "pagerFirstPage", pagerLastPage: "pagerLastPage", pagerPreviousPage: "pagerPreviousPage", pagerNextPage: "pagerNextPage", pagerPage: "pagerPage", pagerItemsPerPage: "pagerItemsPerPage", pagerOf: "pagerOf", pagerItems: "pagerItems", pagerPageNumberInputTitle: "pagerPageNumberInputTitle", selectPage: "selectPage", filter: "filter", filterInputLabel: "filterInputLabel", filterMenuTitle: "filterMenuTitle", filterMenuOperatorsDropDownLabel: "filterMenuOperatorsDropDownLabel", filterMenuLogicDropDownLabel: "filterMenuLogicDropDownLabel", filterEqOperator: "filterEqOperator", filterNotEqOperator: "filterNotEqOperator", filterIsNullOperator: "filterIsNullOperator", filterIsNotNullOperator: "filterIsNotNullOperator", filterIsEmptyOperator: "filterIsEmptyOperator", filterIsNotEmptyOperator: "filterIsNotEmptyOperator", filterStartsWithOperator: "filterStartsWithOperator", filterContainsOperator: "filterContainsOperator", filterNotContainsOperator: "filterNotContainsOperator", filterEndsWithOperator: "filterEndsWithOperator", filterGteOperator: "filterGteOperator", filterGtOperator: "filterGtOperator", filterLteOperator: "filterLteOperator", filterLtOperator: "filterLtOperator", filterIsTrue: "filterIsTrue", filterIsFalse: "filterIsFalse", filterBooleanAll: "filterBooleanAll", filterAfterOrEqualOperator: "filterAfterOrEqualOperator", filterAfterOperator: "filterAfterOperator", filterBeforeOperator: "filterBeforeOperator", filterBeforeOrEqualOperator: "filterBeforeOrEqualOperator", filterFilterButton: "filterFilterButton", filterClearButton: "filterClearButton", filterAndLogic: "filterAndLogic", filterOrLogic: "filterOrLogic", loading: "loading", gridLabel: "gridLabel", columnMenu: "columnMenu", setColumnPosition: "setColumnPosition", columns: "columns", lock: "lock", unlock: "unlock", stick: "stick", unstick: "unstick", sortable: "sortable", sortAscending: "sortAscending", sortDescending: "sortDescending", autosizeThisColumn: "autosizeThisColumn", autosizeAllColumns: "autosizeAllColumns", sortedAscending: "sortedAscending", sortedDescending: "sortedDescending", sortedDefault: "sortedDefault", columnsApply: "columnsApply", columnsReset: "columnsReset", detailExpand: "detailExpand", detailCollapse: "detailCollapse", filterDateToday: "filterDateToday", filterDateToggle: "filterDateToggle", filterNumericDecrement: "filterNumericDecrement", filterNumericIncrement: "filterNumericIncrement", selectionCheckboxLabel: "selectionCheckboxLabel", selectAllCheckboxLabel: "selectAllCheckboxLabel", groupCollapse: "groupCollapse", groupExpand: "groupExpand", topToolbarLabel: "topToolbarLabel", bottomToolbarLabel: "bottomToolbarLabel", groupPanelLabel: "groupPanelLabel", dragRowHandleLabel: "dragRowHandleLabel" }, usesInheritance: true, ngImport: i0 });
|
|
14
|
+
GridMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: GridMessages, selector: "kendo-grid-messages-base", inputs: { groupPanelEmpty: "groupPanelEmpty", noRecords: "noRecords", pagerLabel: "pagerLabel", pagerFirstPage: "pagerFirstPage", pagerLastPage: "pagerLastPage", pagerPreviousPage: "pagerPreviousPage", pagerNextPage: "pagerNextPage", pagerPage: "pagerPage", pagerItemsPerPage: "pagerItemsPerPage", pagerOf: "pagerOf", pagerItems: "pagerItems", pagerPageNumberInputTitle: "pagerPageNumberInputTitle", selectPage: "selectPage", filter: "filter", filterInputLabel: "filterInputLabel", filterMenuTitle: "filterMenuTitle", filterMenuOperatorsDropDownLabel: "filterMenuOperatorsDropDownLabel", filterMenuLogicDropDownLabel: "filterMenuLogicDropDownLabel", filterEqOperator: "filterEqOperator", filterNotEqOperator: "filterNotEqOperator", filterIsNullOperator: "filterIsNullOperator", filterIsNotNullOperator: "filterIsNotNullOperator", filterIsEmptyOperator: "filterIsEmptyOperator", filterIsNotEmptyOperator: "filterIsNotEmptyOperator", filterStartsWithOperator: "filterStartsWithOperator", filterContainsOperator: "filterContainsOperator", filterNotContainsOperator: "filterNotContainsOperator", filterEndsWithOperator: "filterEndsWithOperator", filterGteOperator: "filterGteOperator", filterGtOperator: "filterGtOperator", filterLteOperator: "filterLteOperator", filterLtOperator: "filterLtOperator", filterIsTrue: "filterIsTrue", filterIsFalse: "filterIsFalse", filterBooleanAll: "filterBooleanAll", filterAfterOrEqualOperator: "filterAfterOrEqualOperator", filterAfterOperator: "filterAfterOperator", filterBeforeOperator: "filterBeforeOperator", filterBeforeOrEqualOperator: "filterBeforeOrEqualOperator", filterFilterButton: "filterFilterButton", filterClearButton: "filterClearButton", filterAndLogic: "filterAndLogic", filterOrLogic: "filterOrLogic", loading: "loading", gridLabel: "gridLabel", columnMenu: "columnMenu", setColumnPosition: "setColumnPosition", columns: "columns", lock: "lock", unlock: "unlock", stick: "stick", unstick: "unstick", sortable: "sortable", sortAscending: "sortAscending", sortDescending: "sortDescending", autosizeThisColumn: "autosizeThisColumn", autosizeAllColumns: "autosizeAllColumns", sortedAscending: "sortedAscending", sortedDescending: "sortedDescending", sortedDefault: "sortedDefault", columnsApply: "columnsApply", columnsReset: "columnsReset", detailExpand: "detailExpand", detailCollapse: "detailCollapse", filterDateToday: "filterDateToday", filterDateToggle: "filterDateToggle", filterNumericDecrement: "filterNumericDecrement", filterNumericIncrement: "filterNumericIncrement", selectionCheckboxLabel: "selectionCheckboxLabel", selectAllCheckboxLabel: "selectAllCheckboxLabel", groupCollapse: "groupCollapse", groupExpand: "groupExpand", topToolbarLabel: "topToolbarLabel", bottomToolbarLabel: "bottomToolbarLabel", groupPanelLabel: "groupPanelLabel", dragRowHandleLabel: "dragRowHandleLabel", columnMenuFilterTabTitle: "columnMenuFilterTabTitle", columnMenuGeneralTabTitle: "columnMenuGeneralTabTitle", columnMenuColumnsTabTitle: "columnMenuColumnsTabTitle" }, usesInheritance: true, ngImport: i0 });
|
|
15
15
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GridMessages, decorators: [{
|
|
16
16
|
type: Directive,
|
|
17
17
|
args: [{
|
|
@@ -170,4 +170,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
170
170
|
type: Input
|
|
171
171
|
}], dragRowHandleLabel: [{
|
|
172
172
|
type: Input
|
|
173
|
+
}], columnMenuFilterTabTitle: [{
|
|
174
|
+
type: Input
|
|
175
|
+
}], columnMenuGeneralTabTitle: [{
|
|
176
|
+
type: Input
|
|
177
|
+
}], columnMenuColumnsTabTitle: [{
|
|
178
|
+
type: Input
|
|
173
179
|
}] } });
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ChangeDetectorRef, EventEmitter, Injectable, NgZone, Optional } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
6
|
import { from, interval, Subscription } from 'rxjs';
|
|
8
7
|
import { filter, switchMap, switchMapTo, take, takeUntil, map } from 'rxjs/operators';
|
|
9
8
|
import { FocusRoot } from './focus-root';
|
|
@@ -19,6 +18,7 @@ import { PagerContextService } from '../pager/pager-context.service';
|
|
|
19
18
|
import { closest, contains, findFocusableChild, isVisible, matchesNodeName } from '../rendering/common/dom-queries';
|
|
20
19
|
import { DetailsService } from '../rendering/details/details.service';
|
|
21
20
|
import { ScrollRequestService } from '../scrolling/scroll-request.service';
|
|
21
|
+
import { ContextService } from '../common/provider.service';
|
|
22
22
|
import * as i0 from "@angular/core";
|
|
23
23
|
import * as i1 from "../common/dom-events.service";
|
|
24
24
|
import * as i2 from "../pager/pager-context.service";
|
|
@@ -27,7 +27,7 @@ import * as i4 from "../grouping/groups.service";
|
|
|
27
27
|
import * as i5 from "../rendering/details/details.service";
|
|
28
28
|
import * as i6 from "./focus-root";
|
|
29
29
|
import * as i7 from "../editing/edit.service";
|
|
30
|
-
import * as i8 from "
|
|
30
|
+
import * as i8 from "../common/provider.service";
|
|
31
31
|
import * as i9 from "./focusable.directive";
|
|
32
32
|
const isInSameGrid = (element, gridElement) => closest(element, matchesNodeName('kendo-grid')) === gridElement;
|
|
33
33
|
const matchHeaderCell = matchesNodeName('th');
|
|
@@ -84,7 +84,7 @@ export class NavigationViewport {
|
|
|
84
84
|
* @hidden
|
|
85
85
|
*/
|
|
86
86
|
export class NavigationService {
|
|
87
|
-
constructor(zone, domEvents, pagerContextService, scrollRequestService, groupsService, detailsService, focusRoot, editService, cd,
|
|
87
|
+
constructor(zone, domEvents, pagerContextService, scrollRequestService, groupsService, detailsService, focusRoot, editService, cd, ctx, focusableParent) {
|
|
88
88
|
this.zone = zone;
|
|
89
89
|
this.domEvents = domEvents;
|
|
90
90
|
this.pagerContextService = pagerContextService;
|
|
@@ -94,7 +94,7 @@ export class NavigationService {
|
|
|
94
94
|
this.focusRoot = focusRoot;
|
|
95
95
|
this.editService = editService;
|
|
96
96
|
this.cd = cd;
|
|
97
|
-
this.
|
|
97
|
+
this.ctx = ctx;
|
|
98
98
|
this.focusableParent = focusableParent;
|
|
99
99
|
this.cellKeydown = new EventEmitter();
|
|
100
100
|
this.activeRowIndex = 0;
|
|
@@ -382,10 +382,10 @@ export class NavigationService {
|
|
|
382
382
|
.forEach(cell => cell.focusGroup && cell.focusGroup.activate());
|
|
383
383
|
}
|
|
384
384
|
moveCursorFwd() {
|
|
385
|
-
return this.localization.rtl ? this.cursor.moveLeft() : this.cursor.moveRight();
|
|
385
|
+
return this.ctx.localization.rtl ? this.cursor.moveLeft() : this.cursor.moveRight();
|
|
386
386
|
}
|
|
387
387
|
moveCursorBwd() {
|
|
388
|
-
return this.localization.rtl ? this.cursor.moveRight() : this.cursor.moveLeft();
|
|
388
|
+
return this.ctx.localization.rtl ? this.cursor.moveRight() : this.cursor.moveLeft();
|
|
389
389
|
}
|
|
390
390
|
onCursorKeydown(args) {
|
|
391
391
|
let preventDefault = false;
|
|
@@ -594,10 +594,10 @@ export class NavigationService {
|
|
|
594
594
|
this.cursor.reset();
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NavigationService, deps: [{ token: i0.NgZone }, { token: i1.DomEventsService }, { token: i2.PagerContextService }, { token: i3.ScrollRequestService }, { token: i4.GroupsService }, { token: i5.DetailsService }, { token: i6.FocusRoot }, { token: i7.EditService }, { token: i0.ChangeDetectorRef }, { token: i8.
|
|
597
|
+
NavigationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NavigationService, deps: [{ token: i0.NgZone }, { token: i1.DomEventsService }, { token: i2.PagerContextService }, { token: i3.ScrollRequestService }, { token: i4.GroupsService }, { token: i5.DetailsService }, { token: i6.FocusRoot }, { token: i7.EditService }, { token: i0.ChangeDetectorRef }, { token: i8.ContextService }, { token: i9.FocusableDirective, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
598
598
|
NavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NavigationService });
|
|
599
599
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NavigationService, decorators: [{
|
|
600
600
|
type: Injectable
|
|
601
|
-
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.DomEventsService }, { type: i2.PagerContextService }, { type: i3.ScrollRequestService }, { type: i4.GroupsService }, { type: i5.DetailsService }, { type: i6.FocusRoot }, { type: i7.EditService }, { type: i0.ChangeDetectorRef }, { type: i8.
|
|
601
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.DomEventsService }, { type: i2.PagerContextService }, { type: i3.ScrollRequestService }, { type: i4.GroupsService }, { type: i5.DetailsService }, { type: i6.FocusRoot }, { type: i7.EditService }, { type: i0.ChangeDetectorRef }, { type: i8.ContextService }, { type: i9.FocusableDirective, decorators: [{
|
|
602
602
|
type: Optional
|
|
603
603
|
}] }]; } });
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-grid',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '
|
|
12
|
+
publishDate: 1685119790,
|
|
13
|
+
version: '13.0.0-develop.10',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -4,21 +4,26 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ChangeDetectorRef, Directive, Input } from '@angular/core';
|
|
6
6
|
import { PagerContextService } from "./pager-context.service";
|
|
7
|
-
import {
|
|
7
|
+
import { ContextService } from '../common/provider.service';
|
|
8
|
+
import { caretAltLeftIcon, caretAltRightIcon, caretAltToLeftIcon, caretAltToRightIcon } from '@progress/kendo-svg-icons';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "
|
|
10
|
+
import * as i1 from "../common/provider.service";
|
|
10
11
|
import * as i2 from "./pager-context.service";
|
|
11
12
|
/**
|
|
12
13
|
* @hidden
|
|
13
14
|
*/
|
|
14
15
|
export class PagerElementComponent {
|
|
15
|
-
constructor(
|
|
16
|
-
this.
|
|
16
|
+
constructor(ctx, pagerContext, cd) {
|
|
17
|
+
this.ctx = ctx;
|
|
17
18
|
this.pagerContext = pagerContext;
|
|
18
19
|
this.cd = cd;
|
|
19
20
|
this.total = this.pagerContext.total;
|
|
20
21
|
this.skip = this.pagerContext.skip;
|
|
21
22
|
this.pageSize = this.pagerContext.pageSize;
|
|
23
|
+
this.caretAltLeftIcon = caretAltLeftIcon;
|
|
24
|
+
this.caretAltToLeftIcon = caretAltToLeftIcon;
|
|
25
|
+
this.caretAltRightIcon = caretAltRightIcon;
|
|
26
|
+
this.caretAltToRightIcon = caretAltToRightIcon;
|
|
22
27
|
/**
|
|
23
28
|
* Sets the pager element sizing option.
|
|
24
29
|
* @default `medium`
|
|
@@ -54,7 +59,7 @@ export class PagerElementComponent {
|
|
|
54
59
|
* @memberOf PagerElementComponent
|
|
55
60
|
*/
|
|
56
61
|
textFor(key) {
|
|
57
|
-
return this.localization.get(key);
|
|
62
|
+
return this.ctx.localization.get(key);
|
|
58
63
|
}
|
|
59
64
|
/**
|
|
60
65
|
* @hidden
|
|
@@ -74,19 +79,31 @@ export class PagerElementComponent {
|
|
|
74
79
|
*/
|
|
75
80
|
ngOnInit() {
|
|
76
81
|
this.subscriptions = this.pagerContext.changes.subscribe(this.onChanges.bind(this));
|
|
77
|
-
this.subscriptions.add(this.localization.changes.subscribe(() => this.cd.markForCheck()));
|
|
82
|
+
this.subscriptions.add(this.ctx.localization.changes.subscribe(() => this.cd.markForCheck()));
|
|
78
83
|
}
|
|
79
84
|
ngOnDestroy() {
|
|
80
85
|
if (this.subscriptions) {
|
|
81
86
|
this.subscriptions.unsubscribe();
|
|
82
87
|
}
|
|
83
88
|
}
|
|
89
|
+
get prevArrowIcons() {
|
|
90
|
+
return !this.ctx.localization.rtl ? ['caret-alt-to-left', 'caret-alt-left'] : ['caret-alt-to-right', 'caret-alt-right'];
|
|
91
|
+
}
|
|
92
|
+
get prevArrowSVGIcons() {
|
|
93
|
+
return !this.ctx.localization.rtl ? [this.caretAltToLeftIcon, this.caretAltLeftIcon] : [this.caretAltToRightIcon, this.caretAltRightIcon];
|
|
94
|
+
}
|
|
95
|
+
get nextArrowIcons() {
|
|
96
|
+
return !this.ctx.localization.rtl ? ['caret-alt-right', 'caret-alt-to-right'] : ['caret-alt-left', 'caret-alt-to-left'];
|
|
97
|
+
}
|
|
98
|
+
get nextArrowSVGIcons() {
|
|
99
|
+
return !this.ctx.localization.rtl ? [this.caretAltRightIcon, this.caretAltToRightIcon] : [this.caretAltLeftIcon, this.caretAltToLeftIcon];
|
|
100
|
+
}
|
|
84
101
|
}
|
|
85
|
-
PagerElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerElementComponent, deps: [{ token: i1.
|
|
102
|
+
PagerElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerElementComponent, deps: [{ token: i1.ContextService }, { token: i2.PagerContextService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
86
103
|
PagerElementComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: PagerElementComponent, inputs: { size: "size" }, ngImport: i0 });
|
|
87
104
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerElementComponent, decorators: [{
|
|
88
105
|
type: Directive,
|
|
89
106
|
args: [{}]
|
|
90
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
107
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i2.PagerContextService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { size: [{
|
|
91
108
|
type: Input
|
|
92
109
|
}] } });
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
// eslint-disable no-access-missing-member
|
|
6
6
|
import { Component, ChangeDetectorRef, ChangeDetectionStrategy, HostBinding } from '@angular/core';
|
|
7
7
|
import { PagerElementComponent } from './pager-element.component';
|
|
8
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
8
|
import { PagerContextService } from "./pager-context.service";
|
|
9
|
+
import { ContextService } from '../common/provider.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "
|
|
11
|
+
import * as i1 from "../common/provider.service";
|
|
12
12
|
import * as i2 from "./pager-context.service";
|
|
13
13
|
/**
|
|
14
14
|
* Displays information about the current page and the total number of records ([see example](slug:pager_template_grid#toc-using-built-in-pager-components)).
|
|
15
15
|
*/
|
|
16
16
|
export class PagerInfoComponent extends PagerElementComponent {
|
|
17
|
-
constructor(
|
|
18
|
-
super(
|
|
17
|
+
constructor(ctx, cd, pagerContext) {
|
|
18
|
+
super(ctx, pagerContext, cd);
|
|
19
19
|
this.pagerContext = pagerContext;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -57,7 +57,7 @@ export class PagerInfoComponent extends PagerElementComponent {
|
|
|
57
57
|
this.cd.markForCheck();
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
PagerInfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerInfoComponent, deps: [{ token: i1.
|
|
60
|
+
PagerInfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerInfoComponent, deps: [{ token: i1.ContextService }, { token: i0.ChangeDetectorRef }, { token: i2.PagerContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
61
61
|
PagerInfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: PagerInfoComponent, selector: "kendo-pager-info", host: { properties: { "class.k-pager-info": "this.classes", "class.k-label": "this.classes" } }, usesInheritance: true, ngImport: i0, template: `{{currentPageText}} - {{maxItems}} {{textFor('pagerOf')}} {{total}} {{textFor('pagerItems')}}`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
62
62
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerInfoComponent, decorators: [{
|
|
63
63
|
type: Component,
|
|
@@ -66,7 +66,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
66
66
|
selector: 'kendo-pager-info',
|
|
67
67
|
template: `{{currentPageText}} - {{maxItems}} {{textFor('pagerOf')}} {{total}} {{textFor('pagerItems')}}`
|
|
68
68
|
}]
|
|
69
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
69
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i0.ChangeDetectorRef }, { type: i2.PagerContextService }]; }, propDecorators: { classes: [{
|
|
70
70
|
type: HostBinding,
|
|
71
71
|
args: ["class.k-pager-info"]
|
|
72
72
|
}, {
|
|
@@ -6,11 +6,11 @@ import { NavigationService } from './../navigation/navigation.service';
|
|
|
6
6
|
import { NumericTextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
7
7
|
import { Component, ChangeDetectorRef, ViewChild, NgZone } from '@angular/core';
|
|
8
8
|
import { PagerElementComponent } from './pager-element.component';
|
|
9
|
-
import { LocalizationService } from "@progress/kendo-angular-l10n";
|
|
10
9
|
import { PagerContextService } from "./pager-context.service";
|
|
11
10
|
import { Keys } from '@progress/kendo-angular-common';
|
|
11
|
+
import { ContextService } from '../common/provider.service';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "
|
|
13
|
+
import * as i1 from "../common/provider.service";
|
|
14
14
|
import * as i2 from "./pager-context.service";
|
|
15
15
|
import * as i3 from "./../navigation/navigation.service";
|
|
16
16
|
import * as i4 from "@progress/kendo-angular-inputs";
|
|
@@ -21,8 +21,8 @@ import * as i7 from "@progress/kendo-angular-common";
|
|
|
21
21
|
* Displays an input element which allows the typing and rendering of page numbers ([see example](slug:pager_template_grid#toc-using-built-in-pager-components)).
|
|
22
22
|
*/
|
|
23
23
|
export class PagerInputComponent extends PagerElementComponent {
|
|
24
|
-
constructor(
|
|
25
|
-
super(
|
|
24
|
+
constructor(ctx, pagerContext, zone, navigationService, cd) {
|
|
25
|
+
super(ctx, pagerContext, cd);
|
|
26
26
|
this.pagerContext = pagerContext;
|
|
27
27
|
this.zone = zone;
|
|
28
28
|
this.navigationService = navigationService;
|
|
@@ -80,7 +80,7 @@ export class PagerInputComponent extends PagerElementComponent {
|
|
|
80
80
|
this.cd.markForCheck();
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
PagerInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerInputComponent, deps: [{ token: i1.
|
|
83
|
+
PagerInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerInputComponent, deps: [{ token: i1.ContextService }, { token: i2.PagerContextService }, { token: i0.NgZone }, { token: i3.NavigationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
84
84
|
PagerInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: PagerInputComponent, selector: "kendo-pager-input", viewQueries: [{ propertyName: "numericInput", first: true, predicate: NumericTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
85
85
|
<span class="k-pager-input k-label">
|
|
86
86
|
{{textFor('pagerPage')}}
|
|
@@ -136,7 +136,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
136
136
|
</span>
|
|
137
137
|
`
|
|
138
138
|
}]
|
|
139
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
139
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i2.PagerContextService }, { type: i0.NgZone }, { type: i3.NavigationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { numericInput: [{
|
|
140
140
|
type: ViewChild,
|
|
141
141
|
args: [NumericTextBoxComponent, { static: false }]
|
|
142
142
|
}] } });
|