@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.
Files changed (49) hide show
  1. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +60 -0
  2. package/.github/PULL_REQUEST_TEMPLATE/feature.md +42 -0
  3. package/CHANGELOG.md +10 -6
  4. package/{ReadMe.md → README.md} +3 -3
  5. package/dist/ej2-base.umd.min.js +10 -1
  6. package/dist/ej2-base.umd.min.js.map +1 -1
  7. package/dist/es6/ej2-base.es2015.js +53 -41
  8. package/dist/es6/ej2-base.es2015.js.map +1 -1
  9. package/dist/es6/ej2-base.es5.js +52 -40
  10. package/dist/es6/ej2-base.es5.js.map +1 -1
  11. package/dist/global/ej2-base.min.js +10 -1
  12. package/dist/global/ej2-base.min.js.map +1 -1
  13. package/dist/global/index.d.ts +9 -0
  14. package/package.json +212 -146
  15. package/src/component.d.ts +1 -0
  16. package/src/component.js +5 -0
  17. package/src/draggable-model.d.ts +1 -0
  18. package/src/draggable.d.ts +4 -2
  19. package/src/draggable.js +38 -33
  20. package/src/intl/intl-base.js +8 -6
  21. package/src/template.js +1 -1
  22. package/styles/_fluent-dark-definition.scss +10 -0
  23. package/styles/_fluent-definition.scss +10 -0
  24. package/styles/bootstrap4.css +1 -1
  25. package/styles/bootstrap5-dark.css +1 -1
  26. package/styles/bootstrap5.css +1 -1
  27. package/styles/definition/_bootstrap-dark.scss +1 -0
  28. package/styles/definition/_bootstrap.scss +1 -0
  29. package/styles/definition/_bootstrap4.scss +1 -0
  30. package/styles/definition/_bootstrap5-dark.scss +1 -0
  31. package/styles/definition/_bootstrap5.scss +2 -1
  32. package/styles/definition/_fabric-dark.scss +1 -0
  33. package/styles/definition/_fabric.scss +1 -0
  34. package/styles/definition/_fluent-dark.scss +408 -0
  35. package/styles/definition/_fluent.scss +410 -0
  36. package/styles/definition/_highcontrast-light.scss +1 -0
  37. package/styles/definition/_highcontrast.scss +1 -0
  38. package/styles/definition/_material-dark.scss +1 -0
  39. package/styles/definition/_material.scss +1 -0
  40. package/styles/definition/_tailwind-dark.scss +1 -0
  41. package/styles/definition/_tailwind.scss +1 -0
  42. package/styles/fabric-dark.css +1 -1
  43. package/styles/fabric.css +1 -1
  44. package/styles/highcontrast-light.css +1 -1
  45. package/styles/highcontrast.css +1 -1
  46. package/styles/material-dark.css +1 -1
  47. package/styles/material.css +1 -1
  48. package/styles/tailwind-dark.css +1 -629
  49. package/styles/tailwind.css +1 -629
@@ -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
- "_from": "@syncfusion/ej2-base@*",
3
- "_id": "@syncfusion/ej2-base@19.3.54",
4
- "_inBundle": false,
5
- "_integrity": "sha512-HACy2pHy+sT9CDrrKOR76hXLeI6kmuH8g8QZTHPTru+g3RBF3Tk2R4vw+QglaXAsXldlVMpXWN5YifXMPOfC+Q==",
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-base",
23
- "/@syncfusion/ej2-angular-calendars",
24
- "/@syncfusion/ej2-angular-diagrams",
25
- "/@syncfusion/ej2-angular-documenteditor",
26
- "/@syncfusion/ej2-angular-dropdowns",
27
- "/@syncfusion/ej2-angular-gantt",
28
- "/@syncfusion/ej2-angular-grids",
29
- "/@syncfusion/ej2-angular-inplace-editor",
30
- "/@syncfusion/ej2-angular-navigations",
31
- "/@syncfusion/ej2-angular-pdfviewer",
32
- "/@syncfusion/ej2-angular-spreadsheet",
33
- "/@syncfusion/ej2-barcode-generator",
34
- "/@syncfusion/ej2-buttons",
35
- "/@syncfusion/ej2-calendars",
36
- "/@syncfusion/ej2-charts",
37
- "/@syncfusion/ej2-circulargauge",
38
- "/@syncfusion/ej2-data",
39
- "/@syncfusion/ej2-diagrams",
40
- "/@syncfusion/ej2-documenteditor",
41
- "/@syncfusion/ej2-drawings",
42
- "/@syncfusion/ej2-dropdowns",
43
- "/@syncfusion/ej2-excel-export",
44
- "/@syncfusion/ej2-filemanager",
45
- "/@syncfusion/ej2-gantt",
46
- "/@syncfusion/ej2-grids",
47
- "/@syncfusion/ej2-heatmap",
48
- "/@syncfusion/ej2-inplace-editor",
49
- "/@syncfusion/ej2-inputs",
50
- "/@syncfusion/ej2-kanban",
51
- "/@syncfusion/ej2-layouts",
52
- "/@syncfusion/ej2-lineargauge",
53
- "/@syncfusion/ej2-lists",
54
- "/@syncfusion/ej2-maps",
55
- "/@syncfusion/ej2-navigations",
56
- "/@syncfusion/ej2-notifications",
57
- "/@syncfusion/ej2-pdfviewer",
58
- "/@syncfusion/ej2-pivotview",
59
- "/@syncfusion/ej2-popups",
60
- "/@syncfusion/ej2-progressbar",
61
- "/@syncfusion/ej2-querybuilder",
62
- "/@syncfusion/ej2-react-base",
63
- "/@syncfusion/ej2-react-calendars",
64
- "/@syncfusion/ej2-react-diagrams",
65
- "/@syncfusion/ej2-react-documenteditor",
66
- "/@syncfusion/ej2-react-dropdowns",
67
- "/@syncfusion/ej2-react-gantt",
68
- "/@syncfusion/ej2-react-grids",
69
- "/@syncfusion/ej2-react-inplace-editor",
70
- "/@syncfusion/ej2-react-navigations",
71
- "/@syncfusion/ej2-react-pdfviewer",
72
- "/@syncfusion/ej2-react-spreadsheet",
73
- "/@syncfusion/ej2-richtexteditor",
74
- "/@syncfusion/ej2-schedule",
75
- "/@syncfusion/ej2-splitbuttons",
76
- "/@syncfusion/ej2-spreadsheet",
77
- "/@syncfusion/ej2-svg-base",
78
- "/@syncfusion/ej2-treegrid",
79
- "/@syncfusion/ej2-treemap",
80
- "/@syncfusion/ej2-vue-base",
81
- "/@syncfusion/ej2-vue-calendars",
82
- "/@syncfusion/ej2-vue-diagrams",
83
- "/@syncfusion/ej2-vue-documenteditor",
84
- "/@syncfusion/ej2-vue-dropdowns",
85
- "/@syncfusion/ej2-vue-gantt",
86
- "/@syncfusion/ej2-vue-grids",
87
- "/@syncfusion/ej2-vue-inplace-editor",
88
- "/@syncfusion/ej2-vue-navigations",
89
- "/@syncfusion/ej2-vue-pdfviewer",
90
- "/@syncfusion/ej2-vue-spreadsheet"
91
- ],
92
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-base/-/ej2-base-19.3.54.tgz",
93
- "_shasum": "b43abbe0c8859097f8196f436c0caa28acba521f",
94
- "_spec": "@syncfusion/ej2-base@*",
95
- "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
96
- "author": {
97
- "name": "Syncfusion Inc."
98
- },
99
- "bugs": {
100
- "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
101
- },
102
- "bundleDependencies": false,
103
- "dependencies": {
104
- "@syncfusion/ej2-icons": "~19.3.53"
105
- },
106
- "deprecated": false,
107
- "description": "A common package of Essential JS 2 base libraries, methods and class definitions",
108
- "devDependencies": {},
109
- "es2015": "./dist/es6/ej2-base.es2015.js",
110
- "homepage": "https://www.syncfusion.com/javascript-ui-controls",
111
- "keywords": [
112
- "ej2",
113
- "syncfusion",
114
- "ej2-base",
115
- "web-components",
116
- "typescript",
117
- "base",
118
- "common",
119
- "core",
120
- "library",
121
- "ajax",
122
- "animation",
123
- "internationalization",
124
- "drag",
125
- "drop",
126
- "drag-drop",
127
- "template",
128
- "template-engine",
129
- "rtl",
130
- "right-to-left",
131
- "persistence",
132
- "state-persistence",
133
- "theme",
134
- "styles"
135
- ],
136
- "license": "SEE LICENSE IN license",
137
- "main": "./dist/ej2-base.umd.min.js",
138
- "module": "./index.js",
139
- "name": "@syncfusion/ej2-base",
140
- "repository": {
141
- "type": "git",
142
- "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
143
- },
144
- "typings": "index.d.ts",
145
- "version": "19.3.57",
146
- "sideEffects": true
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
+ }
@@ -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
  };
@@ -58,6 +58,7 @@ export interface DraggableModel {
58
58
 
59
59
  /**
60
60
  * Specifies the callback function for drag event.
61
+
61
62
  * @event
62
63
  */
63
64
  drag?: Function;
@@ -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
- * @private
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
- // when drag-element has margin-top
462
- /* istanbul ignore next */
463
- if (marginTop > 0) {
464
- if (this.clone) {
465
- draEleTop += this.element.offsetTop;
466
- if (dTop < 0) {
467
- if ((this.element.offsetTop + dTop) >= 0) {
468
- draEleTop = this.element.offsetTop + dTop;
469
- }
470
- else {
471
- draEleTop -= this.element.offsetTop;
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
- if ((top - iTop) < 0) {
477
- if (dTop + marginTop + (helperElement.offsetHeight - iTop) >= 0) {
478
- var tempDraEleTop = this.dragLimit.top + dTop - iTop;
479
- if ((tempDraEleTop + marginTop + iTop) < 0) {
480
- draEleTop -= marginTop + iTop;
481
- }
482
- else {
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 -= marginTop + iTop;
494
+ draEleTop = tempDraEleTop;
488
495
  }
489
496
  }
497
+ else {
498
+ draEleTop -= marginTop + iTop;
499
+ }
490
500
  }
491
501
  }
492
- else {
493
- draEleTop = top - iTop;
494
- draEleLeft = left - iLeft;
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)
@@ -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
- cOptions.useGrouping = integerPart.indexOf(',') !== -1;
891
- integerPart = integerPart.replace(/,/g, '');
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;