aurelia-syncfusion-ej2-bridge 1.0.23 → 1.0.24
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/dist/commonjs/configBuider.d.ts +1 -0
- package/dist/commonjs/configBuider.js +6 -0
- package/dist/commonjs/controlBindings.d.ts +5 -0
- package/dist/commonjs/controlBindings.js +9 -0
- package/dist/commonjs/widgets/chatUI/ej2-chatUI.d.ts +10 -0
- package/dist/commonjs/widgets/chatUI/ej2-chatUI.js +37 -0
- package/dist/native-modules/configBuider.d.ts +1 -0
- package/dist/native-modules/configBuider.js +6 -0
- package/dist/native-modules/controlBindings.d.ts +5 -0
- package/dist/native-modules/controlBindings.js +9 -0
- package/dist/native-modules/widgets/chatUI/ej2-chatUI.d.ts +10 -0
- package/dist/native-modules/widgets/chatUI/ej2-chatUI.js +34 -0
- package/package.json +5 -4
|
@@ -9,6 +9,7 @@ export declare class ConfigBuilder {
|
|
|
9
9
|
ej2Accordion(): ConfigBuilder;
|
|
10
10
|
ej2AutoComplete(): ConfigBuilder;
|
|
11
11
|
ej2Button(): ConfigBuilder;
|
|
12
|
+
ej2ChatUI(): ConfigBuilder;
|
|
12
13
|
ej2Checkbox(): ConfigBuilder;
|
|
13
14
|
ej2CheckboxList(): ConfigBuilder;
|
|
14
15
|
ej2ColorPicker(): ConfigBuilder;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConfigBuilder = void 0;
|
|
4
|
+
const ej2_chatUI_1 = require("./widgets/chatUI/ej2-chatUI");
|
|
4
5
|
const ej2_multiSelect_1 = require("./widgets/multiSelect/ej2-multiSelect");
|
|
5
6
|
const ej2_schedule_1 = require("./widgets/schedule/ej2-schedule");
|
|
6
7
|
const ej2_fileManager_1 = require("./widgets/fileManager/ej2-fileManager");
|
|
@@ -44,6 +45,7 @@ class ConfigBuilder {
|
|
|
44
45
|
.ej2Accordion()
|
|
45
46
|
.ej2AutoComplete()
|
|
46
47
|
.ej2Button()
|
|
48
|
+
.ej2ChatUI()
|
|
47
49
|
.ej2Checkbox()
|
|
48
50
|
.ej2CheckboxList()
|
|
49
51
|
.ej2ColorPicker()
|
|
@@ -106,6 +108,10 @@ class ConfigBuilder {
|
|
|
106
108
|
this.resources.push(ej2_button_1.Ej2Button);
|
|
107
109
|
return this;
|
|
108
110
|
}
|
|
111
|
+
ej2ChatUI() {
|
|
112
|
+
this.resources.push(ej2_chatUI_1.Ej2ChatUI);
|
|
113
|
+
return this;
|
|
114
|
+
}
|
|
109
115
|
ej2Checkbox() {
|
|
110
116
|
this.resources.push(ej2_checkbox_1.Ej2Checkbox);
|
|
111
117
|
return this;
|
|
@@ -18,6 +18,15 @@ exports.ControlBindings = {
|
|
|
18
18
|
oneWay: ["disabled", "isPrimary", "content", "cssClass", "enableHtmlSanitizer", "iconCss", "iconPosition", "isToggle", "enableRtl"],
|
|
19
19
|
events: ["created"]
|
|
20
20
|
},
|
|
21
|
+
chatUI: {
|
|
22
|
+
oneWay: ["autoScrollToBottom", "emptyChatTemplate",
|
|
23
|
+
"enableCompactMode", "footerTemplate", "headerIconCss", "headerText", "headerToolbar",
|
|
24
|
+
"height", "loadOnDemand", "mentionTriggerChar", "mentionUsers", "messageTemplate",
|
|
25
|
+
"messageToolbarSettings", "placeholder", "showFooter", "showHeader", "showTimeBreak",
|
|
26
|
+
"showTimeStamp", "suggestionTemplate", "suggestions", "timeBreakTemplate", "timeStampFormat", "typingUsers", "typingUsersTemplate", "user", "width"],
|
|
27
|
+
twoWay: ["messages"],
|
|
28
|
+
events: ["created", "mentionSelect", "messageSend", "userTyping"]
|
|
29
|
+
},
|
|
21
30
|
checkbox: {
|
|
22
31
|
oneWay: ["cssClass", "disabled", "enableHtmlSanitizer", "htmlAttributes", "indeterminate", "label", "labelPosition", "name", "value"],
|
|
23
32
|
twoWay: ["checked"],
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
2
|
+
import { ChatUI, ChatUIModel } from '@syncfusion/ej2/interactive-chat';
|
|
3
|
+
export declare class Ej2ChatUI extends SyncfusionWrapper<ChatUI, ChatUIModel> {
|
|
4
|
+
protected onWrapperCreated(): void;
|
|
5
|
+
protected onWidgetCreated(): void;
|
|
6
|
+
protected syncfusionWidgetType: typeof ChatUI;
|
|
7
|
+
refresh(): void;
|
|
8
|
+
dataBind(): void;
|
|
9
|
+
detached(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Ej2ChatUI = void 0;
|
|
10
|
+
const aurelia_framework_1 = require("aurelia-framework");
|
|
11
|
+
const decorator_1 = require("../../utilities/decorator");
|
|
12
|
+
const syncfusionWrapper_1 = require("../../common/syncfusionWrapper");
|
|
13
|
+
const interactive_chat_1 = require("@syncfusion/ej2/interactive-chat");
|
|
14
|
+
let Ej2ChatUI = class Ej2ChatUI extends syncfusionWrapper_1.SyncfusionWrapper {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.syncfusionWidgetType = interactive_chat_1.ChatUI;
|
|
18
|
+
}
|
|
19
|
+
onWrapperCreated() {
|
|
20
|
+
}
|
|
21
|
+
onWidgetCreated() {
|
|
22
|
+
}
|
|
23
|
+
refresh() {
|
|
24
|
+
this.widget.refresh();
|
|
25
|
+
}
|
|
26
|
+
dataBind() {
|
|
27
|
+
this.widget.dataBind();
|
|
28
|
+
}
|
|
29
|
+
detached() {
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.Ej2ChatUI = Ej2ChatUI;
|
|
33
|
+
exports.Ej2ChatUI = Ej2ChatUI = __decorate([
|
|
34
|
+
(0, decorator_1.generateBindables)("chatUI"),
|
|
35
|
+
(0, aurelia_framework_1.inlineView)('<template><div element.ref="widgetElement"></div></template>'),
|
|
36
|
+
(0, aurelia_framework_1.customElement)('ej2-chat-ui')
|
|
37
|
+
], Ej2ChatUI);
|
|
@@ -9,6 +9,7 @@ export declare class ConfigBuilder {
|
|
|
9
9
|
ej2Accordion(): ConfigBuilder;
|
|
10
10
|
ej2AutoComplete(): ConfigBuilder;
|
|
11
11
|
ej2Button(): ConfigBuilder;
|
|
12
|
+
ej2ChatUI(): ConfigBuilder;
|
|
12
13
|
ej2Checkbox(): ConfigBuilder;
|
|
13
14
|
ej2CheckboxList(): ConfigBuilder;
|
|
14
15
|
ej2ColorPicker(): ConfigBuilder;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Ej2ChatUI } from './widgets/chatUI/ej2-chatUI';
|
|
1
2
|
import { Ej2MultiSelect } from './widgets/multiSelect/ej2-multiSelect';
|
|
2
3
|
import { Ej2Schedule } from './widgets/schedule/ej2-schedule';
|
|
3
4
|
import { Ej2FileManager } from './widgets/fileManager/ej2-fileManager';
|
|
@@ -41,6 +42,7 @@ export class ConfigBuilder {
|
|
|
41
42
|
.ej2Accordion()
|
|
42
43
|
.ej2AutoComplete()
|
|
43
44
|
.ej2Button()
|
|
45
|
+
.ej2ChatUI()
|
|
44
46
|
.ej2Checkbox()
|
|
45
47
|
.ej2CheckboxList()
|
|
46
48
|
.ej2ColorPicker()
|
|
@@ -103,6 +105,10 @@ export class ConfigBuilder {
|
|
|
103
105
|
this.resources.push(Ej2Button);
|
|
104
106
|
return this;
|
|
105
107
|
}
|
|
108
|
+
ej2ChatUI() {
|
|
109
|
+
this.resources.push(Ej2ChatUI);
|
|
110
|
+
return this;
|
|
111
|
+
}
|
|
106
112
|
ej2Checkbox() {
|
|
107
113
|
this.resources.push(Ej2Checkbox);
|
|
108
114
|
return this;
|
|
@@ -15,6 +15,15 @@ export const ControlBindings = {
|
|
|
15
15
|
oneWay: ["disabled", "isPrimary", "content", "cssClass", "enableHtmlSanitizer", "iconCss", "iconPosition", "isToggle", "enableRtl"],
|
|
16
16
|
events: ["created"]
|
|
17
17
|
},
|
|
18
|
+
chatUI: {
|
|
19
|
+
oneWay: ["autoScrollToBottom", "emptyChatTemplate",
|
|
20
|
+
"enableCompactMode", "footerTemplate", "headerIconCss", "headerText", "headerToolbar",
|
|
21
|
+
"height", "loadOnDemand", "mentionTriggerChar", "mentionUsers", "messageTemplate",
|
|
22
|
+
"messageToolbarSettings", "placeholder", "showFooter", "showHeader", "showTimeBreak",
|
|
23
|
+
"showTimeStamp", "suggestionTemplate", "suggestions", "timeBreakTemplate", "timeStampFormat", "typingUsers", "typingUsersTemplate", "user", "width"],
|
|
24
|
+
twoWay: ["messages"],
|
|
25
|
+
events: ["created", "mentionSelect", "messageSend", "userTyping"]
|
|
26
|
+
},
|
|
18
27
|
checkbox: {
|
|
19
28
|
oneWay: ["cssClass", "disabled", "enableHtmlSanitizer", "htmlAttributes", "indeterminate", "label", "labelPosition", "name", "value"],
|
|
20
29
|
twoWay: ["checked"],
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
2
|
+
import { ChatUI, ChatUIModel } from '@syncfusion/ej2/interactive-chat';
|
|
3
|
+
export declare class Ej2ChatUI extends SyncfusionWrapper<ChatUI, ChatUIModel> {
|
|
4
|
+
protected onWrapperCreated(): void;
|
|
5
|
+
protected onWidgetCreated(): void;
|
|
6
|
+
protected syncfusionWidgetType: typeof ChatUI;
|
|
7
|
+
refresh(): void;
|
|
8
|
+
dataBind(): void;
|
|
9
|
+
detached(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { inlineView, customElement } from 'aurelia-framework';
|
|
8
|
+
import { generateBindables } from '../../utilities/decorator';
|
|
9
|
+
import { SyncfusionWrapper } from '../../common/syncfusionWrapper';
|
|
10
|
+
import { ChatUI } from '@syncfusion/ej2/interactive-chat';
|
|
11
|
+
let Ej2ChatUI = class Ej2ChatUI extends SyncfusionWrapper {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.syncfusionWidgetType = ChatUI;
|
|
15
|
+
}
|
|
16
|
+
onWrapperCreated() {
|
|
17
|
+
}
|
|
18
|
+
onWidgetCreated() {
|
|
19
|
+
}
|
|
20
|
+
refresh() {
|
|
21
|
+
this.widget.refresh();
|
|
22
|
+
}
|
|
23
|
+
dataBind() {
|
|
24
|
+
this.widget.dataBind();
|
|
25
|
+
}
|
|
26
|
+
detached() {
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
Ej2ChatUI = __decorate([
|
|
30
|
+
generateBindables("chatUI"),
|
|
31
|
+
inlineView('<template><div element.ref="widgetElement"></div></template>'),
|
|
32
|
+
customElement('ej2-chat-ui')
|
|
33
|
+
], Ej2ChatUI);
|
|
34
|
+
export { Ej2ChatUI };
|
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.
|
|
4
|
+
"version": "1.0.24",
|
|
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": "^30.
|
|
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": "^30.
|
|
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",
|