aurelia-syncfusion-ej2-bridge 1.0.19 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,35 +1,35 @@
1
- # `aurelia-syncfusion-ej-2-bridge`
2
-
3
- This wrapper is not fully supported, use at your own risk
4
-
5
- # Supported controls
6
- * Accoridon
7
- * Auto Complete
8
- * Button
9
- * Checkbox
10
- * Color Picker
11
- * Combobox
12
- * Dashboard Layout
13
- * Date Picker
14
- * Date Time Picker
15
- * Dropdown List
16
- * Dropdown Tree
17
- * File Manager
18
- * Grid
19
- * List View
20
- * Masked Textbox
21
- * Numeric Textbox
22
- * Pager
23
- * Progress Button
24
- * Radio
25
- * Rich Text Editor
26
- * Schedule
27
- * Sidebar
28
- * Slider
29
- * Splitter
30
- * Switch
31
- * Textbox
32
- * Timeline
33
- * Time Picker
34
- * Tree View
35
- * Uploader
1
+ # `aurelia-syncfusion-ej-2-bridge`
2
+
3
+ This wrapper is not fully supported, use at your own risk
4
+
5
+ # Supported controls
6
+ * Accoridon
7
+ * Auto Complete
8
+ * Button
9
+ * Checkbox
10
+ * Color Picker
11
+ * Combobox
12
+ * Dashboard Layout
13
+ * Date Picker
14
+ * Date Time Picker
15
+ * Dropdown List
16
+ * Dropdown Tree
17
+ * File Manager
18
+ * Grid
19
+ * List View
20
+ * Masked Textbox
21
+ * Numeric Textbox
22
+ * Pager
23
+ * Progress Button
24
+ * Radio
25
+ * Rich Text Editor
26
+ * Schedule
27
+ * Sidebar
28
+ * Slider
29
+ * Splitter
30
+ * Switch
31
+ * Textbox
32
+ * Timeline
33
+ * Time Picker
34
+ * Tree View
35
+ * Uploader
@@ -65,13 +65,13 @@ __decorate([
65
65
  ], Ej2CheckboxList.prototype, "matcher", void 0);
66
66
  exports.Ej2CheckboxList = Ej2CheckboxList = __decorate([
67
67
  (0, aurelia_framework_1.customElement)("ej2-checkbox-list"),
68
- (0, aurelia_framework_1.inlineView)(`<template>
69
- <div repeat.for="option of dataSource" css="\${orientation === 'horizontal' ? 'display: inline;' : ''}">
70
- <ej2-checkbox view-model.ref="viewModels[$index]" e-label.bind="optionModel? option[optionModel.label]: option"
71
- e-name.bind="optionModel? option[optionModel.name]: option"
72
- click.delegate="checkboxClick(option, viewModels[$index])"
73
- e-checked.bind="selectedItems.length >0 && matcher? isMatch(option) : selectedItems.indexOf(option) !== -1">
74
- </ej2-checkbox>
75
- </div>
68
+ (0, aurelia_framework_1.inlineView)(`<template>
69
+ <div repeat.for="option of dataSource" css="\${orientation === 'horizontal' ? 'display: inline;' : ''}">
70
+ <ej2-checkbox view-model.ref="viewModels[$index]" e-label.bind="optionModel? option[optionModel.label]: option"
71
+ e-name.bind="optionModel? option[optionModel.name]: option"
72
+ click.delegate="checkboxClick(option, viewModels[$index])"
73
+ e-checked.bind="selectedItems.length >0 && matcher? isMatch(option) : selectedItems.indexOf(option) !== -1">
74
+ </ej2-checkbox>
75
+ </div>
76
76
  </template>`)
77
77
  ], Ej2CheckboxList);
@@ -1,10 +1,8 @@
1
1
  import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
2
2
  import { RichTextEditor, RichTextEditorModel } from '@syncfusion/ej2-richtexteditor';
3
3
  export declare class Ej2RichTextEditor extends SyncfusionWrapper<RichTextEditor, RichTextEditorModel> {
4
- private defaultToolbarItems;
5
4
  protected syncfusionWidgetType: any;
6
5
  protected onWrapperCreated(): void;
7
6
  protected onWidgetCreated(): void;
8
7
  onBeforeWidgetInstantiation(): void;
9
- onChange(): void;
10
8
  }
@@ -10,87 +10,18 @@ exports.Ej2RichTextEditor = void 0;
10
10
  const aurelia_framework_1 = require("aurelia-framework");
11
11
  const decorator_1 = require("../../utilities/decorator");
12
12
  const syncfusionWrapper_1 = require("../../common/syncfusionWrapper");
13
- const constants_1 = require("../../common/constants");
14
13
  const ej2_richtexteditor_1 = require("@syncfusion/ej2-richtexteditor");
15
14
  let Ej2RichTextEditor = class Ej2RichTextEditor extends syncfusionWrapper_1.SyncfusionWrapper {
16
15
  constructor() {
17
16
  super(...arguments);
18
- this.defaultToolbarItems = [
19
- 'Undo',
20
- 'Redo',
21
- '|',
22
- 'Bold',
23
- 'Italic',
24
- 'Underline',
25
- 'StrikeThrough',
26
- 'InlineCode',
27
- 'SuperScript',
28
- 'SubScript',
29
- '|',
30
- 'FontName',
31
- 'FontSize',
32
- 'FontColor',
33
- 'BackgroundColor',
34
- '|',
35
- 'LowerCase',
36
- 'UpperCase',
37
- '|',
38
- 'Formats',
39
- 'Alignments',
40
- 'Blockquote',
41
- '|',
42
- 'NumberFormatList',
43
- 'BulletFormatList',
44
- '|',
45
- 'Outdent',
46
- 'Indent',
47
- '|',
48
- 'CreateLink',
49
- 'CreateTable',
50
- '|',
51
- 'FormatPainter',
52
- 'ClearFormat',
53
- '|', 'EmojiPicker', 'Print', '|',
54
- 'SourceCode', 'FullScreen'
55
- ];
56
17
  this.syncfusionWidgetType = ej2_richtexteditor_1.RichTextEditor;
57
18
  }
58
19
  onWrapperCreated() {
59
20
  }
60
21
  onWidgetCreated() {
61
- this.widget.change = () => { this.onChange(); };
62
22
  }
63
23
  onBeforeWidgetInstantiation() {
64
- var _a, _b, _c, _d;
65
- if (!this['e-toolbarSettings'] && !((_a = this._eModel.toolbarSettings) === null || _a === void 0 ? void 0 : _a.items)) {
66
- this._eModel.toolbarSettings = {
67
- items: this.defaultToolbarItems
68
- };
69
- }
70
- if ((_b = this._eModel.toolbarSettings) === null || _b === void 0 ? void 0 : _b.items) {
71
- if (this._eModel.toolbarSettings.items.includes("Image")) {
72
- ej2_richtexteditor_1.RichTextEditor.Inject(ej2_richtexteditor_1.Image);
73
- }
74
- if (this._eModel.toolbarSettings.items.includes("Audio")) {
75
- ej2_richtexteditor_1.RichTextEditor.Inject(ej2_richtexteditor_1.Audio);
76
- }
77
- if (this._eModel.toolbarSettings.items.includes("Video")) {
78
- ej2_richtexteditor_1.RichTextEditor.Inject(ej2_richtexteditor_1.Video);
79
- }
80
- if (this._eModel.toolbarSettings.items.includes("FileManager") && ((_c = this._eModel.fileManagerSettings) === null || _c === void 0 ? void 0 : _c.enable)) {
81
- ej2_richtexteditor_1.RichTextEditor.Inject(ej2_richtexteditor_1.FileManager);
82
- }
83
- if (this._eModel.toolbarSettings.items.includes("EmojiPicker")) {
84
- ej2_richtexteditor_1.RichTextEditor.Inject(ej2_richtexteditor_1.EmojiPicker);
85
- }
86
- }
87
- if (!this['e-slashMenuSettings'] && !((_d = this._eModel.slashMenuSettings) === null || _d === void 0 ? void 0 : _d.enable)) {
88
- ej2_richtexteditor_1.RichTextEditor.Inject(ej2_richtexteditor_1.SlashMenu);
89
- }
90
- ej2_richtexteditor_1.RichTextEditor.Inject(ej2_richtexteditor_1.Toolbar, ej2_richtexteditor_1.Link, ej2_richtexteditor_1.Count, ej2_richtexteditor_1.HtmlEditor, ej2_richtexteditor_1.QuickToolbar, ej2_richtexteditor_1.Table, ej2_richtexteditor_1.FormatPainter, ej2_richtexteditor_1.PasteCleanup, ej2_richtexteditor_1.ImportExport);
91
- }
92
- onChange() {
93
- this[`${constants_1.constants.bindablePrefix}value`] = this.widget.value;
24
+ ej2_richtexteditor_1.RichTextEditor.Inject(ej2_richtexteditor_1.Toolbar, ej2_richtexteditor_1.Link, ej2_richtexteditor_1.Image, ej2_richtexteditor_1.Count, ej2_richtexteditor_1.HtmlEditor, ej2_richtexteditor_1.QuickToolbar, ej2_richtexteditor_1.Table, ej2_richtexteditor_1.FileManager, ej2_richtexteditor_1.EmojiPicker, ej2_richtexteditor_1.Audio, ej2_richtexteditor_1.Video, ej2_richtexteditor_1.FormatPainter, ej2_richtexteditor_1.PasteCleanup, ej2_richtexteditor_1.SlashMenu, ej2_richtexteditor_1.ImportExport);
94
25
  }
95
26
  };
96
27
  exports.Ej2RichTextEditor = Ej2RichTextEditor;
@@ -61,14 +61,14 @@ __decorate([
61
61
  ], Ej2CheckboxList.prototype, "matcher", void 0);
62
62
  Ej2CheckboxList = __decorate([
63
63
  customElement("ej2-checkbox-list"),
64
- inlineView(`<template>
65
- <div repeat.for="option of dataSource" css="\${orientation === 'horizontal' ? 'display: inline;' : ''}">
66
- <ej2-checkbox view-model.ref="viewModels[$index]" e-label.bind="optionModel? option[optionModel.label]: option"
67
- e-name.bind="optionModel? option[optionModel.name]: option"
68
- click.delegate="checkboxClick(option, viewModels[$index])"
69
- e-checked.bind="selectedItems.length >0 && matcher? isMatch(option) : selectedItems.indexOf(option) !== -1">
70
- </ej2-checkbox>
71
- </div>
64
+ inlineView(`<template>
65
+ <div repeat.for="option of dataSource" css="\${orientation === 'horizontal' ? 'display: inline;' : ''}">
66
+ <ej2-checkbox view-model.ref="viewModels[$index]" e-label.bind="optionModel? option[optionModel.label]: option"
67
+ e-name.bind="optionModel? option[optionModel.name]: option"
68
+ click.delegate="checkboxClick(option, viewModels[$index])"
69
+ e-checked.bind="selectedItems.length >0 && matcher? isMatch(option) : selectedItems.indexOf(option) !== -1">
70
+ </ej2-checkbox>
71
+ </div>
72
72
  </template>`)
73
73
  ], Ej2CheckboxList);
74
74
  export { Ej2CheckboxList };
@@ -1,10 +1,8 @@
1
1
  import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
2
2
  import { RichTextEditor, RichTextEditorModel } from '@syncfusion/ej2-richtexteditor';
3
3
  export declare class Ej2RichTextEditor extends SyncfusionWrapper<RichTextEditor, RichTextEditorModel> {
4
- private defaultToolbarItems;
5
4
  protected syncfusionWidgetType: any;
6
5
  protected onWrapperCreated(): void;
7
6
  protected onWidgetCreated(): void;
8
7
  onBeforeWidgetInstantiation(): void;
9
- onChange(): void;
10
8
  }
@@ -7,87 +7,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  import { inlineView, customElement } from 'aurelia-framework';
8
8
  import { generateBindables } from '../../utilities/decorator';
9
9
  import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
10
- import { constants } from '../../common/constants';
11
10
  import { RichTextEditor, Count, FileManager, EmojiPicker, FormatPainter, Toolbar, SlashMenu, ImportExport, Link, Image, HtmlEditor, QuickToolbar, Table, Video, Audio, PasteCleanup } from '@syncfusion/ej2-richtexteditor';
12
11
  let Ej2RichTextEditor = class Ej2RichTextEditor extends SyncfusionWrapper {
13
12
  constructor() {
14
13
  super(...arguments);
15
- this.defaultToolbarItems = [
16
- 'Undo',
17
- 'Redo',
18
- '|',
19
- 'Bold',
20
- 'Italic',
21
- 'Underline',
22
- 'StrikeThrough',
23
- 'InlineCode',
24
- 'SuperScript',
25
- 'SubScript',
26
- '|',
27
- 'FontName',
28
- 'FontSize',
29
- 'FontColor',
30
- 'BackgroundColor',
31
- '|',
32
- 'LowerCase',
33
- 'UpperCase',
34
- '|',
35
- 'Formats',
36
- 'Alignments',
37
- 'Blockquote',
38
- '|',
39
- 'NumberFormatList',
40
- 'BulletFormatList',
41
- '|',
42
- 'Outdent',
43
- 'Indent',
44
- '|',
45
- 'CreateLink',
46
- 'CreateTable',
47
- '|',
48
- 'FormatPainter',
49
- 'ClearFormat',
50
- '|', 'EmojiPicker', 'Print', '|',
51
- 'SourceCode', 'FullScreen'
52
- ];
53
14
  this.syncfusionWidgetType = RichTextEditor;
54
15
  }
55
16
  onWrapperCreated() {
56
17
  }
57
18
  onWidgetCreated() {
58
- this.widget.change = () => { this.onChange(); };
59
19
  }
60
20
  onBeforeWidgetInstantiation() {
61
- var _a, _b, _c, _d;
62
- if (!this['e-toolbarSettings'] && !((_a = this._eModel.toolbarSettings) === null || _a === void 0 ? void 0 : _a.items)) {
63
- this._eModel.toolbarSettings = {
64
- items: this.defaultToolbarItems
65
- };
66
- }
67
- if ((_b = this._eModel.toolbarSettings) === null || _b === void 0 ? void 0 : _b.items) {
68
- if (this._eModel.toolbarSettings.items.includes("Image")) {
69
- RichTextEditor.Inject(Image);
70
- }
71
- if (this._eModel.toolbarSettings.items.includes("Audio")) {
72
- RichTextEditor.Inject(Audio);
73
- }
74
- if (this._eModel.toolbarSettings.items.includes("Video")) {
75
- RichTextEditor.Inject(Video);
76
- }
77
- if (this._eModel.toolbarSettings.items.includes("FileManager") && ((_c = this._eModel.fileManagerSettings) === null || _c === void 0 ? void 0 : _c.enable)) {
78
- RichTextEditor.Inject(FileManager);
79
- }
80
- if (this._eModel.toolbarSettings.items.includes("EmojiPicker")) {
81
- RichTextEditor.Inject(EmojiPicker);
82
- }
83
- }
84
- if (!this['e-slashMenuSettings'] && !((_d = this._eModel.slashMenuSettings) === null || _d === void 0 ? void 0 : _d.enable)) {
85
- RichTextEditor.Inject(SlashMenu);
86
- }
87
- RichTextEditor.Inject(Toolbar, Link, Count, HtmlEditor, QuickToolbar, Table, FormatPainter, PasteCleanup, ImportExport);
88
- }
89
- onChange() {
90
- this[`${constants.bindablePrefix}value`] = this.widget.value;
21
+ RichTextEditor.Inject(Toolbar, Link, Image, Count, HtmlEditor, QuickToolbar, Table, FileManager, EmojiPicker, Audio, Video, FormatPainter, PasteCleanup, SlashMenu, ImportExport);
91
22
  }
92
23
  };
93
24
  Ej2RichTextEditor = __decorate([
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aurelia-syncfusion-ej2-bridge",
3
3
  "description": "An Aurelia plugin wrapper for syncfusion EJ2 controls",
4
- "version": "1.0.19",
4
+ "version": "1.0.21",
5
5
  "keywords": [
6
6
  "aurelia",
7
7
  "syncfusion"
@@ -11,17 +11,18 @@
11
11
  "name": "Refactored Technology Solutions"
12
12
  },
13
13
  "dependencies": {
14
- "lodash": "^4.17.21"
14
+ "lodash": "^4.17.21",
15
+ "yarn": "^1.22.22"
15
16
  },
16
17
  "peerDependencies": {
17
- "@syncfusion/ej2": "^28.1.41"
18
+ "@syncfusion/ej2": "^30.1.37"
18
19
  },
19
20
  "scripts": {
20
21
  "start": "au run",
21
22
  "build": "au build-plugin"
22
23
  },
23
24
  "devDependencies": {
24
- "@syncfusion/ej2": "^29.2.10",
25
+ "@syncfusion/ej2": "^30.1.37",
25
26
  "@types/jest": "^24.0.9",
26
27
  "@types/node": "^20.12.7",
27
28
  "aurelia-animator-css": "^1.0.4",