@syncfusion/ej2-base 19.3.57 → 19.4.52
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/.github/PULL_REQUEST_TEMPLATE/Bug.md +60 -0
- package/.github/PULL_REQUEST_TEMPLATE/feature.md +42 -0
- package/CHANGELOG.md +10 -6
- package/{ReadMe.md → README.md} +3 -3
- package/dist/ej2-base.umd.min.js +10 -1
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +53 -41
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +52 -40
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +10 -1
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +9 -0
- package/package.json +212 -146
- package/src/component.d.ts +1 -0
- package/src/component.js +5 -0
- package/src/draggable-model.d.ts +1 -0
- package/src/draggable.d.ts +4 -2
- package/src/draggable.js +38 -33
- package/src/intl/intl-base.js +8 -6
- package/src/template.js +1 -1
- package/styles/_fluent-dark-definition.scss +10 -0
- package/styles/_fluent-definition.scss +10 -0
- package/styles/bootstrap4.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/definition/_bootstrap-dark.scss +1 -0
- package/styles/definition/_bootstrap.scss +1 -0
- package/styles/definition/_bootstrap4.scss +1 -0
- package/styles/definition/_bootstrap5-dark.scss +1 -0
- package/styles/definition/_bootstrap5.scss +2 -1
- package/styles/definition/_fabric-dark.scss +1 -0
- package/styles/definition/_fabric.scss +1 -0
- package/styles/definition/_fluent-dark.scss +408 -0
- package/styles/definition/_fluent.scss +410 -0
- package/styles/definition/_highcontrast-light.scss +1 -0
- package/styles/definition/_highcontrast.scss +1 -0
- package/styles/definition/_material-dark.scss +1 -0
- package/styles/definition/_material.scss +1 -0
- package/styles/definition/_tailwind-dark.scss +1 -0
- package/styles/definition/_tailwind.scss +1 -0
- package/styles/fabric-dark.css +1 -1
- package/styles/fabric.css +1 -1
- package/styles/highcontrast-light.css +1 -1
- package/styles/highcontrast.css +1 -1
- package/styles/material-dark.css +1 -1
- package/styles/material.css +1 -1
- package/styles/tailwind-dark.css +1 -629
- package/styles/tailwind.css +1 -629
package/dist/global/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* filename: index.d.ts
|
|
3
|
+
* version : 19.4.52
|
|
4
|
+
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
|
+
* Use of this code is subject to the terms of our license.
|
|
6
|
+
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
+
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
+
* applicable laws.
|
|
9
|
+
*/
|
|
1
10
|
import * as _base from '@syncfusion/ej2-base';
|
|
2
11
|
|
|
3
12
|
export declare namespace ej {
|
package/package.json
CHANGED
|
@@ -1,147 +1,213 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
2
|
+
"_from": "@syncfusion/ej2-base@*",
|
|
3
|
+
"_id": "@syncfusion/ej2-base@19.4.48",
|
|
4
|
+
"_inBundle": false,
|
|
5
|
+
"_integrity": "sha512-JeLsLtdfohTepI2YIJfTT9nMo6YkneoYWaqvZliO6C+kx790XeAZeFQnXTZuYaVTp24RKT8OUXntp5IhzzCwzA==",
|
|
6
|
+
"_location": "/@syncfusion/ej2-base",
|
|
7
|
+
"_phantomChildren": {},
|
|
8
|
+
"_requested": {
|
|
9
|
+
"type": "range",
|
|
10
|
+
"registry": true,
|
|
11
|
+
"raw": "@syncfusion/ej2-base@*",
|
|
12
|
+
"name": "@syncfusion/ej2-base",
|
|
13
|
+
"escapedName": "@syncfusion%2fej2-base",
|
|
14
|
+
"scope": "@syncfusion",
|
|
15
|
+
"rawSpec": "*",
|
|
16
|
+
"saveSpec": null,
|
|
17
|
+
"fetchSpec": "*"
|
|
18
|
+
},
|
|
19
|
+
"_requiredBy": [
|
|
20
|
+
"/",
|
|
21
|
+
"/@syncfusion/ej2",
|
|
22
|
+
"/@syncfusion/ej2-angular-barcode-generator",
|
|
23
|
+
"/@syncfusion/ej2-angular-base",
|
|
24
|
+
"/@syncfusion/ej2-angular-buttons",
|
|
25
|
+
"/@syncfusion/ej2-angular-calendars",
|
|
26
|
+
"/@syncfusion/ej2-angular-charts",
|
|
27
|
+
"/@syncfusion/ej2-angular-circulargauge",
|
|
28
|
+
"/@syncfusion/ej2-angular-diagrams",
|
|
29
|
+
"/@syncfusion/ej2-angular-documenteditor",
|
|
30
|
+
"/@syncfusion/ej2-angular-dropdowns",
|
|
31
|
+
"/@syncfusion/ej2-angular-filemanager",
|
|
32
|
+
"/@syncfusion/ej2-angular-gantt",
|
|
33
|
+
"/@syncfusion/ej2-angular-grids",
|
|
34
|
+
"/@syncfusion/ej2-angular-heatmap",
|
|
35
|
+
"/@syncfusion/ej2-angular-inplace-editor",
|
|
36
|
+
"/@syncfusion/ej2-angular-inputs",
|
|
37
|
+
"/@syncfusion/ej2-angular-kanban",
|
|
38
|
+
"/@syncfusion/ej2-angular-layouts",
|
|
39
|
+
"/@syncfusion/ej2-angular-lineargauge",
|
|
40
|
+
"/@syncfusion/ej2-angular-lists",
|
|
41
|
+
"/@syncfusion/ej2-angular-maps",
|
|
42
|
+
"/@syncfusion/ej2-angular-navigations",
|
|
43
|
+
"/@syncfusion/ej2-angular-notifications",
|
|
44
|
+
"/@syncfusion/ej2-angular-pdfviewer",
|
|
45
|
+
"/@syncfusion/ej2-angular-pivotview",
|
|
46
|
+
"/@syncfusion/ej2-angular-popups",
|
|
47
|
+
"/@syncfusion/ej2-angular-progressbar",
|
|
48
|
+
"/@syncfusion/ej2-angular-querybuilder",
|
|
49
|
+
"/@syncfusion/ej2-angular-richtexteditor",
|
|
50
|
+
"/@syncfusion/ej2-angular-schedule",
|
|
51
|
+
"/@syncfusion/ej2-angular-splitbuttons",
|
|
52
|
+
"/@syncfusion/ej2-angular-spreadsheet",
|
|
53
|
+
"/@syncfusion/ej2-angular-treegrid",
|
|
54
|
+
"/@syncfusion/ej2-angular-treemap",
|
|
55
|
+
"/@syncfusion/ej2-barcode-generator",
|
|
56
|
+
"/@syncfusion/ej2-buttons",
|
|
57
|
+
"/@syncfusion/ej2-calendars",
|
|
58
|
+
"/@syncfusion/ej2-charts",
|
|
59
|
+
"/@syncfusion/ej2-circulargauge",
|
|
60
|
+
"/@syncfusion/ej2-data",
|
|
61
|
+
"/@syncfusion/ej2-diagrams",
|
|
62
|
+
"/@syncfusion/ej2-documenteditor",
|
|
63
|
+
"/@syncfusion/ej2-drawings",
|
|
64
|
+
"/@syncfusion/ej2-dropdowns",
|
|
65
|
+
"/@syncfusion/ej2-excel-export",
|
|
66
|
+
"/@syncfusion/ej2-filemanager",
|
|
67
|
+
"/@syncfusion/ej2-gantt",
|
|
68
|
+
"/@syncfusion/ej2-grids",
|
|
69
|
+
"/@syncfusion/ej2-heatmap",
|
|
70
|
+
"/@syncfusion/ej2-inplace-editor",
|
|
71
|
+
"/@syncfusion/ej2-inputs",
|
|
72
|
+
"/@syncfusion/ej2-kanban",
|
|
73
|
+
"/@syncfusion/ej2-layouts",
|
|
74
|
+
"/@syncfusion/ej2-lineargauge",
|
|
75
|
+
"/@syncfusion/ej2-lists",
|
|
76
|
+
"/@syncfusion/ej2-maps",
|
|
77
|
+
"/@syncfusion/ej2-navigations",
|
|
78
|
+
"/@syncfusion/ej2-notifications",
|
|
79
|
+
"/@syncfusion/ej2-pdfviewer",
|
|
80
|
+
"/@syncfusion/ej2-pivotview",
|
|
81
|
+
"/@syncfusion/ej2-popups",
|
|
82
|
+
"/@syncfusion/ej2-progressbar",
|
|
83
|
+
"/@syncfusion/ej2-querybuilder",
|
|
84
|
+
"/@syncfusion/ej2-react-barcode-generator",
|
|
85
|
+
"/@syncfusion/ej2-react-base",
|
|
86
|
+
"/@syncfusion/ej2-react-buttons",
|
|
87
|
+
"/@syncfusion/ej2-react-calendars",
|
|
88
|
+
"/@syncfusion/ej2-react-charts",
|
|
89
|
+
"/@syncfusion/ej2-react-circulargauge",
|
|
90
|
+
"/@syncfusion/ej2-react-diagrams",
|
|
91
|
+
"/@syncfusion/ej2-react-documenteditor",
|
|
92
|
+
"/@syncfusion/ej2-react-dropdowns",
|
|
93
|
+
"/@syncfusion/ej2-react-filemanager",
|
|
94
|
+
"/@syncfusion/ej2-react-gantt",
|
|
95
|
+
"/@syncfusion/ej2-react-grids",
|
|
96
|
+
"/@syncfusion/ej2-react-heatmap",
|
|
97
|
+
"/@syncfusion/ej2-react-inplace-editor",
|
|
98
|
+
"/@syncfusion/ej2-react-inputs",
|
|
99
|
+
"/@syncfusion/ej2-react-kanban",
|
|
100
|
+
"/@syncfusion/ej2-react-layouts",
|
|
101
|
+
"/@syncfusion/ej2-react-lineargauge",
|
|
102
|
+
"/@syncfusion/ej2-react-lists",
|
|
103
|
+
"/@syncfusion/ej2-react-maps",
|
|
104
|
+
"/@syncfusion/ej2-react-navigations",
|
|
105
|
+
"/@syncfusion/ej2-react-notifications",
|
|
106
|
+
"/@syncfusion/ej2-react-pdfviewer",
|
|
107
|
+
"/@syncfusion/ej2-react-pivotview",
|
|
108
|
+
"/@syncfusion/ej2-react-popups",
|
|
109
|
+
"/@syncfusion/ej2-react-progressbar",
|
|
110
|
+
"/@syncfusion/ej2-react-querybuilder",
|
|
111
|
+
"/@syncfusion/ej2-react-richtexteditor",
|
|
112
|
+
"/@syncfusion/ej2-react-schedule",
|
|
113
|
+
"/@syncfusion/ej2-react-splitbuttons",
|
|
114
|
+
"/@syncfusion/ej2-react-spreadsheet",
|
|
115
|
+
"/@syncfusion/ej2-react-treegrid",
|
|
116
|
+
"/@syncfusion/ej2-react-treemap",
|
|
117
|
+
"/@syncfusion/ej2-richtexteditor",
|
|
118
|
+
"/@syncfusion/ej2-schedule",
|
|
119
|
+
"/@syncfusion/ej2-splitbuttons",
|
|
120
|
+
"/@syncfusion/ej2-spreadsheet",
|
|
121
|
+
"/@syncfusion/ej2-svg-base",
|
|
122
|
+
"/@syncfusion/ej2-treegrid",
|
|
123
|
+
"/@syncfusion/ej2-treemap",
|
|
124
|
+
"/@syncfusion/ej2-vue-barcode-generator",
|
|
125
|
+
"/@syncfusion/ej2-vue-base",
|
|
126
|
+
"/@syncfusion/ej2-vue-buttons",
|
|
127
|
+
"/@syncfusion/ej2-vue-calendars",
|
|
128
|
+
"/@syncfusion/ej2-vue-charts",
|
|
129
|
+
"/@syncfusion/ej2-vue-circulargauge",
|
|
130
|
+
"/@syncfusion/ej2-vue-diagrams",
|
|
131
|
+
"/@syncfusion/ej2-vue-documenteditor",
|
|
132
|
+
"/@syncfusion/ej2-vue-dropdowns",
|
|
133
|
+
"/@syncfusion/ej2-vue-filemanager",
|
|
134
|
+
"/@syncfusion/ej2-vue-gantt",
|
|
135
|
+
"/@syncfusion/ej2-vue-grids",
|
|
136
|
+
"/@syncfusion/ej2-vue-heatmap",
|
|
137
|
+
"/@syncfusion/ej2-vue-inplace-editor",
|
|
138
|
+
"/@syncfusion/ej2-vue-inputs",
|
|
139
|
+
"/@syncfusion/ej2-vue-kanban",
|
|
140
|
+
"/@syncfusion/ej2-vue-layouts",
|
|
141
|
+
"/@syncfusion/ej2-vue-lineargauge",
|
|
142
|
+
"/@syncfusion/ej2-vue-lists",
|
|
143
|
+
"/@syncfusion/ej2-vue-maps",
|
|
144
|
+
"/@syncfusion/ej2-vue-navigations",
|
|
145
|
+
"/@syncfusion/ej2-vue-notifications",
|
|
146
|
+
"/@syncfusion/ej2-vue-pdfviewer",
|
|
147
|
+
"/@syncfusion/ej2-vue-pivotview",
|
|
148
|
+
"/@syncfusion/ej2-vue-popups",
|
|
149
|
+
"/@syncfusion/ej2-vue-progressbar",
|
|
150
|
+
"/@syncfusion/ej2-vue-querybuilder",
|
|
151
|
+
"/@syncfusion/ej2-vue-richtexteditor",
|
|
152
|
+
"/@syncfusion/ej2-vue-schedule",
|
|
153
|
+
"/@syncfusion/ej2-vue-splitbuttons",
|
|
154
|
+
"/@syncfusion/ej2-vue-spreadsheet",
|
|
155
|
+
"/@syncfusion/ej2-vue-treegrid",
|
|
156
|
+
"/@syncfusion/ej2-vue-treemap"
|
|
157
|
+
],
|
|
158
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-19.4.48.tgz",
|
|
159
|
+
"_shasum": "fb9ac7685c8ad563c3251e56ec0c0e7394707e51",
|
|
160
|
+
"_spec": "@syncfusion/ej2-base@*",
|
|
161
|
+
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
162
|
+
"author": {
|
|
163
|
+
"name": "Syncfusion Inc."
|
|
164
|
+
},
|
|
165
|
+
"bugs": {
|
|
166
|
+
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
|
|
167
|
+
},
|
|
168
|
+
"bundleDependencies": false,
|
|
169
|
+
"dependencies": {
|
|
170
|
+
"@syncfusion/ej2-icons": "~19.4.52"
|
|
171
|
+
},
|
|
172
|
+
"deprecated": false,
|
|
173
|
+
"description": "A common package of Essential JS 2 base libraries, methods and class definitions",
|
|
174
|
+
"devDependencies": {},
|
|
175
|
+
"es2015": "./dist/es6/ej2-base.es2015.js",
|
|
176
|
+
"homepage": "https://www.syncfusion.com/javascript-ui-controls",
|
|
177
|
+
"keywords": [
|
|
178
|
+
"ej2",
|
|
179
|
+
"syncfusion",
|
|
180
|
+
"ej2-base",
|
|
181
|
+
"web-components",
|
|
182
|
+
"typescript",
|
|
183
|
+
"base",
|
|
184
|
+
"common",
|
|
185
|
+
"core",
|
|
186
|
+
"library",
|
|
187
|
+
"ajax",
|
|
188
|
+
"animation",
|
|
189
|
+
"internationalization",
|
|
190
|
+
"drag",
|
|
191
|
+
"drop",
|
|
192
|
+
"drag-drop",
|
|
193
|
+
"template",
|
|
194
|
+
"template-engine",
|
|
195
|
+
"rtl",
|
|
196
|
+
"right-to-left",
|
|
197
|
+
"persistence",
|
|
198
|
+
"state-persistence",
|
|
199
|
+
"theme",
|
|
200
|
+
"styles"
|
|
201
|
+
],
|
|
202
|
+
"license": "SEE LICENSE IN license",
|
|
203
|
+
"main": "./dist/ej2-base.umd.min.js",
|
|
204
|
+
"module": "./index.js",
|
|
205
|
+
"name": "@syncfusion/ej2-base",
|
|
206
|
+
"repository": {
|
|
207
|
+
"type": "git",
|
|
208
|
+
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
209
|
+
},
|
|
210
|
+
"typings": "index.d.ts",
|
|
211
|
+
"version": "19.4.52",
|
|
212
|
+
"sideEffects": true
|
|
213
|
+
}
|
package/src/component.d.ts
CHANGED
|
@@ -172,6 +172,7 @@ export declare abstract class Component<ElementType extends HTMLElement> extends
|
|
|
172
172
|
private detectFunction;
|
|
173
173
|
private mergePersistData;
|
|
174
174
|
private setPersistData;
|
|
175
|
+
protected appendReactElement(element: any, container: HTMLElement): void;
|
|
175
176
|
protected renderReactTemplates(): void;
|
|
176
177
|
protected clearTemplate(templateName?: string[], index?: any): void;
|
|
177
178
|
private getUniqueID;
|
package/src/component.js
CHANGED
|
@@ -358,6 +358,11 @@ var Component = /** @class */ (function (_super) {
|
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
360
|
//tslint:disable-next-line
|
|
361
|
+
Component.prototype.appendReactElement = function (element, container) {
|
|
362
|
+
//No Code
|
|
363
|
+
};
|
|
364
|
+
;
|
|
365
|
+
//tslint:disable-next-line
|
|
361
366
|
Component.prototype.renderReactTemplates = function () {
|
|
362
367
|
//No Code
|
|
363
368
|
};
|
package/src/draggable-model.d.ts
CHANGED
package/src/draggable.d.ts
CHANGED
|
@@ -189,6 +189,7 @@ export declare class Draggable extends Base<HTMLElement> implements INotifyPrope
|
|
|
189
189
|
isPreventSelect: boolean;
|
|
190
190
|
/**
|
|
191
191
|
* Specifies the callback function for drag event.
|
|
192
|
+
|
|
192
193
|
* @event
|
|
193
194
|
*/
|
|
194
195
|
drag: Function;
|
|
@@ -273,8 +274,8 @@ export declare class Draggable extends Base<HTMLElement> implements INotifyPrope
|
|
|
273
274
|
*/
|
|
274
275
|
tapHoldThreshold: number;
|
|
275
276
|
/**
|
|
276
|
-
|
|
277
|
-
|
|
277
|
+
* @private
|
|
278
|
+
*/
|
|
278
279
|
enableScrollHandler: boolean;
|
|
279
280
|
private target;
|
|
280
281
|
/**
|
|
@@ -298,6 +299,7 @@ export declare class Draggable extends Base<HTMLElement> implements INotifyPrope
|
|
|
298
299
|
private prevLeft;
|
|
299
300
|
private prevTop;
|
|
300
301
|
private dragProcessStarted;
|
|
302
|
+
private eleTop;
|
|
301
303
|
private tapHoldTimer;
|
|
302
304
|
private dragElePosition;
|
|
303
305
|
currentStateTarget: any;
|
package/src/draggable.js
CHANGED
|
@@ -75,6 +75,7 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
75
75
|
_this.prevTop = 0;
|
|
76
76
|
_this.dragProcessStarted = false;
|
|
77
77
|
/* tslint:disable no-any */
|
|
78
|
+
_this.eleTop = 0;
|
|
78
79
|
_this.tapHoldTimer = 0;
|
|
79
80
|
_this.externalInitialize = false;
|
|
80
81
|
_this.diffY = 0;
|
|
@@ -298,6 +299,11 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
298
299
|
if (this.clone && marginTop !== 0) {
|
|
299
300
|
pos.top += marginTop;
|
|
300
301
|
}
|
|
302
|
+
this.eleTop = !isNaN(parseFloat(styles.top)) ? parseFloat(styles.top) - this.offset.top : 0;
|
|
303
|
+
/* istanbul ignore next */
|
|
304
|
+
// if (this.eleTop > 0) {
|
|
305
|
+
// pos.top += this.eleTop;
|
|
306
|
+
// }
|
|
301
307
|
if (this.enableScrollHandler && !this.clone) {
|
|
302
308
|
pos.top -= this.parentScrollY;
|
|
303
309
|
pos.left -= this.parentScrollX;
|
|
@@ -409,7 +415,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
409
415
|
var dLeft = this.position.left - this.diffX;
|
|
410
416
|
var dTop = this.position.top - this.diffY;
|
|
411
417
|
var styles = getComputedStyle(helperElement);
|
|
412
|
-
var marginTop = parseFloat(styles.marginTop);
|
|
413
418
|
if (this.dragArea) {
|
|
414
419
|
if (this.pageX !== pagex || this.skipDistanceCheck) {
|
|
415
420
|
var helperWidth = helperElement.offsetWidth + (parseFloat(styles.marginLeft)
|
|
@@ -458,41 +463,46 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
458
463
|
this.dragLimit.top = this.clone ? this.dragLimit.top : 0;
|
|
459
464
|
draEleTop = (top - iTop) < 0 ? this.dragLimit.top : (top - iTop);
|
|
460
465
|
draEleLeft = (left - iLeft) < 0 ? this.dragElePosition.left : (left - iLeft);
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
draEleTop = top - iTop;
|
|
469
|
+
draEleLeft = left - iLeft;
|
|
470
|
+
}
|
|
471
|
+
var marginTop = parseFloat(getComputedStyle(this.element).marginTop);
|
|
472
|
+
// when drag-element has margin-top
|
|
473
|
+
/* istanbul ignore next */
|
|
474
|
+
if (marginTop > 0) {
|
|
475
|
+
if (this.clone) {
|
|
476
|
+
draEleTop += marginTop;
|
|
477
|
+
if (dTop < 0) {
|
|
478
|
+
if ((marginTop + dTop) >= 0) {
|
|
479
|
+
draEleTop = marginTop + dTop;
|
|
480
|
+
}
|
|
481
|
+
else {
|
|
482
|
+
draEleTop -= marginTop;
|
|
473
483
|
}
|
|
474
|
-
draEleTop = (this.dragLimit.bottom < draEleTop) ? this.dragLimit.bottom : draEleTop;
|
|
475
484
|
}
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
draEleTop = tempDraEleTop;
|
|
484
|
-
}
|
|
485
|
+
draEleTop = (this.dragLimit.bottom < draEleTop) ? this.dragLimit.bottom : draEleTop;
|
|
486
|
+
}
|
|
487
|
+
if ((top - iTop) < 0) {
|
|
488
|
+
if (dTop + marginTop + (helperElement.offsetHeight - iTop) >= 0) {
|
|
489
|
+
var tempDraEleTop = this.dragLimit.top + dTop - iTop;
|
|
490
|
+
if ((tempDraEleTop + marginTop + iTop) < 0) {
|
|
491
|
+
draEleTop -= marginTop + iTop;
|
|
485
492
|
}
|
|
486
493
|
else {
|
|
487
|
-
draEleTop
|
|
494
|
+
draEleTop = tempDraEleTop;
|
|
488
495
|
}
|
|
489
496
|
}
|
|
497
|
+
else {
|
|
498
|
+
draEleTop -= marginTop + iTop;
|
|
499
|
+
}
|
|
490
500
|
}
|
|
491
501
|
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
}
|
|
502
|
+
/* istanbul ignore next */
|
|
503
|
+
// if(this.eleTop > 0) {
|
|
504
|
+
// draEleTop += this.eleTop;
|
|
505
|
+
// }
|
|
496
506
|
if (this.enableScrollHandler && !this.clone) {
|
|
497
507
|
draEleTop -= this.parentScrollY;
|
|
498
508
|
draEleLeft -= this.parentScrollX;
|
|
@@ -665,11 +675,6 @@ var Draggable = /** @class */ (function (_super) {
|
|
|
665
675
|
pageX = this.clone ? intCoord.pageX : (intCoord.pageX + window.pageXOffset) - this.relativeXPosition;
|
|
666
676
|
pageY = this.clone ? intCoord.pageY : (intCoord.pageY + window.pageYOffset) - this.relativeYPosition;
|
|
667
677
|
}
|
|
668
|
-
if (!this.clone && this.dragArea && !isdragscroll) {
|
|
669
|
-
this.getScrollableValues();
|
|
670
|
-
pageY -= this.tempScrollHeight ? this.parentScrollY : 0;
|
|
671
|
-
pageX -= this.tempScrollWidth ? this.parentScrollX : 0;
|
|
672
|
-
}
|
|
673
678
|
return {
|
|
674
679
|
left: pageX - (this.margin.left + this.cursorAt.left),
|
|
675
680
|
top: pageY - (this.margin.top + this.cursorAt.top)
|
package/src/intl/intl-base.js
CHANGED
|
@@ -33,7 +33,7 @@ export var IntlBase;
|
|
|
33
33
|
(function (IntlBase) {
|
|
34
34
|
// tslint:disable-next-line:max-line-length
|
|
35
35
|
IntlBase.negativeDataRegex = /^(('[^']+'|''|[^*#@0,.E])*)(\*.)?((([#,]*[0,]*0+)(\.0*[0-9]*#*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/;
|
|
36
|
-
IntlBase.customRegex = /^(('[^']+'|''|[^*#@0,.])*)(\*.)?((([0#,]*[0,]*[0#]*)(\.[0#]*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/;
|
|
36
|
+
IntlBase.customRegex = /^(('[^']+'|''|[^*#@0,.])*)(\*.)?((([0#,]*[0,]*[0#]*[0#\ ]*)(\.[0#]*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/;
|
|
37
37
|
IntlBase.latnParseRegex = /0|1|2|3|4|5|6|7|8|9/g;
|
|
38
38
|
var fractionRegex = /[0-9]/g;
|
|
39
39
|
IntlBase.defaultCurrency = '$';
|
|
@@ -887,8 +887,10 @@ export var IntlBase;
|
|
|
887
887
|
cOptions.nlead = pattern[1];
|
|
888
888
|
cOptions.nend = pattern[10];
|
|
889
889
|
var integerPart = pattern[6];
|
|
890
|
-
|
|
891
|
-
|
|
890
|
+
var spaceCapture = integerPart.match(/\ $/g) ? true : false;
|
|
891
|
+
var spaceGrouping = integerPart.replace(/\ $/g, '').indexOf(' ') !== -1;
|
|
892
|
+
cOptions.useGrouping = integerPart.indexOf(',') !== -1 || spaceGrouping;
|
|
893
|
+
integerPart = spaceGrouping ? integerPart.replace(/,/g, '') : integerPart.replace(/,/g, '').replace(/\ $/g, '');
|
|
892
894
|
var fractionPart = pattern[7];
|
|
893
895
|
if (integerPart.indexOf('0') !== -1) {
|
|
894
896
|
cOptions.minimumIntegerDigits = integerPart.length - integerPart.indexOf('0');
|
|
@@ -916,11 +918,11 @@ export var IntlBase;
|
|
|
916
918
|
var symbolPattern = getSymbolPattern(cOptions.type, dOptions.numberMapper.numberSystem, numObject, false);
|
|
917
919
|
if (cOptions.useGrouping) {
|
|
918
920
|
// eslint-disable-next-line
|
|
919
|
-
cOptions.groupSeparator = dOptions.numberMapper.numberSymbols[mapper[2]];
|
|
921
|
+
cOptions.groupSeparator = spaceGrouping ? ' ' : dOptions.numberMapper.numberSymbols[mapper[2]];
|
|
920
922
|
cOptions.groupData = NumberFormat.getGroupingDetails(symbolPattern.split(';')[0]);
|
|
921
923
|
}
|
|
922
924
|
cOptions.nlead = cOptions.nlead.replace(/'/g, '');
|
|
923
|
-
cOptions.nend = cOptions.nend.replace(/'/g, '');
|
|
925
|
+
cOptions.nend = spaceCapture ? ' ' + cOptions.nend.replace(/'/g, '') : cOptions.nend.replace(/'/g, '');
|
|
924
926
|
}
|
|
925
927
|
return cOptions;
|
|
926
928
|
}
|
|
@@ -1177,7 +1179,7 @@ export var IntlBase;
|
|
|
1177
1179
|
}
|
|
1178
1180
|
iCulture = iCulture.slice(0, 2).toUpperCase() + iCulture.substr(2);
|
|
1179
1181
|
if (mapper) {
|
|
1180
|
-
firstDay = mapper[iCulture] || defaultFirstDay;
|
|
1182
|
+
firstDay = mapper[iCulture] || mapper[iCulture.slice(0, 2)] || defaultFirstDay;
|
|
1181
1183
|
}
|
|
1182
1184
|
return firstDayMapper[firstDay];
|
|
1183
1185
|
}
|
package/src/template.js
CHANGED
|
@@ -61,7 +61,7 @@ export function expression(value) {
|
|
|
61
61
|
export function compile(template, helper, ignorePrefix) {
|
|
62
62
|
var argName = 'data';
|
|
63
63
|
var evalExpResult = evalExp(template, argName, helper, ignorePrefix);
|
|
64
|
-
var condtion = "var valueRegEx = (/value=\\'([A-Za-z0-9 _]*)((.)([\\w)(!-;?-\u25A0\\s]+)['])/g);\n var hrefRegex = (/(?:href)([\\s='\"./]+)([\\w-./?=&\\\\#\"]+)((.)([\\w)(!-;/?-\u25A0\\s]+)['])/g);\n if(str.match(valueRegEx)){\n var check = str.match(valueRegEx);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(valueRegEx)[i].split('value=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n else if (str.match(/(?:href='')/) === null) {\n if(str.match(hrefRegex)) {\n var check = str.match(hrefRegex);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(hrefRegex)[i].split('href=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n }\n ";
|
|
64
|
+
var condtion = "var valueRegEx = (/value=\\'([A-Za-z0-9 _]*)((.)([\\w)(!-;?-\u25A0\\s]+)['])/g);\n var hrefRegex = (/(?:href)([\\s='\"./]+)([\\w-./?=&\\\\#\"]+)((.)([\\w)(!-;/?-\u25A0\\s]+)['])/g);\n if((str.match(valueRegEx)) && (str.match('svg') === null)){\n var check = str.match(valueRegEx);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(valueRegEx)[i].split('value=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n else if (str.match(/(?:href='')/) === null) {\n if((str.match(hrefRegex)) && (str.match('svg') === null)) {\n var check = str.match(hrefRegex);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(hrefRegex)[i].split('href=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n }\n ";
|
|
65
65
|
var fnCode = "var str=\"" + evalExpResult + "\";" + condtion + " return str;";
|
|
66
66
|
var fn = new Function(argName, fnCode);
|
|
67
67
|
return fn.bind(helper);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
@import 'common/mixin.scss';
|
|
2
|
+
@import 'definition/fluent-dark.scss';
|
|
3
|
+
|
|
4
|
+
$font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif !default;
|
|
5
|
+
$font-size: 12px !default;
|
|
6
|
+
$font-weight: 400 !default;
|
|
7
|
+
$error-font-color: $danger !default;
|
|
8
|
+
$warning-font-color: $orange20 !default;
|
|
9
|
+
$success-font-color: $green20 !default;
|
|
10
|
+
$information-font-color: $white !default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
@import 'common/mixin.scss';
|
|
2
|
+
@import 'definition/fluent.scss';
|
|
3
|
+
|
|
4
|
+
$font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif !default;
|
|
5
|
+
$font-size: 12px !default;
|
|
6
|
+
$font-weight: 400 !default;
|
|
7
|
+
$error-font-color: $danger !default;
|
|
8
|
+
$warning-font-color: $orange20 !default;
|
|
9
|
+
$success-font-color: $green20 !default;
|
|
10
|
+
$information-font-color: $white !default;
|