@progress/kendo-angular-utils 0.1.3-dev.202211170817 → 11.0.0-develop.100

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.
Files changed (67) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +4 -4
  3. package/README.md +1 -1
  4. package/drag-and-drop/drag-state.service.d.ts +1 -1
  5. package/drag-and-drop/draghandle.directive.d.ts +1 -1
  6. package/drag-and-drop/dragtarget.directive.d.ts +1 -1
  7. package/drag-and-drop/droptarget.directive.d.ts +1 -1
  8. package/drag-and-drop/events/drag-target/drag-event.d.ts +1 -1
  9. package/drag-and-drop/events/drag-target/end-event.d.ts +1 -1
  10. package/drag-and-drop/events/drag-target/index.d.ts +1 -1
  11. package/drag-and-drop/events/drag-target/press-event.d.ts +1 -1
  12. package/drag-and-drop/events/drag-target/start-event.d.ts +1 -1
  13. package/drag-and-drop/events/drop-target/drop-event.d.ts +1 -1
  14. package/drag-and-drop/events/drop-target/enter-event.d.ts +1 -1
  15. package/drag-and-drop/events/drop-target/index.d.ts +1 -1
  16. package/drag-and-drop/events/drop-target/leave-event.d.ts +1 -1
  17. package/drag-and-drop/events/drop-target/over-event.d.ts +1 -1
  18. package/drag-and-drop/hint.component.d.ts +1 -1
  19. package/drag-and-drop/models/allowed-target.d.ts +1 -1
  20. package/drag-and-drop/models/autoscroll-options.d.ts +1 -1
  21. package/drag-and-drop/models/coordinates.d.ts +1 -1
  22. package/drag-and-drop/models/dragaxis.d.ts +1 -1
  23. package/drag-and-drop/models/index.d.ts +1 -1
  24. package/drag-and-drop/models/scroll-direction.d.ts +1 -1
  25. package/drag-and-drop/util.d.ts +1 -1
  26. package/drag-and-drop.module.d.ts +1 -1
  27. package/{esm2015/drag-and-drop/drag-state.service.js → esm2020/drag-and-drop/drag-state.service.mjs} +4 -4
  28. package/{esm2015/drag-and-drop/draghandle.directive.js → esm2020/drag-and-drop/draghandle.directive.mjs} +5 -5
  29. package/{esm2015/drag-and-drop/dragtarget.directive.js → esm2020/drag-and-drop/dragtarget.directive.mjs} +7 -6
  30. package/{esm2015/drag-and-drop/droptarget.directive.js → esm2020/drag-and-drop/droptarget.directive.mjs} +6 -5
  31. package/{esm2015/drag-and-drop/events/drag-target/drag-event.js → esm2020/drag-and-drop/events/drag-target/drag-event.mjs} +1 -1
  32. package/{esm2015/drag-and-drop/events/drag-target/end-event.js → esm2020/drag-and-drop/events/drag-target/end-event.mjs} +1 -1
  33. package/{esm2015/drag-and-drop/events/drag-target/index.js → esm2020/drag-and-drop/events/drag-target/index.mjs} +1 -1
  34. package/{esm2015/drag-and-drop/events/drag-target/press-event.js → esm2020/drag-and-drop/events/drag-target/press-event.mjs} +1 -1
  35. package/{esm2015/drag-and-drop/events/drag-target/start-event.js → esm2020/drag-and-drop/events/drag-target/start-event.mjs} +1 -1
  36. package/{esm2015/drag-and-drop/events/drop-target/drop-event.js → esm2020/drag-and-drop/events/drop-target/drop-event.mjs} +1 -1
  37. package/{esm2015/drag-and-drop/events/drop-target/enter-event.js → esm2020/drag-and-drop/events/drop-target/enter-event.mjs} +1 -1
  38. package/{esm2015/drag-and-drop/events/drop-target/index.js → esm2020/drag-and-drop/events/drop-target/index.mjs} +1 -1
  39. package/{esm2015/drag-and-drop/events/drop-target/leave-event.js → esm2020/drag-and-drop/events/drop-target/leave-event.mjs} +1 -1
  40. package/{esm2015/drag-and-drop/events/drop-target/over-event.js → esm2020/drag-and-drop/events/drop-target/over-event.mjs} +1 -1
  41. package/{esm2015/drag-and-drop/hint.component.js → esm2020/drag-and-drop/hint.component.mjs} +5 -5
  42. package/{esm2015/drag-and-drop/models/dragaxis.js → esm2020/drag-and-drop/models/allowed-target.mjs} +1 -1
  43. package/{esm2015/drag-and-drop/models/autoscroll-options.js → esm2020/drag-and-drop/models/autoscroll-options.mjs} +1 -1
  44. package/{esm2015/drag-and-drop/models/allowed-target.js → esm2020/drag-and-drop/models/coordinates.mjs} +1 -1
  45. package/{esm2015/drag-and-drop/models/coordinates.js → esm2020/drag-and-drop/models/dragaxis.mjs} +1 -1
  46. package/esm2020/drag-and-drop/models/index.mjs +5 -0
  47. package/esm2020/drag-and-drop/models/scroll-direction.mjs +5 -0
  48. package/{esm2015/drag-and-drop/util.js → esm2020/drag-and-drop/util.mjs} +1 -1
  49. package/{esm2015/drag-and-drop.module.js → esm2020/drag-and-drop.module.mjs} +5 -5
  50. package/{esm2015/main.js → esm2020/index.mjs} +1 -1
  51. package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
  52. package/{esm2015/kendo-angular-utils.js → esm2020/progress-kendo-angular-utils.mjs} +2 -2
  53. package/{esm2015/utils.module.js → esm2020/utils.module.mjs} +5 -5
  54. package/fesm2015/{kendo-angular-utils.js → progress-kendo-angular-utils.mjs} +27 -27
  55. package/fesm2020/progress-kendo-angular-utils.mjs +960 -0
  56. package/{main.d.ts → index.d.ts} +1 -1
  57. package/package-metadata.d.ts +1 -1
  58. package/package.json +32 -59
  59. package/{kendo-angular-utils.d.ts → progress-kendo-angular-utils.d.ts} +2 -2
  60. package/utils.module.d.ts +1 -1
  61. package/bundles/kendo-angular-utils.umd.js +0 -5
  62. package/esm2015/drag-and-drop/models/index.js +0 -5
  63. package/esm2015/drag-and-drop/models/scroll-direction.js +0 -5
  64. package/schematics/collection.json +0 -12
  65. package/schematics/ngAdd/index.js +0 -21
  66. package/schematics/ngAdd/index.js.map +0 -1
  67. package/schematics/ngAdd/schema.json +0 -28
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 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 { UtilsModule } from './utils.module';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 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 { PackageMetadata } from '@progress/kendo-licensing';
package/package.json CHANGED
@@ -1,81 +1,54 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-utils",
3
- "version": "0.1.3-dev.202211170817",
4
- "description": "Kendo UI Angular Utilities package",
3
+ "version": "11.0.0-develop.100",
4
+ "description": "Kendo UI Angular utils component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
7
7
  "homepage": "https://www.telerik.com/kendo-angular-ui/components/",
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/telerik/kendo-angular-utils.git"
11
- },
12
8
  "bugs": {
13
9
  "url": "https://github.com/telerik/kendo-angular"
14
10
  },
15
11
  "keywords": [
16
12
  "Angular",
17
13
  "Kendo UI",
18
- "Drag and Drop",
19
- "Draggable"
14
+ "Utils",
15
+ "Progress"
20
16
  ],
21
17
  "@progress": {
22
- "friendlyName": "Utilities"
23
- },
24
- "dependencies": {
25
- "@progress/kendo-schematics": "^3.0.0",
26
- "@progress/kendo-draggable-common": "0.2.3",
27
- "tslib": "^2.3.1"
18
+ "friendlyName": "Utils"
28
19
  },
29
20
  "peerDependencies": {
30
- "@angular/common": "12 - 15",
31
- "@angular/core": "12 - 15",
32
- "@progress/kendo-angular-common": "^3.0.0",
33
- "@progress/kendo-licensing": "^1.0.0",
34
- "rxjs": "^6.4.0 || ^7.0.0"
21
+ "@angular/animations": "13 - 15",
22
+ "@angular/common": "13 - 15",
23
+ "@angular/core": "13 - 15",
24
+ "@angular/platform-browser": "13 - 15",
25
+ "@progress/kendo-licensing": "^1.0.2",
26
+ "@progress/kendo-angular-common": "11.0.0-develop.100",
27
+ "@progress/kendo-angular-schematics": "11.0.0-develop.100",
28
+ "rxjs": "^6.5.3 || ^7.0.0"
35
29
  },
36
- "config": {
37
- "commitizen": {
38
- "path": "./node_modules/cz-conventional-changelog"
39
- },
40
- "ghooks": {
41
- "commit-msg": "validate-commit-msg"
42
- },
43
- "validate-commit-msg": {
44
- "types": [
45
- "feat",
46
- "fix",
47
- "docs",
48
- "style",
49
- "refactor",
50
- "perf",
51
- "test",
52
- "chore",
53
- "revert"
54
- ],
55
- "warnOnFail": false,
56
- "maxSubjectLength": 100
57
- }
30
+ "dependencies": {
31
+ "tslib": "^2.3.1"
58
32
  },
59
33
  "schematics": "./schematics/collection.json",
60
- "release": {
61
- "debug": false,
62
- "branchTags": {
63
- "develop": "dev"
34
+ "module": "fesm2015/progress-kendo-angular-utils.mjs",
35
+ "es2020": "fesm2020/progress-kendo-angular-utils.mjs",
36
+ "esm2020": "esm2020/progress-kendo-angular-utils.mjs",
37
+ "fesm2020": "fesm2020/progress-kendo-angular-utils.mjs",
38
+ "fesm2015": "fesm2015/progress-kendo-angular-utils.mjs",
39
+ "typings": "progress-kendo-angular-utils.d.ts",
40
+ "exports": {
41
+ "./package.json": {
42
+ "default": "./package.json"
64
43
  },
65
- "fallbackTags": {
66
- "dev": "latest"
67
- },
68
- "analyzeCommits": "@progress/semantic-prerelease/analyzeCommits",
69
- "generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
70
- "getLastRelease": "@progress/semantic-prerelease/getLastRelease",
71
- "verifyConditions": "@progress/semantic-prerelease/verifyConditions",
72
- "verifyRelease": "@progress/semantic-prerelease/verifyRelease"
44
+ ".": {
45
+ "types": "./progress-kendo-angular-utils.d.ts",
46
+ "esm2020": "./esm2020/progress-kendo-angular-utils.mjs",
47
+ "es2020": "./fesm2020/progress-kendo-angular-utils.mjs",
48
+ "es2015": "./fesm2015/progress-kendo-angular-utils.mjs",
49
+ "node": "./fesm2015/progress-kendo-angular-utils.mjs",
50
+ "default": "./fesm2020/progress-kendo-angular-utils.mjs"
51
+ }
73
52
  },
74
- "main": "bundles/kendo-angular-utils.umd.js",
75
- "module": "fesm2015/kendo-angular-utils.js",
76
- "es2015": "fesm2015/kendo-angular-utils.js",
77
- "esm2015": "esm2015/kendo-angular-utils.js",
78
- "fesm2015": "fesm2015/kendo-angular-utils.js",
79
- "typings": "kendo-angular-utils.d.ts",
80
53
  "sideEffects": false
81
54
  }
@@ -1,9 +1,9 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 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
8
  /// <amd-module name="@progress/kendo-angular-utils" />
9
- export * from './main';
9
+ export * from './index';
package/utils.module.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 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 * as i0 from "@angular/core";
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@progress/kendo-licensing"),require("@progress/kendo-draggable-common"),require("@progress/kendo-angular-common")):"function"==typeof define&&define.amd?define("KendoAngularUtils",["exports","@angular/core","@angular/common","@progress/kendo-licensing","@progress/kendo-draggable-common","@progress/kendo-angular-common"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).KendoAngularUtils={},t.ng.core,t.ng.common,t.KendoLicensing,t.KendoDraggableCommon,t.KendoAngularCommon)}(this,function(t,s,e,a,r,i){"use strict";function n(n){var r;return n&&n.__esModule?n:(r=Object.create(null),n&&Object.keys(n).forEach(function(t){var e;"default"!==t&&(e=Object.getOwnPropertyDescriptor(n,t),Object.defineProperty(r,t,e.get?e:{enumerable:!0,get:function(){return n[t]}}))}),r.default=n,Object.freeze(r))}var o=n(s),l=n(e),c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)};function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function d(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||((r=r||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}Object.create;var p,u={name:"@progress/kendo-angular-utils",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1668673038,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},m=function(t){this.element=t,this.hostClass=!0},f=(m.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:m,deps:[{token:o.ElementRef}],target:o.ɵɵFactoryTarget.Directive}),m.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:m,selector:"[kendoDragHandle]",host:{properties:{"class.k-cursor-pointer":"this.hostClass"}},exportAs:["kendoDragHandle"],ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:m,decorators:[{type:s.Directive,args:[{selector:"[kendoDragHandle]",exportAs:"kendoDragHandle"}]}],ctorParameters:function(){return[{type:o.ElementRef}]},propDecorators:{hostClass:[{type:s.HostBinding,args:["class.k-cursor-pointer"]}]}}),function(t){Object.assign(this,t)}),v=(h(y,p=i.PreventableEvent),y);function y(t){var e=p.call(this)||this;return Object.assign(e,t),e}var D,E=function(t){Object.assign(this,t)},T=(h(O,D=i.PreventableEvent),O);function O(t){var e=D.call(this)||this;return Object.assign(e,t),e}function b(t,e){return{event:t,payload:e}}function S(e,n,r){Object.keys(r).forEach(function(t){e.setStyle(n,t,r[t])})}function I(t){return null!=t}var C=function(t){this.element=t,this.hostClasses=!0,this.zIndex=10,this.touchAction="none"},P=(C.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:C,deps:[{token:o.ElementRef}],target:o.ɵɵFactoryTarget.Component}),C.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:C,selector:"ng-component",inputs:{template:"template",directive:"directive"},host:{properties:{"class.k-pos-absolute":"this.hostClasses","class.k-cursor-grab":"this.hostClasses","style.zIndex":"this.zIndex","style.touch-action":"this.touchAction"}},ngImport:o,template:'\n <ng-container *ngTemplateOutlet="template; context: { $implicit: directive }">\n </ng-container>\n ',isInline:!0,directives:[{type:l.NgTemplateOutlet,selector:"[ngTemplateOutlet]",inputs:["ngTemplateOutletContext","ngTemplateOutlet"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:C,decorators:[{type:s.Component,args:[{template:'\n <ng-container *ngTemplateOutlet="template; context: { $implicit: directive }">\n </ng-container>\n '}]}],ctorParameters:function(){return[{type:o.ElementRef}]},propDecorators:{template:[{type:s.Input}],directive:[{type:s.Input}],hostClasses:[{type:s.HostBinding,args:["class.k-pos-absolute"]},{type:s.HostBinding,args:["class.k-cursor-grab"]}],zIndex:[{type:s.HostBinding,args:["style.zIndex"]}],touchAction:[{type:s.HostBinding,args:["style.touch-action"]}]}}),k.prototype.handleDragAndDrop=function(t){this.updateState(),r.dispatchDragAndDrop(this.state,t,this.callbacks)},k.prototype.setPressed=function(t){this.pressed=t},k.prototype.setScrolling=function(t){var e,n=this;(this.isScrolling=t)?(e=r.getScrollableParent(document.elementFromPoint(this.clientOffset.x,this.clientOffset.y)),window.clearInterval(this.scrollInterval),this.scrollInterval=window.setInterval(function(){r.autoScroll(e,{x:n.velocity.x,y:n.velocity.y})},50)):this.scrollInterval&&(window.clearInterval(this.scrollInterval),this.scrollInterval=null)},k.prototype.setVelocity=function(t){this.velocity=t},k.prototype.setOffset=function(t){this.offset=t},k.prototype.setClientOffset=function(t){this.clientOffset=t},k.prototype.setPageOffset=function(t){this.pageOffset=t},k.prototype.setInitialClientOffset=function(t){this.initialClientOffset=t},k.prototype.setScrollOffset=function(t){this.scrollOffset=t},k.prototype.setInitialScrollOffset=function(t){this.initialScrollOffset=t},k.prototype.updateState=function(){this.state={drag:this.dragTarget,drop:this.dropTarget,drags:this.dragTargets,drops:this.dropTargets,pressed:this.pressed,ignoreMouse:this.ignoreMouse,autoScroll:this.autoScroll,isScrolling:this.isScrolling,scrollableParent:this.scrollableParent,autoScrollDirection:this.autoScrollDirection,initialClientOffset:this.initialClientOffset,clientOffset:this.clientOffset,initialScrollOffset:this.initialScrollOffset,scrollOffset:this.scrollOffset,offset:this.offset,pageOffset:this.pageOffset,velocity:this.velocity}},k.prototype.setCallbacks=function(){this.callbacks={onVelocityChange:this.setVelocity.bind(this),onOffsetChange:this.setOffset.bind(this),onClientOffsetChange:this.setClientOffset.bind(this),onPageOffsetChange:this.setPageOffset.bind(this),onInitialClientOffsetChange:this.setInitialClientOffset.bind(this),onScrollOffsetChange:this.setScrollOffset.bind(this),onInitialScrollOffsetChange:this.setInitialScrollOffset.bind(this),onIsPressedChange:this.setPressed.bind(this),onIsScrollingChange:this.setScrolling.bind(this)}},k.prototype.ngOnDestroy=function(){this.scrollInterval&&(window.clearInterval(this.scrollInterval),this.scrollInterval=null)},k);function k(){this.dragTarget=null,this.dropTarget=null,this.dragTargets=[],this.dropTargets=[],this.pressed=!1,this.ignoreMouse=!1,this.autoScroll=!0,this.isScrolling=!1,this.scrollableParent=null,this.autoScrollDirection={horizontal:!0,vertical:!0},this.initialClientOffset={x:0,y:0},this.clientOffset={x:0,y:0},this.initialScrollOffset={x:0,y:0},this.scrollOffset={x:0,y:0},this.offset={x:0,y:0},this.pageOffset={x:0,y:0},this.velocity={x:0,y:0},this.callbacks={},this.scrollInterval=null,this.setCallbacks()}P.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:P,deps:[],target:o.ɵɵFactoryTarget.Injectable}),P.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:P,providedIn:"root"}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:P,decorators:[{type:s.Injectable,args:[{providedIn:"root"}]}],ctorParameters:function(){return[]}});var w=!1,x=!1,l=(Object.defineProperty(A.prototype,"nativeElement",{get:function(){return this.element.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"hintElem",{get:function(){return this.hint.instance.element.nativeElement},enumerable:!1,configurable:!0}),A.prototype.onPointerDown=function(t){var e=this;this.dragHandles.length&&!this.isDragHandle(t.target)||(t.preventDefault(),t=b(t,this.dragTarget),this.service.handleDragAndDrop(t),this.service.autoScroll="object"==typeof this.autoScroll?!1!==this.autoScroll.enabled:this.autoScroll,this.service.scrollableParent=this.getAutoScrollContainer(),this.service.autoScrollDirection="object"==typeof this.autoScroll?this.autoScroll.direction:{horizontal:!0,vertical:!0},this.ngZone.runOutsideAngular(function(){e.attachDomHandlers()}))},A.prototype.onPointerMove=function(t){t.preventDefault();t=b(t,this.dragTarget);this.service.handleDragAndDrop(t)},A.prototype.onPointerUp=function(t){var e=this,t=(t.preventDefault(),b(t,this.dragTarget));this.service.handleDragAndDrop(t),this.ngZone.runOutsideAngular(function(){e.attachDomHandlers()})},A.prototype.ngOnInit=function(){this.initializeDraggable()},A.prototype.ngAfterContentInit=function(){var t=this;(I(this.element)||I(this.dragTarget))&&this.ngZone.runOutsideAngular(function(){t.attachDomHandlers(),t.dragHandles.length||t.renderer.addClass(t.nativeElement,"k-cursor-pointer")}),this.service.dragTargets.push(this.dragTarget)},A.prototype.ngOnDestroy=function(){this.domSubscriptions.forEach(function(t){return t()})},A.prototype.handlePress=function(e){var n=this;0<this.dragDelay?this.dragTimeout=setTimeout(function(){n.pressed=!0,n.ngZone.run(function(){n.dragReady.emit()})},this.dragDelay):this.pressed=!0,this.ngZone.run(function(){var t=new f({normalizedEvent:e,hostElement:n.nativeElement});n.press.emit(t)})},A.prototype.handleDragStart=function(t){var e=this;this.pressed?(this.ngZone.run(function(){w=e.emitEvent("dragStart",{normalizedEvent:t,hostElement:e.nativeElement}).isDefaultPrevented()}),w||(I(this.hintTemplate)&&(this.createHint(),I(this.hint))&&this.renderer.setStyle(this.nativeElement,"opacity","0.7"),this.dragStarted=0===this.threshold,this.service.dragTarget=this.dragTarget,(this.service.dragTargetDirective=this).initialPosition={x:t.clientX-this.position.x,y:t.clientY-this.position.y})):this.dragTimeout&&(clearTimeout(this.dragTimeout),this.dragTimeout=null)},A.prototype.handleDrag=function(t){var e,n,r=this;!this.pressed||w||(e=this.hint?this.hintElem:this.nativeElement,n=e===this.nativeElement?{normalizedEvent:t,hostElement:this.nativeElement}:{normalizedEvent:t,hostElement:this.nativeElement,hintElement:e},this.ngZone.run(function(){x=r.emitEvent("drag",n).isDefaultPrevented()}),x)||("horizontal"===this.restrictByAxis?this.position={x:t.clientX-this.initialPosition.x+t.scrollX,y:0}:"vertical"===this.restrictByAxis?this.position={x:0,y:t.clientY-this.initialPosition.y+t.scrollY}:this.position={x:t.clientX-this.initialPosition.x+t.scrollX,y:t.clientY-this.initialPosition.y+t.scrollY},t=Math.abs(this.position.x)<this.threshold&&Math.abs(this.position.y)<this.threshold,!this.dragStarted&&t)||(!this.dragStarted&&0<this.threshold&&(this.dragStarted=!0),t="translate("+this.position.x+"px, "+this.position.y+"px)",S(this.renderer,e,{transform:t,transition:"none"}))},A.prototype.handleRelease=function(e){var n=this;this.dragTimeout&&(clearTimeout(this.dragTimeout),this.dragTimeout=null,this.pressed=!1),this.service.dragTarget=null,this.service.dragTargetDirective=null,this.ngZone.run(function(){var t=new f({normalizedEvent:e,hostElement:n.nativeElement});n.release.emit(t)})},A.prototype.handleDragEnd=function(e){var n=this,t=(this.dragTimeout&&(clearTimeout(this.dragTimeout),this.dragTimeout=null,this.pressed=!1),I(this.service.dropTarget)&&!i.contains(this.service.dropTarget,this.service.dragTarget,!0)),r=this.hint?this.hintElem:this.nativeElement;(t||0<this.service.dropTargets.length)&&(this.renderer.removeStyle(r,"transform"),S(this.renderer,r,{transition:"transform .3s ease-in-out"}),this.position={x:0,y:0}),I(this.hint)&&(this.renderer.removeStyle(this.nativeElement,"opacity"),this.destroyHint()),this.service.dragTarget=null,this.service.dragTargetDirective=null,!this.dragStarted||w||x||(this.ngZone.run(function(){var t=new E({normalizedEvent:e,hostElement:n.nativeElement});n.dragEnd.emit(t)}),this.dragStarted=!1)},A.prototype.initializeDraggable=function(){this.dragTarget={element:this.nativeElement,hint:null,onPress:this.handlePress.bind(this),onRelease:this.handleRelease.bind(this),onDragStart:this.handleDragStart.bind(this),onDrag:this.handleDrag.bind(this),onDragEnd:this.handleDragEnd.bind(this)}},A.prototype.attachDomHandlers=function(){var t;0<this.domSubscriptions.length&&this.domSubscriptions.forEach(function(t){return t()}),i.isDocumentAvailable()&&I(this.element)&&(this.service.pressed?(this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),t=r.getScrollableParent(this.nativeElement),this.domSubscriptions=[this.renderer.listen(document,"pointermove",this.onPointerMove),this.renderer.listen(document,"mousemove",this.onPointerMove),this.renderer.listen(document,"touchmove",this.onPointerMove),this.renderer.listen(document,"pointerup",this.onPointerUp),this.renderer.listen(document,"pointercancel",this.onPointerUp),this.renderer.listen(document,"mouseup",this.onPointerUp),this.renderer.listen(document,"contextmenu",this.onPointerUp),this.renderer.listen(document,"touchend",this.onPointerUp),this.renderer.listen(document,"touchcancel",this.onPointerUp)],t&&(t===document.getElementsByTagName("html")[0]&&(t=document),this.domSubscriptions.push(this.renderer.listen(t,"scroll",this.onPointerMove)))):(this.onPointerDown=this.onPointerDown.bind(this),t=this.nativeElement,this.domSubscriptions=[this.renderer.listen(t,"pointerdown",this.onPointerDown),this.renderer.listen(t,"mousedown",this.onPointerDown),this.renderer.listen(t,"touchstart",this.onPointerDown)]))},A.prototype.isDragHandle=function(e){return this.dragHandles.toArray().some(function(t){return i.contains(t.element.nativeElement,e,!0)})},A.prototype.getAutoScrollContainer=function(){return"object"==typeof this.autoScroll&&this.autoScroll.boundaryElementRef&&this.autoScroll.boundaryElementRef.nativeElement?this.autoScroll.boundaryElementRef.nativeElement:null},A.prototype.createHint=function(){var t=this.resolver.resolveComponentFactory(C);this.hint=this.viewContainer.createComponent(t),this.hint.instance.template=this.hintTemplate,(this.hint.instance.directive=this).hint.changeDetectorRef.detectChanges(),this.dragTarget.hint=this.hint.instance.element.nativeElement},A.prototype.destroyHint=function(){this.hint.destroy(),this.hint.changeDetectorRef.detectChanges(),this.hint=null,this.dragTarget.hint=null},A.prototype.emitEvent=function(t,e){var n;switch(t){case"dragStart":n=new v(e);break;case"drag":n=new T(e)}return this[t].emit(n),n},A);function A(t,e,n,r,i,o){this.element=t,this.renderer=e,this.ngZone=n,this.service=r,this.viewContainer=i,this.resolver=o,this.threshold=0,this.autoScroll=!0,this.dragDelay=0,this.press=new s.EventEmitter,this.dragStart=new s.EventEmitter,this.drag=new s.EventEmitter,this.dragReady=new s.EventEmitter,this.release=new s.EventEmitter,this.dragEnd=new s.EventEmitter,this.touchAction="none",this.dragTarget=null,this.domSubscriptions=[],this.hint=null,this.initialPosition={x:0,y:0},this.dragStarted=!1,this.pressed=!1,this.dragTimeout=null,this.position={x:0,y:0},a.validatePackage(u)}l.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:l,deps:[{token:o.ElementRef},{token:o.Renderer2},{token:o.NgZone},{token:P},{token:o.ViewContainerRef},{token:o.ComponentFactoryResolver}],target:o.ɵɵFactoryTarget.Directive}),l.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:l,selector:"[kendoDragTarget]",inputs:{hintTemplate:"hintTemplate",threshold:"threshold",autoScroll:"autoScroll",link:"link",dragDelay:"dragDelay",restrictByAxis:"restrictByAxis"},outputs:{press:"press",dragStart:"dragStart",drag:"drag",dragReady:"dragReady",release:"release",dragEnd:"dragEnd"},host:{properties:{"style.touch-action":"this.touchAction"}},queries:[{propertyName:"dragHandles",predicate:m}],exportAs:["kendoDragTarget"],ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:l,decorators:[{type:s.Directive,args:[{selector:"[kendoDragTarget]",exportAs:"kendoDragTarget"}]}],ctorParameters:function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:o.NgZone},{type:P},{type:o.ViewContainerRef},{type:o.ComponentFactoryResolver}]},propDecorators:{hintTemplate:[{type:s.Input}],threshold:[{type:s.Input}],autoScroll:[{type:s.Input}],link:[{type:s.Input}],dragDelay:[{type:s.Input}],restrictByAxis:[{type:s.Input}],press:[{type:s.Output}],dragStart:[{type:s.Output}],drag:[{type:s.Output}],dragReady:[{type:s.Output}],release:[{type:s.Output}],dragEnd:[{type:s.Output}],touchAction:[{type:s.HostBinding,args:["style.touch-action"]}],dragHandles:[{type:s.ContentChildren,args:[m]}]}});var H=function(t){Object.assign(this,t)},z=function(t){Object.assign(this,t)},Z=function(t){Object.assign(this,t)},F=function(t){Object.assign(this,t)},j=(M.prototype.ngOnInit=function(){this.initializeDropTarget(),this.service.dropTargets.push(this.dropTarget)},M.prototype.handleDragEnter=function(e){var n=this;if(this.service.dragTarget){var t=!0;if(I(this.allowedDragTargets))switch(typeof this.allowedDragTargets){case"function":t=this.allowedDragTargets(this.service.dragTargetDirective);break;case"string":t=this.service.dragTargetDirective.link===this.allowedDragTargets;break;default:t=this.allowedDragTargets.some(function(t){return t===n.service.dragTargetDirective.link})}t&&(this.service.dropTarget=this.dropTarget,this.ngZone.run(function(){var t=new H({normalizedEvent:e,hostElement:n.element.nativeElement});n.dragEnter.emit(t)}))}},M.prototype.handleDragLeave=function(e){var n=this;this.service.dropTarget=null,this.service.dragTarget&&this.ngZone.run(function(){var t=new Z({normalizedEvent:e,hostElement:n.element.nativeElement});n.dragLeave.emit(t)})},M.prototype.handleDragOver=function(e){var n=this;this.service.dragTarget&&this.ngZone.run(function(){var t=new z({normalizedEvent:e,hostElement:n.element.nativeElement});n.dragOver.emit(t)})},M.prototype.handleDrop=function(e){var n=this;this.ngZone.run(function(){var t=new F({normalizedEvent:e,hostElement:n.element.nativeElement});n.drop.emit(t)})},M.prototype.initializeDropTarget=function(){this.dropTarget={element:this.element.nativeElement,onDragEnter:this.handleDragEnter.bind(this),onDragLeave:this.handleDragLeave.bind(this),onDragOver:this.handleDragOver.bind(this),onDrop:this.handleDrop.bind(this)}},M);function M(t,e,n){this.service=t,this.element=e,this.ngZone=n,this.dragEnter=new s.EventEmitter,this.dragOver=new s.EventEmitter,this.dragLeave=new s.EventEmitter,this.drop=new s.EventEmitter,a.validatePackage(u)}j.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:j,deps:[{token:P},{token:o.ElementRef},{token:o.NgZone}],target:o.ɵɵFactoryTarget.Directive}),j.ɵdir=o.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:j,selector:"[kendoDropTarget]",inputs:{allowedDragTargets:"allowedDragTargets"},outputs:{dragEnter:"dragEnter",dragOver:"dragOver",dragLeave:"dragLeave",drop:"drop"},exportAs:["kendoDropTarget"],ngImport:o}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:j,decorators:[{type:s.Directive,args:[{selector:"[kendoDropTarget]",exportAs:"kendoDropTarget"}]}],ctorParameters:function(){return[{type:P},{type:o.ElementRef},{type:o.NgZone}]},propDecorators:{allowedDragTargets:[{type:s.Input}],dragEnter:[{type:s.Output}],dragOver:[{type:s.Output}],dragLeave:[{type:s.Output}],drop:[{type:s.Output}]}});var R=[l,m,j,C],V=function(){},R=(V.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:V,deps:[],target:o.ɵɵFactoryTarget.NgModule}),V.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:V,declarations:[l,m,j,C],imports:[e.CommonModule],exports:[l,m,j,C]}),V.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:V,imports:[[e.CommonModule]]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:V,decorators:[{type:s.NgModule,args:[{declarations:d([],g(R)),exports:d([],g(R)),imports:[e.CommonModule],entryComponents:[C]}]}]}),function(){});R.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:R,deps:[],target:o.ɵɵFactoryTarget.NgModule}),R.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:R,exports:[V]}),R.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:R,imports:[V]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:R,decorators:[{type:s.NgModule,args:[{exports:[V]}]}]}),t.DragAndDropModule=V,t.DragHandleDirective=m,t.DragTargetDirective=l,t.DragTargetDragEndEvent=E,t.DragTargetDragEvent=T,t.DragTargetDragStartEvent=v,t.DragTargetPressEvent=f,t.DropTargetDirective=j,t.DropTargetDragEnterEvent=H,t.DropTargetDragLeaveEvent=Z,t.DropTargetDragOverEvent=z,t.DropTargetDropEvent=F,t.HintComponent=C,t.UtilsModule=R,Object.defineProperty(t,"__esModule",{value:!0})});
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,12 +0,0 @@
1
- {
2
- "$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
3
- "schematics": {
4
- "ng-add": {
5
- "description": "Adds Kendo Angular Package to the application.",
6
- "factory": "./ngAdd",
7
- "schema": "./ngAdd/schema.json",
8
- "hidden": true,
9
- "private": true
10
- }
11
- }
12
- }
@@ -1,21 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- const schematics_1 = require("@angular-devkit/schematics");
8
- function default_1(options) {
9
- const finalOptions = Object.assign(Object.assign({}, options), {
10
- // Default module to import, e.g 'GridModule'
11
- mainNgModule: '',
12
- // Package name, e.g 'grid'
13
- package: '',
14
- // Additional dependencies to install.
15
- // See https://github.com/telerik/kendo-schematics/issues/28
16
- peerDependencies: {
17
- // "@progress/kendo-angular-foo": "^1.0.0"
18
- } });
19
- return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
20
- }
21
- exports.default = default_1;
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKqC;AAErC,mBAAyB,OAAY;IACjC,MAAM,YAAY,mCACX,OAAO;QAEV,6CAA6C;QAC7C,YAAY,EAAE,EAAE;QAEhB,2BAA2B;QAC3B,OAAO,EAAE,EAAE;QAEX,sCAAsC;QACtC,4DAA4D;QAC5D,gBAAgB,EAAE;QACd,0CAA0C;SAC7C,GACJ,CAAC;IAEF,OAAO,8BAAiB,CAAC,4BAA4B,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACnF,CAAC;AAlBD,4BAkBC"}
@@ -1,28 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "SchematicsKendoAngularPackage",
4
- "title": "Kendo Angular Package Options Schema",
5
- "type": "object",
6
- "properties": {
7
- "theme": {
8
- "enum": [
9
- "default",
10
- "bootstrap",
11
- "material"
12
- ],
13
- "default": "default",
14
- "description": "The theme to apply"
15
- },
16
- "export": {
17
- "type": "boolean",
18
- "default": false,
19
- "description": "Specifies if declaring module exports the component."
20
- },
21
- "skipInstall": {
22
- "description": "Skip installing Kendo dependency packages.",
23
- "type": "boolean",
24
- "default": false
25
- }
26
- },
27
- "required": []
28
- }