@syncfusion/ej2-inplace-editor 25.2.3 → 26.1.35

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 (116) hide show
  1. package/.eslintrc.json +3 -2
  2. package/dist/ej2-inplace-editor.umd.min.js +2 -2
  3. package/dist/ej2-inplace-editor.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-inplace-editor.es2015.js +22 -43
  5. package/dist/es6/ej2-inplace-editor.es2015.js.map +1 -1
  6. package/dist/es6/ej2-inplace-editor.es5.js +77 -98
  7. package/dist/es6/ej2-inplace-editor.es5.js.map +1 -1
  8. package/dist/global/ej2-inplace-editor.min.js +2 -2
  9. package/dist/global/ej2-inplace-editor.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/dist/ts/index.d.ts +4 -0
  12. package/dist/ts/index.ts +4 -0
  13. package/dist/ts/inplace-editor/base/classes.d.ts +63 -0
  14. package/dist/ts/inplace-editor/base/classes.ts +63 -0
  15. package/dist/ts/inplace-editor/base/events.d.ts +17 -0
  16. package/dist/ts/inplace-editor/base/events.ts +18 -0
  17. package/dist/ts/inplace-editor/base/index.d.ts +10 -0
  18. package/dist/ts/inplace-editor/base/index.ts +10 -0
  19. package/dist/ts/inplace-editor/base/inplace-editor-model.d.ts +344 -0
  20. package/dist/ts/inplace-editor/base/inplace-editor.d.ts +623 -0
  21. package/dist/ts/inplace-editor/base/inplace-editor.ts +1758 -0
  22. package/dist/ts/inplace-editor/base/interface.d.ts +117 -0
  23. package/dist/ts/inplace-editor/base/interface.ts +127 -0
  24. package/dist/ts/inplace-editor/base/models-model.d.ts +22 -0
  25. package/dist/ts/inplace-editor/base/models.d.ts +31 -0
  26. package/dist/ts/inplace-editor/base/models.ts +45 -0
  27. package/dist/ts/inplace-editor/base/util.d.ts +28 -0
  28. package/dist/ts/inplace-editor/base/util.ts +104 -0
  29. package/dist/ts/inplace-editor/index.d.ts +5 -0
  30. package/dist/ts/inplace-editor/index.ts +5 -0
  31. package/dist/ts/inplace-editor/modules/auto-complete.d.ts +34 -0
  32. package/dist/ts/inplace-editor/modules/auto-complete.ts +65 -0
  33. package/dist/ts/inplace-editor/modules/base-module.d.ts +19 -0
  34. package/dist/ts/inplace-editor/modules/base-module.ts +74 -0
  35. package/dist/ts/inplace-editor/modules/color-picker.d.ts +29 -0
  36. package/dist/ts/inplace-editor/modules/color-picker.ts +55 -0
  37. package/dist/ts/inplace-editor/modules/combo-box.d.ts +34 -0
  38. package/dist/ts/inplace-editor/modules/combo-box.ts +63 -0
  39. package/dist/ts/inplace-editor/modules/date-range-picker.d.ts +29 -0
  40. package/dist/ts/inplace-editor/modules/date-range-picker.ts +55 -0
  41. package/dist/ts/inplace-editor/modules/index.d.ts +12 -0
  42. package/dist/ts/inplace-editor/modules/index.ts +12 -0
  43. package/dist/ts/inplace-editor/modules/multi-select.d.ts +35 -0
  44. package/dist/ts/inplace-editor/modules/multi-select.ts +88 -0
  45. package/dist/ts/inplace-editor/modules/rte.d.ts +31 -0
  46. package/dist/ts/inplace-editor/modules/rte.ts +73 -0
  47. package/dist/ts/inplace-editor/modules/slider.d.ts +30 -0
  48. package/dist/ts/inplace-editor/modules/slider.ts +59 -0
  49. package/dist/ts/inplace-editor/modules/time-picker.d.ts +29 -0
  50. package/dist/ts/inplace-editor/modules/time-picker.ts +54 -0
  51. package/package.json +17 -17
  52. package/src/inplace-editor/base/inplace-editor.d.ts +0 -1
  53. package/src/inplace-editor/base/interface.js +0 -1
  54. package/src/inplace-editor/base/models.js +0 -2
  55. package/styles/bootstrap-dark.css +61 -14
  56. package/styles/bootstrap-dark.scss +26 -1
  57. package/styles/bootstrap.css +63 -15
  58. package/styles/bootstrap.scss +26 -1
  59. package/styles/bootstrap4.css +71 -19
  60. package/styles/bootstrap4.scss +26 -1
  61. package/styles/bootstrap5-dark.css +62 -14
  62. package/styles/bootstrap5-dark.scss +26 -1
  63. package/styles/bootstrap5.css +62 -14
  64. package/styles/bootstrap5.scss +26 -1
  65. package/styles/fabric-dark.css +59 -13
  66. package/styles/fabric-dark.scss +26 -1
  67. package/styles/fabric.css +61 -14
  68. package/styles/fabric.scss +26 -1
  69. package/styles/fluent-dark.css +63 -15
  70. package/styles/fluent-dark.scss +26 -1
  71. package/styles/fluent.css +63 -15
  72. package/styles/fluent.scss +26 -1
  73. package/styles/fluent2.css +1996 -0
  74. package/styles/fluent2.scss +26 -0
  75. package/styles/highcontrast-light.css +62 -13
  76. package/styles/highcontrast-light.scss +26 -1
  77. package/styles/highcontrast.css +64 -14
  78. package/styles/highcontrast.scss +26 -1
  79. package/styles/inplace-editor/_bootstrap5.3-definition.scss +69 -0
  80. package/styles/inplace-editor/_fluent2-definition.scss +71 -0
  81. package/styles/inplace-editor/_theme.scss +8 -3
  82. package/styles/inplace-editor/bootstrap-dark.css +61 -14
  83. package/styles/inplace-editor/bootstrap.css +63 -15
  84. package/styles/inplace-editor/bootstrap4.css +71 -19
  85. package/styles/inplace-editor/bootstrap5-dark.css +62 -14
  86. package/styles/inplace-editor/bootstrap5.css +62 -14
  87. package/styles/inplace-editor/fabric-dark.css +59 -13
  88. package/styles/inplace-editor/fabric.css +61 -14
  89. package/styles/inplace-editor/fluent-dark.css +63 -15
  90. package/styles/inplace-editor/fluent.css +63 -15
  91. package/styles/inplace-editor/fluent2.css +1996 -0
  92. package/styles/inplace-editor/fluent2.scss +26 -0
  93. package/styles/inplace-editor/highcontrast-light.css +62 -13
  94. package/styles/inplace-editor/highcontrast.css +64 -14
  95. package/styles/inplace-editor/icons/_bootstrap5.3.scss +19 -0
  96. package/styles/inplace-editor/icons/_fluent2.scss +19 -0
  97. package/styles/inplace-editor/material-dark.css +79 -17
  98. package/styles/inplace-editor/material.css +95 -20
  99. package/styles/inplace-editor/material3-dark.css +101 -21
  100. package/styles/inplace-editor/material3.css +101 -21
  101. package/styles/inplace-editor/tailwind-dark.css +72 -17
  102. package/styles/inplace-editor/tailwind.css +72 -17
  103. package/styles/material-dark.css +79 -17
  104. package/styles/material-dark.scss +26 -1
  105. package/styles/material.css +95 -20
  106. package/styles/material.scss +26 -1
  107. package/styles/material3-dark.css +101 -21
  108. package/styles/material3-dark.scss +26 -1
  109. package/styles/material3.css +101 -21
  110. package/styles/material3.scss +26 -1
  111. package/styles/tailwind-dark.css +72 -17
  112. package/styles/tailwind-dark.scss +26 -1
  113. package/styles/tailwind.css +72 -17
  114. package/styles/tailwind.scss +26 -1
  115. package/CHANGELOG.md +0 -262
  116. package/dist/ej2-inplace-editor.min.js +0 -10
@@ -1,13 +1,22 @@
1
1
  /* stylelint-disable property-no-vendor-prefix */
2
- /* stylelint-disable-line no-empty-source */ /*! calendar tailwind theme variables */
2
+ /* stylelint-disable-line no-empty-source */
3
+ /*! calendar tailwind theme variables */
3
4
  .e-ddl.e-control-wrapper .e-ddl-icon::before {
4
- transform: rotate(0deg);
5
+ -webkit-transform: rotate(0deg);
6
+ transform: rotate(0deg);
7
+ -webkit-transition: -webkit-transform 300ms ease;
8
+ transition: -webkit-transform 300ms ease;
5
9
  transition: transform 300ms ease;
10
+ transition: transform 300ms ease, -webkit-transform 300ms ease;
6
11
  }
7
12
 
8
13
  .e-ddl.e-control-wrapper.e-icon-anim .e-ddl-icon::before {
9
- transform: rotate(180deg);
14
+ -webkit-transform: rotate(180deg);
15
+ transform: rotate(180deg);
16
+ -webkit-transition: -webkit-transform 300ms ease;
17
+ transition: -webkit-transform 300ms ease;
10
18
  transition: transform 300ms ease;
19
+ transition: transform 300ms ease, -webkit-transform 300ms ease;
11
20
  }
12
21
 
13
22
  .e-dropdownbase .e-list-item.e-active.e-hover {
@@ -24,13 +33,15 @@
24
33
  }
25
34
 
26
35
  .e-input-group .e-ddl-icon:not(:active)::after {
27
- animation: none;
36
+ -webkit-animation: none;
37
+ animation: none;
28
38
  }
29
39
 
30
40
  .e-ddl.e-popup {
31
41
  border: 0;
32
42
  border-radius: 4px;
33
- box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
43
+ -webkit-box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
44
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
34
45
  margin-top: 4px;
35
46
  }
36
47
 
@@ -69,7 +80,8 @@
69
80
  .e-bigger .e-ddl-device .e-input-group.e-input-focus:not(.e-success):not(.e-warning):not(.e-error) {
70
81
  background: #fff;
71
82
  border-width: 0;
72
- box-shadow: none;
83
+ -webkit-box-shadow: none;
84
+ box-shadow: none;
73
85
  margin-bottom: 0;
74
86
  }
75
87
 
@@ -128,19 +140,43 @@
128
140
 
129
141
  /* stylelint-disable-line no-empty-source */
130
142
  /* stylelint-disable property-no-vendor-prefix */
143
+ @-webkit-keyframes material-spinner-rotate {
144
+ 0% {
145
+ -webkit-transform: rotate(0);
146
+ transform: rotate(0);
147
+ }
148
+ 100% {
149
+ -webkit-transform: rotate(360deg);
150
+ transform: rotate(360deg);
151
+ }
152
+ }
131
153
  @keyframes material-spinner-rotate {
132
154
  0% {
155
+ -webkit-transform: rotate(0);
156
+ transform: rotate(0);
157
+ }
158
+ 100% {
159
+ -webkit-transform: rotate(360deg);
160
+ transform: rotate(360deg);
161
+ }
162
+ }
163
+ @-webkit-keyframes fabric-spinner-rotate {
164
+ 0% {
165
+ -webkit-transform: rotate(0);
133
166
  transform: rotate(0);
134
167
  }
135
168
  100% {
169
+ -webkit-transform: rotate(360deg);
136
170
  transform: rotate(360deg);
137
171
  }
138
172
  }
139
173
  @keyframes fabric-spinner-rotate {
140
174
  0% {
175
+ -webkit-transform: rotate(0);
141
176
  transform: rotate(0);
142
177
  }
143
178
  100% {
179
+ -webkit-transform: rotate(360deg);
144
180
  transform: rotate(360deg);
145
181
  }
146
182
  }
@@ -279,6 +315,7 @@
279
315
  .e-inplaceeditor .e-editable-value-wrapper .e-editable-overlay-icon {
280
316
  bottom: 0;
281
317
  cursor: pointer;
318
+ display: -webkit-inline-box;
282
319
  display: -ms-inline-flexbox;
283
320
  display: inline-flex;
284
321
  height: inherit;
@@ -289,8 +326,10 @@
289
326
  width: 20px;
290
327
  }
291
328
  .e-inplaceeditor .e-editable-value-wrapper .e-editable-overlay-icon::before {
292
- -ms-flex-align: center;
293
- align-items: center;
329
+ -webkit-box-align: center;
330
+ -ms-flex-align: center;
331
+ align-items: center;
332
+ display: -webkit-box;
294
333
  display: -ms-flexbox;
295
334
  display: flex;
296
335
  font-size: 14px;
@@ -300,6 +339,7 @@
300
339
  }
301
340
  .e-inplaceeditor .e-editable-value-wrapper.e-editable-open {
302
341
  -webkit-user-select: none;
342
+ -moz-user-select: none;
303
343
  -ms-user-select: none;
304
344
  user-select: none;
305
345
  }
@@ -332,6 +372,7 @@
332
372
  .e-inplaceeditor .e-editable-value-container .e-editable-overlay-icon {
333
373
  bottom: 0;
334
374
  cursor: pointer;
375
+ display: -webkit-inline-box;
335
376
  display: -ms-inline-flexbox;
336
377
  display: inline-flex;
337
378
  height: inherit;
@@ -342,8 +383,10 @@
342
383
  width: 20px;
343
384
  }
344
385
  .e-inplaceeditor .e-editable-value-container .e-editable-overlay-icon::before {
345
- -ms-flex-align: center;
346
- align-items: center;
386
+ -webkit-box-align: center;
387
+ -ms-flex-align: center;
388
+ align-items: center;
389
+ display: -webkit-box;
347
390
  display: -ms-flexbox;
348
391
  display: flex;
349
392
  font-size: 14px;
@@ -353,6 +396,7 @@
353
396
  }
354
397
  .e-inplaceeditor .e-editable-value-container.e-editable-open {
355
398
  -webkit-user-select: none;
399
+ -moz-user-select: none;
356
400
  -ms-user-select: none;
357
401
  user-select: none;
358
402
  }
@@ -377,6 +421,7 @@
377
421
  }
378
422
  .e-inplaceeditor.e-overlay {
379
423
  -webkit-user-select: none;
424
+ -moz-user-select: none;
380
425
  -ms-user-select: none;
381
426
  user-select: none;
382
427
  }
@@ -442,7 +487,8 @@
442
487
  .e-inplaceeditor-tip .e-editable-loading.e-show:not(.e-rte-spin-wrap) .e-spinner-inner {
443
488
  left: auto;
444
489
  right: 5px;
445
- transform: translateX(-30%) translateY(-50%);
490
+ -webkit-transform: translateX(-30%) translateY(-50%);
491
+ transform: translateX(-30%) translateY(-50%);
446
492
  }
447
493
  .e-inplaceeditor .e-editable-form,
448
494
  .e-inplaceeditor-tip .e-editable-form {
@@ -470,6 +516,7 @@
470
516
  opacity: 0.5;
471
517
  pointer-events: none;
472
518
  -webkit-user-select: none;
519
+ -moz-user-select: none;
473
520
  -ms-user-select: none;
474
521
  user-select: none;
475
522
  visibility: visible;
@@ -506,7 +553,8 @@
506
553
  .e-inplaceeditor-tip.e-rtl .e-editable-loading.e-show:not(.e-rte-spin-wrap) .e-spinner-inner {
507
554
  left: 5px;
508
555
  right: auto;
509
- transform: translateX(30%) translateY(-50%);
556
+ -webkit-transform: translateX(30%) translateY(-50%);
557
+ transform: translateX(30%) translateY(-50%);
510
558
  }
511
559
 
512
560
  .e-bigger .e-inplaceeditor-tip.e-tooltip-wrap .e-tip-content,
@@ -558,19 +606,24 @@
558
606
  .e-inplaceeditor-tip.e-tooltip-wrap .e-tip-content .e-editable-title {
559
607
  -ms-flex-line-pack: center;
560
608
  align-content: center;
609
+ display: -webkit-box;
561
610
  display: -ms-flexbox;
562
611
  display: flex;
563
- -ms-flex-direction: column;
564
- flex-direction: column;
612
+ -webkit-box-orient: vertical;
613
+ -webkit-box-direction: normal;
614
+ -ms-flex-direction: column;
615
+ flex-direction: column;
565
616
  font-family: "Inter";
566
617
  font-size: 12px;
567
618
  font-weight: 500;
568
619
  height: 30px;
569
- -ms-flex-pack: center;
570
- justify-content: center;
620
+ -webkit-box-pack: center;
621
+ -ms-flex-pack: center;
622
+ justify-content: center;
571
623
  padding: 6px 12px 6px 12px;
572
624
  }
573
625
  .e-inplaceeditor-tip.e-tooltip-wrap .e-tip-content .e-editable-wrapper {
626
+ display: -webkit-box;
574
627
  display: -ms-flexbox;
575
628
  display: flex;
576
629
  padding: 12px;
@@ -583,6 +636,7 @@
583
636
  top: auto;
584
637
  }
585
638
  .e-inplaceeditor-tip.e-tooltip-wrap .e-tip-content .e-editable-container {
639
+ display: -webkit-box;
586
640
  display: -ms-flexbox;
587
641
  display: flex;
588
642
  padding: 12px;
@@ -718,7 +772,8 @@
718
772
 
719
773
  .e-inplaceeditor-tip.e-tooltip-wrap.e-popup {
720
774
  background: #fff;
721
- box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
775
+ -webkit-box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
776
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
722
777
  }
723
778
  .e-inplaceeditor-tip.e-tooltip-wrap.e-popup .e-tip-content {
724
779
  border-radius: 4px;
@@ -1 +1,26 @@
1
- @import 'inplace-editor/tailwind.scss';
1
+ @import 'ej2-base/styles/definition/tailwind.scss';
2
+ @import 'ej2-inputs/styles/input/tailwind-definition.scss';
3
+ @import 'ej2-inputs/styles/color-picker/tailwind-definition.scss';
4
+ @import 'ej2-inputs/styles/maskedtextbox/tailwind-definition.scss';
5
+ @import 'ej2-inputs/styles/numerictextbox/tailwind-definition.scss';
6
+ @import 'ej2-inputs/styles/slider/tailwind-definition.scss';
7
+ @import 'ej2-inputs/styles/textbox/tailwind-definition.scss';
8
+ @import 'ej2-buttons/styles/button/tailwind-definition.scss';
9
+ @import 'ej2-buttons/styles/check-box/tailwind-definition.scss';
10
+ @import 'ej2-buttons/styles/radio-button/tailwind-definition.scss';
11
+ @import 'ej2-calendars/styles/calendar/tailwind-definition.scss';
12
+ @import 'ej2-calendars/styles/datepicker/tailwind-definition.scss';
13
+ @import 'ej2-calendars/styles/daterangepicker/tailwind-definition.scss';
14
+ @import 'ej2-calendars/styles/datetimepicker/tailwind-definition.scss';
15
+ @import 'ej2-calendars/styles/timepicker/tailwind-definition.scss';
16
+ @import 'ej2-dropdowns/styles/auto-complete/tailwind-definition.scss';
17
+ @import 'ej2-dropdowns/styles/combo-box/tailwind-definition.scss';
18
+ @import 'ej2-dropdowns/styles/drop-down-list/tailwind-definition.scss';
19
+ @import 'ej2-dropdowns/styles/multi-select/tailwind-definition.scss';
20
+ @import 'ej2-popups/styles/popup/tailwind-definition.scss';
21
+ @import 'ej2-popups/styles/spinner/tailwind-definition.scss';
22
+ @import 'ej2-popups/styles/tooltip/tailwind-definition.scss';
23
+ @import 'ej2-richtexteditor/styles/rich-text-editor/tailwind-definition.scss';
24
+ @import 'inplace-editor/tailwind-definition.scss';
25
+ @import 'inplace-editor/icons/tailwind.scss';
26
+ @import 'inplace-editor/all.scss';
package/CHANGELOG.md DELETED
@@ -1,262 +0,0 @@
1
- # Changelog
2
-
3
- ## [Unreleased]
4
-
5
- ## 20.4.54 (2023-03-14)
6
-
7
- ### In-place Editor
8
-
9
- #### Bug Fixes
10
-
11
- - `#I440965` - Now, the validation works properly when using two way binding for the `value` property.
12
-
13
- - `#I443357` - Now, when you click the cancel button in the In-place Editor, the Rich Text Editor will no longer be focused.
14
-
15
- ## 20.4.48 (2023-02-01)
16
-
17
- ### In-place Editor
18
-
19
- #### Bug Fixes
20
-
21
- - `#I427677` - Resolved issue with `maxLength` validation rules for RTE type in In-place Editor.
22
-
23
- ## 19.4.38 (2021-12-17)
24
-
25
- ### In-place Editor
26
-
27
- #### Bug Fixes
28
-
29
- - `#I341653` - The issue with "Window `resize` event listener is not removed properly" has been resolved.
30
-
31
- ## 19.2.51 (2021-08-03)
32
-
33
- ### In-place Editor
34
-
35
- #### Bug Fixes
36
-
37
- - `#I335868` - The issue with "value is not being reset after form validation fails, and the cancel button is pressed" has been resolved.
38
-
39
- - `#I335868` - In popup mode, pressing the close-icon on the In-place editor `numeric` type changes the value to -1 has been resolved.
40
-
41
- ## 19.2.44 (2021-06-30)
42
-
43
- ### In-place Editor
44
-
45
- #### New Features
46
-
47
- - `#I311906`, `#FB23798` - Provided the new event `endEdit` that triggers when the edit action is finished and begin to submit/cancel the current value.
48
-
49
- #### Bug Fixes
50
-
51
- - `#I330556` - Resolved the exception raised, when the large value is typed and starting to edit for the second time in In-Place Editor.
52
-
53
- ## 18.4.30 (2020-12-17)
54
-
55
- ### In-place Editor
56
-
57
- #### Bug Fixes
58
-
59
- `#292832` - The issue with Validation is not working when template has more then two input elements" has been resolved.
60
-
61
- ## 18.2.59 (2020-09-21)
62
-
63
- ### In-place Editor
64
-
65
- #### Bug Fixes
66
-
67
- `#289326` - The issue with "Script error is thrown when configuring more than two validation rules in the In-place editor" has been resolved.
68
-
69
- ## 18.2.57 (2020-09-08)
70
-
71
- ### In-place Editor
72
-
73
- #### New Features
74
-
75
- - `#288860` - Provided the new events `submitClick` and `cancelClick` that triggers when clicking the In-place editor submit and cancel buttons.
76
-
77
- ## 18.2.54 (2020-08-18)
78
-
79
- ### In-place Editor
80
-
81
- #### New Features
82
-
83
- - `#279315` - Provided new event `change` that triggers when the integrated component value has changed that render based on the `type` property in the In-place editor.
84
-
85
- ## 18.2.48 (2020-08-04)
86
-
87
- ### In-place Editor
88
-
89
- #### Bug Fixes
90
-
91
- - `#284643` - The issue with "Keyborad actions closes the editor and calls the save action" has been resolved.
92
-
93
- ## 18.2.45 (2020-07-14)
94
-
95
- ### In-place Editor
96
-
97
- #### Bug Fixes
98
-
99
- - `#F154491` - The issue with "`OnActionBegin` event triggers only during the second time, when configuring validation with Date mode in the In-place Editor" has been resolved.
100
-
101
- - `#283160` - The issue with "validation occurs, when the `validationRules` API has not been configured in the In-place Editor" has been resolved.
102
-
103
- ## 18.2.44 (2020-07-07)
104
-
105
- ### In-place Editor
106
-
107
- #### Bug Fixes
108
-
109
- - `#273057` - Resolved the `EnableHtmlSanitizer` property is not working properly for In-place Editor value.
110
-
111
- ## 17.4.51 (2020-02-25)
112
-
113
- ### In-place Editor
114
-
115
- #### Bug Fixes
116
-
117
- - `#262774` - Resolved the focus not maintained issue when `type` is set to `DropDown` and enabling the `allowFiltering`.
118
-
119
- ## 17.4.50 (2020-02-18)
120
-
121
- ### In-place Editor
122
-
123
- #### Bug Fixes
124
-
125
- - `#255914` - Provided the `textOption` property and setting the value to `Always` will display field value on initial load when DropDown components are configured with the `fields` property.
126
-
127
- ## 17.4.46 (2020-01-30)
128
-
129
- ### In-place Editor
130
-
131
- #### New Features
132
-
133
- - `#258695` - Provided `cancel` argument in `beginEdit` event to prevent the open action of the editor.
134
-
135
- ## 17.4.43 (2020-01-14)
136
-
137
- ### In-place Editor
138
-
139
- #### New Features
140
-
141
- - `#255914` - Provided actual `text` field value display on initial load, when DropDown components are configured with the `fields` property.
142
-
143
- ## 17.4.40 (2019-12-24)
144
-
145
- ### In-place Editor
146
-
147
- #### Bug Fixes
148
-
149
- - `#254606` - Web accessibility related issues have been resolved.
150
-
151
- ## 17.3.29 (2019-11-26)
152
-
153
- ### In-place Editor
154
-
155
- #### Bug Fixes
156
-
157
- - `#253385` - The issue with displaying tooltip in the edit mode in the In-place Editor has been resolved.
158
-
159
- ## 17.3.16 (2019-10-09)
160
-
161
- ### In-place Editor
162
-
163
- #### Bug Fixes
164
-
165
- - `#247721` - The issue with rendering the MultiSelect type of In-place editor while configuring remote data source has been resolved.
166
-
167
- ## 17.3.9-beta (2019-09-20)
168
-
169
- ### In-place Editor
170
-
171
- #### Bug Fixes
172
-
173
- - `#F146947` - Resolved the argument issue that returns text field instead of value field in the action begin event when rendering the Combo Box within the In-place Editor.
174
-
175
- - `#248388` - Resolved the issue with configuring `cssClass` property to customize the appearance of sub-components of the In-place Editor.
176
-
177
- ## 17.2.48-beta (2019-08-28)
178
-
179
- ### In-place Editor
180
-
181
- #### Bug Fixes
182
-
183
- - The display format specified for the sub components in `In-place Editor`, will now be considered when initial value is provided.
184
-
185
- ## 17.2.35 (2019-07-17)
186
-
187
- ### In-place Editor
188
-
189
- #### New Features
190
-
191
- - `#240715` - Provided new event `beginEdit` that triggers when change to editing mode and it helps to skip the focus from `In-place Editor` component.
192
-
193
- ## 17.2.28-beta (2019-06-27)
194
-
195
- ### In-place Editor
196
-
197
- #### Bug Fixes
198
-
199
- - `#237441` - Modified value not updated, when using `RichTextEditor` with `Markdown` mode issue has been resolved
200
-
201
- ## 17.1.48 (2019-05-21)
202
-
203
- ### In-place Editor
204
-
205
- #### Bug Fixes
206
-
207
- - `#235175` - Issue with modules injection in Angular production mode that issue has been resolved.
208
-
209
- ## 17.1.47 (2019-05-14)
210
-
211
- ### In-place Editor
212
-
213
- #### Bug Fixes
214
-
215
- - Toolbar fails to render properly in `RichTextEditor` In-Place Editor when `afterOpen` is set, that issue has been fixed.
216
- - Not able to hide the close icon issue has been fixed.
217
- - Change event doesn't trigger, when `RichTextEditor` blurs that issue has been fixed.
218
-
219
- ## 16.4.53 (2019-02-13)
220
-
221
- ### In-place Editor
222
-
223
- #### Bug Fixes
224
-
225
- - Console error is thrown while validating `RTE` editor value issue has been fixed.
226
-
227
- ## 16.4.48 (2019-01-22)
228
-
229
- ### In-place Editor
230
-
231
- #### New Features
232
-
233
- - Type `number` support provided for `primaryKey` API.
234
-
235
- #### Bug Fixes
236
-
237
- - Formatting not applied to calendar component issue fixed.
238
- - Key returned instead of value while using `fieldSettings` with `dropDown` components issue has been fixed.
239
-
240
- ## 16.4.44 (2018-12-24)
241
-
242
- ### In-place Editor
243
-
244
- #### Bug Fixes
245
-
246
- - `space` key action issue is fixed with clicking save and cancel buttons.
247
- - Value persistence issue with `multi-select` when doing cancel action after removing selected item.
248
- - Double-Click issue in IOS device is fixed.
249
- - `Invalid background value` warning thrown in `In-place Editor`, that issue has been fixed.
250
-
251
- ## 16.4.40-beta (2018-12-10)
252
-
253
- ### In-place Editor
254
-
255
- The In-place Editor component is used to edit and update the input value dynamically to the server. It supports integrating many component types such as “DropDownList”,”DatePicker”,”AutoComplete”, etc.
256
-
257
- - **Render mode** - Provides two types of rendering modes when editing the input, namely “Inline” and “Popup”.
258
- - **Component integration** - Support to integrate components such as “DropDownList”, “DatePicker”,” AutoComplete”, etc. to the In-place Editor.
259
- - **Data binding** - Bind the In-place Editor component with an array of JSON objects or DataManager to save the edited data to the server.
260
- - **Customization** - Offers UI customization such as popup, buttons, and also denotes editable content state.
261
- - **Template** - Templates can be used to integrate custom controls to the In-place Editor.
262
- - **Globalization** - Provides right to left and localization support.
@@ -1,10 +0,0 @@
1
- /*!
2
- * filename: ej2-inplace-editor.min.js
3
- * version : 25.2.3
4
- * Copyright Syncfusion Inc. 2001 - 2023. 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
- */
10
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionBase"),require("SyncfusionDropdowns"),require("SyncfusionInputs"),require("SyncfusionCalendars"),require("SyncfusionPopups"),require("SyncfusionRichtexteditor"),require("SyncfusionButtons"),require("SyncfusionData")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionDropdowns","SyncfusionInputs","SyncfusionCalendars","SyncfusionPopups","SyncfusionRichtexteditor","SyncfusionButtons","SyncfusionData"],e):"object"==typeof exports?exports.SyncfusionInplaceEditor=e(require("SyncfusionBase"),require("SyncfusionDropdowns"),require("SyncfusionInputs"),require("SyncfusionCalendars"),require("SyncfusionPopups"),require("SyncfusionRichtexteditor"),require("SyncfusionButtons"),require("SyncfusionData")):t.SyncfusionInplaceEditor=e(t.SyncfusionBase,t.SyncfusionDropdowns,t.SyncfusionInputs,t.SyncfusionCalendars,t.SyncfusionPopups,t.SyncfusionRichtexteditor,t.SyncfusionButtons,t.SyncfusionData)}(this,function(t,e,i,n,o,r,s,a){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=12)}([function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i(1),o=(i.n(n),i(4)),r=function(){function t(t,e){this.parent=t,this.module=e,this.addEventListener()}return t.prototype.render=function(t){this.module.render(t)},t.prototype.showPopup=function(){this.module.showPopup()},t.prototype.focus=function(){this.module.focus()},t.prototype.update=function(t){this.module.updateValue(t)},t.prototype.getValue=function(){this.module.getRenderValue()},t.prototype.destroyComponent=function(){i.i(n.isNullOrUndefined)(this.module.compObj)||(this.module.compObj.destroy(),this.module.compObj=void 0)},t.prototype.destroy=function(){this.destroyComponent(),this.removeEventListener()},t.prototype.addEventListener=function(){this.parent.on(o.a,this.render,this),this.parent.on(o.b,this.focus,this),this.parent.on(o.c,this.showPopup,this),this.parent.on(o.d,this.update,this),this.parent.on(o.e,this.getValue,this),this.parent.on(o.f,this.destroyComponent,this),this.parent.on(o.g,this.destroy,this)},t.prototype.removeEventListener=function(){this.parent.isDestroyed||(this.parent.off(o.a,this.render),this.parent.off(o.b,this.focus),this.parent.off(o.c,this.showPopup),this.parent.off(o.d,this.update),this.parent.off(o.e,this.getValue),this.parent.off(o.f,this.destroyComponent),this.parent.off(o.g,this.destroy))},t}()},function(e,i){e.exports=t},function(t,i){t.exports=e},function(t,e){t.exports=i},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"d",function(){return o}),i.d(e,"g",function(){return r}),i.d(e,"b",function(){return s}),i.d(e,"e",function(){return a}),i.d(e,"f",function(){return l}),i.d(e,"c",function(){return u});var n="render",o="update",r="destroy",s="set-focus",a="access-value",l="destroy-modules",u="show-popup"},function(t,e){t.exports=n},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return r}),i.d(e,"d",function(){return s}),i.d(e,"e",function(){return a}),i.d(e,"f",function(){return l}),i.d(e,"g",function(){return u}),i.d(e,"h",function(){return d}),i.d(e,"i",function(){return c}),i.d(e,"j",function(){return p}),i.d(e,"k",function(){return h}),i.d(e,"l",function(){return f}),i.d(e,"m",function(){return m}),i.d(e,"n",function(){return y}),i.d(e,"o",function(){return v}),i.d(e,"p",function(){return b}),i.d(e,"q",function(){return E}),i.d(e,"r",function(){return O}),i.d(e,"s",function(){return g}),i.d(e,"t",function(){return C}),i.d(e,"u",function(){return w}),i.d(e,"v",function(){return j}),i.d(e,"w",function(){return S}),i.d(e,"x",function(){return k}),i.d(e,"y",function(){return D}),i.d(e,"z",function(){return P}),i.d(e,"A",function(){return M}),i.d(e,"B",function(){return B}),i.d(e,"C",function(){return x}),i.d(e,"D",function(){return V});var n="e-inplaceeditor",o="e-inplaceeditor-tip",r="e-editable-value-wrapper",s="e-editable-value",a="e-editable-overlay-icon",l="e-editable-tip-title",u="e-editable-title",d="e-editable-inline",c="e-editable-popup",p="e-editable-wrapper",h="e-editable-loading",f="e-editable-form",m="e-component-group",y="e-editable-component",v="e-editable-action-buttons",b="e-editable-error",E="e-editable-elements",O="e-editable-open",g="e-btn-save",C="e-btn-cancel",w="e-rte-spin-wrap",j="e-control-overlay",S="e-disable",k="e-icons",D="e-primary",P="e-show",M="e-hide",B="e-rtl",x="e-error",V="e-loading"},function(t,e,i){"use strict";i.d(e,"a",function(){return s}),i.d(e,"b",function(){return a}),i.d(e,"c",function(){return l});var n=i(1),o=(i.n(n),this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}()),r=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),r([i.i(n.Property)("")],e.prototype,"title",void 0),r([i.i(n.Property)(null)],e.prototype,"model",void 0),e}(n.ChildProperty),a={AutoComplete:"auto-complete",Color:"color-picker",ComboBox:"combo-box",DateRange:"date-range-picker",MultiSelect:"multi-select",RTE:"rte",Slider:"slider",Time:"time-picker"},l={Click:{editAreaClick:"Click to edit"},DblClick:{editAreaDoubleClick:"Double click to edit"},EditIconClick:{editAreaClick:"Click to edit"}}},function(t,e,i){"use strict";function n(t,e,n){if(i.i(s.isNullOrUndefined)(e)||""===e)return"";var o,r;switch(t){case"Color":var l=e;o=l.length>7?l.slice(0,-2):l;break;case"Date":r=n.format,o=a.formatDate(e,{format:r,type:t,skeleton:i.i(s.isBlazor)()?"d":"yMd"});break;case"DateRange":r=n.format;var u=e;o=a.formatDate(u[0],{format:r,type:t,skeleton:i.i(s.isBlazor)()?"d":"yMd"})+" - "+a.formatDate(u[1],{format:r,type:t,skeleton:i.i(s.isBlazor)()?"d":"yMd"});break;case"DateTime":r=n.format,o=i.i(s.isNullOrUndefined)(r)||""===r?a.formatDate(e,{format:r,type:t,skeleton:i.i(s.isBlazor)()?"d":"yMd"})+" "+a.formatDate(e,{format:r,type:t,skeleton:i.i(s.isBlazor)()?"t":"hm"}):a.formatDate(e,{format:r,type:t,skeleton:i.i(s.isBlazor)()?"d":"yMd"});break;case"Time":r=n.format,o=a.formatDate(e,{format:r,type:t,skeleton:i.i(s.isBlazor)()?"t":"hm"});break;case"Numeric":r=i.i(s.isNullOrUndefined)(n.format)?"n2":n.format;var d=i.i(s.isNullOrUndefined)(e)?null:"number"==typeof e?e:a.parseNumber(e);o=a.formatNumber(d,{format:r});break;default:o=e.toString()}return o}function o(t,e){if(i.i(s.isNullOrUndefined)(e)||""===e)return e;if("Date"!==t&&"Time"!==t&&"DateTime"!==t||"string"!=typeof e){if("DateRange"===t)if("object"==typeof e&&"string"==typeof e[0])e=[new Date(e[0]),new Date(e[1])];else if("string"==typeof e){var n=e.split("-");e=[new Date(n[0]),new Date(n[1])]}}else e=new Date(e);return e}function r(t){for(var e=[],i=t.length-1;i>=0;i--)e.unshift(["&#",t[i].charCodeAt(0),";"].join(""));return e.join("")}e.a=n,e.b=o,e.c=r;var s=i(1),a=(i.n(s),new s.Internationalization)},function(t,e){t.exports=o},function(t,e){t.exports=r},function(t,e,i){"use strict";var n=i(13);i.d(e,"a",function(){return n.a}),i.d(e,"b",function(){return n.b}),i.d(e,"c",function(){return n.c}),i.d(e,"d",function(){return n.d}),i.d(e,"e",function(){return n.e}),i.d(e,"f",function(){return n.f}),i.d(e,"g",function(){return n.g}),i.d(e,"h",function(){return n.h}),i.d(e,"i",function(){return n.i}),i.d(e,"j",function(){return n.j}),i.d(e,"k",function(){return n.k}),i.d(e,"l",function(){return n.l}),i.d(e,"m",function(){return n.m}),i.d(e,"n",function(){return n.n}),i.d(e,"o",function(){return n.o}),i.d(e,"p",function(){return n.p}),i.d(e,"q",function(){return n.q}),i.d(e,"r",function(){return n.r}),i.d(e,"s",function(){return n.s}),i.d(e,"t",function(){return n.t}),i.d(e,"u",function(){return n.u}),i.d(e,"v",function(){return n.v}),i.d(e,"w",function(){return n.w}),i.d(e,"x",function(){return n.x}),i.d(e,"y",function(){return n.y}),i.d(e,"z",function(){return n.z}),i.d(e,"A",function(){return n.A}),i.d(e,"B",function(){return n.B}),i.d(e,"C",function(){return n.C}),i.d(e,"D",function(){return n.D}),i.d(e,"E",function(){return n.E}),i.d(e,"F",function(){return n.F}),i.d(e,"G",function(){return n.G}),i.d(e,"H",function(){return n.H}),i.d(e,"I",function(){return n.I}),i.d(e,"J",function(){return n.J}),i.d(e,"K",function(){return n.K}),i.d(e,"L",function(){return n.L}),i.d(e,"M",function(){return n.M}),i.d(e,"N",function(){return n.N}),i.d(e,"O",function(){return n.O}),i.d(e,"P",function(){return n.P}),i.d(e,"Q",function(){return n.Q}),i.d(e,"R",function(){return n.R});var o=i(19);i.d(e,"S",function(){return o.a}),i.d(e,"T",function(){return o.b}),i.d(e,"U",function(){return o.c}),i.d(e,"V",function(){return o.d}),i.d(e,"W",function(){return o.e}),i.d(e,"X",function(){return o.f}),i.d(e,"Y",function(){return o.g}),i.d(e,"Z",function(){return o.h}),i.d(e,"_0",function(){return o.i})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(11);i.d(e,"parseValue",function(){return n.a}),i.d(e,"getCompValue",function(){return n.b}),i.d(e,"encode",function(){return n.c}),i.d(e,"render",function(){return n.d}),i.d(e,"update",function(){return n.e}),i.d(e,"destroy",function(){return n.f}),i.d(e,"setFocus",function(){return n.g}),i.d(e,"accessValue",function(){return n.h}),i.d(e,"destroyModules",function(){return n.i}),i.d(e,"showPopup",function(){return n.j}),i.d(e,"PopupSettings",function(){return n.k}),i.d(e,"modulesList",function(){return n.l}),i.d(e,"localeConstant",function(){return n.m}),i.d(e,"ROOT",function(){return n.n}),i.d(e,"ROOT_TIP",function(){return n.o}),i.d(e,"VALUE_WRAPPER",function(){return n.p}),i.d(e,"VALUE",function(){return n.q}),i.d(e,"OVERLAY_ICON",function(){return n.r}),i.d(e,"TIP_TITLE",function(){return n.s}),i.d(e,"TITLE",function(){return n.t}),i.d(e,"INLINE",function(){return n.u}),i.d(e,"POPUP",function(){return n.v}),i.d(e,"WRAPPER",function(){return n.w}),i.d(e,"LOADING",function(){return n.x}),i.d(e,"FORM",function(){return n.y}),i.d(e,"CTRL_GROUP",function(){return n.z}),i.d(e,"INPUT",function(){return n.A}),i.d(e,"BUTTONS",function(){return n.B}),i.d(e,"EDITABLE_ERROR",function(){return n.C}),i.d(e,"ELEMENTS",function(){return n.D}),i.d(e,"OPEN",function(){return n.E}),i.d(e,"BTN_SAVE",function(){return n.F}),i.d(e,"BTN_CANCEL",function(){return n.G}),i.d(e,"RTE_SPIN_WRAP",function(){return n.H}),i.d(e,"CTRL_OVERLAY",function(){return n.I}),i.d(e,"DISABLE",function(){return n.J}),i.d(e,"ICONS",function(){return n.K}),i.d(e,"PRIMARY",function(){return n.L}),i.d(e,"SHOW",function(){return n.M}),i.d(e,"HIDE",function(){return n.N}),i.d(e,"RTL",function(){return n.O}),i.d(e,"ERROR",function(){return n.P}),i.d(e,"LOAD",function(){return n.Q}),i.d(e,"InPlaceEditor",function(){return n.R}),i.d(e,"Base",function(){return n.S}),i.d(e,"AutoComplete",function(){return n.T}),i.d(e,"ColorPicker",function(){return n.U}),i.d(e,"ComboBox",function(){return n.V}),i.d(e,"DateRangePicker",function(){return n.W}),i.d(e,"MultiSelect",function(){return n.X}),i.d(e,"Rte",function(){return n.Y}),i.d(e,"Slider",function(){return n.Z}),i.d(e,"TimePicker",function(){return n._0})},function(t,e,i){"use strict";var n=i(8);i.d(e,"a",function(){return n.a}),i.d(e,"b",function(){return n.b}),i.d(e,"c",function(){return n.c});var o=i(4);i.d(e,"d",function(){return o.a}),i.d(e,"e",function(){return o.d}),i.d(e,"f",function(){return o.g}),i.d(e,"g",function(){return o.b}),i.d(e,"h",function(){return o.e}),i.d(e,"i",function(){return o.f}),i.d(e,"j",function(){return o.c});var r=i(7);i.d(e,"k",function(){return r.a}),i.d(e,"l",function(){return r.b}),i.d(e,"m",function(){return r.c});var s=i(6);i.d(e,"n",function(){return s.a}),i.d(e,"o",function(){return s.b}),i.d(e,"p",function(){return s.c}),i.d(e,"q",function(){return s.d}),i.d(e,"r",function(){return s.e}),i.d(e,"s",function(){return s.f}),i.d(e,"t",function(){return s.g}),i.d(e,"u",function(){return s.h}),i.d(e,"v",function(){return s.i}),i.d(e,"w",function(){return s.j}),i.d(e,"x",function(){return s.k}),i.d(e,"y",function(){return s.l}),i.d(e,"z",function(){return s.m}),i.d(e,"A",function(){return s.n}),i.d(e,"B",function(){return s.o}),i.d(e,"C",function(){return s.p}),i.d(e,"D",function(){return s.q}),i.d(e,"E",function(){return s.r}),i.d(e,"F",function(){return s.s}),i.d(e,"G",function(){return s.t}),i.d(e,"H",function(){return s.u}),i.d(e,"I",function(){return s.v}),i.d(e,"J",function(){return s.w}),i.d(e,"K",function(){return s.x}),i.d(e,"L",function(){return s.y}),i.d(e,"M",function(){return s.z}),i.d(e,"N",function(){return s.A}),i.d(e,"O",function(){return s.B}),i.d(e,"P",function(){return s.C}),i.d(e,"Q",function(){return s.D});var a=i(14);i.d(e,"R",function(){return a.a})},function(t,e,i){"use strict";i.d(e,"a",function(){return y});var n=i(1),o=(i.n(n),i(25)),r=(i.n(o),i(24)),s=(i.n(r),i(5)),a=(i.n(s),i(9)),l=(i.n(a),i(3)),u=(i.n(l),i(2)),d=(i.n(u),i(4)),c=i(6),p=i(7),h=i(8),f=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),m=this&&this.__decorate||function(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s},y=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.needsID=!0,n}return f(e,t),e.prototype.initializeValue=function(){this.initRender=!0,this.isTemplate=!1,this.isVue=!1,this.isExtModule=!1,this.submitBtn=void 0,this.cancelBtn=void 0,this.isClearTarget=!1,this.btnElements=void 0,this.dataManager=void 0,this.oldValue=void 0,this.divComponents=["RTE","Slider"],this.clearComponents=["AutoComplete","Mask","Text"],this.dateType=["Date","DateTime","Time"],this.inputDataEle=["Date","DateTime","DateRange","Time","Numeric"],this.dropDownEle=["AutoComplete","ComboBox","DropDownList","MultiSelect"],this.moduleList=["AutoComplete","Color","ComboBox","DateRange","MultiSelect","RTE","Slider","Time"]},e.prototype.preRender=function(){this.initializeValue(),this.onScrollResizeHandler=this.scrollResizeHandler.bind(this),i.i(n.isNullOrUndefined)(this.model)&&this.setProperties({model:{}},!0),this.titleEle=this.createElement("div",{className:c.g}),!i.i(n.isNullOrUndefined)(this.popupSettings.model)&&this.popupSettings.model.afterOpen&&(this.afterOpenEvent=this.popupSettings.model.afterOpen)},e.prototype.render=function(){i.i(n.isNullOrUndefined)(this.element.getAttribute("tabindex"))&&(this.disabled?this.element.setAttribute("tabindex","-1"):this.element.setAttribute("tabindex","0")),this.checkIsTemplate(),this.disable(this.disabled),this.updateAdaptor(),this.appendValueElement(),this.updateValue(),"Never"===this.textOption?this.renderValue(this.checkValue(i.i(h.a)(this.type,this.value,this.model))):this.renderInitialValue(),this.wireEvents(),this.setRtl(this.enableRtl),this.enableEditor(this.enableEditMode,!0),this.setClass("add",this.cssClass),this.renderComplete()},e.prototype.setClass=function(t,e){if(!this.isEmpty(e))for(var o=e.split(" "),r=0;r<o.length;r++)""!==o[r].trim()&&("add"===t?i.i(n.addClass)([this.element],[o[r]]):i.i(n.removeClass)([this.element],[o[r]]))},e.prototype.appendValueElement=function(){this.valueWrap=this.createElement("div",{id:this.element.id+"_wrap",className:c.c}),i.i(n.isBlazor)()||(this.element.innerHTML=""),this.valueEle=this.createElement("span",{className:c.d}),this.editIcon=this.createElement("span",{className:c.e+" "+c.x,attrs:{title:this.getLocale({editIcon:"Click to edit"},"editIcon")}}),this.valueWrap.appendChild(this.valueEle),this.valueWrap.appendChild(this.editIcon),this.element.appendChild(this.valueWrap)},e.prototype.renderInitialValue=function(){!(["AutoComplete","ComboBox","DropDownList","MultiSelect"].indexOf(this.type)>-1)||i.i(n.isNullOrUndefined)(this.value)||this.isEmpty(this.value.toString())||i.i(n.isNullOrUndefined)(this.model.fields)||i.i(n.isNullOrUndefined)(this.model.dataSource)?this.renderValue(this.checkValue(i.i(h.a)(this.type,this.value,this.model))):(this.renderValue(this.getLocale({loadingText:"Loading..."},"loadingText")),this.valueWrap.classList.add(c.D),i.i(a.createSpinner)({target:this.valueWrap,width:10}),i.i(a.showSpinner)(this.valueWrap),this.getInitFieldMapValue())},e.prototype.getInitFieldMapValue=function(){var t=this,e=this.model,r=e.fields.text,s=e.fields.value,a=i.i(n.isNullOrUndefined)(e.query)?new o.Query:e.query;e.dataSource instanceof o.DataManager?e.dataSource.executeQuery(this.getInitQuery(e,a)).then(function(e){t.updateInitValue(r,s,e.result)}):this.updateInitValue(r,s,new o.DataManager(e.dataSource).executeLocal(this.getInitQuery(e,a)))},e.prototype.getInitQuery=function(t,e){var i,n=t.fields.value,r=this.value;if("MultiSelect"!==this.type||"object"!=typeof this.value)i=new o.Predicate(n,"equal",this.value);else for(var s=0,a=0,l=r;a<l.length;a++){var u=l[a];i=0===s?i=new o.Predicate(n,"equal",u):i.or(n,"equal",u),s++}return e.where(i)},e.prototype.updateInitValue=function(t,e,o){if(!(o.length<=0)){if(1===o.length)this.valueEle.innerHTML=this.checkValue(i.i(n.getValue)(i.i(n.isNullOrUndefined)(t)?e:t,o[0]));else{for(var r=[],s=0,l=o;s<l.length;s++){var u=l[s];r.push(i.i(n.getValue)(i.i(n.isNullOrUndefined)(t)?e:t,u))}this.valueEle.innerHTML=this.checkValue(r.toString())}i.i(a.hideSpinner)(this.valueWrap),this.valueWrap.classList.remove(c.D)}},e.prototype.renderValue=function(t){this.enableHtmlSanitizer&&"RTE"!==this.type&&"MultiSelect"!==this.type?this.valueEle.innerText=t:this.valueEle.innerHTML=this.enableHtmlParse?t:i.i(h.c)(t),"Color"===this.type&&i.i(n.setStyleAttribute)(this.valueEle,{color:t}),"Inline"===this.mode&&this.isEditorOpen()&&i.i(n.removeClass)([this.valueWrap],[c.A])},e.prototype.isEditorOpen=function(){return!(this.isVue&&(this.enableEditMode||!(i.i(n.isNullOrUndefined)(this.valueWrap)||this.valueWrap.classList.contains(c.A)||this.valueWrap.classList.contains("e-tooltip"))))},e.prototype.renderEditor=function(){if(this.prevValue=this.value,this.beginEditArgs={mode:this.mode,cancelFocus:!1,cancel:!1},this.trigger("beginEdit",this.beginEditArgs),!this.beginEditArgs.cancel){var t=void 0,e=i.i(n.select)("."+c.c,this.element);if("EditIconClick"!==this.editableOn&&e.parentElement.removeAttribute("title"),!this.valueWrap.classList.contains(c.r)){if("Inline"===this.mode)i.i(n.addClass)([this.valueWrap],[c.A]),this.inlineWrapper=this.createElement("div",{className:c.h}),this.element.appendChild(this.inlineWrapper),["AutoComplete","ComboBox","DropDownList","MultiSelect"].indexOf(this.type)>-1?this.checkRemoteData(this.model):this.renderAndOpen();else{!i.i(n.isNullOrUndefined)(this.popupSettings.model)&&this.popupSettings.model.afterOpen&&(this.popupSettings.model.afterOpen=this.afterOpenHandler.bind(this));var o=this.createElement("div",{className:c.i});this.isEmpty(this.popupSettings.title)||(this.titleEle.innerHTML=this.popupSettings.title,o.appendChild(this.titleEle)),t={content:o,opensOn:"Custom",enableRtl:this.enableRtl,cssClass:c.b,afterOpen:this.afterOpenHandler.bind(this)},o.appendChild(this.renderControl(document.body)),i.i(n.extend)(t,this.popupSettings.model,t,!0),this.tipObj=new a.Tooltip(t),this.tipObj.appendTo(e),this.tipObj.open(e)}"Ignore"!==this.actionOnBlur&&this.wireDocEvent(),i.i(n.addClass)([this.valueWrap],[c.r]),this.setProperties({enableEditMode:!0},!0),this.isReact&&this.renderReactTemplates()}}},e.prototype.renderAndOpen=function(){this.renderControl(this.inlineWrapper),this.afterOpenHandler(null)},e.prototype.checkRemoteData=function(t){var e=this;t.dataSource instanceof o.DataManager?(t.dataBound=function(){e.afterOpenHandler(null)},this.renderControl(this.inlineWrapper),(i.i(n.isNullOrUndefined)(t.value)&&i.i(n.isNullOrUndefined)(this.value)||t.value===this.value&&!i.i(n.isNullOrUndefined)(t.value)&&0===t.value.length)&&this.showDropDownPopup()):this.renderAndOpen()},e.prototype.showDropDownPopup=function(){"DropDownList"===this.type?(this.model.allowFiltering||this.componentObj.focusIn(),this.componentObj.showPopup()):this.isExtModule&&this.notify("MultiSelect"===this.type?d.b:d.c,{})},e.prototype.setAttribute=function(t,e){var i=this.name&&0!==this.name.length?this.name:this.element.id;e.forEach(function(e){t.setAttribute(e,"id"===e?i+"_editor":i)})},e.prototype.renderControl=function(t){var e;this.containerEle=this.createElement("div",{className:c.j}),this.loader=this.createElement("div",{className:c.k}),this.formEle=this.createElement("form",{className:c.l});var i=this.createElement("div",{className:c.m}),n=this.createElement("div",{className:c.n});return t.appendChild(this.containerEle),this.loadSpinner(),this.containerEle.appendChild(this.formEle),this.formEle.appendChild(i),this.isTemplate?this.appendTemplate(n,this.template):(Array.prototype.indexOf.call(this.divComponents,this.type)>-1?(e=this.createElement("div"),this.setAttribute(e,["id"])):(e=this.createElement("input"),this.setAttribute(e,["id","name"])),this.componentRoot=e,n.appendChild(e),n.appendChild(this.loader)),i.appendChild(n),i.appendChild(this.createElement("div",{className:c.p})),this.appendButtons(this.formEle),this.isTemplate||this.renderComponent(e),this.removeSpinner(),this.submitOnEnter&&this.wireEditorKeyDownEvent(this.containerEle),this.containerEle},e.prototype.appendButtons=function(t){this.showButtons&&t&&(this.btnElements=this.renderButtons(),t.appendChild(this.btnElements),this.wireBtnEvents())},e.prototype.renderButtons=function(){var t=this.createElement("div",{className:c.o}),e=i.i(n.isNullOrUndefined)(this.saveButton.content)||0===this.saveButton.content.length?"":" "+c.y;return this.submitBtn=this.createButtons({constant:"save",type:"submit",container:t,title:{save:"Save"},model:this.saveButton,className:c.s+e}),this.cancelBtn=this.createButtons({type:"button",constant:"cancel",title:{cancel:"Cancel"},container:t,model:this.cancelButton,className:c.t}),t},e.prototype.createButtons=function(t){var e=void 0;if(Object.keys(t.model).length>0){var o=this.createElement("button",{className:t.className,attrs:{type:t.type,title:"save"==t.constant?i.i(n.isNullOrUndefined)(this.saveButton.content)?this.getLocale(t.title,t.constant):this.saveButton.content:i.i(n.isNullOrUndefined)(this.cancelButton.content)?this.getLocale(t.title,t.constant):this.cancelButton.content}});t.container.appendChild(o),e=new r.Button(t.model,o)}return e},e.prototype.renderComponent=function(t){this.isExtModule=Array.prototype.indexOf.call(this.moduleList,this.type)>-1;var e;if(e=i.i(n.isNullOrUndefined)(this.model.cssClass)?c.q:this.model.cssClass.indexOf(c.q)<0?""===this.model.cssClass?c.q:this.model.cssClass+" "+c.q:this.model.cssClass,i.i(n.extend)(this.model,this.model,{cssClass:e,enableRtl:this.enableRtl,locale:this.locale,change:this.changeHandler.bind(this)}),i.i(n.isNullOrUndefined)(this.value)||this.updateModelValue(!1),this.isExtModule)this.notify(d.a,{module:p.b[this.type],target:t,type:this.type});else{switch(i.i(n.isNullOrUndefined)(this.model.showClearButton)&&!i.i(n.isBlazor)()&&(this.model.showClearButton=!0),this.type){case"Date":this.componentObj=new s.DatePicker(this.model);break;case"DateTime":this.componentObj=new s.DateTimePicker(this.model);break;case"DropDownList":this.componentObj=new u.DropDownList(this.model);break;case"Mask":this.componentObj=new l.MaskedTextBox(this.model);break;case"Numeric":if(this.model.value){new RegExp("[eE][-+]?([0-9]+)").test(this.model.value)?this.model.value=this.model.value:this.model.value=this.model.value.toString().replace(/[`~!@#$%^&*()_|\=?;:'",<>\{\}\[\]\\\/]/gi,"")}this.componentObj=new l.NumericTextBox(this.model);break;case"Text":this.componentObj=new l.TextBox(this.model)}this.componentObj.appendTo(t)}},e.prototype.updateAdaptor=function(){switch(this.adaptor){case"UrlAdaptor":this.dataAdaptor=new o.UrlAdaptor;break;case"WebApiAdaptor":this.dataAdaptor=new o.WebApiAdaptor;break;case"ODataV4Adaptor":this.dataAdaptor=new o.ODataV4Adaptor}},e.prototype.loadSpinner=function(t){i.i(n.addClass)([this.loader],[c.z]),"validate"!==t||"RTE"!==this.type&&"Color"!==this.type&&"Slider"!==this.type?this.spinObj={target:this.loader,width:n.Browser.isDevice?"16px":"14px"}:(i.i(n.addClass)([this.loader],[c.u]),i.i(n.addClass)([this.getEditElement()],[c.v]),this.spinObj={target:this.loader}),this.formEle&&i.i(n.addClass)([this.formEle],[c.D]),this.btnElements&&i.i(n.addClass)([this.btnElements],[c.A]),i.i(n.setStyleAttribute)(this.loader,{width:"100%"}),i.i(a.createSpinner)(this.spinObj),i.i(a.showSpinner)(this.spinObj.target)},e.prototype.removeSpinner=function(t){this.loader.removeAttribute("style"),i.i(a.hideSpinner)(this.spinObj.target),i.i(n.detach)(this.spinObj.target.firstChild),"submit"!==t||"RTE"!==this.type&&"Color"!==this.type&&"Slider"!==this.type||(i.i(n.removeClass)([this.loader],[c.u]),i.i(n.removeClass)([this.getEditElement()],[c.v])),this.formEle&&i.i(n.removeClass)([this.formEle],[c.D]),this.btnElements&&i.i(n.removeClass)([this.btnElements],[c.A]),i.i(n.removeClass)([this.loader],[c.z])},e.prototype.getEditElement=function(){return i.i(n.select)("."+c.q,this.formEle)},e.prototype.getLocale=function(t,e){return new n.L10n("inplace-editor",t,this.locale).getConstant(e)},e.prototype.checkValue=function(t){return this.isEmpty(t)?this.emptyText:t},e.prototype.extendModelValue=function(t){var e=this.model;i.i(n.extend)(e,{value:t}),this.setProperties({model:e},!0)},e.prototype.updateValue=function(){this.oldValue=this.value,this.enableHtmlSanitizer&&"string"==typeof this.value&&(this.oldValue=this.sanitizeHelper(this.value)),i.i(n.isNullOrUndefined)(this.value)||(this.setProperties({value:i.i(h.b)(this.type,this.oldValue)},!0),this.extendModelValue(i.i(h.b)(this.type,this.oldValue)))},e.prototype.updateModelValue=function(t){"MultiSelect"!==this.type||this.isEmpty(this.value)?this.model.value=t?this.oldValue:this.value:this.model.value=t?this.oldValue.slice():this.value.slice()},e.prototype.setValue=function(){this.isExtModule?this.notify(d.d,{type:this.type}):this.componentObj&&("Numeric"===this.type&&null===this.componentObj.value&&this.componentObj.setProperties({value:null},!0),this.setProperties({value:this.componentObj.value},!0),this.extendModelValue(this.componentObj.value))},e.prototype.getDropDownsValue=function(t){var e;return Array.prototype.indexOf.call(this.dropDownEle,this.type)>-1&&"MultiSelect"!==this.type?e=t?i.i(n.select)(".e-"+this.type.toLocaleLowerCase(),this.containerEle).value:this.value.toString():"MultiSelect"===this.type&&(this.notify(d.e,{type:this.type}),e=t?this.printValue:this.value.join()),e},e.prototype.getSendValue=function(){return this.isEmpty(this.value)?"":Array.prototype.indexOf.call(this.dropDownEle,this.type)>-1?this.getDropDownsValue(!1):Array.prototype.indexOf.call(this.dateType,this.type)>-1?this.value.toISOString():"DateRange"===this.type?this.value[0].toISOString()+" - "+this.value[1].toISOString():this.value.toString()},e.prototype.getRenderValue=function(){return"Mask"===this.type&&0!==this.componentObj.value.length?this.componentObj.getMaskedValue():Array.prototype.indexOf.call(this.inputDataEle,this.type)>-1?this.componentRoot.value:Array.prototype.indexOf.call(this.dropDownEle,this.type)>-1?this.getDropDownsValue(!0):i.i(h.a)(this.type,this.value,this.model)},e.prototype.setRtl=function(t){t?i.i(n.addClass)([this.element],[c.B]):i.i(n.removeClass)([this.element],[c.B])},e.prototype.setFocus=function(){this.isTemplate||(this.isExtModule?this.notify(d.b,{}):"dropdownlist"===this.componentObj.getModuleName()?this.componentObj.focusIn():this.componentObj.element.focus())},e.prototype.removeEditor=function(t){Object.keys(window);i.i(n.isBlazor)()&&!this.isStringTemplate&&i.i(n.resetBlazorTemplate)(this.element.id+"template","Template");var e;if(this.tipObj&&this.formEle&&(e=i.i(n.closest)(this.formEle,"."+c.b),e.classList.add(c.A)),this.unWireDocEvent(),this.destroyComponents(),this.formEle=void 0,i.i(n.isNullOrUndefined)(i.i(n.select)("."+c.h,this.element))?this.tipObj&&("MultiSelect"===this.type&&(n.EventHandler.remove(this.containerEle,"mousedown",this.popMouseDown),n.EventHandler.remove(this.containerEle,"click",this.popClickHandler)),this.tipObj.close(),this.tipObj.destroy(),this.tipObj=void 0):(i.i(n.detach)(this.inlineWrapper),this.inlineWrapper=void 0),this.containerEle=void 0,i.i(n.removeClass)([this.valueWrap],[c.r,c.A]),t||this.setProperties({enableEditMode:!1},!0),"EditIconClick"!==this.editableOn){var o="DblClick"===this.editableOn?"editAreaDoubleClick":"editAreaClick";i.i(n.isNullOrUndefined)(this.valueWrap.parentElement)||this.valueWrap.parentElement.setAttribute("title",this.getLocale(p.c[this.editableOn],o))}this.isReact&&this.clearTemplate()},e.prototype.destroyComponents=function(){this.showButtons&&this.destroyButtons(),this.isExtModule?this.notify(d.f,{}):(this.templateEle&&(document.body.appendChild(this.templateEle),this.templateEle.style.display="none",this.templateEle=void 0),i.i(n.isNullOrUndefined)(this.componentObj)||(this.componentObj.destroy(),this.componentObj=void 0)),this.formValidate&&(this.formValidate=void 0),this.submitOnEnter&&this.containerEle&&this.unWireEditorKeyDownEvent(this.containerEle)},e.prototype.destroyButtons=function(){i.i(n.isNullOrUndefined)(this.submitBtn)||(n.EventHandler.remove(this.submitBtn.element,"mousedown",this.submitHandler),n.EventHandler.remove(this.submitBtn.element,"click",this.submitPrevent),n.EventHandler.remove(this.submitBtn.element,"keydown",this.btnKeyDownHandler),this.submitBtn.destroy(),this.submitBtn=void 0),i.i(n.isNullOrUndefined)(this.cancelBtn)||(n.EventHandler.remove(this.cancelBtn.element,"mousedown",this.cancelBtnClick),n.EventHandler.remove(this.cancelBtn.element,"keydown",this.btnKeyDownHandler),this.cancelBtn.destroy(),this.cancelBtn=void 0),this.btnElements=void 0},e.prototype.getQuery=function(t){var e=new o.Query;return Object.keys(t).forEach(function(i){e.addParams(i,t[i])}),e},e.prototype.sendValue=function(){var t=this,e={data:{name:this.name,primaryKey:this.primaryKey,value:this.getSendValue()}};this.trigger("actionBegin",e,function(e){if(e.cancel)t.removeSpinner("submit"),"Popup"===t.mode&&t.updateArrow();else{if(t.isEmpty(t.url)||t.isEmpty(t.primaryKey)||!t.initRender&&(t.initRender||t.prevValue===t.value)){var i={data:{},value:e.data.value};t.triggerSuccess(i)}else if(t.dataManager=new o.DataManager({url:t.url,adaptor:t.dataAdaptor}),"UrlAdaptor"===t.adaptor)t.dataManager.executeQuery(t.getQuery(e.data),t.successHandler.bind(t),t.failureHandler.bind(t));else{var n=t.dataManager.insert(e.data);n.then(function(e){return t.successHandler(e)}).catch(function(e){return t.failureHandler(e)})}t.dataManager=void 0}})},e.prototype.isEmpty=function(t){return!(!i.i(n.isNullOrUndefined)(t)&&0!==t.length)},e.prototype.checkIsTemplate=function(){this.isTemplate=!i.i(n.isNullOrUndefined)(this.template)&&""!==this.template},e.prototype.templateCompile=function(t,e){var o;Object.keys(window);"string"==typeof e&&(e=e.trim());var r=i.i(n.compile)(e);if(!i.i(n.isNullOrUndefined)(r)){var s=!(i.i(n.isBlazor)()&&"function"!=typeof e&&!this.isStringTemplate&&0===e.indexOf("<div>Blazor"))||this.isStringTemplate;o=r({},this,"template",this.element.id+"template",s)}!i.i(n.isNullOrUndefined)(r)&&o.length>0&&([].slice.call(o).forEach(function(e){t.appendChild(e)}),i.i(n.isBlazor)()&&!this.isStringTemplate&&"function"!=typeof e&&0===e.indexOf("<div>Blazor")&&i.i(n.updateBlazorTemplate)(this.element.id+"template","Template",this))},e.prototype.sanitizeHelper=function(t){if(this.enableHtmlSanitizer){var e=n.SanitizeHtmlHelper.beforeSanitize(),o={cancel:!1,helper:null};i.i(n.extend)(e,e,o),this.trigger("beforeSanitizeHtml",e,function(o){e.cancel&&!i.i(n.isNullOrUndefined)(e.helper)?t=e.helper(t):e.cancel||(t=n.SanitizeHtmlHelper.serializeValue(e,t))})}return t},e.prototype.appendTemplate=function(t,e){e="string"==typeof e?this.sanitizeHelper(e):e,this.setProperties({template:e},!0),"function"==typeof e?this.templateCompile(t,e):"string"==typeof e||i.i(n.isNullOrUndefined)(e.innerHTML)?("."===e[0]||"#"===e[0])&&document.querySelectorAll(e).length?(this.templateEle=document.querySelector(e),t.appendChild(this.templateEle),this.templateEle.style.display=""):this.templateCompile(t,e):(this.templateEle=e,t.appendChild(this.templateEle))},e.prototype.disable=function(t){t?i.i(n.addClass)([this.element],[c.w]):i.i(n.removeClass)([this.element],[c.w])},e.prototype.enableEditor=function(t,e){e&&!t||(t?this.renderEditor():this.cancelHandler("cancel"))},e.prototype.checkValidation=function(t,e){var o,r=this;if(this.validationRules){var s=Object.keys(this.validationRules),a=Object.keys(this.validationRules[s[0]]).length;a="validateHidden"in this.validationRules[s[0]]?a-1:a;var u=0;this.formValidate=new l.FormValidator(this.formEle,{rules:this.validationRules,validationBegin:function(t){if("RTE"===r.type){var e=document.createElement("div");e.innerHTML=t.value,t.value=e.innerText}},validationComplete:function(s){u+=1,o={errorMessage:s.message,data:{name:r.name,primaryKey:r.primaryKey,value:r.checkValue(r.getSendValue())}},r.trigger("validating",o,function(o){"failure"===s.status?(s.errorElement.innerText=o.errorMessage,r.toggleErrorClass(!0)):r.toggleErrorClass(!1),i.i(n.isNullOrUndefined)(t)||!t||a!==u&&"failure"!==s.status||(t=!1,r.afterValidation(e),u=0)})},customPlacement:function(t,e){r.formEle&&i.i(n.select)("."+c.p,r.formEle).appendChild(e)}}),u=0,this.formValidate.validate()}else""!==this.template?(o={errorMessage:"",data:{name:this.name,primaryKey:this.primaryKey,value:this.checkValue(this.getSendValue())}},this.trigger("validating",o,function(t){t.errorMessage?(i.i(n.select)("."+c.p,r.formEle).innerHTML=t.errorMessage,r.toggleErrorClass(!0)):r.toggleErrorClass(!1),r.afterValidation(e)})):this.afterValidation(e)},e.prototype.afterValidation=function(t){!this.formEle.classList.contains(c.C)&&t&&(this.loadSpinner("validate"),"Popup"===this.mode&&this.updateArrow(),this.sendValue())},e.prototype.toggleErrorClass=function(t){if(!i.i(n.isNullOrUndefined)(this.formEle)){var e=i.i(n.select)(".e-input-group",this.formEle);!function(t,e,o){[].slice.call(t).forEach(function(t){t&&("add"===o?i.i(n.addClass)([t],[e]):i.i(n.removeClass)([t],[e]))})}([this.formEle,e],c.C,t?"add":"remove")}},e.prototype.updateArrow=function(){var t=this.tipObj.tipPointerPosition;this.tipObj.tipPointerPosition="Middle"===t?"Auto":"Middle",this.tipObj.tipPointerPosition=t,this.tipObj.dataBind()},e.prototype.triggerSuccess=function(t){var e=this,o=t.value;this.trigger("actionSuccess",t,function(t){e.oldValue=o,e.removeSpinner("submit"),t.cancel||e.renderValue(e.checkValue(t.value!==o?t.value:e.getRenderValue())),t.cancel&&"Inline"===e.mode&&i.i(n.removeClass)([e.valueWrap],[c.A]),e.removeEditor()})},e.prototype.triggerEndEdit=function(t){var e=this,i={cancel:!1,mode:this.mode,action:t};this.trigger("endEdit",i,function(t){t.cancel||(e.formEle&&e.formEle.classList.contains(c.C)&&(e.updateModelValue(!0),e.setProperties({value:e.oldValue},!0)),e.removeEditor())})},e.prototype.wireEvents=function(){this.wireEditEvent(this.editableOn),n.EventHandler.add(this.editIcon,"click",this.clickHandler,this),n.EventHandler.add(this.element,"keydown",this.valueKeyDownHandler,this),document.addEventListener("scroll",this.onScrollResizeHandler),window.addEventListener("resize",this.onScrollResizeHandler),Array.prototype.indexOf.call(this.clearComponents,this.type)>-1&&n.EventHandler.add(this.element,"mousedown",this.mouseDownHandler,this)},e.prototype.wireDocEvent=function(){n.EventHandler.add(document,"mousedown",this.docClickHandler,this)},e.prototype.wireEditEvent=function(t){if("EditIconClick"!==t){var e="Click"===t?"editAreaClick":"editAreaDoubleClick";this.element.setAttribute("title",this.getLocale(p.c[t],e)),n.Browser.isDevice&&n.Browser.isIos&&"DblClick"===t?this.touchModule=new n.Touch(this.valueWrap,{tap:this.doubleTapHandler.bind(this)}):n.EventHandler.add(this.valueWrap,t.toLowerCase(),this.clickHandler,this)}},e.prototype.wireEditorKeyDownEvent=function(t){n.EventHandler.add(t,"keydown",this.enterKeyDownHandler,this)},e.prototype.wireBtnEvents=function(){i.i(n.isNullOrUndefined)(this.submitBtn)||(n.EventHandler.add(this.submitBtn.element,"mousedown",this.submitHandler,this),n.EventHandler.add(this.submitBtn.element,"click",this.submitPrevent,this),n.EventHandler.add(this.submitBtn.element,"keydown",this.btnKeyDownHandler,this)),i.i(n.isNullOrUndefined)(this.cancelBtn)||(n.EventHandler.add(this.cancelBtn.element,"mousedown",this.cancelBtnClick,this),n.EventHandler.add(this.cancelBtn.element,"keydown",this.btnKeyDownHandler,this))},e.prototype.cancelBtnClick=function(t){this.cancelHandler("cancel"),this.trigger("cancelClick",t)},e.prototype.unWireEvents=function(){this.unWireEditEvent(this.editableOn),n.EventHandler.remove(this.editIcon,"click",this.clickHandler),document.removeEventListener("scroll",this.onScrollResizeHandler),window.removeEventListener("resize",this.onScrollResizeHandler),n.EventHandler.remove(this.element,"keydown",this.valueKeyDownHandler),Array.prototype.indexOf.call(this.clearComponents,this.type)>-1&&n.EventHandler.remove(this.element,"mousedown",this.mouseDownHandler)},e.prototype.unWireDocEvent=function(){n.EventHandler.remove(document,"mousedown",this.docClickHandler)},e.prototype.unWireEditEvent=function(t){"EditIconClick"!==t&&(this.element.removeAttribute("title"),n.Browser.isDevice&&n.Browser.isIos&&"DblClick"===t?(this.touchModule.destroy(),this.touchModule=void 0):n.EventHandler.remove(this.valueWrap,t.toLowerCase(),this.clickHandler))},e.prototype.unWireEditorKeyDownEvent=function(t){n.EventHandler.remove(t,"keydown",this.enterKeyDownHandler)},e.prototype.submitPrevent=function(t){t.preventDefault()},e.prototype.btnKeyDownHandler=function(t){var e=t.target;(13===t.keyCode&&13===t.which||32===t.keyCode&&32===t.which)&&(e.classList.contains(c.s)?this.save():e.classList.contains(c.t)&&this.cancelHandler("cancel")),9!==t.keyCode||!1!==t.shiftKey||!i.i(n.isNullOrUndefined)(t.target.nextElementSibling)&&"BUTTON"===t.target.nextElementSibling.tagName||("Submit"===this.actionOnBlur?this.save():"Cancel"===this.actionOnBlur&&this.cancelHandler("cancel"))},e.prototype.afterOpenHandler=function(t){"Popup"===this.mode&&"MultiSelect"===this.type&&(n.EventHandler.add(this.containerEle,"mousedown",this.popMouseDown,this),n.EventHandler.add(this.containerEle,"click",this.popClickHandler,this)),"Popup"!==this.mode||this.isEmpty(this.titleEle.innerHTML)||t.element.classList.add(c.f),"RTE"===this.type?(this.rteModule.refresh(),this.setAttribute(i.i(n.select)(".e-richtexteditor textarea",this.containerEle),["name"])):"Slider"===this.type&&(this.sliderModule.refresh(),this.setAttribute(i.i(n.select)(".e-slider-input",this.containerEle),["name"])),this.beginEditArgs.cancelFocus||("Inline"===this.mode&&["AutoComplete","ComboBox","DropDownList","MultiSelect"].indexOf(this.type)>-1&&this.model.dataSource instanceof o.DataManager?this.showDropDownPopup():this.setFocus()),this.afterOpenEvent&&(this.tipObj.setProperties({afterOpen:this.afterOpenEvent},!0),this.tipObj.trigger("afterOpen",t))},e.prototype.popMouseDown=function(t){var e=t.target.classList;e.contains("e-chips-close")&&!e.contains("e-close-hooker")&&this.updateArrow()},e.prototype.doubleTapHandler=function(t){t.tapCount>1&&this.clickHandler(t.originalEvent)},e.prototype.clickHandler=function(t){"EditIconClick"!==this.editableOn&&t.stopPropagation(),this.renderEditor()},e.prototype.submitHandler=function(t){t.preventDefault(),this.save(),this.trigger("submitClick",t)},e.prototype.cancelHandler=function(t){this.triggerEndEdit(t)},e.prototype.popClickHandler=function(t){var e=i.i(n.select)("."+c.c,this.element);t.target.classList.contains("e-chips-close")&&this.tipObj.refresh(e)},e.prototype.successHandler=function(t){this.initRender=!1;var e={data:t,value:this.getSendValue()};this.triggerSuccess(e)},e.prototype.failureHandler=function(t){var e=this,i={data:t,value:this.getSendValue()};this.trigger("actionFailure",i,function(t){e.removeSpinner("submit"),"Popup"===e.mode&&e.updateArrow()})},e.prototype.enterKeyDownHandler=function(t){i.i(n.closest)(t.target,"."+c.n+" .e-richtexteditor")||t.currentTarget.getElementsByTagName("textarea")[0]||(13===t.keyCode&&13===t.which&&i.i(n.closest)(t.target,"."+c.n)?(this.save(),this.trigger("submitClick",t)):27===t.keyCode&&27===t.which&&this.cancelHandler("cancel"))},e.prototype.valueKeyDownHandler=function(t){9===t.keyCode&&!0===t.shiftKey&&"BUTTON"!==t.target.tagName&&("Submit"===this.actionOnBlur?this.save():"Cancel"===this.actionOnBlur&&this.cancelHandler("cancel")),13!==t.keyCode||13!==t.which||!t.target.classList.contains(c.a)||this.valueWrap.classList.contains(c.r)||this.element.classList.contains(c.w)||(t.preventDefault(),this.renderEditor())},e.prototype.mouseDownHandler=function(t){t.target.classList.contains("e-clear-icon")&&(this.isClearTarget=!0)},e.prototype.scrollResizeHandler=function(){"Popup"===this.mode&&this.tipObj&&!n.Browser.isDevice&&this.triggerEndEdit("cancel")},e.prototype.docClickHandler=function(t){var e=t.target;if(this.isClearTarget)return void(this.isClearTarget=!1);var o=i.i(n.closest)(e,"."+c.a),r=i.i(n.closest)(e,"."+c.b),s=i.i(n.closest)(e,"."+c.q),a=i.i(n.closest)(e,".e-rte-elements");!i.i(n.isNullOrUndefined)(o)&&o.isEqualNode(this.element)||!i.i(n.isNullOrUndefined)(r)&&this.tipObj&&r.id.indexOf(this.valueWrap.id)>-1||!i.i(n.isNullOrUndefined)(s)||!i.i(n.isNullOrUndefined)(a)||e.classList.contains("e-chips-close")||("Submit"===this.actionOnBlur?this.save():"Cancel"===this.actionOnBlur&&this.cancelHandler("cancel"))},e.prototype.changeHandler=function(t){var e={previousValue:void 0===this.compPrevValue?this.value:this.compPrevValue,value:t.value};"AutoComplete"!==this.type&&"ComboBox"!==this.type&&"DropDownList"!==this.type||(e.itemData=t.itemData,e.previousItemData=t.previousItemData),this.compPrevValue=e.value,this.trigger("change",e)},e.prototype.validate=function(){this.checkValidation(!0,!1)},e.prototype.save=function(){var t=this;if(this.formEle){this.element.focus(),this.editEle=i.i(n.select)("."+c.n,this.formEle);i.i(n.select)("."+c.C,this.editEle),this.isTemplate||this.setValue();var e={cancel:!1,mode:this.mode,action:"submit"};this.trigger("endEdit",e,function(e){e.cancel||t.checkValidation(!0,!0)})}},e.prototype.destroy=function(){var e=this;this.removeEditor(i.i(n.isBlazor)()),this.isExtModule&&this.notify(d.g,{}),this.unWireEvents();var o=[c.w,c.B];for(o.forEach(function(t){i.i(n.removeClass)([e.element],[t])});this.element.firstElementChild;)this.element.removeChild(this.element.firstElementChild);i.i(n.isBlazor)()&&this.isServerRendered||t.prototype.destroy.call(this),this.isReact&&this.clearTemplate()},e.prototype.getPersistData=function(){return this.addOnPersist(["value"])},e.prototype.requiredModules=function(){var t=[];return Array.prototype.indexOf.call(this.moduleList,this.type)>-1&&t.push({member:p.b[this.type],args:[this]}),t},e.prototype.getModuleName=function(){return"inplaceeditor"},e.prototype.onPropertyChanged=function(t,e){if(!this.validationRules||!(!i.i(n.isNullOrUndefined)(this.element.querySelectorAll("."+c.C))&&this.element.querySelectorAll("."+c.C).length>0)){if(this.isEditorOpen()){var o="enableEditMode"in t;o&&e.enableEditMode&&!t.enableEditMode||!o&&this.enableEditMode?this.triggerEndEdit("cancel"):this.removeEditor()}for(var r=0,s=Object.keys(t);r<s.length;r++)switch(s[r]){case"showButtons":t.showButtons?this.appendButtons(this.formEle):this.destroyButtons();break;case"value":this.updateValue(),"Never"===this.textOption?this.renderValue(this.checkValue(i.i(h.a)(this.type,this.value,this.model))):this.renderInitialValue();break;case"emptyText":"Never"===this.textOption?this.renderValue(this.checkValue(i.i(h.a)(this.type,this.value,this.model))):this.renderInitialValue();break;case"template":this.checkIsTemplate();break;case"disabled":this.disable(t.disabled),t.disabled?this.element.tabIndex=-1:this.element.tabIndex=0;break;case"enableRtl":this.setRtl(t.enableRtl);break;case"cssClass":this.setClass("remove",e.cssClass),this.setClass("add",t.cssClass);break;case"mode":this.enableEditor(this.enableEditMode);break;case"enableEditMode":this.enableEditor(t.enableEditMode);break;case"editableOn":this.unWireEditEvent(e.editableOn),"EditIconClick"!==t.editableOn&&this.wireEditEvent(t.editableOn)}}},m([i.i(n.Property)("")],e.prototype,"name",void 0),m([i.i(n.Property)(null)],e.prototype,"value",void 0),m([i.i(n.Property)("")],e.prototype,"template",void 0),m([i.i(n.Property)(!0)],e.prototype,"enableHtmlSanitizer",void 0),m([i.i(n.Property)(!0)],e.prototype,"enableHtmlParse",void 0),m([i.i(n.Property)("")],e.prototype,"cssClass",void 0),m([i.i(n.Property)("")],e.prototype,"primaryKey",void 0),m([i.i(n.Property)("Empty")],e.prototype,"emptyText",void 0),m([i.i(n.Property)("")],e.prototype,"url",void 0),m([i.i(n.Property)("Popup")],e.prototype,"mode",void 0),m([i.i(n.Property)("UrlAdaptor")],e.prototype,"adaptor",void 0),m([i.i(n.Property)("Text")],e.prototype,"type",void 0),m([i.i(n.Property)("Click")],e.prototype,"editableOn",void 0),m([i.i(n.Property)("Never")],e.prototype,"textOption",void 0),m([i.i(n.Property)("Submit")],e.prototype,"actionOnBlur",void 0),m([i.i(n.Property)(!1)],e.prototype,"enablePersistence",void 0),m([i.i(n.Property)(!1)],e.prototype,"disabled",void 0),m([i.i(n.Property)(!0)],e.prototype,"showButtons",void 0),m([i.i(n.Property)(!1)],e.prototype,"enableEditMode",void 0),m([i.i(n.Property)(!0)],e.prototype,"submitOnEnter",void 0),m([i.i(n.Complex)({},p.a)],e.prototype,"popupSettings",void 0),m([i.i(n.Property)(null)],e.prototype,"model",void 0),m([i.i(n.Property)({iconCss:"e-icons e-save-icon"})],e.prototype,"saveButton",void 0),m([i.i(n.Property)({iconCss:"e-icons e-cancel-icon"})],e.prototype,"cancelButton",void 0),m([i.i(n.Property)(null)],e.prototype,"validationRules",void 0),m([i.i(n.Event)()],e.prototype,"created",void 0),m([i.i(n.Event)()],e.prototype,"beforeSanitizeHtml",void 0),m([i.i(n.Event)()],e.prototype,"actionBegin",void 0),m([i.i(n.Event)()],e.prototype,"actionSuccess",void 0),m([i.i(n.Event)()],e.prototype,"actionFailure",void 0),m([i.i(n.Event)()],e.prototype,"validating",void 0),m([i.i(n.Event)()],e.prototype,"beginEdit",void 0),m([i.i(n.Event)()],e.prototype,"endEdit",void 0),m([i.i(n.Event)()],e.prototype,"change",void 0),m([i.i(n.Event)()],e.prototype,"submitClick",void 0),m([i.i(n.Event)()],e.prototype,"cancelClick",void 0),m([i.i(n.Event)()],e.prototype,"destroyed",void 0),e=m([n.NotifyPropertyChanges],e)}(n.Component)},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i(2),o=(i.n(n),i(0)),r=function(){function t(t){this.compObj=void 0,this.parent=t,this.parent.atcModule=this,this.base=new o.a(this.parent,this)}return t.prototype.render=function(t){this.compObj=new n.AutoComplete(this.parent.model),this.compObj.appendTo(t.target)},t.prototype.showPopup=function(){this.compObj.focusIn(),this.compObj.showPopup()},t.prototype.focus=function(){this.compObj.element.focus()},t.prototype.updateValue=function(t){this.compObj&&"AutoComplete"===t.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},t.prototype.destroy=function(){this.base.destroy()},t.prototype.getModuleName=function(){return"auto-complete"},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i(3),o=(i.n(n),i(0)),r=function(){function t(t){this.compObj=void 0,this.parent=t,this.parent.colorModule=this,this.base=new o.a(this.parent,this)}return t.prototype.render=function(t){this.compObj=new n.ColorPicker(this.parent.model),this.compObj.appendTo(t.target)},t.prototype.focus=function(){this.compObj.element.focus()},t.prototype.updateValue=function(t){this.compObj&&"Color"===t.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},t.prototype.destroy=function(){this.base.destroy()},t.prototype.getModuleName=function(){return"color-picker"},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i(2),o=(i.n(n),i(0)),r=function(){function t(t){this.compObj=void 0,this.parent=t,this.parent.comboBoxModule=this,this.base=new o.a(this.parent,this)}return t.prototype.render=function(t){this.compObj=new n.ComboBox(this.parent.model),this.compObj.appendTo(t.target)},t.prototype.focus=function(){this.compObj.element.focus()},t.prototype.showPopup=function(){this.compObj.focusIn(),this.compObj.showPopup()},t.prototype.destroy=function(){this.base.destroy()},t.prototype.updateValue=function(t){this.compObj&&"ComboBox"===t.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},t.prototype.getModuleName=function(){return"combo-box"},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i(5),o=(i.n(n),i(0)),r=function(){function t(t){this.compObj=void 0,this.parent=t,this.parent.dateRangeModule=this,this.base=new o.a(this.parent,this)}return t.prototype.render=function(t){this.compObj=new n.DateRangePicker(this.parent.model),this.compObj.appendTo(t.target)},t.prototype.focus=function(){this.compObj.element.focus()},t.prototype.getModuleName=function(){return"date-range-picker"},t.prototype.updateValue=function(t){this.compObj&&"DateRange"===t.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},t.prototype.destroy=function(){this.base.destroy()},t}()},function(t,e,i){"use strict";var n=i(0);i.d(e,"a",function(){return n.a});var o=i(15);i.d(e,"b",function(){return o.a});var r=i(16);i.d(e,"c",function(){return r.a});var s=i(17);i.d(e,"d",function(){return s.a});var a=i(18);i.d(e,"e",function(){return a.a});var l=i(20);i.d(e,"f",function(){return l.a});var u=i(21);i.d(e,"g",function(){return u.a});var d=i(22);i.d(e,"h",function(){return d.a});var c=i(23);i.d(e,"i",function(){return c.a})},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i(1),o=(i.n(n),i(2)),r=(i.n(o),i(0)),s=this&&this.__assign||function(){return s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},s.apply(this,arguments)},a=function(){function t(t){this.isPopOpen=!1,this.compObj=void 0,this.parent=t,this.parent.multiSelectModule=this,this.base=new r.a(this.parent,this)}return t.prototype.render=function(t){var e=s({},this.parent.model);this.openEvent=e.open,this.closeEvent=e.close,e.open=this.openHandler.bind(this),e.close=this.closeHandler.bind(this),this.compObj=new o.MultiSelect(e),this.compObj.appendTo(t.target)},t.prototype.openHandler=function(t){this.isPopOpen=!0,this.openEvent&&(this.compObj.setProperties({open:this.openEvent},!0),this.compObj.trigger("open",t))},t.prototype.closeHandler=function(t){this.isPopOpen=!1,this.closeEvent&&(this.compObj.setProperties({close:this.closeEvent},!0),this.compObj.trigger("close",t))},t.prototype.focus=function(){if(!this.isPopOpen){var t=document.createEvent("MouseEvent");t.initEvent("mousedown",!0,!0),i.i(n.closest)(this.compObj.element,".e-multi-select-wrapper").dispatchEvent(t)}},t.prototype.updateValue=function(t){this.compObj&&"MultiSelect"===t.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},t.prototype.getRenderValue=function(){this.parent.printValue=this.compObj.text},t.prototype.destroy=function(){this.base.destroy()},t.prototype.getModuleName=function(){return"multi-select"},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i(10),o=(i.n(n),i(0)),r=function(){function t(t){this.compObj=void 0,n.RichTextEditor.Inject(n.HtmlEditor,n.MarkdownEditor,n.Toolbar,n.Link,n.Image,n.QuickToolbar,n.Table,n.FileManager,n.PasteCleanup,n.EmojiPicker,n.Audio,n.Video,n.FormatPainter,n.Count),this.parent=t,this.parent.rteModule=this,this.base=new o.a(this.parent,this)}return t.prototype.render=function(t){this.compObj=new n.RichTextEditor(this.parent.model),this.compObj.appendTo(t.target)},t.prototype.focus=function(){this.compObj.focusIn()},t.prototype.updateValue=function(t){this.compObj&&"RTE"===t.type&&(this.parent.setProperties({value:this.getRteValue()},!0),this.parent.extendModelValue(this.compObj.value))},t.prototype.getRteValue=function(){var t;return"Markdown"===this.compObj.editorMode?(t=this.compObj.contentModule.getEditPanel().value,""===t?"":t):(t=this.compObj.contentModule.getEditPanel().innerHTML,"<p><br></p>"===t||"&lt;p&gt;&lt;br&gt;&lt;/p&gt;"===t||""===t?"":t)},t.prototype.refresh=function(){this.compObj.refresh()},t.prototype.destroy=function(){this.base.destroy()},t.prototype.getModuleName=function(){return"rte"},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i(3),o=(i.n(n),i(0)),r=function(){function t(t){this.compObj=void 0,this.parent=t,this.parent.sliderModule=this,this.base=new o.a(this.parent,this)}return t.prototype.render=function(t){this.compObj=new n.Slider(this.parent.model),this.compObj.appendTo(t.target)},t.prototype.focus=function(){this.compObj.element.focus()},t.prototype.updateValue=function(t){this.compObj&&"Slider"===t.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},t.prototype.refresh=function(){this.compObj.refresh()},t.prototype.destroy=function(){this.base.destroy()},t.prototype.getModuleName=function(){return"slider"},t}()},function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i(5),o=(i.n(n),i(0)),r=function(){function t(t){this.compObj=void 0,this.parent=t,this.parent.timeModule=this,this.base=new o.a(this.parent,this)}return t.prototype.render=function(t){this.compObj=new n.TimePicker(this.parent.model),this.compObj.appendTo(t.target)},t.prototype.focus=function(){this.compObj.focusIn()},t.prototype.updateValue=function(t){this.compObj&&"Time"===t.type&&(this.parent.setProperties({value:this.compObj.value},!0),this.parent.extendModelValue(this.compObj.value))},t.prototype.getModuleName=function(){return"time-picker"},t.prototype.destroy=function(){this.base.destroy()},t}()},function(t,e){t.exports=s},function(t,e){t.exports=a}])});