@syncfusion/ej2-inplace-editor 24.2.7 → 25.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 (34) hide show
  1. package/dist/ej2-inplace-editor.min.js +2 -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 +3 -1
  5. package/dist/es6/ej2-inplace-editor.es2015.js.map +1 -1
  6. package/dist/es6/ej2-inplace-editor.es5.js +3 -1
  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/inplace-editor/base/classes.ts +63 -0
  12. package/dist/ts/inplace-editor/base/events.ts +18 -0
  13. package/dist/ts/inplace-editor/base/inplace-editor.ts +1759 -0
  14. package/dist/ts/inplace-editor/base/interface.ts +127 -0
  15. package/dist/ts/inplace-editor/base/models.ts +47 -0
  16. package/dist/ts/inplace-editor/base/util.ts +104 -0
  17. package/dist/ts/inplace-editor/modules/auto-complete.ts +65 -0
  18. package/dist/ts/inplace-editor/modules/base-module.ts +74 -0
  19. package/dist/ts/inplace-editor/modules/color-picker.ts +55 -0
  20. package/dist/ts/inplace-editor/modules/combo-box.ts +63 -0
  21. package/dist/ts/inplace-editor/modules/date-range-picker.ts +55 -0
  22. package/dist/ts/inplace-editor/modules/multi-select.ts +88 -0
  23. package/dist/ts/inplace-editor/modules/rte.ts +72 -0
  24. package/dist/ts/inplace-editor/modules/slider.ts +59 -0
  25. package/dist/ts/inplace-editor/modules/time-picker.ts +54 -0
  26. package/package.json +18 -18
  27. package/src/inplace-editor/base/inplace-editor.d.ts +1 -1
  28. package/src/inplace-editor/base/inplace-editor.js +3 -1
  29. package/styles/bootstrap.css +3 -3
  30. package/styles/inplace-editor/_bds-definition.scss +70 -0
  31. package/styles/inplace-editor/bootstrap.css +3 -3
  32. package/styles/inplace-editor/icons/_bds.scss +19 -0
  33. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -41
  34. package/.github/PULL_REQUEST_TEMPLATE/Feature.md +0 -27
@@ -0,0 +1,72 @@
1
+ import { RichTextEditor, RichTextEditorModel, HtmlEditor } from '@syncfusion/ej2-richtexteditor';
2
+ import { MarkdownEditor, Toolbar, Link, Image, QuickToolbar, Table, FileManager, PasteCleanup, EmojiPicker, Audio ,Video, FormatPainter, Count} from '@syncfusion/ej2-richtexteditor';
3
+ import { Base } from './base-module';
4
+ import { InPlaceEditor } from '../base/inplace-editor';
5
+ import { NotifyParams, IComponent } from '../base/interface';
6
+
7
+ /**
8
+ * The `RTE` module is used configure the properties of RTE type editor.
9
+ */
10
+ export class Rte implements IComponent {
11
+ private base: Base;
12
+ protected parent: InPlaceEditor;
13
+ public compObj: RichTextEditor = undefined;
14
+
15
+ public constructor(parent?: InPlaceEditor) {
16
+ RichTextEditor.Inject(HtmlEditor, MarkdownEditor, Toolbar, Link, Image, QuickToolbar, Table, FileManager, PasteCleanup, EmojiPicker, Audio ,Video, FormatPainter, Count);
17
+ this.parent = parent;
18
+ this.parent.rteModule = this;
19
+ this.base = new Base(this.parent, this);
20
+ }
21
+
22
+ public render(e: NotifyParams): void {
23
+ this.compObj = new RichTextEditor(this.parent.model as RichTextEditorModel);
24
+ this.compObj.appendTo(e.target);
25
+ }
26
+
27
+ public focus(): void {
28
+ this.compObj.focusIn();
29
+ }
30
+
31
+ public updateValue(e: NotifyParams): void {
32
+ if (this.compObj && e.type === 'RTE') {
33
+ this.parent.setProperties({ value: this.getRteValue() }, true);
34
+ this.parent.extendModelValue(this.compObj.value);
35
+ }
36
+ }
37
+
38
+ private getRteValue(): string {
39
+ let rteVal: string;
40
+ if (this.compObj.editorMode === 'Markdown') {
41
+ rteVal = (this.compObj.contentModule.getEditPanel() as HTMLTextAreaElement).value;
42
+ return (rteVal === '') ? '' : rteVal;
43
+ } else {
44
+ rteVal = this.compObj.contentModule.getEditPanel().innerHTML;
45
+ return (rteVal === '<p><br></p>' || rteVal === '&lt;p&gt;&lt;br&gt;&lt;/p&gt;' || rteVal === '') ? '' : rteVal;
46
+ }
47
+ }
48
+
49
+ public refresh(): void {
50
+ this.compObj.refresh();
51
+ }
52
+
53
+ /**
54
+ * Destroys the rte module.
55
+ *
56
+ * @function destroy
57
+ * @returns {void}
58
+ * @hidden
59
+ */
60
+ public destroy(): void {
61
+ this.base.destroy();
62
+ }
63
+
64
+ /**
65
+ * For internal use only - Get the module name.
66
+ *
67
+ * @returns {string} - returns the string
68
+ */
69
+ private getModuleName(): string {
70
+ return 'rte';
71
+ }
72
+ }
@@ -0,0 +1,59 @@
1
+ import { Slider as EJ2Slider, SliderModel } from '@syncfusion/ej2-inputs';
2
+ import { Base } from './base-module';
3
+ import { InPlaceEditor } from '../base/inplace-editor';
4
+ import { NotifyParams, IComponent } from '../base/interface';
5
+
6
+ /**
7
+ * The `Slider` module is used configure the properties of Slider type editor.
8
+ */
9
+ export class Slider implements IComponent {
10
+ private base: Base;
11
+ protected parent: InPlaceEditor;
12
+ public compObj: EJ2Slider = undefined;
13
+
14
+ public constructor(parent?: InPlaceEditor) {
15
+ this.parent = parent;
16
+ this.parent.sliderModule = this;
17
+ this.base = new Base(this.parent, this);
18
+ }
19
+
20
+ public render(e: NotifyParams): void {
21
+ this.compObj = new EJ2Slider(this.parent.model as SliderModel);
22
+ this.compObj.appendTo(e.target as HTMLInputElement);
23
+ }
24
+
25
+ public focus(): void {
26
+ this.compObj.element.focus();
27
+ }
28
+
29
+ public updateValue(e: NotifyParams): void {
30
+ if (this.compObj && e.type === 'Slider') {
31
+ this.parent.setProperties({ value: this.compObj.value }, true);
32
+ this.parent.extendModelValue(this.compObj.value);
33
+ }
34
+ }
35
+
36
+ public refresh(): void {
37
+ this.compObj.refresh();
38
+ }
39
+
40
+ /**
41
+ * Destroys the slider module.
42
+ *
43
+ * @function destroy
44
+ * @returns {void}
45
+ * @hidden
46
+ */
47
+ public destroy(): void {
48
+ this.base.destroy();
49
+ }
50
+
51
+ /**
52
+ * For internal use only - Get the module name.
53
+ *
54
+ * @returns {string} - returns the string
55
+ */
56
+ private getModuleName(): string {
57
+ return 'slider';
58
+ }
59
+ }
@@ -0,0 +1,54 @@
1
+ import { TimePicker as EJ2TimePicker, TimePickerModel } from '@syncfusion/ej2-calendars';
2
+ import { Base } from './base-module';
3
+ import { InPlaceEditor } from '../base/inplace-editor';
4
+ import { NotifyParams, IComponent } from '../base/interface';
5
+
6
+ /**
7
+ * The `TimePicker` module is used configure the properties of Time picker type editor.
8
+ */
9
+ export class TimePicker implements IComponent {
10
+ private base: Base;
11
+ protected parent: InPlaceEditor;
12
+ public compObj: EJ2TimePicker = undefined;
13
+
14
+ public constructor(parent?: InPlaceEditor) {
15
+ this.parent = parent;
16
+ this.parent.timeModule = this;
17
+ this.base = new Base(this.parent, this);
18
+ }
19
+
20
+ public render(e: NotifyParams): void {
21
+ this.compObj = new EJ2TimePicker(this.parent.model as TimePickerModel);
22
+ this.compObj.appendTo(e.target as HTMLInputElement);
23
+ }
24
+
25
+ public focus(): void {
26
+ this.compObj.focusIn();
27
+ }
28
+
29
+ public updateValue(e: NotifyParams): void {
30
+ if (this.compObj && e.type === 'Time') {
31
+ this.parent.setProperties({ value: this.compObj.value }, true);
32
+ this.parent.extendModelValue(this.compObj.value);
33
+ }
34
+ }
35
+ /**
36
+ * For internal use only - Get the module name.
37
+ *
38
+ * @returns {string} - returns the string
39
+ */
40
+ private getModuleName(): string {
41
+ return 'time-picker';
42
+ }
43
+
44
+ /**
45
+ * Destroys the module.
46
+ *
47
+ * @function destroy
48
+ * @returns {void}
49
+ * @hidden
50
+ */
51
+ public destroy(): void {
52
+ this.base.destroy();
53
+ }
54
+ }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-inplace-editor@*",
3
- "_id": "@syncfusion/ej2-inplace-editor@24.2.4",
3
+ "_id": "@syncfusion/ej2-inplace-editor@24.2.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-4Jcf9ewpwJWvb9kk0LXEuoiV1nGeyfhrgZtiHYY6vapMxfAfZGEqQ7dQrBo5qnRL43gXHXqThqbK1q0Rdq08lg==",
5
+ "_integrity": "sha512-PZo0kebxvBLgEHJwOTBSWt+0jLRTtf+DNo93dMF2TiL1je666NtSca6PsNAhnEYgExGgZiJkfdoieysVVq374A==",
6
6
  "_location": "/@syncfusion/ej2-inplace-editor",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -24,10 +24,10 @@
24
24
  "/@syncfusion/ej2-react-inplace-editor",
25
25
  "/@syncfusion/ej2-vue-inplace-editor"
26
26
  ],
27
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-inplace-editor/-/ej2-inplace-editor-24.2.4.tgz",
28
- "_shasum": "4fff99ddcff99ee87b0e207684772cfaba6e54ad",
27
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-inplace-editor/-/ej2-inplace-editor-24.2.3.tgz",
28
+ "_shasum": "23117610c1661cdebaf3aba48e62f7a8bfebd625",
29
29
  "_spec": "@syncfusion/ej2-inplace-editor@*",
30
- "_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
30
+ "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
31
31
  "author": {
32
32
  "name": "Syncfusion Inc."
33
33
  },
@@ -36,18 +36,18 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~24.2.7",
40
- "@syncfusion/ej2-buttons": "~24.2.7",
41
- "@syncfusion/ej2-calendars": "~24.2.5",
42
- "@syncfusion/ej2-data": "~24.2.3",
43
- "@syncfusion/ej2-dropdowns": "~24.2.7",
44
- "@syncfusion/ej2-inputs": "~24.2.7",
45
- "@syncfusion/ej2-lists": "~24.2.4",
46
- "@syncfusion/ej2-navigations": "~24.2.4",
47
- "@syncfusion/ej2-notifications": "~24.2.4",
48
- "@syncfusion/ej2-popups": "~24.2.5",
49
- "@syncfusion/ej2-richtexteditor": "~24.2.7",
50
- "@syncfusion/ej2-splitbuttons": "~24.2.7"
39
+ "@syncfusion/ej2-base": "~25.1.35",
40
+ "@syncfusion/ej2-buttons": "~25.1.35",
41
+ "@syncfusion/ej2-calendars": "~25.1.35",
42
+ "@syncfusion/ej2-data": "~25.1.35",
43
+ "@syncfusion/ej2-dropdowns": "~25.1.35",
44
+ "@syncfusion/ej2-inputs": "~25.1.35",
45
+ "@syncfusion/ej2-lists": "~25.1.35",
46
+ "@syncfusion/ej2-navigations": "~25.1.35",
47
+ "@syncfusion/ej2-notifications": "~25.1.35",
48
+ "@syncfusion/ej2-popups": "~25.1.35",
49
+ "@syncfusion/ej2-richtexteditor": "~25.1.35",
50
+ "@syncfusion/ej2-splitbuttons": "~25.1.35"
51
51
  },
52
52
  "deprecated": false,
53
53
  "description": "A package of Essential JS 2 Inplace editor components, which is used to edit and update the value dynamically in server.",
@@ -70,6 +70,6 @@
70
70
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
71
71
  },
72
72
  "typings": "index.d.ts",
73
- "version": "24.2.7",
73
+ "version": "25.1.35",
74
74
  "sideEffects": false
75
75
  }
@@ -515,7 +515,7 @@ export declare class InPlaceEditor extends Component<HTMLElement> implements INo
515
515
  private getEditElement;
516
516
  private getLocale;
517
517
  private checkValue;
518
- extendModelValue(val: string | number | boolean | Date | DateRange | string[] | Date[] | number[] | boolean[]): void;
518
+ extendModelValue(val: string | number | boolean | Date | object | DateRange | string[] | Date[] | number[] | boolean[] | object[]): void;
519
519
  private updateValue;
520
520
  private updateModelValue;
521
521
  setValue(): void;
@@ -1245,7 +1245,9 @@ var InPlaceEditor = /** @class */ (function (_super) {
1245
1245
  */
1246
1246
  InPlaceEditor.prototype.requiredModules = function () {
1247
1247
  var modules = [];
1248
- modules.push({ member: modulesList[this.type], args: [this] });
1248
+ if (Array.prototype.indexOf.call(this.moduleList, this.type) > -1) {
1249
+ modules.push({ member: modulesList[this.type], args: [this] });
1250
+ }
1249
1251
  return modules;
1250
1252
  };
1251
1253
  /**
@@ -150,9 +150,9 @@
150
150
  }
151
151
  .e-richtexteditor .e-rte-toolbar.e-extended-toolbar .e-toolbar-items .e-toolbar-item .e-rte-dropdown-btn.e-active.e-tbar-btn {
152
152
  background: #e6e6e6;
153
- border: 1px solid #8c8c8c;
154
- padding-left: 8px;
155
- padding-right: 2.5px;
153
+ border: 0;
154
+ padding-left: 9px;
155
+ padding-right: 3.5px;
156
156
  }
157
157
 
158
158
  .e-bigger .e-richtexteditor .e-rte-toolbar.e-extended-toolbar .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn.e-control.e-dropdown-btn.e-rte-dropdown-btn.e-active {
@@ -0,0 +1,70 @@
1
+ //Layout Variable Start
2
+ $editor-big-value-text-font-size: $text-base !default;
3
+ $editor-nrml-value-text-font-size: $text-sm !default;
4
+ $editor-big-value-container-padding: 7px 12px 7px 12px !default;
5
+ $editor-nrml-value-container-padding: 3px 8px 5px 8px !default;
6
+ $editor-big-value-container-spin-padding: 8px !default;
7
+ $editor-nrml-value-container-spin-padding: 8px !default;
8
+ $editor-big-value-margin: 0 30px 0 0 !default;
9
+ $editor-nrml-value-margin: 0 28px 0 0 !default;
10
+ $editor-rtl-big-value-margin: 0 0 0 30px !default;
11
+ $editor-rtl-nrml-value-margin: 0 0 0 28px !default;
12
+ $editor-big-overlay-icon-size: $text-base !default;
13
+ $editor-nrml-overlay-icon-size: $text-sm !default;
14
+ $editor-big-overlay-icon-container-size: 20px !default;
15
+ $editor-nrml-overlay-icon-container-size: 20px !default;
16
+ $editor-big-overlay-icon-left-right: 8px !default;
17
+ $editor-nrml-overlay-icon-left-right: 8px !default;
18
+ $editor-tip-content-bdr-radius: 4px !default;
19
+ $editor-popup-tip-content-bdr-radius: 4px !default;
20
+ $editor-tip-title-font-weight: 500 !default;
21
+ $editor-big-tip-title-font-size: $text-sm !default;
22
+ $editor-nrml-tip-title-font-size: $text-xs !default;
23
+ $editor-big-tip-title-padding: 7px 16px 7px 16px !default;
24
+ $editor-nrml-tip-title-padding: 6px 12px 6px 12px !default;
25
+ $editor-rtl-big-tip-title-padding: 7px 16px 7px 16px !default;
26
+ $editor-rtl-nrml-tip-title-padding: 6px 12px 6px 12px !default;
27
+ $editor-big-tip-title-container-size: 36px !default;
28
+ $editor-nrml-tip-title-container-size: 30px !default;
29
+ $editor-big-tip-wrapper-padding: 16px !default;
30
+ $editor-nrml-tip-wrapper-padding: 12px !default;
31
+ $editor-big-wrapper-title-with-padding: 16px !default;
32
+ $editor-nrml-wrapper-title-with-padding: 12px !default;
33
+ $editor-component-bottom-margin: 4px !default;
34
+ $editor-buttons-top-margin: 4px !default;
35
+ $editor-btn-save-icon-size: 16px !default;
36
+ $editor-btn-cancel-icon-size: 16px !default;
37
+ $editor-big-btn-save-margin: 0 4px 0 0 !default;
38
+ $editor-nrml-btn-save-margin: 0 4px 0 0 !default;
39
+ $editor-big-btn-cancel-margin: 0 0 0 4px !default;
40
+ $editor-nrml-btn-cancel-margin: 0 0 0 4px !default;
41
+ $editor-rtl-big-btn-save-margin: 0 0 0 4px !default;
42
+ $editor-rtl-nrml-btn-save-margin: 0 0 0 4px !default;
43
+ $editor-rtl-big-btn-cancel-margin: 0 4px 0 0 !default;
44
+ $editor-rtl-nrml-btn-cancel-margin: 0 4px 0 0 !default;
45
+
46
+ //Layout Variable End
47
+
48
+ //Theme Variable Start
49
+ $editor-value-hover-bg: $content-bg-color-alt2 !default;
50
+ $content-text-color: $content-text-color !default;
51
+ $editor-value-text-color: $content-text-color !default;
52
+ $editor-overlay-icon-color: $icon-color !default;
53
+ $editor-value-text-border: 1px dashed $content-text-color !default;
54
+ $editor-background-color: $transparent !default;
55
+ $wrapper-background-color: $flyout-bg-color !default;
56
+ $editor-tip-border: 1px solid $border-light !default;
57
+ $editor-tip-bg: $flyout-bg-color !default;
58
+ $editor-tip-arrow-icon-color: $flyout-bg-color !default;
59
+ $editor-tip-title-arrow-icon-color: $content-bg-color-alt2 !default;
60
+ $editor-tip-arrow-bdr-color: $content-bg-color-alt2 !default;
61
+ $editor-tip-title-arrow-bdr-color: $content-bg-color-alt2 !default;
62
+ $editor-tip-box-shadow: $shadow-lg !default;
63
+ $editor-tip-title-bg: $content-bg-color-alt2 !default;
64
+ $editor-tio-title-border-bottom: 0 !default;
65
+ $editor-tip-title-color: $content-text-color-alt2 !default;
66
+ $editable-overlay-icon-height: inherit !default;
67
+ $editable-overlay-icon: 0 !default;
68
+ $editor-btn-icon-color: $icon-color !default;
69
+
70
+ //Theme Variable End
@@ -150,9 +150,9 @@
150
150
  }
151
151
  .e-richtexteditor .e-rte-toolbar.e-extended-toolbar .e-toolbar-items .e-toolbar-item .e-rte-dropdown-btn.e-active.e-tbar-btn {
152
152
  background: #e6e6e6;
153
- border: 1px solid #8c8c8c;
154
- padding-left: 8px;
155
- padding-right: 2.5px;
153
+ border: 0;
154
+ padding-left: 9px;
155
+ padding-right: 3.5px;
156
156
  }
157
157
 
158
158
  .e-bigger .e-richtexteditor .e-rte-toolbar.e-extended-toolbar .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn.e-control.e-dropdown-btn.e-rte-dropdown-btn.e-active {
@@ -0,0 +1,19 @@
1
+ @include export-module('inplaceeditor-bootstrap-icons') {
2
+
3
+ /*! inplaceeditor icons */
4
+ .e-inplaceeditor,
5
+ .e-inplaceeditor-tip {
6
+
7
+ .e-save-icon::before {
8
+ content: '\e774';
9
+ }
10
+
11
+ .e-cancel-icon::before {
12
+ content: '\e7e7';
13
+ }
14
+
15
+ .e-editable-overlay-icon::before {
16
+ content: '\e730';
17
+ }
18
+ }
19
+ }
@@ -1,41 +0,0 @@
1
- ### Bug description
2
-
3
- (Clearly and concisely describe the problem.)
4
-
5
- ### Root Cause / Analysis
6
-
7
- (Briefly describe root cause/analysis of the problem. If there is an internal discussion on the forum, provide the link.)
8
-
9
- ### Reason for not identifying earlier
10
-
11
- (Explain how it was missed to identify in our earlier testing/development.)
12
-
13
- ### Is Breaking issue.?
14
-
15
- (If it is a breaking issue, provide the commit detail which caused this break.)
16
-
17
- ### Is reported by customer in incident/forum.?
18
-
19
- (If it is reported by customer, provide the incident or forum details.)
20
-
21
- ### Solution Description
22
-
23
- (Describe your code changes in detail for reviewers.)
24
-
25
- ### Areas affected and ensured
26
-
27
- (List out the areas are affected by your code changes.)
28
-
29
- ### E2E report details against this fix
30
-
31
- (Run E2E locally and mention the details with mail attachment.)
32
-
33
- ### Did you included unit test cases.?
34
-
35
- (Provide unit testing spec coverage details.)
36
-
37
- ### Is there any API name changes.?
38
-
39
- /label ~bug
40
- /assign @ScrumMaster
41
- /cc @ProductOwner
@@ -1,27 +0,0 @@
1
- ### Feature description
2
-
3
- (Clearly and concisely describe the feature.)
4
-
5
- ### Analysis / Design
6
-
7
- (Briefly describe analysis of the feature. If there is an internal discussion on the Forum, provide the link.)
8
-
9
- ### Solution Description
10
-
11
- (Describe your code changes in detail for reviewers.)
12
-
13
- ### Areas affected and ensured
14
-
15
- (List out the areas are affected by your code changes.)
16
-
17
- ### Did you included unit test cases.?
18
-
19
- (Provide unit testing spec coverage details.)
20
-
21
- ### Is there any API name changes.?
22
-
23
- (Provide new or update of API details)
24
-
25
- /label ~bug
26
- /assign @ScrumMaster
27
- /cc @ProductOwner