@syncfusion/ej2-base 21.2.3 → 22.1.34

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 (59) hide show
  1. package/.eslintrc.json +1 -0
  2. package/CHANGELOG.md +24 -0
  3. package/bin/syncfusion-license.js +1 -1
  4. package/dist/ej2-base.min.js +2 -2
  5. package/dist/ej2-base.umd.min.js +2 -2
  6. package/dist/ej2-base.umd.min.js.map +1 -1
  7. package/dist/es6/ej2-base.es2015.js +205 -58
  8. package/dist/es6/ej2-base.es2015.js.map +1 -1
  9. package/dist/es6/ej2-base.es5.js +186 -36
  10. package/dist/es6/ej2-base.es5.js.map +1 -1
  11. package/dist/global/ej2-base.min.js +2 -2
  12. package/dist/global/ej2-base.min.js.map +1 -1
  13. package/dist/global/index.d.ts +1 -1
  14. package/package.json +94 -7
  15. package/src/browser.js +1 -1
  16. package/src/draggable.js +3 -0
  17. package/src/fetch.d.ts +114 -0
  18. package/src/fetch.js +116 -0
  19. package/src/index.d.ts +1 -0
  20. package/src/index.js +1 -0
  21. package/src/intl/number-formatter.js +12 -5
  22. package/src/intl/parser-base.js +16 -16
  23. package/src/template-engine.d.ts +12 -3
  24. package/src/template-engine.js +21 -1
  25. package/src/template.d.ts +2 -2
  26. package/src/template.js +14 -9
  27. package/src/validate-lic.js +3 -3
  28. package/styles/_highcontrast-definition.scss +1 -1
  29. package/styles/_highcontrast-light-definition.scss +1 -1
  30. package/styles/_material3-dark-definition.scss +15 -0
  31. package/styles/_material3-definition.scss +16 -0
  32. package/styles/animation/_all.scss +64 -5
  33. package/styles/bootstrap-dark.css +59 -2
  34. package/styles/bootstrap.css +59 -2
  35. package/styles/bootstrap4.css +59 -2
  36. package/styles/bootstrap5-dark.css +59 -2
  37. package/styles/bootstrap5.css +59 -2
  38. package/styles/common/_core.scss +24 -4
  39. package/styles/definition/_material.scss +0 -3
  40. package/styles/definition/_material3-dark.scss +701 -0
  41. package/styles/definition/_material3.scss +782 -0
  42. package/styles/fabric-dark.css +59 -2
  43. package/styles/fabric.css +59 -2
  44. package/styles/fluent-dark.css +59 -2
  45. package/styles/fluent.css +59 -2
  46. package/styles/highcontrast-light.css +60 -3
  47. package/styles/highcontrast.css +60 -3
  48. package/styles/material-dark.css +59 -2
  49. package/styles/material.css +59 -2
  50. package/styles/material3-dark.css +2020 -0
  51. package/styles/material3-dark.scss +3 -0
  52. package/styles/material3.css +2076 -0
  53. package/styles/material3.scss +3 -0
  54. package/styles/offline-theme/material-dark.css +59 -2
  55. package/styles/offline-theme/material.css +59 -2
  56. package/styles/offline-theme/tailwind-dark.css +59 -2
  57. package/styles/offline-theme/tailwind.css +59 -2
  58. package/styles/tailwind-dark.css +59 -2
  59. package/styles/tailwind.css +59 -2
@@ -14,8 +14,8 @@ var LicenseValidator = /** @class */ (function () {
14
14
  function LicenseValidator(key) {
15
15
  this.isValidated = false;
16
16
  this.isLicensed = true;
17
- this.version = '21';
18
- this.platform = /JavaScript|ASPNET|ASPNETCORE|ASPNETMVC|FileFormats/i;
17
+ this.version = '22';
18
+ this.platform = /JavaScript|ASPNET|ASPNETCORE|ASPNETMVC|FileFormats|essentialstudio/i;
19
19
  this.errors = {
20
20
  noLicense: '<span>This application was built using a trial version of Syncfusion Essential Studio.' +
21
21
  ' To remove the license validation message permanently, a valid license key must be included.</span>',
@@ -116,7 +116,7 @@ var LicenseValidator = /** @class */ (function () {
116
116
  }
117
117
  }
118
118
  if (validateMsg && typeof document !== 'undefined' && !isNullOrUndefined(document)) {
119
- accountURL = (validateURL && validateURL !== '') ? validateURL : "https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=MjE=";
119
+ accountURL = (validateURL && validateURL !== '') ? validateURL : "https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=MjI=";
120
120
  var errorDiv = createElement('div', {
121
121
  innerHTML: "<img src='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD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D4KPC9kZWZzPgo8L3N2Zz4K' style=\"top: 6px;\n position: absolute;\n left: 16px;\n width: 24px;\n height: 24px;\"/>" + validateMsg + ' ' + '<a style="text-decoration: none;color: #0D6EFD;font-weight: 500;" href=' + accountURL + '>Claim your free account</a>'
122
122
  });
@@ -30,7 +30,7 @@ $active-font-color: $content-font !default;
30
30
  $active-icon-color: $content-font !default;
31
31
  $error-font-color: $error-alt !default;
32
32
  $information-font-color: $info-bg !default;
33
- $warning-font-color: $bg-base-20 !default;
33
+ $warning-font-color: $msg-warning-color !default;
34
34
  $success-font-color: $success-alt !default;
35
35
  $overlay-bg-color: #383838 !default;
36
36
  $shadow-color: rgba(0, 0, 0, .4) !default;
@@ -30,7 +30,7 @@ $active-font-color: $content-font !default;
30
30
  $active-icon-color: $content-font !default;
31
31
  $error-font-color: $error-alt !default;
32
32
  $information-font-color: $info-bg !default;
33
- $warning-font-color: $bg-base-20 !default;
33
+ $warning-font-color: $msg-warning-color !default;
34
34
  $success-font-color: $success-alt !default;
35
35
  $overlay-bg-color: #383838 !default;
36
36
  $shadow-color: rgba(0, 0, 0, .4) !default;
@@ -0,0 +1,15 @@
1
+ @import 'common/mixin.scss';
2
+ @import 'definition/material3-dark.scss';
3
+
4
+ @if not variable-exists('is-roboto-loaded') {
5
+ //sass-lint:disable no-url-protocols,no-url-domains
6
+ @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,900&display=swap');// stylelint-disable-line no-invalid-position-at-import-rule
7
+ }
8
+
9
+ $font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif !default;
10
+ $font-size: 12px !default;
11
+ $font-weight: 400 !default;
12
+ $error-font-color: $danger !default;
13
+ $warning-font-color: $warning !default;
14
+ $success-font-color: $success !default;
15
+ $information-font-color: $info !default;
@@ -0,0 +1,16 @@
1
+ @import 'common/mixin.scss';
2
+ @import 'definition/material3.scss';
3
+
4
+ @if not variable-exists('is-roboto-loaded') {
5
+ //sass-lint:disable no-url-protocols,no-url-domains
6
+ @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,900&display=swap');// stylelint-disable-line no-invalid-position-at-import-rule
7
+ }
8
+
9
+ $is-roboto-loaded: 'true' !default;
10
+ $font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif !default;
11
+ $font-size: 12px !default;
12
+ $font-weight: 400 !default;
13
+ $error-font-color: $danger !default;
14
+ $warning-font-color: $warning !default;
15
+ $success-font-color: $success !default;
16
+ $information-font-color: $info !default;
@@ -10,6 +10,7 @@
10
10
  transform: translate(-100%, 0);
11
11
  }
12
12
  }
13
+
13
14
  @keyframes SlideLeftIn {
14
15
  from {
15
16
  transform: translate(-100%, 0);
@@ -19,6 +20,7 @@
19
20
  transform: translate(0, 0);
20
21
  }
21
22
  }
23
+
22
24
  @keyframes SlideRightIn {
23
25
  from {
24
26
  transform: translate(100%, 0);
@@ -28,6 +30,7 @@
28
30
  transform: translate(0, 0);
29
31
  }
30
32
  }
33
+
31
34
  @keyframes SlideRightOut {
32
35
  from {
33
36
  transform: translate(0, 0);
@@ -37,6 +40,7 @@
37
40
  transform: translate(100%, 0);
38
41
  }
39
42
  }
43
+
40
44
  @keyframes SlideBottomIn {
41
45
  from {
42
46
  transform: translate(0, 100%);
@@ -46,6 +50,7 @@
46
50
  transform: translate(0, 0);
47
51
  }
48
52
  }
53
+
49
54
  @keyframes SlideBottomOut {
50
55
  from {
51
56
  transform: translate(0, 0);
@@ -55,6 +60,7 @@
55
60
  transform: translate(0, 100%);
56
61
  }
57
62
  }
63
+
58
64
  @keyframes SlideTopIn {
59
65
  from {
60
66
  transform: translate(0, -100%);
@@ -64,6 +70,7 @@
64
70
  transform: translate(0, 0);
65
71
  }
66
72
  }
73
+
67
74
  @keyframes SlideTopOut {
68
75
  from {
69
76
  transform: translate(0, 0);
@@ -73,6 +80,7 @@
73
80
  transform: translate(0, -100%);
74
81
  }
75
82
  }
83
+
76
84
  @keyframes SlideRight {
77
85
  from {
78
86
  width: 0;
@@ -82,6 +90,7 @@
82
90
  width: 100%;
83
91
  }
84
92
  }
93
+
85
94
  @keyframes SlideLeft {
86
95
  from {
87
96
  width: 100%;
@@ -91,6 +100,7 @@
91
100
  width: 0;
92
101
  }
93
102
  }
103
+
94
104
  @keyframes SlideDown {
95
105
  from {
96
106
  height: 0;
@@ -100,6 +110,7 @@
100
110
  height: 100%;
101
111
  }
102
112
  }
113
+
103
114
  @keyframes SlideUp {
104
115
  from {
105
116
  height: 100%;
@@ -109,6 +120,7 @@
109
120
  height: 0;
110
121
  }
111
122
  }
123
+
112
124
  @keyframes FadeIn {
113
125
  0% {
114
126
  filter: alpha(opacity=0);
@@ -120,6 +132,7 @@
120
132
  opacity: 1;
121
133
  }
122
134
  }
135
+
123
136
  @keyframes FadeOut {
124
137
  from {
125
138
  filter: alpha(opacity=100);
@@ -131,6 +144,7 @@
131
144
  opacity: 0;
132
145
  }
133
146
  }
147
+
134
148
  @keyframes ZoomIn {
135
149
  from {
136
150
  transform: translate(0, 0) scale(0);
@@ -140,6 +154,7 @@
140
154
  transform: translate(0, 0) scale(1);
141
155
  }
142
156
  }
157
+
143
158
  @keyframes ZoomOut {
144
159
  from {
145
160
  transform: translate(0, 0) scale(1);
@@ -149,6 +164,7 @@
149
164
  transform: translate(0, 0) scale(0);
150
165
  }
151
166
  }
167
+
152
168
  @keyframes FadeZoomIn {
153
169
  from {
154
170
  filter: alpha(opacity=0);
@@ -162,6 +178,7 @@
162
178
  transform: scale(1);
163
179
  }
164
180
  }
181
+
165
182
  @keyframes FadeZoomOut {
166
183
  from {
167
184
  filter: alpha(opacity=100);
@@ -175,6 +192,7 @@
175
192
  transform: scale(0);
176
193
  }
177
194
  }
195
+
178
196
  @keyframes FlipRightDownIn {
179
197
  from {
180
198
  transform: perspective(400px) rotateY(-180deg);
@@ -188,6 +206,7 @@
188
206
  transform-style: preserve-3d;
189
207
  }
190
208
  }
209
+
191
210
  @keyframes FlipRightDownOut {
192
211
  from {
193
212
  transform: perspective(400px) rotateY(0deg);
@@ -201,6 +220,7 @@
201
220
  transform-style: preserve-3d;
202
221
  }
203
222
  }
223
+
204
224
  @keyframes FlipRightUpIn {
205
225
  from {
206
226
  transform: perspective(400px) rotateY(135deg);
@@ -214,6 +234,7 @@
214
234
  transform-style: preserve-3d;
215
235
  }
216
236
  }
237
+
217
238
  @keyframes FlipRightUpOut {
218
239
  from {
219
240
  transform: perspective(400px) rotateY(0deg);
@@ -227,6 +248,7 @@
227
248
  transform-style: preserve-3d;
228
249
  }
229
250
  }
251
+
230
252
  @keyframes FlipLeftDownIn {
231
253
  from {
232
254
  transform: perspective(400px) rotateY(-180deg);
@@ -240,6 +262,7 @@
240
262
  transform-style: preserve-3d;
241
263
  }
242
264
  }
265
+
243
266
  @keyframes FlipLeftDownOut {
244
267
  from {
245
268
  transform: perspective(400px) rotateY(0deg);
@@ -253,6 +276,7 @@
253
276
  transform-style: preserve-3d;
254
277
  }
255
278
  }
279
+
256
280
  @keyframes FlipLeftUpIn {
257
281
  from {
258
282
  transform: perspective(400px) rotateY(-135deg);
@@ -266,6 +290,7 @@
266
290
  transform-style: preserve-3d;
267
291
  }
268
292
  }
293
+
269
294
  @keyframes FlipLeftUpOut {
270
295
  from {
271
296
  transform: perspective(400px) rotateY(0deg);
@@ -279,6 +304,7 @@
279
304
  transform-style: preserve-3d;
280
305
  }
281
306
  }
307
+
282
308
  @keyframes FlipYLeftIn {
283
309
  from {
284
310
  filter: alpha(opacity=0);
@@ -300,6 +326,7 @@
300
326
  transform-style: preserve-3d;
301
327
  }
302
328
  }
329
+
303
330
  @keyframes FlipYLeftOut {
304
331
  from {
305
332
  filter: alpha(opacity=100);
@@ -325,6 +352,7 @@
325
352
  transform-style: preserve-3d;
326
353
  }
327
354
  }
355
+
328
356
  @keyframes FlipYRightIn {
329
357
  from {
330
358
  filter: alpha(opacity=0);
@@ -346,6 +374,7 @@
346
374
  transform-style: preserve-3d;
347
375
  }
348
376
  }
377
+
349
378
  @keyframes FlipYRightOut {
350
379
  from {
351
380
  filter: alpha(opacity=100);
@@ -367,6 +396,7 @@
367
396
  transform-style: preserve-3d;
368
397
  }
369
398
  }
399
+
370
400
  @keyframes FlipXDownIn {
371
401
  from {
372
402
  filter: alpha(opacity=0);
@@ -388,6 +418,7 @@
388
418
  transform-style: preserve-3d;
389
419
  }
390
420
  }
421
+
391
422
  @keyframes FlipXDownOut {
392
423
  from {
393
424
  filter: alpha(opacity=100);
@@ -413,6 +444,7 @@
413
444
  transform-style: preserve-3d;
414
445
  }
415
446
  }
447
+
416
448
  @keyframes FlipXUpIn {
417
449
  from {
418
450
  filter: alpha(opacity=0);
@@ -434,6 +466,7 @@
434
466
  transform-style: preserve-3d;
435
467
  }
436
468
  }
469
+
437
470
  @keyframes FlipXUpOut {
438
471
  from {
439
472
  filter: alpha(opacity=100);
@@ -464,23 +497,44 @@
464
497
  }
465
498
 
466
499
  $ripple-background: rgba(0, 0, 0, .1);
500
+ $ripple-background-m3: linear-gradient(90deg, rgba(28, 27, 31, .08) 0%, rgba(28, 27, 31, .1) 5%, rgba(28, 27, 31, .1) 50%, rgba(28, 27, 31, .1) 50%, rgba(28, 27, 31, .1) 95%, rgba(28, 27, 31, .08) 100%);
467
501
 
468
502
  #{&} .e-ripple-element,
469
503
  #{&} .e-ripple-style::after {
470
- background-color: $ripple-background;
471
- border-radius: 100%;
504
+ @if $skin-name =='Material3' {
505
+ background: $ripple-background-m3;
506
+ }
507
+
508
+ @else {
509
+ background-color: $ripple-background;
510
+ }
511
+ border-radius: 0;
472
512
  overflow: hidden;
473
513
  pointer-events: none;
474
514
  position: absolute;
475
515
  transform: scale(0);
476
- transition: opacity, transform 0ms cubic-bezier(0, .1, .2, 1);
516
+
517
+ @if $skin-name =='Material3' {
518
+ transition: opacity .3s transform 50ms cubic-bezier(.2, 0, 0, 1);
519
+ }
520
+
521
+ @else {
522
+ transition: opacity, transform 0ms cubic-bezier(0, .1, .2, 1);
523
+ }
477
524
  }
478
525
 
479
526
  #{&} .e-ripple-style {
480
527
  $ripple-style-background: rgba(0, 0, 0, .3);
528
+ $ripple-style-background-m3: rgba(28, 27, 31, .12);
481
529
 
482
530
  &::after {
483
- background: $ripple-style-background;
531
+ @if $skin-name =='Material3' {
532
+ background: $ripple-style-background-m3;
533
+ }
534
+
535
+ @else {
536
+ background: $ripple-style-background;
537
+ }
484
538
  content: '';
485
539
  display: block;
486
540
  height: 50%;
@@ -488,7 +542,12 @@
488
542
  opacity: 0;
489
543
  top: 25%;
490
544
  transform: scale(3);
491
- transition: transform .5s, opacity .5s;
545
+ @if $skin-name =='Material3' {
546
+ transition: transform .3s, opacity .3s;
547
+ }
548
+ @else {
549
+ transition: transform .5s, opacity .5s;
550
+ }
492
551
  width: 50%;
493
552
  }
494
553