@syncfusion/ej2-base 25.2.7 → 26.1.35-7502
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/{README.md → ReadMe.md} +100 -100
- package/bin/syncfusion-license.js +104 -1
- package/dist/ej2-base.min.js +1 -10
- package/dist/ej2-base.umd.min.js +1 -10
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +268 -486
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +307 -522
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +1 -10
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/dist/ts/undefined +67 -0
- package/e2e/crypto.js +16 -16
- package/e2e/index.d.ts +27 -27
- package/e2e/m.protractor.config.js +286 -286
- package/e2e/modified-protractor/protractor.config.js +316 -316
- package/e2e/protractor.config.js +389 -389
- package/helpers/e2e/index.js +3 -3
- package/license +10 -10
- package/package.json +225 -161
- package/src/ajax.d.ts +1 -1
- package/src/ajax.js +3 -7
- package/src/animation-model.d.ts +41 -41
- package/src/animation.d.ts +1 -1
- package/src/animation.js +20 -22
- package/src/base.d.ts +2 -1
- package/src/base.js +4 -13
- package/src/browser.d.ts +1 -1
- package/src/browser.js +3 -4
- package/src/child-property.d.ts +1 -0
- package/src/child-property.js +2 -2
- package/src/component-model.d.ts +16 -16
- package/src/component.d.ts +4 -0
- package/src/component.js +28 -36
- package/src/dom.js +4 -11
- package/src/draggable-model.d.ts +113 -113
- package/src/draggable.js +20 -41
- package/src/droppable-model.d.ts +23 -23
- package/src/droppable.js +19 -20
- package/src/event-handler.js +2 -6
- package/src/fetch.js +1 -2
- package/src/hijri-parser.js +3 -3
- package/src/internationalization.d.ts +4 -0
- package/src/internationalization.js +0 -5
- package/src/intl/date-formatter.js +19 -33
- package/src/intl/date-parser.js +33 -62
- package/src/intl/intl-base.d.ts +9 -1
- package/src/intl/intl-base.js +19 -18
- package/src/intl/number-formatter.js +14 -7
- package/src/intl/number-parser.js +2 -6
- package/src/intl/parser-base.js +6 -11
- package/src/keyboard-model.d.ts +16 -16
- package/src/keyboard.js +19 -20
- package/src/module-loader.js +1 -0
- package/src/notify-property-change.d.ts +0 -20
- package/src/notify-property-change.js +16 -55
- package/src/observer.js +3 -6
- package/src/sanitize-helper.js +0 -1
- package/src/template-engine.js +1 -7
- package/src/template.js +13 -18
- package/src/touch-model.d.ts +39 -39
- package/src/touch.js +22 -27
- package/src/util.d.ts +4 -4
- package/src/util.js +12 -37
- package/src/validate-lic.js +4 -3
- package/styles/_all.scss +2 -2
- package/styles/_bds-dark-definition.scss +16 -15
- package/styles/_bds-definition.scss +16 -15
- package/styles/_bootstrap-dark-definition.scss +42 -42
- package/styles/_bootstrap-definition.scss +42 -42
- package/styles/_bootstrap4-definition.scss +11 -11
- package/styles/_bootstrap5-dark-definition.scss +9 -9
- package/styles/_bootstrap5-definition.scss +8 -8
- package/styles/_bootstrap5.3-dark-definition.scss +8 -0
- package/styles/_bootstrap5.3-definition.scss +8 -0
- package/styles/_fabric-dark-definition.scss +42 -42
- package/styles/_fabric-definition.scss +42 -42
- package/styles/_fluent-dark-definition.scss +9 -9
- package/styles/_fluent-definition.scss +9 -9
- package/styles/_fluent2-dark-definition.scss +9 -0
- package/styles/_fluent2-definition.scss +9 -0
- package/styles/_fluent2-highcontrast-definition.scss +9 -0
- package/styles/_fusionnew-dark-definition.scss +8 -8
- package/styles/_fusionnew-definition.scss +8 -8
- package/styles/_highcontrast-definition.scss +42 -42
- package/styles/_highcontrast-light-definition.scss +42 -42
- package/styles/_material-dark-definition.scss +49 -48
- package/styles/_material-definition.scss +50 -49
- package/styles/_material3-dark-definition.scss +15 -14
- package/styles/_material3-definition.scss +16 -15
- package/styles/_tailwind-dark-definition.scss +16 -15
- package/styles/_tailwind-definition.scss +16 -15
- package/styles/_tailwind3-dark-definition.scss +15 -0
- package/styles/_tailwind3-definition.scss +15 -0
- package/styles/animation/_all.scss +535 -560
- package/styles/bds-lite.css +3408 -0
- package/styles/bds-lite.scss +3 -0
- package/styles/bds.css +3408 -0
- package/styles/bds.scss +3 -0
- package/styles/bootstrap-dark-lite.css +3749 -0
- package/styles/bootstrap-dark-lite.scss +3 -0
- package/styles/bootstrap-dark.css +1075 -169
- package/styles/bootstrap-lite.css +3749 -0
- package/styles/bootstrap-lite.scss +3 -0
- package/styles/bootstrap.css +1075 -169
- package/styles/bootstrap4-lite.css +3390 -0
- package/styles/bootstrap4-lite.scss +3 -0
- package/styles/bootstrap4.css +1063 -169
- package/styles/bootstrap5-dark-lite.css +2966 -0
- package/styles/bootstrap5-dark-lite.scss +3 -0
- package/styles/bootstrap5-dark.css +1068 -171
- package/styles/bootstrap5-lite.css +2966 -0
- package/styles/bootstrap5-lite.scss +3 -0
- package/styles/bootstrap5.3-lite.css +3559 -0
- package/styles/bootstrap5.3-lite.scss +3 -0
- package/styles/bootstrap5.3.css +3559 -0
- package/styles/bootstrap5.3.scss +3 -0
- package/styles/bootstrap5.css +1066 -169
- package/styles/common/_all.scss +2 -2
- package/styles/common/_core.scss +111 -117
- package/styles/common/_mixin.scss +11 -9
- package/styles/definition/_bds-dark.scss +1193 -1178
- package/styles/definition/_bds.scss +1488 -1458
- package/styles/definition/_bootstrap-dark.scss +213 -219
- package/styles/definition/_bootstrap.scss +208 -215
- package/styles/definition/_bootstrap4.scss +159 -167
- package/styles/definition/_bootstrap5-dark.scss +481 -494
- package/styles/definition/_bootstrap5.3-dark.scss +1232 -0
- package/styles/definition/_bootstrap5.3.scss +1579 -0
- package/styles/definition/_bootstrap5.scss +481 -495
- package/styles/definition/_fabric-dark.scss +194 -200
- package/styles/definition/_fabric.scss +192 -198
- package/styles/definition/_fluent-dark.scss +494 -557
- package/styles/definition/_fluent.scss +494 -558
- package/styles/definition/_fluent2-dark.scss +1523 -0
- package/styles/definition/_fluent2-highcontrast.scss +1523 -0
- package/styles/definition/_fluent2.scss +2295 -0
- package/styles/definition/_fusionnew-dark.scss +330 -362
- package/styles/definition/_fusionnew.scss +331 -363
- package/styles/definition/_highcontrast-light.scss +189 -193
- package/styles/definition/_highcontrast.scss +189 -195
- package/styles/definition/_material-dark.scss +193 -198
- package/styles/definition/_material.scss +186 -192
- package/styles/definition/_material3-dark.scss +660 -710
- package/styles/definition/_material3.scss +729 -792
- package/styles/definition/_tailwind-dark.scss +445 -488
- package/styles/definition/_tailwind.scss +443 -485
- package/styles/definition/_tailwind3-dark.scss +1622 -0
- package/styles/definition/_tailwind3.scss +2093 -0
- package/styles/fabric-dark-lite.css +3734 -0
- package/styles/fabric-dark-lite.scss +3 -0
- package/styles/fabric-dark.css +1075 -169
- package/styles/fabric-lite.css +3734 -0
- package/styles/fabric-lite.scss +3 -0
- package/styles/fabric.css +1075 -169
- package/styles/fluent-dark-lite.css +2966 -0
- package/styles/fluent-dark-lite.scss +3 -0
- package/styles/fluent-dark.css +1066 -169
- package/styles/fluent-lite.css +2966 -0
- package/styles/fluent-lite.scss +3 -0
- package/styles/fluent.css +1066 -169
- package/styles/fluent2-lite.css +4017 -0
- package/styles/fluent2-lite.scss +3 -0
- package/styles/fluent2.css +4017 -0
- package/styles/fluent2.scss +3 -0
- package/styles/highcontrast-light-lite.css +3725 -0
- package/styles/highcontrast-light-lite.scss +3 -0
- package/styles/highcontrast-light.css +1075 -169
- package/styles/highcontrast-lite.css +3725 -0
- package/styles/highcontrast-lite.scss +3 -0
- package/styles/highcontrast.css +1075 -169
- package/styles/material-dark-lite.css +3702 -0
- package/styles/material-dark-lite.scss +3 -0
- package/styles/material-dark.css +1075 -169
- package/styles/material-lite.css +3702 -0
- package/styles/material-lite.scss +3 -0
- package/styles/material.css +1075 -169
- package/styles/material3-dark-lite.css +3021 -0
- package/styles/material3-dark-lite.scss +3 -0
- package/styles/material3-dark.css +1066 -170
- package/styles/material3-lite.css +3077 -0
- package/styles/material3-lite.scss +3 -0
- package/styles/material3.css +1066 -170
- package/styles/offline-theme/material-dark.css +1075 -169
- package/styles/offline-theme/material.css +1075 -169
- package/styles/offline-theme/tailwind-dark.css +1067 -170
- package/styles/offline-theme/tailwind.css +1067 -170
- package/styles/tailwind-dark-lite.css +2967 -0
- package/styles/tailwind-dark-lite.scss +3 -0
- package/styles/tailwind-dark.css +1067 -170
- package/styles/tailwind-lite.css +2967 -0
- package/styles/tailwind-lite.scss +3 -0
- package/styles/tailwind.css +1067 -170
- package/styles/tailwind3-lite.css +3775 -0
- package/styles/tailwind3-lite.scss +3 -0
- package/styles/tailwind3.css +3775 -0
- package/styles/tailwind3.scss +3 -0
- package/.eslintrc.json +0 -260
- package/CHANGELOG.md +0 -649
- package/tslint.json +0 -111
package/src/draggable-model.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Base } from './base';
|
|
1
|
+
import { Base } from './base';
|
|
2
2
|
import {DragDirection} from "./draggable";
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -7,14 +7,14 @@ import {DragDirection} from "./draggable";
|
|
|
7
7
|
export interface PositionModel {
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Specifies the left position of cursor in draggable.
|
|
11
|
-
*/
|
|
12
|
-
left?: number;
|
|
10
|
+
* Specifies the left position of cursor in draggable.
|
|
11
|
+
*/
|
|
12
|
+
left?: number;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* Specifies the left position of cursor in draggable.
|
|
16
|
-
*/
|
|
17
|
-
top?: number;
|
|
15
|
+
* Specifies the left position of cursor in draggable.
|
|
16
|
+
*/
|
|
17
|
+
top?: number;
|
|
18
18
|
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -24,157 +24,157 @@ export interface PositionModel {
|
|
|
24
24
|
export interface DraggableModel {
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Defines the distance between the cursor and the draggable element.
|
|
28
|
-
*/
|
|
29
|
-
cursorAt?: PositionModel;
|
|
27
|
+
* Defines the distance between the cursor and the draggable element.
|
|
28
|
+
*/
|
|
29
|
+
cursorAt?: PositionModel;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* If `clone` set to true, drag operations are performed in duplicate element of the draggable element.
|
|
33
|
-
*
|
|
34
|
-
* @default true
|
|
35
|
-
*/
|
|
36
|
-
clone?: boolean;
|
|
32
|
+
* If `clone` set to true, drag operations are performed in duplicate element of the draggable element.
|
|
33
|
+
*
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
clone?: boolean;
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* Defines the parent element in which draggable element movement will be restricted.
|
|
40
|
-
*/
|
|
41
|
-
dragArea?: HTMLElement | string;
|
|
39
|
+
* Defines the parent element in which draggable element movement will be restricted.
|
|
40
|
+
*/
|
|
41
|
+
dragArea?: HTMLElement | string;
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
* Defines the dragArea is scrollable or not.
|
|
45
|
-
*/
|
|
46
|
-
isDragScroll?: boolean;
|
|
44
|
+
* Defines the dragArea is scrollable or not.
|
|
45
|
+
*/
|
|
46
|
+
isDragScroll?: boolean;
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Defines wheather need to replace drag element by currentstateTarget.
|
|
50
|
-
*
|
|
51
|
-
* @private
|
|
52
|
-
*/
|
|
53
|
-
isReplaceDragEle?: boolean;
|
|
49
|
+
* Defines wheather need to replace drag element by currentstateTarget.
|
|
50
|
+
*
|
|
51
|
+
* @private
|
|
52
|
+
*/
|
|
53
|
+
isReplaceDragEle?: boolean;
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* Defines wheather need to add prevent select class to body or not.
|
|
57
|
-
*
|
|
58
|
-
* @private
|
|
59
|
-
*/
|
|
60
|
-
isPreventSelect?: boolean;
|
|
56
|
+
* Defines wheather need to add prevent select class to body or not.
|
|
57
|
+
*
|
|
58
|
+
* @private
|
|
59
|
+
*/
|
|
60
|
+
isPreventSelect?: boolean;
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
* Specifies the callback function for drag event.
|
|
64
|
-
*
|
|
65
|
-
* @event drag
|
|
66
|
-
*/
|
|
67
|
-
drag?: Function;
|
|
63
|
+
* Specifies the callback function for drag event.
|
|
64
|
+
*
|
|
65
|
+
* @event drag
|
|
66
|
+
*/
|
|
67
|
+
drag?: Function;
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
|
-
* Specifies the callback function for dragStart event.
|
|
71
|
-
*
|
|
72
|
-
* @event dragStart
|
|
73
|
-
*/
|
|
74
|
-
dragStart?: Function;
|
|
70
|
+
* Specifies the callback function for dragStart event.
|
|
71
|
+
*
|
|
72
|
+
* @event dragStart
|
|
73
|
+
*/
|
|
74
|
+
dragStart?: Function;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* Specifies the callback function for dragStop event.
|
|
78
|
-
*
|
|
79
|
-
* @event dragStop
|
|
80
|
-
*/
|
|
81
|
-
dragStop?: Function;
|
|
77
|
+
* Specifies the callback function for dragStop event.
|
|
78
|
+
*
|
|
79
|
+
* @event dragStop
|
|
80
|
+
*/
|
|
81
|
+
dragStop?: Function;
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
* Defines the minimum distance draggable element to be moved to trigger the drag operation.
|
|
85
|
-
*
|
|
86
|
-
* @default 1
|
|
87
|
-
*/
|
|
88
|
-
distance?: number;
|
|
84
|
+
* Defines the minimum distance draggable element to be moved to trigger the drag operation.
|
|
85
|
+
*
|
|
86
|
+
* @default 1
|
|
87
|
+
*/
|
|
88
|
+
distance?: number;
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
|
-
* Defines the child element selector which will act as drag handle.
|
|
92
|
-
*/
|
|
93
|
-
handle?: string;
|
|
91
|
+
* Defines the child element selector which will act as drag handle.
|
|
92
|
+
*/
|
|
93
|
+
handle?: string;
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
|
-
* Defines the child element selector which will prevent dragging of element.
|
|
97
|
-
*/
|
|
98
|
-
abort?: string | string[];
|
|
96
|
+
* Defines the child element selector which will prevent dragging of element.
|
|
97
|
+
*/
|
|
98
|
+
abort?: string | string[];
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
|
-
* Defines the callback function for customizing the cloned element.
|
|
102
|
-
*/
|
|
103
|
-
helper?: Function;
|
|
101
|
+
* Defines the callback function for customizing the cloned element.
|
|
102
|
+
*/
|
|
103
|
+
helper?: Function;
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* Defines the scope value to group sets of draggable and droppable items.
|
|
107
|
-
* A draggable with the same scope value will be accepted by the droppable.
|
|
108
|
-
*/
|
|
109
|
-
scope?: string;
|
|
106
|
+
* Defines the scope value to group sets of draggable and droppable items.
|
|
107
|
+
* A draggable with the same scope value will be accepted by the droppable.
|
|
108
|
+
*/
|
|
109
|
+
scope?: string;
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* Specifies the dragTarget by which the clone element is positioned if not given current context element will be considered.
|
|
113
|
-
*
|
|
114
|
-
* @private
|
|
115
|
-
*/
|
|
116
|
-
dragTarget?: string;
|
|
112
|
+
* Specifies the dragTarget by which the clone element is positioned if not given current context element will be considered.
|
|
113
|
+
*
|
|
114
|
+
* @private
|
|
115
|
+
*/
|
|
116
|
+
dragTarget?: string;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
* Defines the axis to limit the draggable element drag path.The possible axis path values are
|
|
120
|
-
* * `x` - Allows drag movement in horizontal direction only.
|
|
121
|
-
* * `y` - Allows drag movement in vertical direction only.
|
|
122
|
-
*/
|
|
123
|
-
axis?: DragDirection;
|
|
119
|
+
* Defines the axis to limit the draggable element drag path.The possible axis path values are
|
|
120
|
+
* * `x` - Allows drag movement in horizontal direction only.
|
|
121
|
+
* * `y` - Allows drag movement in vertical direction only.
|
|
122
|
+
*/
|
|
123
|
+
axis?: DragDirection;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
* Defines the function to change the position value.
|
|
127
|
-
*
|
|
128
|
-
* @private
|
|
129
|
-
*/
|
|
130
|
-
queryPositionInfo?: Function;
|
|
126
|
+
* Defines the function to change the position value.
|
|
127
|
+
*
|
|
128
|
+
* @private
|
|
129
|
+
*/
|
|
130
|
+
queryPositionInfo?: Function;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
|
-
* Defines whether the drag clone element will be split form the cursor pointer.
|
|
134
|
-
*
|
|
135
|
-
* @private
|
|
136
|
-
*/
|
|
137
|
-
enableTailMode?: boolean;
|
|
133
|
+
* Defines whether the drag clone element will be split form the cursor pointer.
|
|
134
|
+
*
|
|
135
|
+
* @private
|
|
136
|
+
*/
|
|
137
|
+
enableTailMode?: boolean;
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
|
-
* Defines whether to skip the previous drag movement comparison.
|
|
141
|
-
*
|
|
142
|
-
* @private
|
|
143
|
-
*/
|
|
144
|
-
skipDistanceCheck?: boolean;
|
|
140
|
+
* Defines whether to skip the previous drag movement comparison.
|
|
141
|
+
*
|
|
142
|
+
* @private
|
|
143
|
+
*/
|
|
144
|
+
skipDistanceCheck?: boolean;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
* @private
|
|
148
|
-
*/
|
|
149
|
-
preventDefault?: boolean;
|
|
147
|
+
* @private
|
|
148
|
+
*/
|
|
149
|
+
preventDefault?: boolean;
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
|
-
* Defines whether to enable autoscroll on drag movement of draggable element.
|
|
153
|
-
* enableAutoScroll
|
|
154
|
-
*
|
|
155
|
-
* @private
|
|
156
|
-
*/
|
|
157
|
-
enableAutoScroll?: boolean;
|
|
152
|
+
* Defines whether to enable autoscroll on drag movement of draggable element.
|
|
153
|
+
* enableAutoScroll
|
|
154
|
+
*
|
|
155
|
+
* @private
|
|
156
|
+
*/
|
|
157
|
+
enableAutoScroll?: boolean;
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
|
-
* Defines whether to enable taphold on mobile devices.
|
|
161
|
-
* enableAutoScroll
|
|
162
|
-
*
|
|
163
|
-
* @private
|
|
164
|
-
*/
|
|
165
|
-
enableTapHold?: boolean;
|
|
160
|
+
* Defines whether to enable taphold on mobile devices.
|
|
161
|
+
* enableAutoScroll
|
|
162
|
+
*
|
|
163
|
+
* @private
|
|
164
|
+
*/
|
|
165
|
+
enableTapHold?: boolean;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
|
-
* Specifies the time delay for tap hold.
|
|
169
|
-
*
|
|
170
|
-
* @default 750
|
|
171
|
-
* @private
|
|
172
|
-
*/
|
|
173
|
-
tapHoldThreshold?: number;
|
|
168
|
+
* Specifies the time delay for tap hold.
|
|
169
|
+
*
|
|
170
|
+
* @default 750
|
|
171
|
+
* @private
|
|
172
|
+
*/
|
|
173
|
+
tapHoldThreshold?: number;
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
|
-
* @private
|
|
177
|
-
*/
|
|
178
|
-
enableScrollHandler?: boolean;
|
|
176
|
+
* @private
|
|
177
|
+
*/
|
|
178
|
+
enableScrollHandler?: boolean;
|
|
179
179
|
|
|
180
180
|
}
|
package/src/draggable.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
20
21
|
import { Base } from './base';
|
|
21
22
|
import { Browser } from './browser';
|
|
22
23
|
import { isVisible } from './dom';
|
|
@@ -72,7 +73,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
72
73
|
_this.prevTop = 0;
|
|
73
74
|
_this.dragProcessStarted = false;
|
|
74
75
|
_this.eleTop = 0;
|
|
75
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
76
76
|
_this.tapHoldTimer = 0;
|
|
77
77
|
_this.externalInitialize = false;
|
|
78
78
|
_this.diffY = 0;
|
|
@@ -158,7 +158,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
158
158
|
return this.getScrollableParent(element.parentNode, axis);
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
|
-
/* eslint-disable */
|
|
162
161
|
Draggable.prototype.getScrollableValues = function () {
|
|
163
162
|
this.parentScrollX = 0;
|
|
164
163
|
this.parentScrollY = 0;
|
|
@@ -166,7 +165,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
166
165
|
var verticalScrollParent = this.getScrollableParent(this.element.parentNode, 'vertical');
|
|
167
166
|
var horizontalScrollParent = this.getScrollableParent(this.element.parentNode, 'horizontal');
|
|
168
167
|
};
|
|
169
|
-
/* eslint-enable */
|
|
170
168
|
Draggable.prototype.initialize = function (evt, curTarget) {
|
|
171
169
|
this.currentStateTarget = evt.target;
|
|
172
170
|
if (this.isDragStarted()) {
|
|
@@ -179,8 +177,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
179
177
|
this.target = (evt.currentTarget || curTarget);
|
|
180
178
|
this.dragProcessStarted = false;
|
|
181
179
|
if (this.abort) {
|
|
182
|
-
/* tslint:disable no-any */
|
|
183
|
-
// eslint-disable-next-line
|
|
184
180
|
var abortSelectors = this.abort;
|
|
185
181
|
if (typeof abortSelectors === 'string') {
|
|
186
182
|
abortSelectors = [abortSelectors];
|
|
@@ -251,7 +247,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
251
247
|
}
|
|
252
248
|
/* istanbul ignore next */
|
|
253
249
|
if (this.isReplaceDragEle) {
|
|
254
|
-
// eslint-disable-next-line
|
|
255
250
|
element = this.currentStateCheck(evt.target, element);
|
|
256
251
|
}
|
|
257
252
|
this.offset = this.calculateParentPosition(element);
|
|
@@ -368,7 +363,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
368
363
|
top: (rect.top + window.pageYOffset) - parseInt(style.marginTop, 10)
|
|
369
364
|
};
|
|
370
365
|
};
|
|
371
|
-
// tslint:disable-next-line:max-func-body-length
|
|
372
366
|
Draggable.prototype.intDrag = function (evt) {
|
|
373
367
|
if (!isUndefined(evt.changedTouches) && (evt.changedTouches.length !== 1)) {
|
|
374
368
|
return;
|
|
@@ -393,7 +387,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
393
387
|
}
|
|
394
388
|
var eleObj = this.checkTargetElement(evt);
|
|
395
389
|
if (eleObj.target && eleObj.instance) {
|
|
396
|
-
/* tslint:disable no-any */
|
|
397
390
|
var flag = true;
|
|
398
391
|
if (this.hoverObject) {
|
|
399
392
|
if (this.hoverObject.instance !== eleObj.instance) {
|
|
@@ -404,7 +397,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
404
397
|
}
|
|
405
398
|
}
|
|
406
399
|
if (flag) {
|
|
407
|
-
// eslint-disable-next-line
|
|
408
400
|
eleObj.instance.dragData[this.scope] = this.droppables[this.scope];
|
|
409
401
|
eleObj.instance.intOver(evt, eleObj.target);
|
|
410
402
|
this.hoverObject = eleObj;
|
|
@@ -553,8 +545,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
553
545
|
if (elements.length === 0) {
|
|
554
546
|
elements = this.getPathElements(evt);
|
|
555
547
|
}
|
|
556
|
-
/* tslint:disable no-any */
|
|
557
|
-
// eslint-disable-next-line
|
|
558
548
|
var scrollParent = this.getScrollParent(elements, false);
|
|
559
549
|
if (this.elementInViewport(this.helperElement)) {
|
|
560
550
|
this.getScrollPosition(scrollParent, draEleTop);
|
|
@@ -576,11 +566,7 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
576
566
|
this.pageX = pagex;
|
|
577
567
|
this.pageY = pagey;
|
|
578
568
|
};
|
|
579
|
-
/* tslint:disable no-any */
|
|
580
|
-
// eslint-disable-next-line
|
|
581
569
|
Draggable.prototype.getScrollParent = function (node, reverse) {
|
|
582
|
-
/* tslint:disable no-any */
|
|
583
|
-
// eslint-disable-next-line
|
|
584
570
|
var nodeEl = reverse ? node.reverse() : node;
|
|
585
571
|
var hasScroll;
|
|
586
572
|
for (var i = nodeEl.length - 1; i >= 0; i--) {
|
|
@@ -664,7 +650,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
664
650
|
var eleObj = this.checkTargetElement(evt);
|
|
665
651
|
if (eleObj.target && eleObj.instance) {
|
|
666
652
|
eleObj.instance.dragStopCalled = true;
|
|
667
|
-
// eslint-disable-next-line
|
|
668
653
|
eleObj.instance.dragData[this.scope] = this.droppables[this.scope];
|
|
669
654
|
eleObj.instance.intDrop(evt, eleObj.target);
|
|
670
655
|
}
|
|
@@ -676,7 +661,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
676
661
|
* @returns {void}
|
|
677
662
|
* @private
|
|
678
663
|
*/
|
|
679
|
-
// eslint-disable-next-line
|
|
680
664
|
Draggable.prototype.intDestroy = function (evt) {
|
|
681
665
|
this.dragProcessStarted = false;
|
|
682
666
|
this.toggleEvents();
|
|
@@ -691,7 +675,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
691
675
|
}
|
|
692
676
|
};
|
|
693
677
|
// triggers when property changed
|
|
694
|
-
// eslint-disable-next-line
|
|
695
678
|
Draggable.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
696
679
|
//No Code to handle
|
|
697
680
|
};
|
|
@@ -722,7 +705,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
722
705
|
eleWidthBound = ele.scrollWidth ? ele.scrollWidth : elementArea.right - elementArea.left;
|
|
723
706
|
eleHeightBound = ele.scrollHeight ? (this.dragArea && !isNullOrUndefined(this.helperElement) && this.helperElement.classList.contains('e-treeview')) ? ele.clientHeight : ele.scrollHeight : elementArea.bottom - elementArea.top;
|
|
724
707
|
var keys = ['Top', 'Left', 'Bottom', 'Right'];
|
|
725
|
-
/* eslint-disable */
|
|
726
708
|
var styles = getComputedStyle(ele);
|
|
727
709
|
for (var i = 0; i < keys.length; i++) {
|
|
728
710
|
var key = keys[parseInt(i.toString(), 10)];
|
|
@@ -732,7 +714,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
732
714
|
this.borderWidth["" + lowerKey] = isNaN(parseFloat(tborder)) ? 0 : parseFloat(tborder);
|
|
733
715
|
this.padding["" + lowerKey] = isNaN(parseFloat(tpadding)) ? 0 : parseFloat(tpadding);
|
|
734
716
|
}
|
|
735
|
-
/* eslint-enable */
|
|
736
717
|
if (this.dragArea && !isNullOrUndefined(this.helperElement) && this.helperElement.classList.contains('e-treeview')) {
|
|
737
718
|
top = elementArea.top + document.scrollingElement.scrollTop;
|
|
738
719
|
}
|
|
@@ -773,8 +754,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
773
754
|
return elem;
|
|
774
755
|
};
|
|
775
756
|
Draggable.prototype.getMousePosition = function (evt, isdragscroll) {
|
|
776
|
-
/* tslint:disable no-any */
|
|
777
|
-
// eslint-disable-next-line
|
|
778
757
|
var dragEle = evt.srcElement !== undefined ? evt.srcElement : evt.target;
|
|
779
758
|
var intCoord = this.getCoordinates(evt);
|
|
780
759
|
var pageX;
|
package/src/droppable-model.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Base } from './base';
|
|
1
|
+
import { Base } from './base';
|
|
2
2
|
import {DropEventArgs} from "./droppable";
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -7,35 +7,35 @@ import {DropEventArgs} from "./droppable";
|
|
|
7
7
|
export interface DroppableModel {
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Defines the selector for draggable element to be accepted by the droppable.
|
|
11
|
-
*/
|
|
12
|
-
accept?: string;
|
|
10
|
+
* Defines the selector for draggable element to be accepted by the droppable.
|
|
11
|
+
*/
|
|
12
|
+
accept?: string;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* Defines the scope value to group sets of draggable and droppable items.
|
|
16
|
-
* A draggable with the same scope value will only be accepted by the droppable.
|
|
17
|
-
*/
|
|
18
|
-
scope?: string;
|
|
15
|
+
* Defines the scope value to group sets of draggable and droppable items.
|
|
16
|
+
* A draggable with the same scope value will only be accepted by the droppable.
|
|
17
|
+
*/
|
|
18
|
+
scope?: string;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* Specifies the callback function, which will be triggered while drag element is dropped in droppable.
|
|
22
|
-
*
|
|
23
|
-
* @event drop
|
|
24
|
-
*/
|
|
25
|
-
drop?: (args: DropEventArgs) => void;
|
|
21
|
+
* Specifies the callback function, which will be triggered while drag element is dropped in droppable.
|
|
22
|
+
*
|
|
23
|
+
* @event drop
|
|
24
|
+
*/
|
|
25
|
+
drop?: (args: DropEventArgs) => void;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* Specifies the callback function, which will be triggered while drag element is moved over droppable element.
|
|
29
|
-
*
|
|
30
|
-
* @event over
|
|
31
|
-
*/
|
|
32
|
-
over?: Function;
|
|
28
|
+
* Specifies the callback function, which will be triggered while drag element is moved over droppable element.
|
|
29
|
+
*
|
|
30
|
+
* @event over
|
|
31
|
+
*/
|
|
32
|
+
over?: Function;
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* Specifies the callback function, which will be triggered while drag element is moved out of droppable element.
|
|
36
|
-
*
|
|
37
|
-
* @event bind
|
|
38
|
-
*/
|
|
39
|
-
out?: Function;
|
|
35
|
+
* Specifies the callback function, which will be triggered while drag element is moved out of droppable element.
|
|
36
|
+
*
|
|
37
|
+
* @event bind
|
|
38
|
+
*/
|
|
39
|
+
out?: Function;
|
|
40
40
|
|
|
41
41
|
}
|
package/src/droppable.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
20
|
import { Base } from './base';
|
|
21
21
|
import { Browser } from './browser';
|
|
22
22
|
import { isVisible, matches } from './dom';
|
|
@@ -55,7 +55,6 @@ var Droppable = /** @class */ (function (_super) {
|
|
|
55
55
|
EventHandler.add(this.element, Browser.isSafari() ? 'touchend' : Browser.touchEndEvent, this.intDrop, this);
|
|
56
56
|
};
|
|
57
57
|
// triggers when property changed
|
|
58
|
-
// eslint-disable-next-line
|
|
59
58
|
Droppable.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
60
59
|
//No Code to handle
|
|
61
60
|
};
|
package/src/event-handler.js
CHANGED
|
@@ -108,12 +108,8 @@ var EventHandler = /** @class */ (function () {
|
|
|
108
108
|
* @returns {void} ?
|
|
109
109
|
*/
|
|
110
110
|
EventHandler.clearEvents = function (element) {
|
|
111
|
-
var eventData;
|
|
112
|
-
var copyData;
|
|
113
|
-
// eslint-disable-next-line
|
|
114
|
-
eventData = EventHandler.addOrGetEventData(element);
|
|
115
|
-
// eslint-disable-next-line
|
|
116
|
-
copyData = extend([], copyData, eventData);
|
|
111
|
+
var eventData = EventHandler.addOrGetEventData(element);
|
|
112
|
+
var copyData = extend([], undefined, eventData);
|
|
117
113
|
for (var i = 0; i < copyData.length; i++) {
|
|
118
114
|
var parseValue = copyData[parseInt(i.toString(), 10)];
|
|
119
115
|
element.removeEventListener(parseValue.name, parseValue.debounce);
|
package/src/fetch.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1
2
|
import { isNullOrUndefined as isNOU, isObject, merge } from './util';
|
|
2
3
|
/**
|
|
3
4
|
* The Fetch class provides a way to make asynchronous network requests, typically to retrieve resources from a server.
|
|
@@ -88,11 +89,9 @@ var Fetch = /** @class */ (function () {
|
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
91
|
return response[responseType]();
|
|
91
|
-
// eslint-disable-next-line
|
|
92
92
|
}).then(function (data) {
|
|
93
93
|
_this.triggerEvent(_this['onSuccess'], data, _this);
|
|
94
94
|
return data;
|
|
95
|
-
// eslint-disable-next-line
|
|
96
95
|
}).catch(function (error) {
|
|
97
96
|
var returnVal = {};
|
|
98
97
|
if (_this.emitError) {
|
package/src/hijri-parser.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***
|
|
2
2
|
* Hijri parser
|
|
3
3
|
*/
|
|
4
|
-
// eslint-disable-next-line
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
5
5
|
export var HijriParser;
|
|
6
6
|
(function (HijriParser) {
|
|
7
7
|
var dateCorrection = [28607, 28636, 28665, 28695, 28724, 28754, 28783, 28813, 28843, 28872, 28901, 28931, 28960, 28990,
|
|
@@ -117,7 +117,7 @@ export var HijriParser;
|
|
|
117
117
|
tYear -= 1;
|
|
118
118
|
tMonth += 12;
|
|
119
119
|
}
|
|
120
|
-
var yPrefix = Math.floor(tYear / 100
|
|
120
|
+
var yPrefix = Math.floor(tYear / 100);
|
|
121
121
|
var julilanOffset = yPrefix - Math.floor(yPrefix / 4.) - 2;
|
|
122
122
|
var julianNumber = Math.floor(365.25 * (tYear + 4716)) + Math.floor(30.6001 * (tMonth + 1)) + day - julilanOffset - 1524;
|
|
123
123
|
yPrefix = Math.floor((julianNumber - 1867216.25) / 36524.25);
|
|
@@ -136,7 +136,7 @@ export var HijriParser;
|
|
|
136
136
|
year = c - 4716;
|
|
137
137
|
var modifiedJulianDate = julianNumber - 2400000;
|
|
138
138
|
// date calculation for year after 2077
|
|
139
|
-
var iyear = 10631
|
|
139
|
+
var iyear = 10631 / 30;
|
|
140
140
|
var z = julianNumber - 1948084;
|
|
141
141
|
var cyc = Math.floor(z / 10631.);
|
|
142
142
|
z = z - 10631 * cyc;
|
|
@@ -58,6 +58,10 @@ export interface NumberFormatOptions {
|
|
|
58
58
|
* Specifies whether to use grouping or not in formatted value,
|
|
59
59
|
*/
|
|
60
60
|
useGrouping?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Specifies whether to ignore currency symbol in formatted value,
|
|
63
|
+
*/
|
|
64
|
+
ignoreCurrency?: boolean;
|
|
61
65
|
/**
|
|
62
66
|
* Specifies the skeleton for perform formatting.
|
|
63
67
|
*/
|