@progress/kendo-angular-sortable 5.0.4-dev.202211170813 → 11.0.0-develop.79
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/NOTICE.txt +3 -3
- package/binding.directive.d.ts +1 -1
- package/data-event-args.interface.d.ts +1 -1
- package/data-events.d.ts +1 -1
- package/draggable-event.d.ts +1 -1
- package/draggable.directive.d.ts +1 -1
- package/{esm2015/binding.directive.js → esm2020/binding.directive.mjs} +7 -5
- package/{esm2015/data-event-args.interface.js → esm2020/data-event-args.interface.mjs} +1 -1
- package/{esm2015/data-events.js → esm2020/data-events.mjs} +1 -1
- package/{esm2015/draggable-event.js → esm2020/draggable-event.mjs} +1 -1
- package/{esm2015/draggable.directive.js → esm2020/draggable.directive.mjs} +6 -5
- package/{esm2015/main.js → esm2020/index.mjs} +1 -1
- package/{esm2015/item-template.directive.js → esm2020/item-template.directive.mjs} +8 -8
- package/{esm2015/navigate-event.js → esm2020/navigate-event.mjs} +1 -1
- package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
- package/{esm2015/preventable-event.js → esm2020/preventable-event.mjs} +1 -1
- package/{esm2015/kendo-angular-sortable.js → esm2020/progress-kendo-angular-sortable.mjs} +2 -2
- package/{esm2015/sortable-container.js → esm2020/sortable-container.mjs} +4 -4
- package/{esm2015/sortable-event-args.interface.js → esm2020/sortable-event-args.interface.mjs} +1 -1
- package/{esm2015/sortable-events.js → esm2020/sortable-events.mjs} +1 -1
- package/{esm2015/sortable.component.js → esm2020/sortable.component.mjs} +14 -14
- package/{esm2015/sortable.module.js → esm2020/sortable.module.mjs} +5 -5
- package/{esm2015/sortable.service.js → esm2020/sortable.service.mjs} +5 -5
- package/{esm2015/util.js → esm2020/util.mjs} +6 -3
- package/fesm2015/{kendo-angular-sortable.js → progress-kendo-angular-sortable.mjs} +42 -40
- package/fesm2020/progress-kendo-angular-sortable.mjs +1896 -0
- package/{main.d.ts → index.d.ts} +1 -1
- package/item-template.directive.d.ts +1 -1
- package/navigate-event.d.ts +1 -1
- package/package-metadata.d.ts +1 -1
- package/package.json +28 -54
- package/preventable-event.d.ts +1 -1
- package/{kendo-angular-sortable.d.ts → progress-kendo-angular-sortable.d.ts} +2 -2
- package/schematics/ngAdd/index.js +1 -5
- package/sortable-container.d.ts +1 -1
- package/sortable-event-args.interface.d.ts +1 -1
- package/sortable-events.d.ts +1 -1
- package/sortable.component.d.ts +1 -1
- package/sortable.module.d.ts +1 -1
- package/sortable.service.d.ts +1 -1
- package/util.d.ts +1 -1
- package/bundles/kendo-angular-sortable.umd.js +0 -5
- package/schematics/ngAdd/index.js.map +0 -1
package/NOTICE.txt
CHANGED
|
@@ -37,7 +37,7 @@ DefinitelyTyped.org | @types/prosemirror-view | 1.11.4 - Open Source | MIT-style
|
|
|
37
37
|
Isaac Z. Schlueter | glob | 7.1.3 - Open Source | ISC-style License
|
|
38
38
|
Jorik Tangelder (Eight Media) | HammerJS | 2.0.8 - Open Source | MIT-style License
|
|
39
39
|
Matt Mueller | cheerio | 0.22 - Open Source | MIT-style License
|
|
40
|
-
Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
|
|
40
|
+
Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
|
|
41
41
|
Progress Software Corporation | jszip-esm | 1.0.0 - Open Source | MIT-style License
|
|
42
42
|
Progress Software Corporation | pako-esm | 1.0.0 - Open Source | MIT-style License
|
|
43
43
|
ProseMirror | prosemiror-inputrules | 1.0.1 - Open Source | MIT-style License
|
|
@@ -433,7 +433,7 @@ subject to the following terms and conditions:
|
|
|
433
433
|
@types/prosemirror-inputrules v1*, @types/prosemirror-keymap v1*, @types/prosemirror-model v1*,
|
|
434
434
|
@types/prosemirror-schema-list v1*, @types/prosemirror-state v1*, @types/prosemirror-tables v0.9*,
|
|
435
435
|
@types/prosemirror-transform v1*, and @types/prosemirror-view v1*. Such technologies are
|
|
436
|
-
subject to the following terms and conditions:
|
|
436
|
+
subject to the following terms and conditions:
|
|
437
437
|
|
|
438
438
|
This project is licensed under the MIT license.
|
|
439
439
|
Copyrights are respective of each contributor listed at the beginning of each
|
|
@@ -640,7 +640,7 @@ Such technology is subject to the following terms and conditions:
|
|
|
640
640
|
2. Special Notices Regarding Commercially Licensed Third-Party Components
|
|
641
641
|
incorporated into the Product: NONE
|
|
642
642
|
|
|
643
|
-
3. Special Notices Regarding Progress Products incorporated into the Product:
|
|
643
|
+
3. Special Notices Regarding Progress Products incorporated into the Product:
|
|
644
644
|
|
|
645
645
|
(a) Progress Kendo UI for Angular 2022 incorporates Kendo UI Licensing CLI v1.1
|
|
646
646
|
from Progress Software Corporation. See NOTICE.txt text file within product for
|
package/binding.directive.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
package/data-events.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { PreventableEvent } from './preventable-event';
|
package/draggable-event.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { PreventableEvent } from './preventable-event';
|
package/draggable.directive.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ElementRef, OnInit, Renderer2 } from '@angular/core';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Directive, Input } from '@angular/core';
|
|
6
|
+
import { SortableComponent } from './sortable.component';
|
|
7
|
+
import { SortableService } from './sortable.service';
|
|
6
8
|
import { DataAddEvent, DataMoveEvent, DataRemoveEvent } from './data-events';
|
|
7
9
|
import { filter, take } from 'rxjs/operators';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
@@ -133,7 +135,7 @@ export class SortableBindingDirective {
|
|
|
133
135
|
}
|
|
134
136
|
onNavigate(event) {
|
|
135
137
|
if (event.ctrlKey) {
|
|
136
|
-
|
|
138
|
+
const moveEvent = new DataMoveEvent({
|
|
137
139
|
dataItem: this.sortable.data[event.oldIndex],
|
|
138
140
|
index: event.index,
|
|
139
141
|
oldIndex: event.oldIndex
|
|
@@ -159,9 +161,9 @@ export class SortableBindingDirective {
|
|
|
159
161
|
}
|
|
160
162
|
}
|
|
161
163
|
}
|
|
162
|
-
SortableBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
163
|
-
SortableBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
164
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
164
|
+
SortableBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SortableBindingDirective, deps: [{ token: i1.SortableComponent }, { token: i2.SortableService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
165
|
+
SortableBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: SortableBindingDirective, selector: "[kendoSortableBinding]", inputs: { data: ["kendoSortableBinding", "data"] }, ngImport: i0 });
|
|
166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SortableBindingDirective, decorators: [{
|
|
165
167
|
type: Directive,
|
|
166
168
|
args: [{
|
|
167
169
|
selector: '[kendoSortableBinding]'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { PreventableEvent } from './preventable-event';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { PreventableEvent } from './preventable-event';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive, HostBinding, Input } from '@angular/core';
|
|
5
|
+
import { Directive, HostBinding, Input, ElementRef, Renderer2 } from '@angular/core';
|
|
6
|
+
import { SortableContainer } from './sortable-container';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
import * as i1 from "./sortable-container";
|
|
8
9
|
/**
|
|
@@ -49,9 +50,9 @@ export class DraggableDirective {
|
|
|
49
50
|
this.renderer.setStyle(this.el.nativeElement, 'display', this.display);
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
|
-
DraggableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
53
|
-
DraggableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
53
|
+
DraggableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableDirective, deps: [{ token: i1.SortableContainer }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
54
|
+
DraggableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: DraggableDirective, selector: "[kendoDraggable]", inputs: { index: "index", disabled: "disabled", hidden: "hidden" }, host: { properties: { "class.k-focus": "this._focused", "attr.aria-disabled": "this._disabled" } }, ngImport: i0 });
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableDirective, decorators: [{
|
|
55
56
|
type: Directive,
|
|
56
57
|
args: [{
|
|
57
58
|
selector: '[kendoDraggable]'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
export { SortableComponent } from './sortable.component';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive } from '@angular/core';
|
|
5
|
+
import { Directive, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
//TODO: RENAME FILE AND UPDATE EXPORTS AND MODULES
|
|
8
8
|
/**
|
|
@@ -13,9 +13,9 @@ export class ItemTemplateDirective {
|
|
|
13
13
|
this.templateRef = templateRef;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
ItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
17
|
-
ItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
16
|
+
ItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ItemTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
17
|
+
ItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ItemTemplateDirective, selector: "[kendoSortableItemTemplate]", ngImport: i0 });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ItemTemplateDirective, decorators: [{
|
|
19
19
|
type: Directive,
|
|
20
20
|
args: [{
|
|
21
21
|
selector: '[kendoSortableItemTemplate]'
|
|
@@ -29,9 +29,9 @@ export class PlaceholderTemplateDirective {
|
|
|
29
29
|
this.templateRef = templateRef;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
PlaceholderTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
33
|
-
PlaceholderTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
32
|
+
PlaceholderTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PlaceholderTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
33
|
+
PlaceholderTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: PlaceholderTemplateDirective, selector: "[kendoSortablePlaceholderTemplate]", ngImport: i0 });
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PlaceholderTemplateDirective, decorators: [{
|
|
35
35
|
type: Directive,
|
|
36
36
|
args: [{
|
|
37
37
|
selector: '[kendoSortablePlaceholderTemplate]'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { PreventableEvent } from './preventable-event';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-sortable',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1672320723,
|
|
13
13
|
version: '',
|
|
14
|
-
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license
|
|
14
|
+
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
6
|
* Generated bundle index. Do not edit.
|
|
7
7
|
*/
|
|
8
|
-
export * from './
|
|
8
|
+
export * from './index';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Injectable } from '@angular/core';
|
|
@@ -9,8 +9,8 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
*/
|
|
10
10
|
export class SortableContainer {
|
|
11
11
|
}
|
|
12
|
-
SortableContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13
|
-
SortableContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12
|
+
SortableContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SortableContainer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13
|
+
SortableContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SortableContainer });
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SortableContainer, decorators: [{
|
|
15
15
|
type: Injectable
|
|
16
16
|
}] });
|
package/{esm2015/sortable-event-args.interface.js → esm2020/sortable-event-args.interface.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { PreventableEvent } from './preventable-event';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, Input, Output, ContentChildren, ViewChild, ViewChildren, TemplateRef, EventEmitter, HostBinding, forwardRef } from '@angular/core';
|
|
5
|
+
import { Component, Input, Output, QueryList, ContentChildren, ViewChild, ViewChildren, TemplateRef, ElementRef, EventEmitter, HostBinding, NgZone, ChangeDetectorRef, forwardRef } from '@angular/core';
|
|
6
6
|
import { Subject, merge } from 'rxjs';
|
|
7
7
|
import { isDocumentAvailable, isChanged } from '@progress/kendo-angular-common';
|
|
8
8
|
import { relativeContextElement } from './util';
|
|
@@ -10,6 +10,7 @@ import { filter, take } from 'rxjs/operators';
|
|
|
10
10
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
11
11
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
12
12
|
import { packageMetadata } from './package-metadata';
|
|
13
|
+
import { SortableService } from './sortable.service';
|
|
13
14
|
import { DraggableDirective } from './draggable.directive';
|
|
14
15
|
import { SortableContainer } from './sortable-container';
|
|
15
16
|
import { ItemTemplateDirective, PlaceholderTemplateDirective } from './item-template.directive';
|
|
@@ -438,7 +439,7 @@ export class SortableComponent {
|
|
|
438
439
|
"position": "fixed",
|
|
439
440
|
"top": this.hintLocation.y + 10 + "px"
|
|
440
441
|
};
|
|
441
|
-
|
|
442
|
+
const style = {};
|
|
442
443
|
Object.assign(style, this.currentItemStyle(this.dragIndex), position);
|
|
443
444
|
return style;
|
|
444
445
|
}
|
|
@@ -505,7 +506,7 @@ export class SortableComponent {
|
|
|
505
506
|
}
|
|
506
507
|
if (navigate) {
|
|
507
508
|
const ctrl = event.ctrlKey || event.metaKey;
|
|
508
|
-
|
|
509
|
+
const navigateEvent = new NavigateEvent({ index: targetIndex, oldIndex: this.activeIndex, ctrlKey: ctrl });
|
|
509
510
|
this.navigate.emit(navigateEvent);
|
|
510
511
|
if (!navigateEvent.isDefaultPrevented()) {
|
|
511
512
|
this.activeIndex = targetIndex;
|
|
@@ -653,7 +654,6 @@ export class SortableComponent {
|
|
|
653
654
|
const itemArray = this.itemWrappers.toArray();
|
|
654
655
|
const prevClientRect = [];
|
|
655
656
|
const nextClientRect = [];
|
|
656
|
-
const that = this;
|
|
657
657
|
clearTimeout(this._animating);
|
|
658
658
|
for (let i = 0; i < draggables.length; i++) {
|
|
659
659
|
prevClientRect.push(itemArray[draggables[i].prev].nativeElement.getBoundingClientRect());
|
|
@@ -676,9 +676,9 @@ export class SortableComponent {
|
|
|
676
676
|
this.applyAnimationStyle(target, 'transition', 'all ' + this.animationDuration + 'ms');
|
|
677
677
|
this.applyAnimationStyle(target, 'transform', 'translate3d(0,0,0)');
|
|
678
678
|
clearTimeout(target.animated);
|
|
679
|
-
target.animated = setTimeout(
|
|
680
|
-
|
|
681
|
-
|
|
679
|
+
target.animated = setTimeout(() => {
|
|
680
|
+
this.applyAnimationStyle(target, 'transition', '');
|
|
681
|
+
this.applyAnimationStyle(target, 'transform', '');
|
|
682
682
|
target.animated = false;
|
|
683
683
|
}, this.animationDuration);
|
|
684
684
|
}
|
|
@@ -743,7 +743,7 @@ export class SortableComponent {
|
|
|
743
743
|
this.sortableService.lastDraggable = event.target;
|
|
744
744
|
this.sortableService.target = this;
|
|
745
745
|
this.sortableService.setSource(this);
|
|
746
|
-
|
|
746
|
+
const dragStartEvent = new DragStartEvent({ index: event.target.index });
|
|
747
747
|
this.dragStart.emit(dragStartEvent);
|
|
748
748
|
if (dragStartEvent.isDefaultPrevented()) {
|
|
749
749
|
event.preventDefault();
|
|
@@ -778,7 +778,7 @@ export class SortableComponent {
|
|
|
778
778
|
}
|
|
779
779
|
this.sortableService.target = this;
|
|
780
780
|
const oldIndex = this.sortableService.activeDraggable ? this.sortableService.activeDraggable.index : 0;
|
|
781
|
-
|
|
781
|
+
const dragOverEvent = new DragOverEvent({ index: targetIndex, oldIndex: oldIndex });
|
|
782
782
|
this.dragOver.emit(dragOverEvent);
|
|
783
783
|
if (!dragOverEvent.isDefaultPrevented() && event.target && event.target.index >= 0) {
|
|
784
784
|
this.dragOverIndex = event.target.index;
|
|
@@ -795,7 +795,7 @@ export class SortableComponent {
|
|
|
795
795
|
const index = event.target ? event.target.index : -1;
|
|
796
796
|
const oldIndex = this.sortableService.originDraggable ? this.sortableService.originIndex : -1;
|
|
797
797
|
this.hintLocation = null;
|
|
798
|
-
|
|
798
|
+
const dragEndEvent = new DragEndEvent({ index: index, oldIndex: oldIndex });
|
|
799
799
|
this.dragEnd.emit(dragEndEvent);
|
|
800
800
|
if (!dragEndEvent.isDefaultPrevented()) {
|
|
801
801
|
source.dragIndex = -1;
|
|
@@ -872,8 +872,8 @@ export class SortableComponent {
|
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
874
|
}
|
|
875
|
-
SortableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
876
|
-
SortableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
875
|
+
SortableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SortableComponent, deps: [{ token: i0.NgZone }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i2.SortableService }], target: i0.ɵɵFactoryTarget.Component });
|
|
876
|
+
SortableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SortableComponent, selector: "kendo-sortable", inputs: { tabIndex: "tabIndex", data: "data", navigable: "navigable", navigatable: "navigatable", animation: "animation", disabledIndexes: "disabledIndexes", zone: "zone", acceptZones: "acceptZones", itemStyle: "itemStyle", emptyItemStyle: "emptyItemStyle", activeItemStyle: "activeItemStyle", disabledItemStyle: "disabledItemStyle", itemClass: "itemClass", activeItemClass: "activeItemClass", emptyItemClass: "emptyItemClass", disabledItemClass: "disabledItemClass", emptyText: "emptyText", activeIndex: "activeIndex" }, outputs: { dragStart: "dragStart", dragEnd: "dragEnd", dragOver: "dragOver", dragLeave: "dragLeave", dataMove: "dataMove", dataAdd: "dataAdd", dataRemove: "dataRemove", navigate: "navigate" }, host: { properties: { "style.touch-action": "this.touchAction", "attr.dir": "this.dir" } }, providers: [
|
|
877
877
|
LocalizationService,
|
|
878
878
|
{
|
|
879
879
|
provide: L10N_PREFIX,
|
|
@@ -928,7 +928,7 @@ SortableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
928
928
|
<ng-container *ngIf="!itemTemplateRef">{{_localData[dragIndex].item}}</ng-container>
|
|
929
929
|
</div>
|
|
930
930
|
`, isInline: true, directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.DraggableDirective, selector: "[kendoDraggable]", inputs: ["index", "disabled", "hidden"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
931
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
931
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SortableComponent, decorators: [{
|
|
932
932
|
type: Component,
|
|
933
933
|
args: [{
|
|
934
934
|
exportAs: 'kendoSortable',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from '@angular/core';
|
|
@@ -50,8 +50,8 @@ const COMPONENT_DIRECTIVES = [
|
|
|
50
50
|
*/
|
|
51
51
|
export class SortableModule {
|
|
52
52
|
}
|
|
53
|
-
SortableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
54
|
-
SortableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
53
|
+
SortableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SortableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
54
|
+
SortableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SortableModule, declarations: [SortableComponent,
|
|
55
55
|
DraggableDirective,
|
|
56
56
|
PlaceholderTemplateDirective,
|
|
57
57
|
ItemTemplateDirective,
|
|
@@ -60,8 +60,8 @@ SortableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
60
60
|
PlaceholderTemplateDirective,
|
|
61
61
|
ItemTemplateDirective,
|
|
62
62
|
SortableBindingDirective] });
|
|
63
|
-
SortableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
63
|
+
SortableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SortableModule, providers: [SortableService], imports: [[CommonModule]] });
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SortableModule, decorators: [{
|
|
65
65
|
type: NgModule,
|
|
66
66
|
args: [{
|
|
67
67
|
declarations: [COMPONENT_DIRECTIVES],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Injectable } from '@angular/core';
|
|
5
|
+
import { Injectable, NgZone } from '@angular/core';
|
|
6
6
|
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
7
7
|
import { draggableFromEvent, isFocusable, widgetTarget } from './util';
|
|
8
8
|
import { Subject } from 'rxjs';
|
|
@@ -217,8 +217,8 @@ export class SortableService {
|
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
SortableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
221
|
-
SortableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
220
|
+
SortableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SortableService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
221
|
+
SortableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SortableService });
|
|
222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SortableService, decorators: [{
|
|
223
223
|
type: Injectable
|
|
224
224
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
@@ -41,7 +41,7 @@ export const draggableFromPoint = (x, y) => {
|
|
|
41
41
|
if (!isDocumentAvailable()) {
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
const el = document.elementFromPoint(x, y);
|
|
45
45
|
if (!el) {
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
@@ -113,7 +113,10 @@ const hasRelativeStackingContext = () => {
|
|
|
113
113
|
const top = 10;
|
|
114
114
|
const parent = document.createElement("div");
|
|
115
115
|
parent.style.transform = "matrix(10, 0, 0, 10, 0, 0)";
|
|
116
|
-
|
|
116
|
+
const innerDiv = document.createElement('div');
|
|
117
|
+
innerDiv.style.position = 'fixed';
|
|
118
|
+
innerDiv.style.top = `${top}px;`;
|
|
119
|
+
parent.appendChild(innerDiv);
|
|
117
120
|
document.body.appendChild(parent);
|
|
118
121
|
const isDifferent = parent.children[0].getBoundingClientRect().top !== top;
|
|
119
122
|
document.body.removeChild(parent);
|